資源簡介
圖像分割中的串行sebol算子等,和并行的自動追蹤部分matlab仿真代碼
代碼片段和文件信息
%并行?梯度算子
clc;?clear?all;?close?all;
I=imread(‘f:\dao.jpg‘);
figure(1)
subplot(231);
imshow(I);
title(‘原始圖像‘);
I1=rgb2gray(I);
subplot(232);imshow(I1);
title(‘灰度圖‘);??
LEVEL=graythresh(I1);?????
I2=im2bw(I1?LEVEL);???????
subplot(233);imshow(I2);
title(‘二值圖像‘);???????????
I3=edge(I2‘roberts‘);
subplot(234);
imshow(I3);
title(‘roberts算子分割結果‘);
I4=edge(I2‘sobel‘);
subplot(235);
imshow(I4);
title(‘sobel算子分割結果‘);
I5=edge(I2‘Prewitt‘);
subplot(236);
imshow(I5);
title(‘Prewitt算子分割結果‘);
%串行?追蹤
clear
I=imread(‘f:\dao.jpg‘);
figure(2)
subplot(131);imshow(I);
title(‘原始圖像‘);
I1=rgb2gray(
- 上一篇:波長迭代程序
- 下一篇:matlab小波去噪詳解超全超全有程序.doc
評論
共有 條評論