Skip to content

calibrationMatrixValues

geometryfunctionOpenCV 5.0.0
import { calibrationMatrixValues } from '@banou/opencv-wasm'

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

ARGUMENTScameraMatrix, imageSize, apertureWidth, apertureHeight
FUNCTIONcalibrationMatrixValues
RETURN TYPEcalibrationMatrixValuesResult
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Computes useful camera characteristics from the camera intrinsic matrix.

Note: Do keep in mind that the unity measure 'mm' stands for whatever unit of measure one chooses for the chessboard pitch (it can thus be any value).

calibrationMatrixValues(cameraMatrix: Mat, imageSize: Size, apertureWidth: number, apertureHeight: number): calibrationMatrixValuesResult;
cameraMatrix

Input camera intrinsic matrix that can be estimated by #calibrateCamera or #stereoCalibrate .

imageSize

Input image size in pixels.

apertureWidth

Physical width in mm of the sensor.

apertureHeight

Physical height in mm of the sensor.

Returns

The calibrationMatrixValuesResult result. Scalar output parameters are returned as named fields in this object. Release returned native handles with using or delete(), including handles nested in results.

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.