Borrar filtros
Borrar filtros

Draw circle in a image

3 visualizaciones (últimos 30 días)
Umme Tania
Umme Tania el 27 de Jun. de 2013
Suppose i have an image. On that image i want to draw a circle which has specific radius and center. What function i need to use to draw a circle in a image?

Respuesta aceptada

David Sanchez
David Sanchez el 27 de Jun. de 2013
imshow(your_image);
hold on
t=0:0.1:2*pi;
%x_o and y_o = center of circle
x = x_o + radio*sin(t);
y = y_o + radio*cos(t);
plot(x,y,'r');
hold off

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by