public int getImageAnnotationRefCount(int imageIndex) { // Parents: {u'LightSource': {u'Instrument': {u'OME': None}}, u'Instrument': {u'OME': None}, u'Objective': {u'Instrument': {u'OME': None}}, u'Folder': {u'OME': None}, u'Detector': {u'Instrument': {u'OME': None}}, u'Channel': {u'Pixels': {u'Image': {u'OME': None}}}, u'Plate': {u'OME': None}, u'ExperimenterGroup': {u'OME': None}, u'Screen': {u'OME': None}, u'Reagent': {u'Screen': {u'OME': None}}, u'Plane': {u'Pixels': {u'Image': {u'OME': None}}}, u'Experimenter': {u'OME': None}, u'Annotation': None, u'Dichroic': {u'Instrument': {u'OME': None}}, u'Well': {u'Plate': {u'OME': None}}, u'Filter': {u'Instrument': {u'OME': None}}, u'PlateAcquisition': {u'Plate': {u'OME': None}}, u'ROI': {u'OME': None}, u'Project': {u'OME': None}, u'LightPath': {u'Channel': {u'Pixels': {u'Image': {u'OME': None}}}}, u'Image': {u'OME': None}, u'Dataset': {u'OME': None}, u'Shape': {u'Union': {u'ROI': {u'OME': None}}}} // AnnotationRef is a reference return root.getImage(imageIndex).sizeOfLinkedAnnotationList(); }
public int getImageAnnotationRefCount(int imageIndex) { // Parents: {u'LightSource': {u'Instrument': {u'OME': None}}, u'Instrument': {u'OME': None}, u'Objective': {u'Instrument': {u'OME': None}}, u'Folder': {u'OME': None}, u'Detector': {u'Instrument': {u'OME': None}}, u'Channel': {u'Pixels': {u'Image': {u'OME': None}}}, u'Plate': {u'OME': None}, u'ExperimenterGroup': {u'OME': None}, u'Screen': {u'OME': None}, u'Reagent': {u'Screen': {u'OME': None}}, u'Plane': {u'Pixels': {u'Image': {u'OME': None}}}, u'Experimenter': {u'OME': None}, u'Annotation': None, u'Dichroic': {u'Instrument': {u'OME': None}}, u'Well': {u'Plate': {u'OME': None}}, u'Filter': {u'Instrument': {u'OME': None}}, u'PlateAcquisition': {u'Plate': {u'OME': None}}, u'ROI': {u'OME': None}, u'Project': {u'OME': None}, u'LightPath': {u'Channel': {u'Pixels': {u'Image': {u'OME': None}}}}, u'Image': {u'OME': None}, u'Dataset': {u'OME': None}, u'Shape': {u'Union': {u'ROI': {u'OME': None}}}} // AnnotationRef is a reference return root.getImage(imageIndex).sizeOfLinkedAnnotationList(); }
for (int i=0; i<img.sizeOfLinkedAnnotationList(); i++) { Annotation annotation = img.getLinkedAnnotation(i); if (!(annotation instanceof XMLAnnotation)) {
for (int i=0; i<img.sizeOfLinkedAnnotationList(); i++) { Annotation annotation = img.getLinkedAnnotation(i); if (!(annotation instanceof XMLAnnotation)) {
@Test (groups = {"11-06-i-links"}, dependsOnGroups = {"11-06-i-image", "11-06-i-instrument", "11-06-i-lightsourcelinks", "11-06-i-filterset", "11-06-i-detector"}) public void testImage0Linkage() { Assert.assertNotNull(image0); Assert.assertEquals(0, image0.sizeOfLinkedAnnotationList()); Assert.assertEquals(0, image0.sizeOfLinkedROIList()); Assert.assertEquals(instrument0, image0.getLinkedInstrument()); }
@Test (groups = {"11-06-u-links"}, dependsOnGroups = {"11-06-u-image", "11-06-u-exper", "11-06-u-roi", "11-06-u-annotation"}) public void testImage0Linkage() { Assert.assertNotNull(image0); Assert.assertEquals(0, image0.sizeOfLinkedAnnotationList()); Assert.assertEquals(3, image0.sizeOfLinkedROIList()); Assert.assertEquals(experimenter1, image0.getLinkedExperimenter()); Assert.assertEquals(roi0, image0.getLinkedROI(0)); Assert.assertEquals(roi1, image0.getLinkedROI(1)); Assert.assertEquals(roi2, image0.getLinkedROI(2)); }
Image img = root.getImage(image); for (int i=0; i<img.sizeOfLinkedAnnotationList(); i++) { Annotation annotation = img.getLinkedAnnotation(i); if (!(annotation instanceof XMLAnnotation)) {
Image img = root.getImage(image); for (int i=0; i<img.sizeOfLinkedAnnotationList(); i++) { Annotation annotation = img.getLinkedAnnotation(i); if (!(annotation instanceof XMLAnnotation)) {
for (int link=0; link<image.sizeOfLinkedAnnotationList(); link++) { if (xmlID.equals(image.getLinkedAnnotation(link).getID()))
for (int link=0; link<image.sizeOfLinkedAnnotationList(); link++) { if (xmlID.equals(image.getLinkedAnnotation(link).getID()))