Skip to content

omnidir_stereoCalibrate

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

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

ARGUMENTSobjectPoints, imagePoints1, imagePoints2, imageSize1
FUNCTIONomnidir_stereoCalibrate
RETURN TYPEnumber
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Stereo calibration for omnidirectional camera model. It computes the intrinsic parameters for two cameras and the extrinsic parameters between two cameras. The default depth of outputs is CV_64F.

omnidir_stereoCalibrate(objectPoints: MatVector, imagePoints1: MatVector, imagePoints2: MatVector, imageSize1: Size, imageSize2: Size, K1: Mat, xi1: Mat, D1: Mat, K2: Mat, xi2: Mat, D2: Mat, rvec: Mat, tvec: Mat, rvecsL: MatVector, tvecsL: MatVector, flags: number, criteria: TermCriteria, idx: Mat): number;
2 available overloads
omnidir_stereoCalibrate(objectPoints: MatVector, imagePoints1: MatVector, imagePoints2: MatVector, imageSize1: Size, imageSize2: Size, K1: Mat, xi1: Mat, D1: Mat, K2: Mat, xi2: Mat, D2: Mat, rvec: Mat, tvec: Mat, rvecsL: MatVector, tvecsL: MatVector, flags: number, criteria: TermCriteria): number;
omnidir_stereoCalibrate(objectPoints: MatVector, imagePoints1: MatVector, imagePoints2: MatVector, imageSize1: Size, imageSize2: Size, K1: Mat, xi1: Mat, D1: Mat, K2: Mat, xi2: Mat, D2: Mat, rvec: Mat, tvec: Mat, rvecsL: MatVector, tvecsL: MatVector, flags: number, criteria: TermCriteria, idx: Mat): number;
objectPoints

Input/output value, modified by the native operation. Object points in world (pattern) coordinate. Its type is vector<vector<Vec3f> >. It also can be vector of Mat with size 1xN/Nx1 and type CV_32FC3. Data with depth of 64_F is also acceptable.

imagePoints1

Input/output value, modified by the native operation. The corresponding image points of the first camera, with type vector<vector<Vec2f> >. It must be the same size and the same type as objectPoints.

imagePoints2

Input/output value, modified by the native operation. The corresponding image points of the second camera, with type vector<vector<Vec2f> >. It must be the same size and the same type as objectPoints.

imageSize1

Image size of calibration images of the first camera.

imageSize2

Image size of calibration images of the second camera.

K1

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

xi1

Input/output value, modified by the native operation. Output parameter xi of Mei's model for the first camera

D1

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

K2

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

xi2

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

D2

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

rvec

Output destination, filled by the native operation. Output rotation between the first and second camera

tvec

Output destination, filled by the native operation. Output translation between the first and second camera

rvecsL

Output destination, filled by the native operation. Output rotation for each image of the first camera

tvecsL

Output destination, filled by the native operation. Output translation for each image of the first camera

flags

The flags that control stereoCalibrate

criteria

Termination criteria for optimization

idx

Output destination, filled by the native operation. Indices of image pairs 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.