Table of Contents

Class QuasiDenseStereo

Namespace
Emgu.CV.Stereo
Assembly
Emgu.CV.dll

Class containing the methods needed for Quasi Dense Stereo computation.

public class QuasiDenseStereo : SharedPtrObject, IDisposable
Inheritance
QuasiDenseStereo
Implements
Inherited Members

Constructors

QuasiDenseStereo(Size, string)

Create a new instance containing the methods needed for Quasi Dense Stereo computation.

public QuasiDenseStereo(Size monoImgSize, string paramFilepath = "")

Parameters

monoImgSize Size

Image size

paramFilepath string

The path for the parameters

Properties

Param

Parameters for the QuasiDenseStereo class

public QuasiDenseStereo.PropagationParameters Param { get; set; }

Property Value

QuasiDenseStereo.PropagationParameters

Methods

DisposeObject()

Release the unmanaged memory associated with this object

protected override void DisposeObject()

GetDisparity()

Compute and return the disparity map based on the correspondences found in the "process" method.

public Mat GetDisparity()

Returns

Mat

Mat containing a the disparity image in grayscale.

Process(Mat, Mat)

Main process of the algorithm. This method computes the sparse seeds and then densifies them. Initially input images are converted to gray-scale and then the sparseMatching method is called to obtain the sparse stereo. Finally quasiDenseMatching is called to densify the corresponding points.

public void Process(Mat imgLeft, Mat imgRight)

Parameters

imgLeft Mat

The left Channel of a stereo image pair.

imgRight Mat

The right Channel of a stereo image pair.

Remarks

If input images are in color, the method assumes that are BGR and converts them to grayscale.