Skip to content

omnidir_stereoReconstruct

ccalibfunctionOpenCV 5.0.0
import { omnidir_stereoReconstruct } from '@banou/opencv-wasm'

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

ARGUMENTSimage1, image2, K1, D1
FUNCTIONomnidir_stereoReconstruct
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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;
image1

The first input image

image2

The second input image

K1

Input camera matrix of the first camera

D1

Input distortion parameters (k_1, k_2, p_1, p_2) for the first camera

xi1

Input parameter xi for the first camera for CMei's model

K2

Input camera matrix of the second camera

D2

Input distortion parameters (k_1, k_2, p_1, p_2) for the second camera

xi2

Input parameter xi for the second camera for CMei's model

R

Rotation between the first and second camera

T

Translation between the first and second camera

flag

Flag of rectification type, RECTIFY_PERSPECTIVE or RECTIFY_LONGLATI

numDisparities

The parameter 'numDisparities' in StereoSGBM, see StereoSGBM for details.

SADWindowSize

The parameter 'SADWindowSize' in StereoSGBM, see StereoSGBM for details.

disparity

Output destination, filled by the native operation. Disparity map generated by stereo matching

image1Rec

Output destination, filled by the native operation. Rectified image of the first image

image2Rec

Output destination, filled by the native operation. rectified image of the second image

newSize

Image size of rectified image, see omnidir::undistortImage

Knew

New camera matrix of rectified image, see omnidir::undistortImage

pointCloud

Output destination, filled by the native operation. Point cloud of 3D reconstruction, with type CV_64FC3

pointType

Point 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.