In the LearnTransform.Translation class of the newest starfish version, there's a segment of code where I think the parameters for 'reference_image' and 'moving_image' might have been swapped:
shift, error, phasediff = phase_cross_correlation(
reference_image=target_image.data,
moving_image=reference_image.data,
upsample_factor=self.upsampling
)
I suspect that based on the function's definition and typical usage patterns, the correct code should be:
shift, error, phasediff = phase_cross_correlation(
reference_image=reference_image.data,
moving_image=target_image.data,
upsample_factor=self.upsampling
)
Thanks for your attention to this matter.