How can I calculate centroid to contour distance for an binary image every after 10 degree?
Show older comments
After finding out the centroid I want to draw lines from centroid to contour every after 10 degree. Then want to calculate the distances from centoird to contour and stored it in an array.
2 Comments
Can you share what you've tried?
The regionprops function can give you the centroid of objects in a binary image.
im = imread('image.png');
blob = regionprops(im,'Centroid') % run region props on im, requesting centroid of blobs
imshow(im);
plot(blob.centroid(1),blob.centroid(2),'ro')
Zara Khan
on 3 Mar 2020
Accepted Answer
More Answers (0)
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!