如何删除二进制图像噪声在opencv? [英] how remove binary image noise in opencv?
本文介绍了如何删除二进制图像噪声在opencv?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在将图像转换为二进制图像(黑白)后,如果有任何噪音,
i可以移除不需要的噪音
after convert image to binary image (black and white ) if there is any noise how can i remove that unwanted noise
黑色区域内的一些白噪声如何使用opencv清除噪声
you can see below image have some white noise inside the black area how can i remove noise using opencv
http://img857.imageshack.us/img857/999/blacknoise.jpg
推荐答案
之后的图片cvErode(in,eroded,NULL,4)
:
cvDilate(eroded,dilated,NULL,4)
Your image after cvErode( in, eroded, NULL, 4)
:
:
And after cvDilate( eroded, dilated, NULL, 4)
:
这篇关于如何删除二进制图像噪声在opencv?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文