Question about finding pits of a matrix?
4 ビュー (過去 30 日間)
古いコメントを表示
o
2 件のコメント
Image Analyst
2013 年 11 月 17 日
Johny - don't do that. Don't edit away your question. It really annoys people a lot.
採用された回答
Matt J
2013 年 11 月 16 日
編集済み: Matt J
2013 年 11 月 16 日
If I've understood what you're after, the whole task is doable in just a few lines,
minval=min(map(:)); %minimum cell value
pitmap=(map==minval); %all minima/pits
pitmap([1,end],[1,end])=false; %get rid of edge pits
[pitrows,pitcols]=find(pitmap); %pit coordinates
3 件のコメント
Image Analyst
2013 年 11 月 16 日
I agree with Matt about using imregionalmin(). By the way, you might find this interesting: http://www.mathworks.com/matlabcentral/fileexchange/35452-finddepressions
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!