Skip to content

circle

Image processingfunctionOpenCV 5.0.0
import { circle } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSimg, center, radius, color
FUNCTIONcircle
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

example: samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp An example using drawing functions Draws a circle.

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

circle(img: Mat, center: Point, radius: number, color: Scalar, thickness: number, lineType: number, shift: number): void;
4 available overloads
circle(img: Mat, center: Point, radius: number, color: Scalar): void;
circle(img: Mat, center: Point, radius: number, color: Scalar, thickness: number): void;
circle(img: Mat, center: Point, radius: number, color: Scalar, thickness: number, lineType: number): void;
circle(img: Mat, center: Point, radius: number, color: Scalar, thickness: number, lineType: number, shift: number): void;
img

Input/output value, modified by the native operation. 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.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.