与图像比较(sihlohette 图像的形状)

发布于 2024-12-13 21:15:30 字数 229 浏览 4 评论 0原文

我正在寻找一种方法来比较多个轮廓并确定哪两个最相似,显然我想以最有效的方式做到这一点。我认为也许这可以使用图像魔法形态学功能来完成,但也许我误解了该功能。 http://www.imagemagick.org/Usage/morphology/#intro

任何想法?

I'm looking for a way to compare a number of silhouettes and determine which two are most alike, obviously I would like to do this in the most efficient way possible. I thought perhaps this could be done using the image magic morphology functionality, but perhaps I'm misunderstanding the function. http://www.imagemagick.org/Usage/morphology/#intro

Any thoughts?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

树深时见影 2024-12-20 21:15:30

数学形态学是数字图像处理中使用的一种技术,主要用于执行图像形状分析。因此它可以用来比较两个图像以发现它们的形状是否相似。

可以使用多种方法来实现这一点。基本方法是腐蚀和膨胀,其他方法或多或少都基于它们。您可以使用侵蚀迭代和适当选择的结构元素(关于图像的性质)并获得图像的基本形状,然后按像素进行比较。或者,您可以在每次迭代中检测图像中是否残留有某些内容,或者是否没有留下任何内容,并据此确定它们的相似性。当然,这仅适用于一些简单的情况,更复杂的方法必须进行一些特殊处理才能实现常见用途。

如果您想使用数学形态学来比较图像,我建议您通过阅读一些相关材料来进一步熟悉这个概念,例如 数学形态学。您可能还会发现其他更适合解决您的任务的方法,但比较图像的问题通常是一个非常复杂的问题,而且一点也不简单。

Mathematical morphology is a technique used in digital image processing mostly for performing image shape analysis. Therefore it can be used for comparing two images to discover whether their shape is similar.

Various methods can be used to achieve this. Basic methods are Erosion and Dilatation and the others are more or less based on them. You can use iterations of Erosion with appropriately chosen structuring element (regarding the nature of the images) and obtain basic shape of the image and then compare it pixel-wise. Alternatively you can detect if something remains of the images or there is nothing left each iteration and based on that determine their similarity. This of course works only for some simple cases and more complex methods with some special treatments have to be implemented for common usage.

If you would like to use mathematical morphology for comparing images I recommend to familiarize yourself more with this concept by reading some related materials, e.g. Mathematical Morphology. There are also other ways you may find more suitable for resolving your task but the problem of comparing images is in general a very complicated issue and not straightforward at all.

音盲 2024-12-20 21:15:30

剪影是一个对象或场景的视图,为单一颜色的实体形状,通常是黑色。因此,形状描绘了物体的轮廓,而内部却毫无特色。如果您能给出测试图像的示例,将会很有用。因此,当我们有这样简化的图像情况时,最好观察不同大小的灰度分量的空间分布。这是通过数学形态学中的粒度测定操作有效获得的。这基本上提供了图像中不同比例的连接组件。您可以查看这篇论文,它使用粒度测定法来表征使用字典学习人体轮廓的积极和消极的人体形状。

A silhouette is a view of an object or scene as a solid shape of a single color, usually black. The shape therefore depicts the outline of the object, while the interior is featureless. It would have useful if you could have given examples of your test images. Thus when we have such simplified case of an image it would good to observe the spatial distribution of grayscale components of different sizes. This is efficiently obtained from the granulometry operation in mathematical morphology. This basically provides different scales of connected components in the image. You could look at this paper which uses the granulometry to characterize Human silhouettes using a dictionary learnt postive and negative human shapes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文