OpenCV  3.1.0
Open Source Computer Vision
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cv::stereo::Matching Class Reference

#include "matching.hpp"

Public Member Functions

 Matching (void)
 
 Matching (int maxDisp, int scalling=4, int confidence=6)
 
 ~Matching (void)
 
template<typename T >
void Median1x9Filter (const Mat &originalImage, Mat &filteredImage)
 
template<typename T >
void Median9x1Filter (const Mat &originalImage, Mat &filteredImage)
 9x1 median filter More...
 

Protected Member Functions

void blockAgregation (const Mat &partialSums, int windowSize, Mat &cost)
 The aggregation on the cost volume. More...
 
void costGathering (const Mat &hammingDistanceCost, Mat &cost)
 
void dispartyMapFormation (const Mat &costVolume, Mat &mapFinal, int th)
 
double getConfidence ()
 
int getMaxDisparity ()
 method for getting the disparity More...
 
int getScallingFactor ()
 method for getting the scalling factor More...
 
void hammingDistanceBlockMatching (const Mat &leftImage, const Mat &rightImage, Mat &cost, const int kernelSize=9)
 
void setConfidence (double val)
 setter for the confidence check More...
 
void setMaxDisparity (int val)
 method for setting the maximum disparity More...
 
void setScallingFactor (int val)
 a number by which the disparity will be multiplied for better display More...
 
template<typename T >
void smallRegionRemoval (const Mat &currentMap, int t, Mat &out)
 remove small regions that have an area smaller than t, we fill the region with the average of the good pixels around it More...
 

Protected Attributes

int previous_size
 
Mat puss
 
Mat speckleX
 
Mat speckleY
 

Constructor & Destructor Documentation

cv::stereo::Matching::Matching ( void  )
inline

constructor for the matching class maxDisp - represents the maximum disparity

cv::stereo::Matching::~Matching ( void  )
inline
cv::stereo::Matching::Matching ( int  maxDisp,
int  scalling = 4,
int  confidence = 6 
)
inline

Member Function Documentation

void cv::stereo::Matching::blockAgregation ( const Mat partialSums,
int  windowSize,
Mat cost 
)
inlineprotected

The aggregation on the cost volume.

void cv::stereo::Matching::costGathering ( const Mat hammingDistanceCost,
Mat cost 
)
inlineprotected
void cv::stereo::Matching::dispartyMapFormation ( const Mat costVolume,
Mat mapFinal,
int  th 
)
inlineprotected

Method responsible for generating the disparity map function for generating disparity maps at sub pixel level

double cv::stereo::Matching::getConfidence ( )
inlineprotected
int cv::stereo::Matching::getMaxDisparity ( )
inlineprotected

method for getting the disparity

int cv::stereo::Matching::getScallingFactor ( )
inlineprotected

method for getting the scalling factor

void cv::stereo::Matching::hammingDistanceBlockMatching ( const Mat leftImage,
const Mat rightImage,
Mat cost,
const int  kernelSize = 9 
)
inlineprotected

Hamming distance computation method leftImage and rightImage are the two transformed images the cost is the resulted cost volume and kernel Size is the size of the matching window

template<typename T >
void cv::stereo::Matching::Median1x9Filter ( const Mat originalImage,
Mat filteredImage 
)
inline

a median filter of 1x9 and 9x1 1x9 median filter

template<typename T >
void cv::stereo::Matching::Median9x1Filter ( const Mat originalImage,
Mat filteredImage 
)
inline

9x1 median filter

void cv::stereo::Matching::setConfidence ( double  val)
inlineprotected

setter for the confidence check

void cv::stereo::Matching::setMaxDisparity ( int  val)
inlineprotected

method for setting the maximum disparity

void cv::stereo::Matching::setScallingFactor ( int  val)
inlineprotected

a number by which the disparity will be multiplied for better display

template<typename T >
void cv::stereo::Matching::smallRegionRemoval ( const Mat currentMap,
int  t,
Mat out 
)
inlineprotected

remove small regions that have an area smaller than t, we fill the region with the average of the good pixels around it

Member Data Documentation

int cv::stereo::Matching::previous_size
protected
Mat cv::stereo::Matching::puss
protected
Mat cv::stereo::Matching::speckleX
protected
Mat cv::stereo::Matching::speckleY
protected

The documentation for this class was generated from the following file: