Search in sources :

Example 1 with MetadataOnly

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);
}
Also used : MetadataOnly(ome.xml.model.MetadataOnly) OMEXMLMetadataRoot(ome.xml.meta.OMEXMLMetadataRoot) Pixels(ome.xml.model.Pixels)

Aggregations

OMEXMLMetadataRoot (ome.xml.meta.OMEXMLMetadataRoot)1 MetadataOnly (ome.xml.model.MetadataOnly)1 Pixels (ome.xml.model.Pixels)1