edge detect(——实验报告
赵宏伟
1实验要求
Load the three receptive fields , , and (corresponding to th, Gaborv, show what it would look like to have an entire array of these neurons processing the Einstein image. You can do this by typing
pim=conv2(einstein,DOG,'same');
where pim is your result image.
Compare differences of the results from DOG , Gaborh and Gaborv.
2实验环境
pc 机:windows 7 ultimate X86
Matlab (2009a)
3实验内容
A.
(1)结果图
图1
(2)实验代码
load ;
load ;
load ;
load ;
load ;
colormap(gray);
WS=[- ];
subplot(1,3,1);imagesc(DOG,WS);axis image;title('DOG');%显示为第一幅图像并控制缩放,灰度显示
subplot(1,3,2);imagesc(Gaborh,WS);axis image;title('Gaborh');%显示为第二幅图像并控制缩放,灰度显示
subplot(1,3,3);imagesc(Gaborv,WS);axis image;title('Gaborv');%显示为第三幅图像并控制缩放,灰度显示
B.
(1)结果图
(2)实验代码
>> i=1;
>> while(i<=8)
;imagesc(edge(:,:,i));axis image;i=i+1;
subplot(2,4,i) end
C.
⑴结果图
图3 DOG与edge的每个点做点积
图4 Gaborv与edge的每个点做点积
图5 Gaborh与edge的每个点做点积
(2)实验代码
load ;
load ;
load ;
load ;
load ;
figure;
for i=1:8
subplot(2,4,i);bar(dot(DOG,edge(:,:,i)));xlabel('DOG');
end
figure;
for i=1:8
subplot(2,4,i);bar(dot(Gaborv,edge(:,:,i)));xlabel('Gaborv'); end
figure;
f
视觉感知lab实验报告 来自淘豆网www.taodocs.com转载请标明出处.