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?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Image Analyst
2015년 4월 18일
Get a Euclidean distance map with bwdist():
edm = bwdist(binaryImage) * 5;
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!