OpenCV  2.4.13
Open Source Computer Vision
cv::StereoSGBM Class Reference

#include <calib3d.hpp>

Public Types

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

Public Member Functions

 StereoSGBM ()
 the default constructor More...
 
 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...
 
virtual void operator() (InputArray left, InputArray right, OutputArray disp)
 the stereo correspondence operator that computes disparity map for the specified rectified stereo pair More...
 

Public Attributes

int minDisparity
 
int numberOfDisparities
 
int SADWindowSize
 
int preFilterCap
 
int uniquenessRatio
 
int P1
 
int P2
 
int speckleWindowSize
 
int speckleRange
 
int disp12MaxDiff
 
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::StereoSGBM::StereoSGBM ( )

the default constructor

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

virtual void cv::StereoSGBM::operator() ( InputArray  left,
InputArray  right,
OutputArray  disp 
)
virtual

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

Member Data Documentation

Mat cv::StereoSGBM::buffer
protected
int cv::StereoSGBM::disp12MaxDiff
bool cv::StereoSGBM::fullDP
int cv::StereoSGBM::minDisparity
int cv::StereoSGBM::numberOfDisparities
int cv::StereoSGBM::P1
int cv::StereoSGBM::P2
int cv::StereoSGBM::preFilterCap
int cv::StereoSGBM::SADWindowSize
int cv::StereoSGBM::speckleRange
int cv::StereoSGBM::speckleWindowSize
int cv::StereoSGBM::uniquenessRatio

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