omnidir_stereoReconstruct
import { omnidir_stereoReconstruct } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Stereo 3D reconstruction from a pair of images
omnidir_stereoReconstruct(image1: Mat, image2: Mat, K1: Mat, D1: Mat, xi1: Mat, K2: Mat, D2: Mat, xi2: Mat, R: Mat, T: Mat, flag: number, numDisparities: number, SADWindowSize: number, disparity: Mat, image1Rec: Mat, image2Rec: Mat, newSize: Size, Knew: Mat, pointCloud: Mat, pointType: number): void;5 available overloads
omnidir_stereoReconstruct(image1: Mat, image2: Mat, K1: Mat, D1: Mat, xi1: Mat, K2: Mat, D2: Mat, xi2: Mat, R: Mat, T: Mat, flag: number, numDisparities: number, SADWindowSize: number, disparity: Mat, image1Rec: Mat, image2Rec: Mat): void;omnidir_stereoReconstruct(image1: Mat, image2: Mat, K1: Mat, D1: Mat, xi1: Mat, K2: Mat, D2: Mat, xi2: Mat, R: Mat, T: Mat, flag: number, numDisparities: number, SADWindowSize: number, disparity: Mat, image1Rec: Mat, image2Rec: Mat, newSize: Size): void;omnidir_stereoReconstruct(image1: Mat, image2: Mat, K1: Mat, D1: Mat, xi1: Mat, K2: Mat, D2: Mat, xi2: Mat, R: Mat, T: Mat, flag: number, numDisparities: number, SADWindowSize: number, disparity: Mat, image1Rec: Mat, image2Rec: Mat, newSize: Size, Knew: Mat): void;omnidir_stereoReconstruct(image1: Mat, image2: Mat, K1: Mat, D1: Mat, xi1: Mat, K2: Mat, D2: Mat, xi2: Mat, R: Mat, T: Mat, flag: number, numDisparities: number, SADWindowSize: number, disparity: Mat, image1Rec: Mat, image2Rec: Mat, newSize: Size, Knew: Mat, pointCloud: Mat): void;omnidir_stereoReconstruct(image1: Mat, image2: Mat, K1: Mat, D1: Mat, xi1: Mat, K2: Mat, D2: Mat, xi2: Mat, R: Mat, T: Mat, flag: number, numDisparities: number, SADWindowSize: number, disparity: Mat, image1Rec: Mat, image2Rec: Mat, newSize: Size, Knew: Mat, pointCloud: Mat, pointType: number): void;image1The first input image
image2The second input image
K1Input camera matrix of the first camera
D1Input distortion parameters
(k_1, k_2, p_1, p_2)for the first cameraxi1Input parameter xi for the first camera for CMei's model
K2Input camera matrix of the second camera
D2Input distortion parameters
(k_1, k_2, p_1, p_2)for the second cameraxi2Input parameter xi for the second camera for CMei's model
RRotation between the first and second camera
TTranslation between the first and second camera
flagFlag of rectification type, RECTIFY_PERSPECTIVE or RECTIFY_LONGLATI
numDisparitiesThe parameter 'numDisparities' in StereoSGBM, see StereoSGBM for details.
SADWindowSizeThe parameter 'SADWindowSize' in StereoSGBM, see StereoSGBM for details.
disparityOutput destination, filled by the native operation. Disparity map generated by stereo matching
image1RecOutput destination, filled by the native operation. Rectified image of the first image
image2RecOutput destination, filled by the native operation. rectified image of the second image
newSizeImage size of rectified image, see omnidir::undistortImage
KnewNew camera matrix of rectified image, see omnidir::undistortImage
pointCloudOutput destination, filled by the native operation. Point cloud of 3D reconstruction, with type CV_64FC3
pointTypePoint cloud type, it can be XYZRGB or XYZ
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.