资 源 简 介
要检测中图像的边缘,利用 CANNY 算法程序%这个演示是已知与工作:Matlab 版本 7.10.0.499 (R2010a) %%图像处理工具箱版本 7.0 (R2010a)A = imread("jump.jpg") ;%马尔/希尔德雷思边缘检测与强迫为零的阈值 %MH1 = edge(A,"log",0,1.0) ;生成 mh2 + = edge(A,"log",0,2.0) ;MH3 = edge(A,"log",0,3.0) ;MH4 = edge(A,"log",0,4.0) ;%形式马赛克一 = [MH1 MH2 ;MH3 MH4] ;%%在 Matlab 图窗口中显示马赛克日志 = 图 ("Name","Marr/希尔德雷思: UL: s = 1 UR: s = 2 BL: s = 3 BR: s = 4") ;iptsetpref("ImshowBorder","tight") ;imshow(EFGH,"InitialMagnification",100) ;%Canny 边缘检测[C1,Ct1] = edge(A,"canny",[],1.0) ;[C2,Ct2] = edge(A,"canny",[],2.0) ;[C3,Ct3] = edge(A,"canny",[],3.0) ;[C4、 Ct4] = edge(A,"canny",[],4.0) ;%重新计算降低都将自动计算通过分数 k %阈值k = 0.75C1 = edge(A,"canny",k*Ct1,1.0) ;C2 = edge(A,"canny",k*Ct2,2.0) ;C3 = edge(A,"canny",k*Ct3,3.0) ;C4 = e