How can i draw a circle at a particular centroid?
Afficher commentaires plus anciens
How can i draw a circle at a particular centroid? I have an image displayed by the function imshow.. I need to draw circle of a particular diameter on the image..
Réponses (1)
Image Analyst
le 22 Mai 2016
Modifié(e) : Image Analyst
le 22 Mai 2016
I just answered this for someone.
hold on;
plot(xCenter, yCenter, 'bo', 'MarkerSize', 30);
Adjust MarkerSize to get different diameter.
If you have row,column instead of x,y, do this:
hold on;
plot(centerColumn, centerRow, 'bo', 'MarkerSize', 30);
1 commentaire
MoonPie1
le 23 Mai 2016
Catégories
En savoir plus sur Region and Image Properties dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!