Skip to content

fisheye_distortPoints

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

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

ARGUMENTSundistorted, distorted, K, D
FUNCTIONfisheye_distortPoints
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Distorts 2D points using fisheye model.

fisheye_distortPoints(undistorted: Mat, distorted: Mat, K: Mat, D: Mat, alpha: number): void;
2 available overloads
fisheye_distortPoints(undistorted: Mat, distorted: Mat, K: Mat, D: Mat): void;
fisheye_distortPoints(undistorted: Mat, distorted: Mat, K: Mat, D: Mat, alpha: number): void;
undistorted

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

distorted

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

Note that the function assumes the camera intrinsic matrix of the undistorted points to be identity. This means if you want to distort image points you have to multiply them with K^{-1} or use another function overload.

K

Camera intrinsic matrix cameramatrix{K}.

D

Input vector of distortion coefficients \distcoeffsfisheye.

alpha

The skew coefficient.

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.