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 次查看(过去 30 天)
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.

回答(1 个)

Image Analyst
Image Analyst 2019-7-7
编辑:Image Analyst 2019-7-7
Try Hu's moments for rotation and scale invariant pattern matching. See this demo by the University of Arizona: : Hu's Moments demo
  2 个评论
Robin
Robin 2019-7-7
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 2019-7-7
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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Computer Vision with Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by