Problem figuring out zoom in images
Afficher commentaires plus anciens
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
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
le 13 Juin 2016
Catégories
En savoir plus sur Image Processing Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!