Emgu CV Library Documentation
cvFindStereoCorrespondence Method (leftImage, rightImage, mode, depthImage, maxDisparity, param1, param2, param3, param4, param5)
NamespacesEmgu.CVCvInvokecvFindStereoCorrespondence(IntPtr, IntPtr, Int32, IntPtr, Int32, Double, Double, Double, Double, Double)

www.emgu.com/wiki
Calculates disparity for stereo-pair
Declaration Syntax
C#Visual BasicVisual C++
public static void cvFindStereoCorrespondence(
	IntPtr leftImage,
	IntPtr rightImage,
	int mode,
	IntPtr depthImage,
	int maxDisparity,
	double param1,
	double param2,
	double param3,
	double param4,
	double param5
)
Public Shared Sub cvFindStereoCorrespondence ( _
	leftImage As IntPtr, _
	rightImage As IntPtr, _
	mode As Integer, _
	depthImage As IntPtr, _
	maxDisparity As Integer, _
	param1 As Double, _
	param2 As Double, _
	param3 As Double, _
	param4 As Double, _
	param5 As Double _
)
public:
static void cvFindStereoCorrespondence(
	IntPtr leftImage, 
	IntPtr rightImage, 
	int mode, 
	IntPtr depthImage, 
	int maxDisparity, 
	double param1, 
	double param2, 
	double param3, 
	double param4, 
	double param5
)
Parameters
leftImage (IntPtr)
Left image of stereo pair, rectified grayscale 8-bit image
rightImage (IntPtr)
Right image of stereo pair, rectified grayscale 8-bit image
mode (Int32)
Algorithm used to find a disparity
depthImage (IntPtr)
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 (Int32)
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 (Double)
constant occlusion penalty
param2 (Double)
constant match reward
param3 (Double)
defines a highly reliable region (set of contiguous pixels whose reliability is at least param3)
param4 (Double)
defines a moderately reliable region
param5 (Double)
defines a slightly reliable region

Assembly: Emgu.CV (Module: Emgu.CV) Version: 1.3.0.0 (1.3.0.0)