finding distance of coordinates points to centre

조회 수: 1 (최근 30일)
Abo
Abo 2015년 11월 16일
답변: Image Analyst 2015년 11월 17일
i have a binary image with 12 objects in it, i wanna find the distance of centre of each object to the boundary points of that object, does any one know to how find it? i could find this code, but it seems to not work:
  댓글 수: 2
Walter Roberson
Walter Roberson 2015년 11월 16일
Which version of that code did you use? Did you put in the correction shown in the Answer to that Question?
Abo
Abo 2015년 11월 17일
the mentioned method seems to be for one object in a image, how can I use it for 12 object in my image?

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2015년 11월 17일
There is a function for that. It's called bwdist().
distanceTransform = bwdist(binaryImage);

Community Treasure Hunt

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

Start Hunting!

Translated by