Class StereoMatcher
The base class for stereo correspondence algorithms.
Inheritance
System.Object
StereoMatcher
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class StereoMatcher : Algorithm, ICvPtrHolder
Constructors
| Improve this Doc View SourceStereoMatcher(IntPtr)
constructor
Declaration
protected StereoMatcher(IntPtr ptr)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | ptr |
Properties
| Improve this Doc View SourceBlockSize
Declaration
public int BlockSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Disp12MaxDiff
Declaration
public int Disp12MaxDiff { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MinDisparity
Declaration
public int MinDisparity { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NumDisparities
Declaration
public int NumDisparities { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SpeckleRange
Declaration
public int SpeckleRange { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SpeckleWindowSize
Declaration
public int SpeckleWindowSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceCompute(InputArray, InputArray, OutputArray)
Computes disparity map for the specified stereo pair
Declaration
public virtual void Compute(InputArray left, InputArray right, OutputArray disparity)
Parameters
Type | Name | Description |
---|---|---|
InputArray | left | Left 8-bit single-channel image. |
InputArray | right | Right image of the same size and the same type as the left one. |
OutputArray | disparity | Output disparity map. It has the same size as the input images. Some algorithms, like StereoBM or StereoSGBM compute 16-bit fixed-point disparity map(where each disparity value has 4 fractional bits), whereas other algorithms output 32 - bit floating - point disparity map. |