machinevisiontoolbox.Image.draw_circle
- Image.draw_circle(centre, radius, **kwargs)[source]
Draw circle into image
- Parameters:
centre (array_like(2)) – centre coordinate (u,v)
radius (int) – circle radius in pixels
kwargs – parameters passed to
draw_circle
Example:
>>> from machinevisiontoolbox import Image >>> img = Image.Zeros(100) >>> img.draw_circle((20,30), 15, color=200) >>> img.disp() <matplotlib.image.AxesImage object at 0x7f1fb76531c0> >>> img = Image.Zeros(100, colororder="RGB") >>> img.draw_circle((20,30), 15, color=[0, 200, 0], thickness=-1) # filled green circle >>> img.disp() <matplotlib.image.AxesImage object at 0x7f1fb7653d60>
- Note:
If the image has N planes the color should have N elements.
- Seealso: