omnidir_projectPoints
import { omnidir_projectPoints } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
This module was accepted as a GSoC 2015 project for OpenCV, authored by Baisheng Lai, mentored by Bo Li. Projects points for omnidirectional camera using CMei's model
omnidir_projectPoints(objectPoints: Mat, imagePoints: Mat, rvec: Mat, tvec: Mat, K: Mat, xi: number, D: Mat, jacobian: Mat): void;2 available overloads
omnidir_projectPoints(objectPoints: Mat, imagePoints: Mat, rvec: Mat, tvec: Mat, K: Mat, xi: number, D: Mat): void;omnidir_projectPoints(objectPoints: Mat, imagePoints: Mat, rvec: Mat, tvec: Mat, K: Mat, xi: number, D: Mat, jacobian: Mat): void;objectPointsObject points in world coordinate, vector of vector of Vec3f or Mat of 1xN/Nx1 3-channel of type CV_32F and N is the number of points. 64F is also acceptable.
imagePointsOutput destination, filled by the native operation. Output array of image points, vector of vector of Vec2f or 1xN/Nx1 2-channel of type CV_32F. 64F is also acceptable.
rvecvector of rotation between world coordinate and camera coordinate, i.e., om
tvecvector of translation between pattern coordinate and camera coordinate
KCamera matrix
K = \vecthreethree{f_x}{s}{c_x}{0}{f_y}{c_y}{0}{0}{_1}.xiThe parameter xi for CMei's model
DInput vector of distortion coefficients
(k_1, k_2, p_1, p_2).jacobianOutput destination, filled by the native operation. Optional output 2Nx16 of type CV_64F jacobian matrix, contains the derivatives of image pixel points wrt parameters including
om, T, f_x, f_y, s, c_x, c_y, xi, k_1, k_2, p_1, p_2. This matrix will be used in calibration by optimization.The function projects object 3D points of world coordinate to image pixels, parameter by intrinsic and extrinsic parameters. Also, it optionally compute a by-product: the jacobian matrix containing contains the derivatives of image pixel points wrt intrinsic and extrinsic parameters.
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.