Problem figuring out zoom in images
Show older comments
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.
Answers (1)
Walter Roberson
on 13 Jun 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 Comment
harshil meena
on 13 Jun 2016
Categories
Find more on Image Preview and Device Configuration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!