use of ome.xml.model.MetadataOnly in project bioformats by openmicroscopy.
the class OMEXMLServiceImpl method addMetadataOnly.
/**
* @see OMEXMLService#addMetadataOnly(OMEXMLMetadata, int, boolean)
*/
public void addMetadataOnly(OMEXMLMetadata omexmlMeta, int image, boolean resolve) {
if (resolve) {
omexmlMeta.resolveReferences();
}
MetadataOnly meta = new MetadataOnly();
OMEXMLMetadataRoot root = (OMEXMLMetadataRoot) omexmlMeta.getRoot();
Pixels pix = root.getImage(image).getPixels();
pix.setMetadataOnly(meta);
}
Aggregations