opencv::imgproc

Function circle_def

Source
pub fn circle_def(
    img: &mut impl ToInputOutputArray,
    center: Point,
    radius: i32,
    color: Scalar,
) -> Result<()>
Expand description

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 [line_types]
  • shift: Number of fractional bits in the coordinates of the center and in the radius value.

§Note

This alternative version of circle function uses the following default values for its arguments:

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