查找图像中太薄但不是尖形的末端的区域 [英] Find areas that are too thin in an image but aren't an end of a pointy shape
问题描述
这是我的操作'端点'
适用于'skel'
你的模板 - 这两个形态操作应该可以帮助你识别输入图像的尖形状,从而将它们从你突出显示的薄区域中排除。
使用opencv,你可以找到这个形态骨架操作的例子很有用。它也似乎是 pymorph
可以证明对你有用。
This is a follow up question on my previous question.
(Finding areas that are too thin using morphological opening on black and white images)
After reading and implementing the suggestions from Shai and rayryeng I have another issue.
The algorithm also finds the end of pointy shapes and I need to disregard those since every triangle ends with a really thin area.
For example:
The algorithm finds the trident stick and the small part in the middle which is great. But it also finds the end of the trident at the top right which is the end of a shape.
Any ideas on how to identify those kind of cases will be greatly appreciated.
You might want to consider using bwmorph
operation 'endpoints'
applied to 'skel'
of your template - these two morphological operations should help you identify the the "pointy" shapes of your input image, thus excluding them from your "thin regions" you highlight.
Using opencv, you may find this example of morphological skeleton operation useful. It would also seems like pymorph
can prove useful for you.
这篇关于查找图像中太薄但不是尖形的末端的区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!