Table of Contents

Class QuasiDenseStereo

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Class containing the methods needed for Quasi Dense Stereo computation.

This class contains the code to perform quasi dense stereo matching. The method initially starts with a sparse 3D reconstruction based on feature matching across a stereo image pair and subsequently propagates the structure into neighboring image regions. To obtain initial seed correspondences, the algorithm locates Shi and Tomasi features in the left image of the stereo pair and then tracks them using pyramidal Lucas-Kanade in the right image. To densify the sparse correspondences, the algorithm computes the zero-mean normalized cross-correlation (ZNCC) in small patches around every seed pair and uses it as a quality metric for each match.

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

Properties

Param

The propagation parameters used by the quasi dense matching algorithm.

Methods

Create(Size, string)

Creates a QuasiDenseStereo object.

GetDenseMatches()

Get the dense corresponding points.

GetDisparity()

Compute and return the disparity map based on the correspondences found by Process(Mat, Mat).

GetMatch(int, int)

Specify pixel coordinates in the left image and get its corresponding location in the right image. This method should be always called after Process(Mat, Mat), otherwise the matches will not be correct.

GetSparseMatches()

Get the sparse corresponding points.

LoadParameters(string)

Load a file containing the configuration parameters of the class.

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 sparse matching is performed, followed by the propagation of the corresponding points.

SaveParameters(string)

Save a file containing all the configuration parameters the class is currently set to.