Question about finding pits of a matrix?
2 次查看(过去 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!