如何用matlab读取ct图像边缘

如何用matlab读取ct图像边缘,第1张

用edge指令

----帮助文件-----

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楼所说的中值滤波。

如果想处理问题中的二值图像,可以试试连通区域检测算法,统计各个连通区域的面积,然后将面积很小的白色连通区域填充为黑色。


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/12033074.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-20
下一篇2023-05-20

发表评论

登录后才能评论

评论列表(0条)

    保存