Zoom to specific region and magnification
Posted by tankhead on Feb 16, 2011; 7:14pm
URL: http://imagej.273.s1.nabble.com/Zoom-to-specific-region-and-magnification-tp3685669.html
Hi,
I have been using the following code in my macro:
run("To Selection");
run("Out");
run("Out");
run("Out");
To zoom in on the selection and then zoom out a bit so the the image does not seem so pixelated. The main problem I run into when doing this is run("Out"); runs out wherever the mouse location is. Therefore, I am no longer focused on the selection if my mouse is at some other location of the image. How would I be able to magnify the selection, which is always around the middle of the image?
I have tried run("Set... ", "zoom=###"); but that seems to not zoom to the middle but the upper left portion of the image, regardless of where the mouse is located.
Thanks,