You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It turns out 😅 that phase cross-correlation registration shifts are only correct modulo the image size along each axis. If your image size is (2000, 2000), and you get a shift of (-150, 200), then the actual shift could be any of:
(-150, 200)
(-150, -1800)
(1850, 200)
(1850, -1800)
In general, all $2^n$ possible combinations are equally likely, where $n$ is the number of dimensions. The only way to disambiguate appears to be to compute the cross-correlation in real space post-hoc for the overlapping area in all of these combinations. Note that this is only O(npixels) because the possible overlap areas are mutually exclusive and form a tiling of the reference image, so it's not as expensive as it initially sounds.
Nice find! A great reminder of the properties of the FFT :)
Is intensity correlation the best way to disambiguate, or should we also allow for other options (i.e., the cost functions supported by the registration module)?
Well, maybe, but (correct me if I'm wrong), phase cross correlation implies image cross correlation as the metric, so it would be weird to switch metrics halfway?
Activity
stefanv commentedon Nov 1, 2022
Nice find! A great reminder of the properties of the FFT :)
Is intensity correlation the best way to disambiguate, or should we also allow for other options (i.e., the cost functions supported by the registration module)?
jni commentedon Nov 1, 2022
Well, maybe, but (correct me if I'm wrong), phase cross correlation implies image cross correlation as the metric, so it would be weird to switch metrics halfway?
stefanv commentedon Nov 2, 2022
I think you're right.