Clear Filters
Clear Filters

Draw circle on image, center to center

3 views (last 30 days)
Hello Every One.
I want to draw circle on image, center to center, the radius equal to quarter of the image side length. How can I do please
  2 Comments
Matt J
Matt J on 11 Apr 2020
What does "center to center" mean?
bashar halleem
bashar halleem on 11 Apr 2020
Center of circle at the center of Image

Sign in to comment.

Accepted Answer

Matt J
Matt J on 11 Apr 2020
Edited: Matt J on 11 Apr 2020
Maybe this is what you're looking for,
>> A=rgb2gray(imread('wagon.jpg')); imshow(A);
>> [m,n]=size(A);
>> drawcircle('Center',[n,m]/2+0.5,'Radius',length(A)/4)
  7 Comments
Matt J
Matt J on 12 Apr 2020
OP's comment moved here:
Thanks @Matt J
Matt J
Matt J on 12 Apr 2020
You are quite welcome.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!