How can I calculate centroid to contour distance for an binary image every after 10 degree?
Mostra commenti meno recenti
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 Commenti
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
il 3 Mar 2020
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Red in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
