Open jburel opened 2 years ago
provide script to convert orbit annotation to omero annotation
This should be omero to orbit
if I understand it right
you are correct. I mistyped the title. This is fixed now
the procedure should be as follows:
ImageProviderOmero imageProvider = new ImageProviderOmero()
IScaleableShape shape = new PolygonExt(polygon)
ClassShape cs = new ClassShape("Annotation Shape",Color.yellow,ClassShape.UNDEFINED);
cs.getShapeList().add(shape);
ImageAnnotation annotation = new ImageAnnotation("Annotation",cs);
imageProvider.InsertRawAnnotation(annotation);
Hope that helps.
Manuel
Hello, thank you for your clues, i'm stuck on reading the polygones from Omero. is there a way to get roi instead of Annotation, based on this command ?:
imageProvider.LoadRawAnnotationsByRawDataFile(omeroImageId)
i think i would be able to make the polygones after that based on your script: https://github.com/mstritt/orbit-image-analysis/blob/master/src/main/groovy/com/actelion/research/orbit/imageAnalysis/scripts/AnnotationWriter.groovy
and the original: https://github.com/ome/omero-guide-orbit/blob/master/scripts/orbit_roi_annotation_to_omero.groovy
Tried this, seems to work but then nothing loaded :/
List<ROIResult> annotations = gateway.getFacility(ROIFacility).loadROIs(ctx, omeroImageId)
And nothing counted here:
Count = gateway.getFacility(ROIFacility).getROICount(ctx, omeroImageId)
Script terminé, merci pour votre aide; on peut le mettre en résolu
provide script to convert orbit annotation to omero annotation