distance transform and local maxima
5 ビュー (過去 30 日間)
古いコメントを表示
I have binary image. I want to find the distance transform then apply the local max to it. any suggestions?
0 件のコメント
回答 (2 件)
Image Analyst
2014 年 8 月 8 日
編集済み: Image Analyst
2014 年 8 月 8 日
What does "Apply the local max" to it mean? Do you mean imdilate(), which does the local max in a sliding/local window?
edtImage = bwdist(binaryImage); % Calc Euclidean Distance Transform.
% Now get the local max in a 5x5 window everywhere.
localMaxImage = imdilate(edtImage, true(5)); % Whatever window size you want.
Let me know if you want the local max only if it's at the center of the window, like if you want to find ridgelines or something.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Segmentation and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!