We're Hiring!

How to get the list of all the TagAnnotationI objects?

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Re: How to get the list of all the TagAnnotationI objects?

Postby Kouichi_C_Nakamura » Tue Jun 12, 2018 9:24 am

Fair enough! Still the same message. MATLAB [] (empty array) should be treated as null in Java, but they are a bit suspicious.

Code: Select all
% in MATLAB language

service = session.getMetadataService

rootType = 'Dataset'
rootIds = javaArray('java.lang.Long',1);
rootIds(1) = java.lang.Long(1157);

annnotationTypes = javaArray('java.lang.String',1);
annnotationTypes(1) = java.lang.String('TagAnnotation');
annotatorIds = []
options = []

service.loadAnnotations(rootType,rootIds,annnotationTypes,annotatorIds,options)
Kouichi_C_Nakamura
 
Posts: 165
Joined: Thu Oct 19, 2017 1:35 pm

Previous

Return to Developer Discussion

Who is online

Users browsing this forum: No registered users and 0 guests