Hi All,
Is there any API method that can save the original Global Metadata from TIFF file, when I conver a TIFF image to OME-TIFF?
Thanks in advance.
BK
Is there any API method that can save the original Global Metadata from TIFF file, when I conver a TIFF image to OME-TIFF?
IFormatReader reader = new ImageReader();
IMetadata metadata = MetadataTools.createOMEXMLMetadata();
reader.setOriginalMetadataPopulated(true);
reader.setMetadataStore(metadata);
reader.setId("/path/to/input/file");
IFormatWriter writer = new ImageWriter();
writer.setMetadataRetrieve(metadata);
// calls to writer.saveBytes go here...
reader.setOriginalMetadataPopulated(true);
Return to Developer Discussion
Users browsing this forum: No registered users and 1 guest