在图像中查找图像 [英] Find an Image within an Image

查看:132
本文介绍了在图像中查找图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找检测另一幅图像中图像的最佳方法。我有一个小图像,并希望找到它在更大的图像中出现的位置 - 这实际上是屏幕捕获。从概念上讲,它就像一个'Where's Waldo?'在更大的图像中进行搜索。

I am looking for the best way to detect an image within another image. I have a small image and would like to find the location that it appears within a larger image - which will actually be screen captures. Conceptually, it is like a 'Where's Waldo?' sort of search in the larger image.

有没有有效/快捷的方法来实现这一目标?速度比记忆更重要。

Are there any efficient/quick ways to accomplish this? Speed is more important than memory.

编辑:

'内部'图像可能并不总是相同比例,但将具有相同的旋转。

The 'inner' image may not always have the same scale but will have the same rotation.

假设图像完全包含在另一个像素的像素内是不安全的。

It is not safe to assume that the image will be perfectly contained within the other, pixel for pixel.

推荐答案

维基百科有一篇关于模板匹配的文章,附有样本代码。

Wikipedia has an article on Template Matching, with sample code.

(虽然该页面不处理更改的比例,但它具有指向其他匹配样式的链接,例如缩放不变特征变换

(While that page doesn't handle changed scales, it has links to other styles of matching, for example Scale invariant feature transform)

这篇关于在图像中查找图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆