http://www.emgu.com
Calculates disparity for stereo-pair

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

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
)
Visual Basic
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
)
Visual 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
)
F#
static member cvFindStereoCorrespondence : 
        leftImage : IntPtr * 
        rightImage : IntPtr * 
        mode : int * 
        depthImage : IntPtr * 
        maxDisparity : int * 
        param1 : float * 
        param2 : float * 
        param3 : float * 
        param4 : float * 
        param5 : float -> unit 

Parameters

leftImage
Type: System..::..IntPtr
Left image of stereo pair, rectified grayscale 8-bit image
rightImage
Type: System..::..IntPtr
Right image of stereo pair, rectified grayscale 8-bit image
mode
Type: System..::..Int32
Algorithm used to find a disparity
depthImage
Type: System..::..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
Type: System..::..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
Type: System..::..Double
constant occlusion penalty
param2
Type: System..::..Double
constant match reward
param3
Type: System..::..Double
defines a highly reliable region (set of contiguous pixels whose reliability is at least param3)
param4
Type: System..::..Double
defines a moderately reliable region
param5
Type: System..::..Double
defines a slightly reliable region

See Also