matejak / imreg_dft

Image registration using discrete Fourier transform.
Other
245 stars 68 forks source link

Pixel values are changed after registration. #41

Closed loomcode closed 3 years ago

loomcode commented 3 years ago

I'm trying to register a segmentation mask where each segmented particle is given an integer value. These values are altered during registration resulting in loss of data. I assume that this is cause by an interpolation step. Is there a way around this?

For anyone experiencing a similar problem, rounding the transformation vector to nearest integer was a fix in my case: transformation["tvec"].round(0)