Class QuasiDenseStereo
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
Properties
Param
Parameters for the QuasiDenseStereo class
public QuasiDenseStereo.PropagationParameters Param { get; set; }
Property Value
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
MatThe left Channel of a stereo image pair.
imgRight
MatThe 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.