omnidir_stereoCalibrate
import { omnidir_stereoCalibrate } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;objectPointsInput/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.
imagePoints1Input/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.
imagePoints2Input/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.
imageSize1Image size of calibration images of the first camera.
imageSize2Image size of calibration images of the second camera.
K1Input/output value, modified by the native operation. Output camera matrix for the first camera.
xi1Input/output value, modified by the native operation. Output parameter xi of Mei's model for the first camera
D1Input/output value, modified by the native operation. Output distortion parameters
(k_1, k_2, p_1, p_2)for the first cameraK2Input/output value, modified by the native operation. Output camera matrix for the first camera.
xi2Input/output value, modified by the native operation. Output parameter xi of CMei's model for the second camera
D2Input/output value, modified by the native operation. Output distortion parameters
(k_1, k_2, p_1, p_2)for the second camerarvecOutput destination, filled by the native operation. Output rotation between the first and second camera
tvecOutput destination, filled by the native operation. Output translation between the first and second camera
rvecsLOutput destination, filled by the native operation. Output rotation for each image of the first camera
tvecsLOutput destination, filled by the native operation. Output translation for each image of the first camera
flagsThe flags that control stereoCalibrate
criteriaTermination criteria for optimization
idxOutput 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().
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.