Skip to content

fisheye_projectPoints

geometryfunctionOpenCV 5.0.0
import { fisheye_projectPoints } from '@banou/opencv-wasm'

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

ARGUMENTSobjectPoints, imagePoints, rvec, tvec
FUNCTIONfisheye_projectPoints
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Projects points using fisheye model

fisheye_projectPoints(objectPoints: Mat, imagePoints: Mat, rvec: Mat, tvec: Mat, K: Mat, D: Mat, alpha: number, jacobian: Mat): void;
3 available overloads
fisheye_projectPoints(objectPoints: Mat, imagePoints: Mat, rvec: Mat, tvec: Mat, K: Mat, D: Mat): void;
fisheye_projectPoints(objectPoints: Mat, imagePoints: Mat, rvec: Mat, tvec: Mat, K: Mat, D: Mat, alpha: number): void;
fisheye_projectPoints(objectPoints: Mat, imagePoints: Mat, rvec: Mat, tvec: Mat, K: Mat, D: Mat, alpha: number, jacobian: Mat): void;
objectPoints

Array of object points, 1xN/Nx1 3-channel (or vector<Point3f> ), where N is the number of points in the view.

imagePoints

Output destination, filled by the native operation. Output array of image points, 2xN/Nx2 1-channel or 1xN/Nx1 2-channel, or vector<Point2f>.

rvec

rvec argument (Mat).

tvec

tvec argument (Mat).

K

k argument (Mat).

D

Input vector of distortion coefficients \distcoeffsfisheye.

alpha

The skew coefficient.

jacobian

Output destination, filled by the native operation. Optional output 2Nx15 jacobian matrix of derivatives of image points with respect to components of the focal lengths, coordinates of the principal point, distortion coefficients, rotation vector, translation vector, and the skew. In the old interface different components of the jacobian are returned via different output parameters.

The function computes projections of 3D points to the image plane given intrinsic and extrinsic camera parameters. Optionally, the function computes Jacobians - matrices of partial derivatives of image points coordinates (as functions of all the input parameters) with respect to the particular parameters, intrinsic and/or extrinsic.

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.