jython script setShowROIs
Posted: Fri Feb 20, 2015 4:56 am
Hi
I am writing a fairly simple Jython script to run in headless mode in Fiji and have run into a problem. I have generated an OME-TIFF from some custom code where I have written a polygon ROI into the OME-XML. I want to open the image and display the ROI. I have the following in my script:
But the ROI Manager never opens for the ROI to be selected.
When I try this using the Bioformats Importer it works just fine. I must have missed something!
Cheers,
Dan.
I am writing a fairly simple Jython script to run in headless mode in Fiji and have run into a problem. I have generated an OME-TIFF from some custom code where I have written a polygon ROI into the OME-XML. I want to open the image and display the ROI. I have the following in my script:
- Code: Select all
from loci.common import Region
from loci.plugins.in import ImporterOptions
options = ImporterOptions()
options.setShowROIs(True)
options.setColorMode(ImporterOptions.COLOR_MODE_COLORIZED)
options.setId(file)
imps = BF.openImagePlus(options)
for imp in imps:
imp.show()
But the ROI Manager never opens for the ROI to be selected.
When I try this using the Bioformats Importer it works just fine. I must have missed something!
Cheers,
Dan.