draw a set of circles on a given image
    7 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    thoraya
 am 6 Jun. 2012
  
    
    
    
    
    Kommentiert: Chetan Pattebahadur
 am 11 Sep. 2018
            hi; I have a set of circles where each circle is defined by its center position (x,y) and its radius r. i want to find a way in order to draw those circles on a given image* Img* . i used a matrix with three columns [x y r] to store the set of circles. any idea please? thank you
0 Kommentare
Akzeptierte Antwort
  Elad
      
 am 6 Jun. 2012
            imshow(image);
hold on 
% x, y:    Center of the circle
 % r:       Radius of the circle
theta = 0 : (2 * pi / 10000) : (2 * pi);
pline_x = r * cos(theta) + x;
pline_y = r * sin(theta) + y;
plot(pline_x, pline_y, '-');
hold off
6 Kommentare
  Ryan
      
 am 7 Jun. 2012
				Your comment is showing. You can use that method to plot any pair of x,y vectors on top of an image, you just need to know the equation that defines the shape.
  Chetan Pattebahadur
 am 11 Sep. 2018
				is not working on my image. I want 1d 2d and 3d like r1 r2 and r3 circle on my image how can I add, please help me
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Logical finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



