OpenCV  2.4.13.2
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

anonymous enum
Enumerator
DISP_SHIFT 
DISP_SCALE 

Constructor & Destructor Documentation

§ StereoSGBM() [1/2]

cv::StereoSGBM::StereoSGBM ( )

the default constructor

§ StereoSGBM() [2/2]

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

§ ~StereoSGBM()

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

the destructor

Member Function Documentation

§ operator()()

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

§ buffer

Mat cv::StereoSGBM::buffer
protected

§ disp12MaxDiff

int cv::StereoSGBM::disp12MaxDiff

§ fullDP

bool cv::StereoSGBM::fullDP

§ minDisparity

int cv::StereoSGBM::minDisparity

§ numberOfDisparities

int cv::StereoSGBM::numberOfDisparities

§ P1

int cv::StereoSGBM::P1

§ P2

int cv::StereoSGBM::P2

§ preFilterCap

int cv::StereoSGBM::preFilterCap

§ SADWindowSize

int cv::StereoSGBM::SADWindowSize

§ speckleRange

int cv::StereoSGBM::speckleRange

§ speckleWindowSize

int cv::StereoSGBM::speckleWindowSize

§ uniquenessRatio

int cv::StereoSGBM::uniquenessRatio

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