Problem figuring out zoom in images

I am trying to figure out zoom in two images using normxcorr2().
Image before zoom :
Image after zoom :
Although, the problem is that I have both the images of same dimensions and thus I don't know the zoomed image's dimensions in the original image. How can I figure out the zoom in this case?
EDIT : I am not using zoom() function here. Both the input images are in jpg format.

Réponses (1)

Walter Roberson
Walter Roberson le 13 Juin 2016

0 votes

zoom() is implemented by setting the axis XLim and YLim to change what portion of the image is being looked at. If you created the original image the typical way, then in the unzoom version XLim and YLim for it would be [1, number_of_columns] and [1, number_of_rows], and zoomed it woud be the left and right column limits and top and bottom row limits of what is only the screen.

1 commentaire

harshil meena
harshil meena le 13 Juin 2016
Thank you for your help Walter. Although, I am not using zoom() to obtain the image's here. Both the images are inputted in jpg format.

Connectez-vous pour commenter.

Catégories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by