阈值图像和噪点 [英] Thresholding Images and noise

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

问题描述

我正在使用opencv在图像上进行二进制阈值处理,例如在二进制图像上移动或动画化圆时,可移动对象周围几乎没有噪声.附上一张图片,说明我的意思.我该如何消除这些假象?

解决方案

您可以尝试应用腐蚀算法的多个周期(直到只剩下一个对象),然后再应用相同数量的膨胀算法(腐蚀)/膨胀对称为开孔)

请参阅此处: http://en.wikipedia.org/wiki/Mathematical_morphology

I'm doing a binary thresholding on an image using opencv, while moving or animating for example a circle on a binary image, there are few noise that appears around the moveable object. An image to illustrate what I mean is attached. How can I get rid of those artifacts?

解决方案

You could try to apply several cycles of the erosion algorithm (until there is only one object left) followed by same number of cycles of the dilation algorithm (the erosion/dilation pair is called opening)

See here: http://en.wikipedia.org/wiki/Mathematical_morphology

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

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