Login  Register

Open Sequentially as stack plugin questions

Posted by Luciano Marpegan on Nov 16, 2005; 4:21pm
URL: http://imagej.273.s1.nabble.com/Getting-Roi-names-from-Roi-Manager-tp3704448p3704450.html

Dear Albert,
Many thanks for your answer on how to get the ROI names from
RoiManager, I'm new to Jython so it will take me a while to figure
out how it works but it is probably worth it. By the way, I tried to
install the Open Sequentially as Stack plugin but I couldn't make it
work in my system (Windows XP Pro SP2) with SPE files and some tiff files.

One of the error messages I got for the tiff files was:

java.lang.ArrayIndexOutOfBoundsException: -1
  at Open_sequentially_as_stack.run(Open_sequentially_as_stack.java:74)
  at ij.IJ.runUserPlugIn(IJ.java:271)
  at ij.IJ.runPlugIn(IJ.java:115)
  at ij.Executer.runPlugIn(Executer.java:169)
  at ij.Executer.runCommand(Executer.java:131)
  at ij.Executer.run(Executer.java:63)
  at java.lang.Thread.run(Thread.java:595)


For the SPE files I got a message box stating that it couldn't read
the first image and that it couldn't get the size of it. Is this
because the plugin doesn't work with SPE files?


Best,
Luciano



At 12:17 PM 11/15/2005, you wrote:

>Luciano,
>
>Using jython and the Jython Interpreter, make sure the Roi Manager is
>the last selected window and then simply type:
>
>rm = WindowManager.getFrontWindow()
>roi_names = rm.getComponents()[0].getItems()
>for r in roi_names:
>          print r
>
>0160-0416
>0211-0369
>
>The last two lines of numbers are the two names of the rois in the Roi
>Manager.
>
>--
>Albert Cardona
>Molecular Cell Developmental Biology
>University of California Los Angeles
>Tel +1 310 2067376
><http://www.pensament.net/java/>http://www.pensament.net/java/
>http://www.mcdb.ucla.edu/Research/Hartenstein/