Azzera filtri
Azzera filtri

distance transform and local maxima

1 visualizzazione (ultimi 30 giorni)
Nisreen Sulayman
Nisreen Sulayman il 8 Ago 2014
Commentato: Image Analyst il 10 Ago 2014
I have binary image. I want to find the distance transform then apply the local max to it. any suggestions?

Risposte (2)

Image Analyst
Image Analyst il 8 Ago 2014
Modificato: Image Analyst il 8 Ago 2014
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 il 8 Ago 2014
Modificato: Image Analyst il 8 Ago 2014
Could you please have a look at my question:
I want to get the following result from the segmented image:
  7 Commenti
Nisreen Sulayman
Nisreen Sulayman il 10 Ago 2014
Ok, second choice is better. Thank you
Image Analyst
Image Analyst il 10 Ago 2014
Still didn't work. All I see is a missing image symbol.

Accedi per commentare.

Categorie

Scopri di più su Image Processing and Computer Vision in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by