Re: A weird behavior of linkAnnotation
Posted: Tue Jul 17, 2018 11:30 am
If you are able to use the Bio-Formats Java API then there is an example of writing MapAnnotations here: https://github.com/openmicroscopy/biofo ... ample.java
Note that example uses hard coded index values, but if you wanted to base them on the current size of the annotation list then you can retrieve that using:
The indexing would be independent for each type of Annotation. I would also recommend avoiding the reuse of previous ID's when deleting objects.
Note that example uses hard coded index values, but if you wanted to base them on the current size of the annotation list then you can retrieve that using:
- Code: Select all
int annotationIndex = metadata.getMapAnnotationCount();
The indexing would be independent for each type of Annotation. I would also recommend avoiding the reuse of previous ID's when deleting objects.