[][src]Function opencv::imgproc::circle

pub fn circle(
    img: &mut dyn ToInputOutputArray,
    center: Point,
    radius: i32,
    color: Scalar,
    thickness: i32,
    line_type: i32,
    shift: i32
) -> Result<()>

Draws a circle.

The function cv::circle draws a simple or filled circle with a given center and radius.

Parameters

  • img: Image where the circle is drawn.
  • center: Center of the circle.
  • radius: Radius of the circle.
  • color: Circle color.
  • thickness: Thickness of the circle outline, if positive. Negative values, like #FILLED, mean that a filled circle is to be drawn.
  • lineType: Type of the circle boundary. See #LineTypes
  • shift: Number of fractional bits in the coordinates of the center and in the radius value.

C++ default parameters

  • thickness: 1
  • line_type: LINE_8
  • shift: 0