Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
cv::StereoSGBM Class Reference

Semi-Global Block Matching Stereo Correspondence Algorithm. More...

#include <calib3d.hpp>

Public Types

enum  { DISP_SHIFT =4, DISP_SCALE = (1<<DISP_SHIFT) }
 

Public Member Functions

CV_WRAP StereoSGBM ()
 the default constructor More...
 
CV_WRAP StereoSGBM (int minDisparity, int numDisparities, int SADWindowSize, int P1=0, int P2=0, int disp12MaxDiff=0, int preFilterCap=0, int uniquenessRatio=0, int speckleWindowSize=0, int speckleRange=0, bool fullDP=false)
 the full constructor taking all the necessary algorithm parameters More...
 
virtual ~StereoSGBM ()
 the destructor More...
 
 CV_WRAP_AS (compute) virtual void operator()(InputArray left
 the stereo correspondence operator that computes disparity map for the specified rectified stereo pair More...
 

Public Attributes

InputArray right
 
InputArray OutputArray disp
 
CV_PROP_RW int minDisparity
 
CV_PROP_RW int numberOfDisparities
 
CV_PROP_RW int SADWindowSize
 
CV_PROP_RW int preFilterCap
 
CV_PROP_RW int uniquenessRatio
 
CV_PROP_RW int P1
 
CV_PROP_RW int P2
 
CV_PROP_RW int speckleWindowSize
 
CV_PROP_RW int speckleRange
 
CV_PROP_RW int disp12MaxDiff
 
CV_PROP_RW bool fullDP
 

Protected Attributes

Mat buffer
 

Detailed Description

Semi-Global Block Matching Stereo Correspondence Algorithm.

The class implements the original SGBM stereo correspondence algorithm by H. Hirschmuller and some its modification.

Member Enumeration Documentation

anonymous enum
Enumerator
DISP_SHIFT 
DISP_SCALE 

Constructor & Destructor Documentation

CV_WRAP cv::StereoSGBM::StereoSGBM ( )

the default constructor

CV_WRAP cv::StereoSGBM::StereoSGBM ( int  minDisparity,
int  numDisparities,
int  SADWindowSize,
int  P1 = 0,
int  P2 = 0,
int  disp12MaxDiff = 0,
int  preFilterCap = 0,
int  uniquenessRatio = 0,
int  speckleWindowSize = 0,
int  speckleRange = 0,
bool  fullDP = false 
)

the full constructor taking all the necessary algorithm parameters

virtual cv::StereoSGBM::~StereoSGBM ( )
virtual

the destructor

Member Function Documentation

cv::StereoSGBM::CV_WRAP_AS ( compute  )

the stereo correspondence operator that computes disparity map for the specified rectified stereo pair

Member Data Documentation

InputArray cv::StereoSGBM::right
InputArray OutputArray cv::StereoSGBM::disp
CV_PROP_RW int cv::StereoSGBM::minDisparity
CV_PROP_RW int cv::StereoSGBM::numberOfDisparities
CV_PROP_RW int cv::StereoSGBM::SADWindowSize
CV_PROP_RW int cv::StereoSGBM::preFilterCap
CV_PROP_RW int cv::StereoSGBM::uniquenessRatio
CV_PROP_RW int cv::StereoSGBM::P1
CV_PROP_RW int cv::StereoSGBM::P2
CV_PROP_RW int cv::StereoSGBM::speckleWindowSize
CV_PROP_RW int cv::StereoSGBM::speckleRange
CV_PROP_RW int cv::StereoSGBM::disp12MaxDiff
CV_PROP_RW bool cv::StereoSGBM::fullDP
Mat cv::StereoSGBM::buffer
protected

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