distance transform and local maxima
显示 更早的评论
I have binary image. I want to find the distance transform then apply the local max to it. any suggestions?
回答(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.
Nisreen Sulayman
2014-8-8
编辑:Image Analyst
2014-8-8
0 个投票
7 个评论
Image Analyst
2014-8-8
That's a separate question. What about this question about distance transform followed by local max? Didn't I answer that?
Nisreen Sulayman
2014-8-9
编辑:Nisreen Sulayman
2014-8-9
Image Analyst
2014-8-9
Make it easy for us to see your images and links. Read this and then fix your post: http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
Nisreen Sulayman
2014-8-10
编辑:Nisreen Sulayman
2014-8-10
Image Analyst
2014-8-10
You did it in your other post. Can't you just click on the green image with the brown frame and upload one from your hard drive? Or type alt-printscreen and go to http://snag.gy and paste it in and then paste the URL it gives you into the "Web" field when you click the image icon.
Nisreen Sulayman
2014-8-10
Image Analyst
2014-8-10
Still didn't work. All I see is a missing image symbol.
类别
在 帮助中心 和 File Exchange 中查找有关 Computer Vision with Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
