I am using stackreg for image registration of a multichannel stack of 512*512 images. I planned to correct images from other channels based on the stackreg transformation matrix output of the reference channel images. But StackReg ouput for the reference channel images are zero padded in some frames. So, although, the transformation matrices are obtained, the images from different channels are not well aligned.
Here is an example,
StackReg does rigid correction on the input image and outputs the below image:
As you can see, it is zero padded in the first few rows and columns of pixels.
So, my workflow is this:
- Apply StackReg to a 3d image stack belonging to the reference channel.
- Get the transformation matrices for each of the 2d image in the above stack.
- Apply the matrices to another 3d image stack of another channel.
I use TransformJ to apply each frame’s transformation matrix obtained from StackReg to other channel’s images.Obviously, the alignment between the images from different channels is not good due to this zero padding issue.
Any idea how to overcome this ?