Login  Register

Re: Getting Roi names from Roi Manager?

Posted by Albert Cardona on Nov 15, 2005; 6:17pm
URL: http://imagej.273.s1.nabble.com/Getting-Roi-names-from-Roi-Manager-tp3704448p3704449.html

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.mcdb.ucla.edu/Research/Hartenstein/