CvCreateStereoGCState Method OpenCvSharp Class Library
Creates the state of graph cut-based stereo correspondence algorithm

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static CvStereoGCState CreateStereoGCState(
	int numberOfDisparities,
	int maxIters
)

Parameters

numberOfDisparities
Type: SystemInt32
The number of disparities. The disparity search range will be state->minDisparity ≤ disparity < state->minDisparity + state->numberOfDisparities
maxIters
Type: SystemInt32
Maximum number of iterations. On each iteration all possible (or reasonable) alpha-expansions are tried. The algorithm may terminate earlier if it could not find an alpha-expansion that decreases the overall cost function value.

Return Value

Type: CvStereoGCState
stereo correspondence structure
See Also

Reference