Shifting a set of images by a given shift (dX,dY) depending on image
Posted: 11 Feb 2024, 19:43
Hi,
I am at the very beginning of my leaning curve about scripts. So, I have a number of questions ...
I would like to shift a set of images (image-1.fit, image-2.fit, image-3.fit, ..., image-i.fit) by a given shift (X, Y)(i), the value of each shift (X,Y) dependant on the image number i.
I know how to read and write images using : Image.Open() and Image.Save()
I have seen it is possible to shift an image by calling Image.Macro(n) with Macro (n) calling the Shift function.
But I don't know how to use different (X,Y) values for the different images. In other words, is it possible to call a "Image.Shift" function with a given (X,Y) parameter depending on the image number i ?
Thanks for your help !
Christian
I am at the very beginning of my leaning curve about scripts. So, I have a number of questions ...
I would like to shift a set of images (image-1.fit, image-2.fit, image-3.fit, ..., image-i.fit) by a given shift (X, Y)(i), the value of each shift (X,Y) dependant on the image number i.
I know how to read and write images using : Image.Open() and Image.Save()
I have seen it is possible to shift an image by calling Image.Macro(n) with Macro (n) calling the Shift function.
But I don't know how to use different (X,Y) values for the different images. In other words, is it possible to call a "Image.Shift" function with a given (X,Y) parameter depending on the image number i ?
Thanks for your help !
Christian