http://www.emgu.com
Create a stereo disparity solver using StereoSGBM algorithm (combination of H. Hirschmuller + K. Konolige approaches)

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

Syntax

C#
public StereoSGBM(
	int minDisparity,
	int numDisparities,
	int blockSize,
	int p1,
	int p2,
	int disp12MaxDiff,
	int preFilterCap,
	int uniquenessRatio,
	int speckleWindowSize,
	int speckleRange,
	StereoSGBM..::..Mode mode
)
Visual Basic
Public Sub New ( 
	minDisparity As Integer,
	numDisparities As Integer,
	blockSize As Integer,
	p1 As Integer,
	p2 As Integer,
	disp12MaxDiff As Integer,
	preFilterCap As Integer,
	uniquenessRatio As Integer,
	speckleWindowSize As Integer,
	speckleRange As Integer,
	mode As StereoSGBM..::..Mode
)
Visual C++
public:
StereoSGBM(
	int minDisparity, 
	int numDisparities, 
	int blockSize, 
	int p1, 
	int p2, 
	int disp12MaxDiff, 
	int preFilterCap, 
	int uniquenessRatio, 
	int speckleWindowSize, 
	int speckleRange, 
	StereoSGBM..::..Mode mode
)
F#
new : 
        minDisparity : int * 
        numDisparities : int * 
        blockSize : int * 
        p1 : int * 
        p2 : int * 
        disp12MaxDiff : int * 
        preFilterCap : int * 
        uniquenessRatio : int * 
        speckleWindowSize : int * 
        speckleRange : int * 
        mode : StereoSGBM..::..Mode -> StereoSGBM

Parameters

minDisparity
Type: System..::..Int32
Minimum possible disparity value. Normally, it is zero but sometimes rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.
numDisparities
Type: System..::..Int32
Maximum disparity minus minimum disparity. The value is always greater than zero. In the current implementation, this parameter must be divisible by 16.
blockSize
Type: System..::..Int32
Matched block size. It must be an odd number >=1 . Normally, it should be somewhere in the 3..11 range. Use 0 for default.
p1
Type: System..::..Int32
The first parameter controlling the disparity smoothness. It is the penalty on the disparity change by plus or minus 1 between neighbor pixels. Reasonably good value is 8*number_of_image_channels*SADWindowSize*SADWindowSize. Use 0 for default
p2
Type: System..::..Int32
The second parameter controlling the disparity smoothness. It is the penalty on the disparity change by more than 1 between neighbor pixels. The algorithm requires p2 > p1. Reasonably good value is 32*number_of_image_channels*SADWindowSize*SADWindowSize. Use 0 for default
disp12MaxDiff
Type: System..::..Int32
Use 0 for default
preFilterCap
Type: System..::..Int32
Use 0 for default
uniquenessRatio
Type: System..::..Int32
Use 0 for default
speckleWindowSize
Type: System..::..Int32
Use 0 for default
speckleRange
Type: System..::..Int32
Use 0 for default
mode
Type: Emgu.CV..::..StereoSGBM..::..Mode
Use SGBM for default

See Also