This is mostly Bioformats question, related to OME.tiff generation, which currently already in use by our OPT group via Matlab API.
TagAnnotations are obvious enhancement to this, so the question is how exactly to add them.
I can create TagAnnotation as
- Code: Select all
tag = ome.xml.model.TagAnnotation();
but not sure how to set value and incorporate it into the metadata.
In the case of "modulo", it was
- Code: Select all
modulo = loci.formats.CoreMetadata();
...
OMEXMLService = loci.formats.services.OMEXMLServiceImpl();
OMEXMLService.addModuloAlong(metadata, modulo, 0);
...
Hopefully it shouldn't be more complicated in the case of TagAnnotations? - but didn't find an example anywhere.
Best,
Y.