Shifting y coordinates of image stack with Macro

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

Shifting y coordinates of image stack with Macro

eSky
Hello, I am working on aligning a stack of images with ImageJ.

I am using the Image->Transform->Translate... to shift the images with set
up: X=0, Y=6, Interpolation=None. It is ok for me to do it one by one image,
but I have a lot of images.

I would like to create a Macro file to import the stack image with format
Tiff, 16-bit, 500*1024 pixels.

Assume I have 30 images in stack, and I would like to shift them all.  
My images have the distance from the Ymin to Ymax = 172, and it is shifting
6 units per frame. So I think the function should be newY=Y+6, newY1=newY+6,
newY2=newY1+6...

Thanks for your help.



--
Sent from: http://imagej.1557.x6.nabble.com/

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