資源簡介
圖像分割方法,用區域生長,然后進行區域合并,把較小的區域合在一起,效果比較好
代碼片段和文件信息
function?[shed1sp1]=arrange(shed11sp11)
%?排序
shed1=shed11;
sp1=sp11;
%?根據?shed1(1:)的大小,重新排列?shed1,按由大到小的順序
for?i=1:sp1-1
????maxvalue=shed1(1i);
????x=shed1(2i);
????y=shed1(3i);
????for?j=i+1:sp1
????????if?maxvalue ????????????shed1(1i)=shed1(1j);???shed1(2i)=shed1(2j);?????shed1(3i)=shed1(3j);
????????????shed1(1j)=maxvalue;?????shed1(2j)=x;??????????????shed1(3j)=y;
????????????maxvalue=shed1(1i);?????x=shed1(2i);??????????????y=shed1(3i);
????????end
????end
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????437355??2009-11-13?09:19??image?segmation?shengzhang2\1.png
?????文件????????7168??2010-06-17?18:59??image?segmation?shengzhang2\Thumbs.db
?????文件??????568977??2010-06-05?10:56??image?segmation?shengzhang2\Z4.mat
?????文件?????????567??2009-05-04?20:18??image?segmation?shengzhang2\arrange.m
?????文件?????????357??2009-05-14?10:27??image?segmation?shengzhang2\listed.m
?????文件?????????540??2010-05-20?21:15??image?segmation?shengzhang2\ruzhan.m
?????文件????????7187??2010-06-05?09:21??image?segmation?shengzhang2\shengzhang.m
?????目錄???????????0??2012-10-30?10:40??image?segmation?shengzhang2\
- 上一篇:gps GPS信號仿真
- 下一篇:K-SVD 詳細介紹了K-SVD字典訓練的詳細過程
評論
共有 條評論