Result window in macro

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

Result window in macro

Antje-2
Hello,

I would like to know whether there is any way to get rid of the result
window within a macro. I just use the measurement to do further
processing within the macro but I don't need the numbers after processing...

Can anybody help me with this?

Antje
Reply | Threaded
Open this post in threaded view
|

Re: Result window in macro

Wayne Rasband
> I would like to know whether there is any way to get rid of the result
> window within a macro. I just use the measurement to do further
> processing within the macro but I don't need the numbers after
> processing...

   if (isOpen("Results")) {
       selectWindow("Results");
       run("Close");
   }

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

how to put the same position of selection

M. Nur Heriawan
Dear list,

I would like to know the way by using ImageJ how to
put the same position of selection (for example: line
selection for making profile) in the original and
duplicate images respectively.

Thank you for any response.

Regards,

---------------
M. Nur Heriawan
Laboratory of Applied Geoscience and Technology  
Graduate School of Science and Technology
Kumamoto University, JAPAN
http://www.civil.kumamoto-u.ac.jp/tansa


       
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/
Reply | Threaded
Open this post in threaded view
|

Re: how to put the same position of selection

Wayne Rasband
> I would like to know the way by using ImageJ how to
> put the same position of selection (for example: line
> selection for making profile) in the original and
> duplicate images respectively.

One way is to switch to the duplicate image and copy the selection to
it by pressing shift-e (Edit>Selection>Restore Selection). Another way
is to use to use Joachim Walter's Sync Windows plugin at

     http://rsb.info.nih.gov/ij/plugins/sync-windows.html

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

Re: how to put the same position of selection

Martin du Saire
In reply to this post by M. Nur Heriawan
M,

Try: Edit>Selection>Restore Selection

Or in a macro:

run("Restore Selection");

For example:

selectWindow("AuPbSn40.jpg");
makeLine(278, 70, 402, 247);
run("Plot Profile");
selectWindow("AuPbSn40-1.jpg");
run("Restore Selection");
run("Plot Profile");

M

At 10:46 AM 7/19/2007, you wrote:

>Dear list,
>
>I would like to know the way by using ImageJ how to
>put the same position of selection (for example: line
>selection for making profile) in the original and
>duplicate images respectively.
>
>Thank you for any response.
>
>Regards,
>
>---------------
>M. Nur Heriawan
>Laboratory of Applied Geoscience and Technology
>Graduate School of Science and Technology
>Kumamoto University, JAPAN
>http://www.civil.kumamoto-u.ac.jp/tansa
>
>
>
>____________________________________________________________________________________
>Looking for a deal? Find great prices on flights and hotels with
>Yahoo! FareChase.
>http://farechase.yahoo.com/