Calculates disparity for stereo-pair
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void FindStereoCorrespondence( CvArr leftImage, CvArr rightImage, DisparityMode mode, CvArr depthImage, int maxDisparity )
Parameters
- leftImage
- Type: OpenCvSharpCvArr
Left image of stereo pair, rectified grayscale 8-bit image - rightImage
- Type: OpenCvSharpCvArr
Right image of stereo pair, rectified grayscale 8-bit image - mode
- Type: OpenCvSharpDisparityMode
Algorithm used to find a disparity (now only CV_DISPARITY_BIRCHFIELD is supported) - depthImage
- Type: OpenCvSharpCvArr
Destination depth image, grayscale 8-bit image that codes the scaled disparity, so that the zero disparity (corresponding to the points that are very far from the cameras) maps to 0, maximum disparity maps to 255. - maxDisparity
- Type: SystemInt32
Maximum possible disparity. The closer the objects to the cameras, the larger value should be specified here. Too big values slow down the process significantly.
See Also