sthoduka / imreg_fmt

Image registration based on the Fourier-Mellin transform
https://sthoduka.github.io/imreg_fmt/
GNU General Public License v3.0
98 stars 22 forks source link

How to fix the scale? #8

Closed ONMEKEEP closed 2 years ago

ONMEKEEP commented 2 years ago

Hi @sthoduka

There is no scale transformation in my image data. I want to fix the scale. How can I do this?

sthoduka commented 2 years ago

What do you mean by there is no scale transformation?

ONMEKEEP commented 2 years ago

What do you mean by there is no scale transformation?

There is no scaling between the two images. That is, the output of scale is 1. image

sthoduka commented 2 years ago

Is that the output for your two images? I see a scale of 1.22 there; do you mean that your images should not have a scale difference?

ONMEKEEP commented 2 years ago

Is that the output for your two images? I see a scale of 1.22 there; do you mean that your images should not have a scale difference?

Yes. And I found that imreg_dft provides a fixed scale option. image So I wonder if imreg_fmt can also be achieved.

sthoduka commented 2 years ago

the scaling and rotation are performed here, so if you don't want to apply any scaling, just set scale = 1.0; before that line.

ONMEKEEP commented 2 years ago

the scaling and rotation are performed here, so if you don't want to apply any scaling, just set scale = 1.0; before that line.

OK. Thank you very much. I will try later.