/** * Copies information from a metadata retrieval object * (source) into a metadata store (destination). */ public static void convertMetadata(MetadataRetrieve src, MetadataStore dest) { ome.xml.meta.MetadataConverter.convertMetadata(src, dest); }
/** * Copy all metadata from the specified channel in the source MetadataRetrieve * to the specified channel in the destination MetadataStore. The specified * destination Image must exist (e.g. via calling * <code>setImageID(..., destImage)</code>), but the destination Channel only * needs to exist if the copyID flag is <code>false<code> * LightSource references are assumed to be correct and are not checked for validity. * * @param src the source {@link MetadataRetrieve} * @param srcImage the index of the Channel's parent Image in src * @param srcChannel the index of the Channel in src * @param dest the destination {@link MetadataStore} * @param destImage the index of the Channel's parent Image in dest * @param destChannel the index of the Channel in dest * @param copyID false if the Channel ID should be omitted from the copy operation */ public static void convertChannels(MetadataRetrieve src, int srcImage, int srcChannel, MetadataStore dest, int destImage, int destChannel, boolean copyID) { convertChannels(src, srcImage, srcChannel, dest, destImage, destChannel, copyID, null); }
/** * Copies information from a metadata retrieval object * (source) into a metadata store (destination). */ public static void convertMetadata(MetadataRetrieve src, MetadataStore dest) { convertBooleanAnnotations(src, dest); convertCommentAnnotations(src, dest); convertDoubleAnnotations(src, dest); convertFileAnnotations(src, dest); convertListAnnotations(src, dest); convertLongAnnotations(src, dest); convertMapAnnotations(src, dest); convertTagAnnotations(src, dest); convertTermAnnotations(src, dest); convertTimestampAnnotations(src, dest); convertXMLAnnotations(src, dest); convertROIs(src, dest); List<String> lightSourceIds = convertInstruments(src, dest); convertExperimenters(src, dest); convertExperimenterGroups(src, dest); convertExperiments(src, dest); convertImages(src, dest, lightSourceIds); convertPlates(src, dest); convertScreens(src, dest); convertDatasets(src, dest); convertProjects(src, dest); convertFolders(src, dest); convertRootAttributes(src, dest); }
/** * Copies information from a metadata retrieval object * (source) into a metadata store (destination). */ public static void convertMetadata(MetadataRetrieve src, MetadataStore dest) { ome.xml.meta.MetadataConverter.convertMetadata(src, dest); }
MetadataConverter.convertChannels(retrieve, s, cIndex, store, s, cIndex + i, false);
/** * @see OMEXMLService#convertMetadata(loci.formats.meta.MetadataRetrieve, loci.formats.meta.MetadataStore) */ @Override public void convertMetadata(MetadataRetrieve src, MetadataStore dest) { MetadataConverter.convertMetadata(src, dest); }
convertChannels(src, i, c, dest, i, c, true, lightSourceIds);
/** * @see OMEXMLService#convertMetadata(loci.formats.meta.MetadataRetrieve, loci.formats.meta.MetadataStore) */ @Override public void convertMetadata(MetadataRetrieve src, MetadataStore dest) { MetadataConverter.convertMetadata(src, dest); }
MetadataConverter.convertMetadata(convertMetadata, store); MetadataTools.populatePixels(store, this);
MetadataConverter.convertMetadata(convertMetadata, store); MetadataTools.populatePixels(store, this);
/** * Initializes the writer. * @param output The file where to write the compressed data. * @param compression The compression to use. * @param bigTiff Pass <code>true</code> to set the <code>bigTiff</code> flag, * <code>false</code> otherwise. * @return See above. * @throws Exception Thrown if an error occurred. */ private TiffWriter initializeWriter(String output, String compression, boolean bigTiff) throws Exception { IMetadata newMetadata = service.createOMEXMLMetadata(); MetadataConverter.convertMetadata(metadata, newMetadata); TiffWriter writer = new TiffWriter(); writer.setMetadataRetrieve(newMetadata); writer.setCompression(compression); writer.setWriteSequentially(true); writer.setInterleaved(false); writer.setBigTiff(bigTiff); writer.setId(output); return writer; }
MetadataConverter.convertMetadata( omeMD, store ); MetadataTools.populatePixels( store, this, true );
MetadataConverter.convertMetadata( omeMD, store ); MetadataTools.populatePixels( store, this, true );