fisheye_distortPoints
import { fisheye_distortPoints } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;undistortedArray of object points, 1xN/Nx1 2-channel (or vector<Point2f> ), where N is the number of points in the view.
distortedOutput 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.KCamera intrinsic matrix
cameramatrix{K}.DInput vector of distortion coefficients
\distcoeffsfisheye.alphaThe 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.