distance transform and local maxima
6 次查看(过去 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!