Borrar filtros
Borrar filtros

How can i draw a circle at a particular centroid?

7 visualizaciones (últimos 30 días)
MoonPie1
MoonPie1 el 22 de Mayo de 2016
Comentada: MoonPie1 el 23 de Mayo de 2016
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..

Respuestas (1)

Image Analyst
Image Analyst el 22 de Mayo de 2016
Editada: Image Analyst el 22 de Mayo de 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);

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by