omnidir_calibrate
import { omnidir_calibrate } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;objectPointsVector 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.
imagePointsVector of vector of Vec2f corresponding image points of objectPoints. It must be the same size and the same type with objectPoints.
sizeImage size of calibration images.
KInput/output value, modified by the native operation. Output calibrated camera matrix.
xiInput/output value, modified by the native operation. Output parameter xi for CMei's model
DInput/output value, modified by the native operation. Output distortion parameters
(k_1, k_2, p_1, p_2)rvecsOutput destination, filled by the native operation. Output rotations for each calibration images
tvecsOutput destination, filled by the native operation. Output translation for each calibration images
flagsThe flags that control calibrate
criteriaTermination criteria for optimization
idxOutput 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().
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.