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.

Answers (1)

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

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.

Sign in to comment.

Asked:

on 13 Jun 2016

Edited:

on 13 Jun 2016

Community Treasure Hunt

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

Start Hunting!