查找图像中太薄但不是尖形的末端的区域 [英] Find areas that are too thin in an image but aren't an end of a pointy shape

查看:91
本文介绍了查找图像中太薄但不是尖形的末端的区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的操作'端点'适用于'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屋!

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