distance transform and local maxima
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have binary image. I want to find the distance transform then apply the local max to it. any suggestions?
0 comentarios
Respuestas (2)
Image Analyst
el 8 de Ag. de 2014
Editada: Image Analyst
el 8 de Ag. de 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.
0 comentarios
Ver también
Categorías
Más información sobre Image Segmentation and Analysis en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!