ImageRegistration trouble

Hello all,

I have some troubles with the ImageRegistration function. I would like to correlate two 2D images in two steps. First, run ImageRegistration to find the best fit by rotation and translation. In the second step I want to use the found M_RegOut image to run another ImageRegistration now skipping rotation but including skewing. The problem is, as far as I understand, that the M_RegOut from the first ImageRegistration will have severel NaN values (from where there is no overlap from the two images). Running ImageRegistration with a testwave having at least one NaN value will throw the error "One or more Parameters are inappropriate". Also, using a TestMask to exclude these points does not work.

Anyone any idea what I might do wrong?

Thanks.
One solution to your problem is to replace the NaNs in the intermediate image using something like
MatrixOP/O aa=ReplaceNaNs(M_RegOut,0)

Depending on your data you may be able to use other replacement values to possibly differentiate between the background and a boundary value.

A.G.
WaveMetrics, Inc.