moving zoomed part of image with a macro

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

moving zoomed part of image with a macro

Csaba DÁVID
Hi, i would like write a macro to find markers (point selection ROIs) that were set earlier on an image. I would like to see them on the zoomed image. Unfortunately, when i click on a ROI in the ROI manager, it can set the layer, but it cannot set the location. The same if I do it with a macro. Is there any command, which moves the displayed are to specified coordinates? It would be extremely useful if i could jump from one ROI location to the next one without zooming out and zooming in again.Thanks in advanceCsaba

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: moving zoomed part of image with a macro

Straatman, Kees (Dr.)
Dear Csaba,

You can use in a macro:

roiManager("Select", 0);
run("To Selection");

If you want a higher zoom you can follow this with for example

run("Set... ", "zoom=1000");

Hope this is what you have in mind.

Best wishes

Kees


Dr Ir K.R. Straatman
Senior Experimental Officer
Advanced Imaging Facility
Centre for Core Biotechnology Services
University of Leicester
http://www2.le.ac.uk/colleges/medbiopsych/facilities-and-services/cbs/lite/aif


-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Csaba DÁVID
Sent: 25 September 2017 16:16
To: [hidden email]
Subject: moving zoomed part of image with a macro

Hi, i would like write a macro to find markers (point selection ROIs) that were set earlier on an image. I would like to see them on the zoomed image. Unfortunately, when i click on a ROI in the ROI manager, it can set the layer, but it cannot set the location. The same if I do it with a macro. Is there any command, which moves the displayed are to specified coordinates? It would be extremely useful if i could jump from one ROI location to the next one without zooming out and zooming in again.Thanks in advanceCsaba

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: moving zoomed part of image with a macro

Csaba DÁVID
Dear Kees,
this is what i desperately wanted. Thank you for your quick and effective help!
Best wishesCsaba

    On Tuesday, September 26, 2017 9:35 AM, "Straatman, Kees (Dr.)" <[hidden email]> wrote:
 

 Dear Csaba,

You can use in a macro:

roiManager("Select", 0);
run("To Selection");

If you want a higher zoom you can follow this with for example

run("Set... ", "zoom=1000");

Hope this is what you have in mind.

Best wishes

Kees


Dr Ir K.R. Straatman
Senior Experimental Officer
Advanced Imaging Facility
Centre for Core Biotechnology Services
University of Leicester
http://www2.le.ac.uk/colleges/medbiopsych/facilities-and-services/cbs/lite/aif


-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Csaba DÁVID
Sent: 25 September 2017 16:16
To: [hidden email]
Subject: moving zoomed part of image with a macro

Hi, i would like write a macro to find markers (point selection ROIs) that were set earlier on an image. I would like to see them on the zoomed image. Unfortunately, when i click on a ROI in the ROI manager, it can set the layer, but it cannot set the location. The same if I do it with a macro. Is there any command, which moves the displayed are to specified coordinates? It would be extremely useful if i could jump from one ROI location to the next one without zooming out and zooming in again.Thanks in advanceCsaba

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html


   

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html