circle
import { circle } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;imgInput/output value, modified by the native operation. Image where the circle is drawn.
centerCenter of the circle.
radiusRadius of the circle.
colorCircle color.
thicknessThickness of the circle outline, if positive. Negative values, like #FILLED, mean that a filled circle is to be drawn.
lineTypeType of the circle boundary. See #LineTypes
shiftNumber 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.