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)
Show older comments
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.
0 Comments
Answers (1)
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
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.

See Also
Categories
Find more on Image Processing and Computer Vision in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!