mcc_CChecker
import { mcc_CChecker } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits Algorithm.
CChecker
checker object
This class contains the information about the detected checkers,i.e, their
type, the corners of the chart, the color profile, the cost, centers chart,
etc.
Constructors and members
static create
Create a new CChecker object.
create(): mcc_CChecker | null;A pointer to the implementation of the CChecker
clone
Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.
clone(): this;The this result.
setTarget
Set the target used by this mcc_CChecker object.
setTarget(_target: number): void;_targettarget argument (number).
setBox
Set the box used by this mcc_CChecker object.
setBox(_box: Point2fVector): void;_boxbox argument (Point2fVector).
setChartsRGB
Set the charts rgb used by this mcc_CChecker object.
setChartsRGB(_chartsRGB: Mat): void;_chartsRGBcharts rgb argument (Mat).
setChartsYCbCr
Set the charts ycb cr used by this mcc_CChecker object.
setChartsYCbCr(_chartsYCbCr: Mat): void;_chartsYCbCrcharts ycb cr argument (Mat).
setCost
Set the cost used by this mcc_CChecker object.
setCost(_cost: number): void;_costcost argument (number).
setCenter
Set the center used by this mcc_CChecker object.
setCenter(_center: Point2f): void;_centercenter argument (Point2f).
getTarget
Return the target configured on this mcc_CChecker object.
getTarget(): number;The number result.
getBox
Return the box configured on this mcc_CChecker object.
getBox(): Point2fVector;The Point2fVector result. Release returned native handles with using or delete(), including handles nested in results.
getColorCharts
Computes and returns the coordinates of the central parts of the charts modules.
This method computes transformation matrix from the checkers's coordinates (CChecker::getBox())
and find by this the coordinates of the central parts of the charts modules.
It is used in CCheckerDetector::draw() and in ChartsRGB calculation.
getColorCharts(): Point2fVector;The Point2fVector result. Release returned native handles with using or delete(), including handles nested in results.
getChartsRGB
Return the charts rgb configured on this mcc_CChecker object.
getChartsRGB(getStats: boolean): Mat;getStatsget stats argument (boolean).
The Mat result. Release returned native handles with using or delete(), including handles nested in results.
getChartsYCbCr
Return the charts ycb cr configured on this mcc_CChecker object.
getChartsYCbCr(): Mat;The Mat result. Release returned native handles with using or delete(), including handles nested in results.
getCost
Return the cost configured on this mcc_CChecker object.
getCost(): number;The number result.
getCenter
Return the center configured on this mcc_CChecker object.
getCenter(): Point2f;The Point2f result.
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.