使用OpenCV打开和关闭

Raf*_*hur 5 c# opencv

如何使用OpenCV和C#实现图像处理,打开和关闭技术?谁能举个例子?

谢谢

sta*_*ker 0

要实现开放,您需要先调用 erode,然后再调用 dilate。关闭是通过先调用 dilate 然后调用 erode 来完成的。

参考:

http://opencv.willowgarage.com/documentation/image_filtering.html

http://opencv.itseez.com/doc/tutorials/imgproc/opening_looking_hats/opening_looking_hats.html