Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compare patches with different spatial resolution #46

Closed
shivangi-aneja opened this issue Jul 6, 2020 · 3 comments
Closed

Compare patches with different spatial resolution #46

shivangi-aneja opened this issue Jul 6, 2020 · 3 comments

Comments

@shivangi-aneja
Copy link

Would it also be possible to compare 2 images with different spatial resolution?
e.g.

img_1 = 256 X 270 X 3
img_2 = 180 X 245 X 3

One hacky way of doing it to resize both images to same size and compare.
In the end, it network gives a feature vector of different length if image res are different for 2 images. But just curious in case you have tried out something.

@richzhang
Copy link
Owner

Oh, no. They need to be resized. But are the images of the same thing in the first place (have some spatial correspondence)?

@shivangi-aneja
Copy link
Author

Yeah same but different resolution. So on certain websites you see thumbnail corresponding to articles and when you open the article you see high res image.

@richzhang
Copy link
Owner

Great, resizing seems reasonable then. Keep in mind that many built-in resizing functions do not properly antialias: https://twitter.com/jaakkolehtinen/status/1258102168176951299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants