https://downloads.openmicroscopy.org/omero/5.4.6/api/ome/model/annotations/MapAnnotation.html
The getAnnotations.m seems to be the function to retrieve existing key-value pairs. But how do I know ids? It's annotation id, and not visible from omero.insight GUI. How do I obtain ids for a specific image?
https://github.com/openmicroscopy/openmicroscopy/blob/v5.4.6/components/tools/OmeroM/src/annotations/getAnnotations.m
- Code: Select all
client = loadOmero('demo.openmicroscopy.org', 4064)
session = client.createSession('xxxxxxx', 'xxxxxxx')
img_id = 18686;
images = getImages(session, img_id)
ma = getAnnotations(session, ids,'map')
Also, how can I assign key-value pairs to a specific image by using ma = writeMapAnnotation(session, keys, values, varargin)? It appears to me that the syntax does not specify the target image.
https://github.com/openmicroscopy/openmicroscopy/blob/v5.4.6/components/tools/OmeroM/src/annotations/writeMapAnnotation.m