CvFindStereoCorrespondence Method (CvArr, CvArr, DisparityMode, CvArr, Int32, Double, Double, Double, Double, Double) OpenCvSharp Class Library
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,
	double param1,
	double param2,
	double param3,
	double param4,
	double param5
)

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.
param1
Type: SystemDouble
Constant occlusion penalty, default=25
param2
Type: SystemDouble
Constant match reward, default=5
param3
Type: SystemDouble
Defines a highly reliable region (set of contiguous pixels whose reliability is at least param3), default=12
param4
Type: SystemDouble
Defines a moderately reliable region, default=15
param5
Type: SystemDouble
Defines a slightly reliable region, default=25
See Also

Reference