matejak / imreg_dft

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

change transform functions to acknowledge boundary mode parameter #28

Open maweigert opened 7 years ago

maweigert commented 7 years ago

Right now the mode parameter (e.g. "reflect", "wrap"...) in transform_img and transform_img_dict was ignored (issue https://github.com/matejak/imreg_dft/issues/26 ) - this should add the expected behaviour.

I got rid of the extra bigshape padding as it would lead to double reflection/wrapping and I could not find any use case where it would matter (plus, now the transforms behave exactly as expected from ndimage.interpolation) - if there is a reason I am missing to have the bigshape padding, just add the line before again.

matejak commented 7 years ago

Hello, thank you for the contribution. I can see that there are some issues with the code as it doesn't pass tests. However, we will figure it out as I will have a bit more of time this week. Before that, I would like to ask you for the following: