資源簡介
matlab實(shí)現(xiàn)的區(qū)域增長和分水嶺算法,以及基于sobel算子,prewitt算子,canny算子,log算子的邊緣檢測算法。
代碼片段和文件信息
I?=?imread(x);??
figure(1);
subplot(221)imshow(I)xlabel(‘原始圖像‘);
%%先轉(zhuǎn)換為灰度圖
I=?rgb2gray(I);
I=?im2double(I);
BW_canny1?=?edge(I‘canny‘0.01);
BW_canny2?=?edge(I‘canny‘0.10);
BW_canny3?=?edge(I‘canny‘0.40);
subplot(222)imshow(BW_canny1)xlabel(‘canny檢測-參數(shù)0.01‘);
subplot(223)imshow(BW_canny2)xlabel(‘canny檢測-參數(shù)0.10‘);
subplot(224)imshow(BW_canny3)xlabel(‘canny檢測-參數(shù)0.40‘);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????426??2012-05-19?15:26??區(qū)域增長和分水嶺\canny.m
?????文件????????414??2012-05-19?15:28??區(qū)域增長和分水嶺\log.m
?????文件????????468??2012-05-19?15:26??區(qū)域增長和分水嶺\prewitt.m
?????文件????????424??2012-05-19?15:24??區(qū)域增長和分水嶺\sobel.m
?????文件???????2886??2012-05-19?15:08??區(qū)域增長和分水嶺\test3.m
?????文件???????1813??2012-05-17?15:29??區(qū)域增長和分水嶺\watershed11.m
?????文件????????857??2012-05-18?23:18??區(qū)域增長和分水嶺\watershed12.m
?????文件????????221??2012-05-19?15:27??區(qū)域增長和分水嶺\說明文檔.txt
?????目錄??????????0??2013-06-05?20:11??區(qū)域增長和分水嶺
-----------?---------??----------?-----??----
?????????????????7509????????????????????9
- 上一篇:Qt與Matlab混合編程
- 下一篇:二進(jìn)制粒子群算法
評論
共有 條評論