matlab里这句话时什么意思?中括号中的值代表什么?a=imread('Image1.bmp')a=rgb2gray(a)b=edge(a,'canny',[0.03,0.06])c=edge(a,'canny',[0.05,0.1])d=edge(a,'canny',[0.05,0.1],2)subplot(2,2,1),imshow(a),axis ontitle('原图')subplot(2,2,2),i
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 03:53:55
matlab里这句话时什么意思?中括号中的值代表什么?a=imread('Image1.bmp')a=rgb2gray(a)b=edge(a,'canny',[0.03,0.06])c=edge(a,'canny',[0.05,0.1])d=edge(a,'canny',[0.05,0.1],2)subplot(2,2,1),imshow(a),axis ontitle('原图')subplot(2,2,2),i
matlab里这句话时什么意思?中括号中的值代表什么?
a=imread('Image1.bmp')
a=rgb2gray(a)
b=edge(a,'canny',[0.03,0.06])
c=edge(a,'canny',[0.05,0.1])
d=edge(a,'canny',[0.05,0.1],2)
subplot(2,2,1),imshow(a),axis on
title('原图')
subplot(2,2,2),imshow(b),axis on
title('canny 阈值=0.02')
subplot(2,2,3),imshow(c),axis on
title('canny 阈值=0.07')
subplot(2,2,4),imshow(d),axis on
title('默认')
matlab里这句话时什么意思?中括号中的值代表什么?a=imread('Image1.bmp')a=rgb2gray(a)b=edge(a,'canny',[0.03,0.06])c=edge(a,'canny',[0.05,0.1])d=edge(a,'canny',[0.05,0.1],2)subplot(2,2,1),imshow(a),axis ontitle('原图')subplot(2,2,2),i
具体哪句话?
b=edge(a,'canny',[0.03,0.06])是用canny算子对a(也就是Image1.bmp)做边缘检测
要想知道这里具体实现什么,首先你要懂canny算子边缘检测
其次在matlab的command window里输入help edge,然后回车
里面有详细介绍综括号里的数字代表canny算子里的哪些参数