Return max distance_transform
이전 댓글 표시
Hi, We know that a distance_transform function computes the distance from non-zero (i.e. non-background) points to the nearest zero (i.e. background) point. In my particular context, my aim is to compute the distance from a non-zero point to the farthest zero point. How can I do this with matlab for 3D images ?
I searched for a specific flag but it seems that it doesn't exist since a distance transform returns always the smallest distance.
Can anyone propose a trick to solve this issue ?
답변 (2개)
Image Analyst
2018년 3월 23일
0 개 추천
Post your image so we can see what pixels you want to know the distance from what other pixels. At this point about all I can say is to invert your binary image before calling bwdist().
카테고리
도움말 센터 및 File Exchange에서 Region and Image Properties에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

