C# Class Emgu.CV.StereoGC

Use Graph Cut algorithm to find stereo correspondence
Inheritance: DisposableObject
显示文件 Open project: fajoy/RTSPExample Class Usage Examples

Public Properties

Property Type Description
State Emgu.CV.Structure.MCvStereoGCState

Public Methods

Method Description
FindStereoCorrespondence ( Byte>.Image left, Byte>.Image right, Int16>.Image leftDisparity, Int16>.Image rightDisparity ) : void

Computes disparity map for the input rectified stereo pair.

StereoGC ( int numberOfDisparities, int maxIters ) : System

Creates the stereo correspondence state and initializes it.

Protected Methods

Method Description
DisposeObject ( ) : void

Release the stereo state and all the memory associate with it

Method Details

DisposeObject() protected method

Release the stereo state and all the memory associate with it
protected DisposeObject ( ) : void
return void

FindStereoCorrespondence() public method

Computes disparity map for the input rectified stereo pair.
public FindStereoCorrespondence ( Byte>.Image left, Byte>.Image right, Int16>.Image leftDisparity, Int16>.Image rightDisparity ) : void
left Byte>.Image The left single-channel, 8-bit image
right Byte>.Image The right image of the same size and the same type
leftDisparity Int16>.Image The optional output single-channel 16-bit signed left disparity map of the same size as input images.
rightDisparity Int16>.Image The optional output single-channel 16-bit signed right disparity map of the same size as input images
return void

StereoGC() public method

Creates the stereo correspondence state and initializes it.
public StereoGC ( int numberOfDisparities, int maxIters ) : System
numberOfDisparities int The number of disparities. The disparity search range will be state.minDisparity <= disparity < state.minDisparity + state.numberOfDisparities
maxIters int 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 System

Property Details

State public_oe property

The state structure
public MCvStereoGCState,Emgu.CV.Structure State
return Emgu.CV.Structure.MCvStereoGCState