Login  Register

Re: Which Image

Posted by Robert Dougherty on Dec 20, 2005; 10:33pm
URL: http://imagej.273.s1.nabble.com/Which-Image-tp3704187p3704194.html

Mike,

        FileInfo fi = imp.getOriginalFileInfo();
        if(fi != null){
                directory = fi.directory;
        }

Bob

Robert P. Dougherty, Ph.D.
President, OptiNav, Inc.
Phone (425) 467-1118
Fax (425) 467-1119
www.optinav.com
 

> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
> Michael Sullivan
> Sent: Tuesday, December 20, 2005 12:55 PM
> To: [hidden email]
> Subject: Which Image
>
> 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