How to get the path of an opened image?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get the path of an opened image?

Ben Liu-3
Hi,
As the title says, how to get the path of an opened image?

What I wanna do is to divide a stack image into serval ones and save the substacks automatically.

Thanks.
Ben


                       
---------------------------------
Celebrate Earth Day everyday!  Discover 10 things you can do to help slow climate change. Yahoo! Earth Day
Reply | Threaded
Open this post in threaded view
|

Re: How to get the path of an opened image?

Wayne Rasband
> As the title says, how to get the path of an opened image?
>
> What I wanna do is to divide a stack image into serval ones and save
> the substacks automatically.

In a macro use:

     dir = getDirectory('image');

In a plugin, call this macro using the IJ.runMacro() method:

     String dir = IJ.runMacro("return getDirectory('image');");

-wayne
Reply | Threaded
Open this post in threaded view
|

More ROI issue

Wayne Su
Hello,

I want to create a complex ROI and save it somewhere (perhaps ROI Manager).
Then I want to measure a list of ROIs where the former ROI is excluded. (I
don't want to redraw it each time). Anyone know how to do? Thanks.


--

Wayne Su
IT Coordinator

RM211-828 W 10th Ave
VGH Research Pavilion
Centre for Complex Disorders,
Vancouver, BC
V5Z 1L8

Tel: 604-875-4111 ext 61705
Fax: 604-875-4376
 
Reply | Threaded
Open this post in threaded view
|

Get multiple ROIs

Wayne Su
In reply to this post by Wayne Rasband
Hello,

I tried to get the X and Y coordinates of ROIs using
getSelecctionCoordiantes. It works fine for single ROI, but not for multiple
ROIs. Is there any other solution about it?
Thanks.


--

Wayne Su
IT Coordinator

RM211-828 W 10th Ave
VGH Research Pavilion
Centre for Complex Disorders,
Vancouver, BC
V5Z 1L8

Tel: 604-875-4111 ext 61705
Fax: 604-875-4376