Skip to content

omnidir_calibrate

ccalibfunctionOpenCV 5.0.0
import { omnidir_calibrate } from '@banou/opencv-wasm'

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

ARGUMENTSobjectPoints, imagePoints, size, K
FUNCTIONomnidir_calibrate
RETURN TYPEnumber
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Perform omnidirectional camera calibration, the default depth of outputs is CV_64F.

omnidir_calibrate(objectPoints: MatVector, imagePoints: MatVector, size: Size, K: Mat, xi: Mat, D: Mat, rvecs: MatVector, tvecs: MatVector, flags: number, criteria: TermCriteria, idx: Mat): number;
2 available overloads
omnidir_calibrate(objectPoints: MatVector, imagePoints: MatVector, size: Size, K: Mat, xi: Mat, D: Mat, rvecs: MatVector, tvecs: MatVector, flags: number, criteria: TermCriteria): number;
omnidir_calibrate(objectPoints: MatVector, imagePoints: MatVector, size: Size, K: Mat, xi: Mat, D: Mat, rvecs: MatVector, tvecs: MatVector, flags: number, criteria: TermCriteria, idx: Mat): number;
objectPoints

Vector of vector of Vec3f object points in world (pattern) coordinate. It also can be vector of Mat with size 1xN/Nx1 and type CV_32FC3. Data with depth of 64_F is also acceptable.

imagePoints

Vector of vector of Vec2f corresponding image points of objectPoints. It must be the same size and the same type with objectPoints.

size

Image size of calibration images.

K

Input/output value, modified by the native operation. Output calibrated camera matrix.

xi

Input/output value, modified by the native operation. Output parameter xi for CMei's model

D

Input/output value, modified by the native operation. Output distortion parameters (k_1, k_2, p_1, p_2)

rvecs

Output destination, filled by the native operation. Output rotations for each calibration images

tvecs

Output destination, filled by the native operation. Output translation for each calibration images

flags

The flags that control calibrate

criteria

Termination criteria for optimization

idx

Output destination, filled by the native operation. Indices of images that pass initialization, which are really used in calibration. So the size of rvecs is the same as idx.total().

Returns

The number 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.