finding distance of coordinates points to centre
1 回表示 (過去 30 日間)
古いコメントを表示
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
2015 年 11 月 16 日
Which version of that code did you use? Did you put in the correction shown in the Answer to that Question?
回答 (1 件)
Image Analyst
2015 年 11 月 17 日
There is a function for that. It's called bwdist().
distanceTransform = bwdist(binaryImage);
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!