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
Image Analyst 2014 年 8 月 8 日
編集済み: Image Analyst 2014 年 8 月 8 日

0 投票

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
Nisreen Sulayman 2014 年 8 月 8 日
編集済み: Image Analyst 2014 年 8 月 8 日

0 投票

Could you please have a look at my question:
I want to get the following result from the segmented image:

7 件のコメント

Image Analyst
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
Nisreen Sulayman 2014 年 8 月 9 日
編集済み: Nisreen Sulayman 2014 年 8 月 9 日
I know ... I want to got the following result
https://copy.com/FAFtKgRa0CEP
and your answer gave me the following one
https://copy.com/08zn7ZItF9JP
Regarding my question:
http://www.mathworks.com/matlabcentral/answers/146632-extraction-oval-like-part-from-segmented-image
I have recieved the following suggestion from an Image Processing Expert:
- Take the segmentation
- If the vessels are white, compute the Distance Transform from black.
- Apply a Local Max to the Distance Transform.
What do you think?
Image Analyst
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
Nisreen Sulayman 2014 年 8 月 10 日
編集済み: Nisreen Sulayman 2014 年 8 月 10 日
I have problems with uploading images ... it didn't work probably
Image Analyst
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
Nisreen Sulayman 2014 年 8 月 10 日
Ok, second choice is better. Thank you
Image Analyst
Image Analyst 2014 年 8 月 10 日
Still didn't work. All I see is a missing image symbol.

サインインしてコメントする。

カテゴリ

質問済み:

2014 年 8 月 8 日

コメント済み:

2014 年 8 月 10 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by