Re: how do you get an ROI name in a macro?
Posted by Wayne Rasband on Apr 21, 2009; 3:57pm
URL: http://imagej.273.s1.nabble.com/Re-how-do-you-get-an-ROI-name-in-a-macro-tp3692827p3692828.html
On Apr 20, 2009, at 8:16 PM, Damon Poburko wrote:
> I'm really sorry about this one folks. I'm sure I'm going to smack my
> forehead when I find out how to do this. I just need to know how to
> get the name of a given ROI. For the last few days I've been going
> over the roiManager documentation. I can see how to remain and ROI,
> but I can't see how you get at the current name for an ROI. This is in
> the context of a macro.
The latest 1.42m daily build adds a getInfo("roi.name") function that
returns the ROI name or "" if there is no ROI or the ROI does not have
a name.
-wayne