Re: Which Image
Posted by Wayne Rasband on Dec 20, 2005; 10:47pm
URL: http://imagej.273.s1.nabble.com/Which-Image-tp3704187p3704193.html
> hay All! I'm writing a plugin that will have two open
> images. The two images have the same filename from
> different folders. I want to trigger an action (roiSave)
> off of the mouse release that occurs after the drawing of
> the ROI. How can I identify which image I'm in? Any ideas
> appreciated -
> -- Mike
In a macro:
dir = getDirectory("image");
In a plugin:
String dir = IJ.getDirectory("image");
-wayne