logo       

Re: Getting Roi names from Roi Manager?: msg#00117

java.imagej

Subject: Re: Getting Roi names from Roi Manager?

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/



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise