Draw circle in a image

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?

 採用された回答

David Sanchez
David Sanchez 2013 年 6 月 27 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by