ome / omero-guide-orbit

BSD 2-Clause "Simplified" License
1 stars 3 forks source link

OMERO annotations to orbit annotation #4

Open jburel opened 2 years ago

jburel commented 2 years ago

provide script to convert orbit annotation to omero annotation

pwalczysko commented 2 years ago

provide script to convert orbit annotation to omero annotation

This should be omero to orbit if I understand it right

jburel commented 2 years ago

you are correct. I mistyped the title. This is fixed now

mstritt commented 2 years ago

the procedure should be as follows:

Hope that helps.

Manuel

Moicraphy commented 2 years ago

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

Moicraphy commented 2 years ago

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)

Moicraphy commented 2 years ago

Script terminé, merci pour votre aide; on peut le mettre en résolu

https://github.com/Moicraphy/omero-guide-orbit/edit/patch-1/scripts/https:/github.com/ome/omero-guide-orbit/blob/master/scripts/omero_to_orbit_roi_annotation.groovy