Skip to content

fisheye_distortPoints1

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

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

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

Overload of distortPoints function to handle cases when undistorted points are got with non-identity camera matrix, e.g. output of #estimateNewCameraMatrixForUndistortRectify.

See: estimateNewCameraMatrixForUndistortRectify

fisheye_distortPoints1(undistorted: Mat, distorted: Mat, Kundistorted: Mat, K: Mat, D: Mat, alpha: number): void;
2 available overloads
fisheye_distortPoints1(undistorted: Mat, distorted: Mat, Kundistorted: Mat, K: Mat, D: Mat): void;
fisheye_distortPoints1(undistorted: Mat, distorted: Mat, Kundistorted: 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> .

Kundistorted

Camera intrinsic matrix used as new camera matrix for undistortion.

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.