I have a binary circle (white) which the edge are not smooth , is jagges. and i know the pixel size is 5mm. how can i find the distances of all pixels inside the circle from the outer edges?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have a binary circle which the edge are not smooth , is jagges. and i know the pixel size is 5mm. how can i find the distances of all pixels inside the circle from the outer edges?
0 Commenti
Risposte (1)
Image Analyst
il 18 Apr 2015
Get a Euclidean distance map with bwdist():
edm = bwdist(binaryImage) * 5;
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!