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 |
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 |
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 |
Free forum by Nabble | Edit this page |