We're Hiring!

getting OMERO ROIs into imageJ/Fiji

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.

getting OMERO ROIs into imageJ/Fiji

Postby dsudar » Fri Aug 04, 2017 6:50 pm

Hi,

The insight-ij package nicely supports getting ROIs generated in imagej/fiji into OMERO. Is there an equivalent facility to get ROIs generated in OMERO into imagej/fiji?

I have some folks who are interactively defining regions to be analyzed and then would like to run the Fiji-based analysis routine just on those defined areas. Maybe there's some example Fiji scripting code that extracts ROI image regions from OMERO you can point me to?

Thanks,
- Damir
dsudar
 
Posts: 235
Joined: Mon May 14, 2012 8:43 pm
Location: Berkeley, CA, USA

Re: getting OMERO ROIs into imageJ/Fiji

Postby bramalingam » Fri Aug 11, 2017 8:42 am

Hi Damir,

Thank you for sharing your question.

We unfortunately do not have any example scripts on this front but I can point you at the source code on how the OMERO-IJ plugin extracts the ROI information.

It does it in two stages,

1. OmeroReader reads the OMERO ROI’s into the metadatastore,
https://github.com/openmicroscopy/openm ... .java#L462

example for reading an ellipse from OMERO into the metadata store:
https://github.com/openmicroscopy/openm ... .java#L636

Likewise all shapes are read from OMERO into the metadata store and then,

2. Bio-Formats reads the information from the metadatastore, using the ROIHandler class,
https://github.com/openmicroscopy/biofo ... .java#L146

and displays it in ImageJ.

Please let us know if you have any trouble, I can try and share an example snippet to fit your workflow.
Hope that helps for the time being.

Best,
Balaji
User avatar
bramalingam
 
Posts: 70
Joined: Tue Jan 14, 2014 12:01 pm

Re: getting OMERO ROIs into imageJ/Fiji

Postby dsudar » Mon Aug 14, 2017 5:27 pm

Hi Balaji,

Thanks much for the pointers. I'll get some Java-expert help here to see if we can figure it out and will be in touch if we get stuck.

Cheers,
- Damir
dsudar
 
Posts: 235
Joined: Mon May 14, 2012 8:43 pm
Location: Berkeley, CA, USA


Return to Developer Discussion

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron