在opencv中的bwmorph(image,'clean')等效 [英] bwmorph(image,'clean') equivalent in opencv

查看:616
本文介绍了在opencv中的bwmorph(image,'clean')等效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个函数来清除opencv中的图像,这相当于

Is there a function to clean an image in opencv which is equivalent to

bwmorph(image,'clean'); 

清除函数根据MATLAB删除孤立的像素(1的包围0) / p>

in matlab??The clean function Remove isolated pixels (1's surrounded by 0's) according to MATLAB.

推荐答案

形态运算如腐蚀会对你的问题起作用,我认为..

Morphological operations such as eroding will work for your question, i think..

OpenCV Erode-Dilate示例

OpenCV更多形态运作< a>

OpenCV More Morphological Operations

这篇关于在opencv中的bwmorph(image,'clean')等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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