
----帮助文件-----
EDGE Find edges in intensity image.
EDGE takes an intensity or a binary image I as its input, and returns a
binary image BW of the same size as I, with 1's where the function
finds edges in I and 0's elsewhere.
一个简单的例子 Example
-------
Find the edges of the circuit.tif image using the Prewitt and Canny
methods:
I = imread('circuit.tif')
BW1 = edge(I,'prewitt')
BW2 = edge(I,'canny')
figure, imshow(BW1)
figure, imshow(BW2)
如果原图是不是二值图像的话可以先试试1楼所说的中值滤波。如果想处理问题中的二值图像,可以试试连通区域检测算法,统计各个连通区域的面积,然后将面积很小的白色连通区域填充为黑色。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)