Is there way to determine the location of a few pixels on an image using the picture of those pixel taken from different image

4 views (last 30 days)
I have two image, One shows the image of an entire room (for example). I have another image that only captures one really small portion of the room taken by different camera. I was wondering if there is a way to find the location the smaller picture on the big picture.

Answers (1)

Image Analyst
Image Analyst on 7 Jul 2019
Edited: Image Analyst on 7 Jul 2019
Try Hu's moments for rotation and scale invariant pattern matching. See this demo by the University of Arizona: : Hu's Moments demo
  2 Comments
Robin
Robin on 7 Jul 2019
Thanks, but the problem is I may not have objects on the image. Let's say the bigger picture is 1920x1080 taking a picture of a entire wall and the lower resolution camera 480×360 is taking a closer shot of the wall on an specific point. I was wondering if it's possible to find where that location is on the higher resolution image. Thank You
Image Analyst
Image Analyst on 7 Jul 2019
As long as the small template image is not distorted you can use normalized cross correlation, like the attached demo.
If the object is not in the image, then you won't get a signal big enough (above the threshold) and you'll correctly show that the object is missing. If it is there, then the signal will be high enough that it IS detected.
00_Screenshot.png

Sign in to comment.

Categories

Find more on Image Processing and Computer Vision 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!