OpenCV  2.4.13.6
Open Source Computer Vision
cv::gpu::StereoBeliefPropagation Class Reference

#include <gpu.hpp>

Public Types

enum  { DEFAULT_NDISP = 64 }
 
enum  { DEFAULT_ITERS = 5 }
 
enum  { DEFAULT_LEVELS = 5 }
 

Public Member Functions

 StereoBeliefPropagation (int ndisp=DEFAULT_NDISP, int iters=DEFAULT_ITERS, int levels=DEFAULT_LEVELS, int msg_type=CV_32F)
 the default constructor More...
 
 StereoBeliefPropagation (int ndisp, int iters, int levels, float max_data_term, float data_weight, float max_disc_term, float disc_single_jump, int msg_type=CV_32F)
 
void operator() (const GpuMat &left, const GpuMat &right, GpuMat &disparity, Stream &stream=Stream::Null())
 
void operator() (const GpuMat &data, GpuMat &disparity, Stream &stream=Stream::Null())
 version for user specified data term More...
 

Static Public Member Functions

static void estimateRecommendedParams (int width, int height, int &ndisp, int &iters, int &levels)
 

Public Attributes

int ndisp
 
int iters
 
int levels
 
float max_data_term
 
float data_weight
 
float max_disc_term
 
float disc_single_jump
 
int msg_type
 

Member Enumeration Documentation

§ anonymous enum

anonymous enum
Enumerator
DEFAULT_NDISP 

§ anonymous enum

anonymous enum
Enumerator
DEFAULT_ITERS 

§ anonymous enum

anonymous enum
Enumerator
DEFAULT_LEVELS 

Constructor & Destructor Documentation

§ StereoBeliefPropagation() [1/2]

cv::gpu::StereoBeliefPropagation::StereoBeliefPropagation ( int  ndisp = DEFAULT_NDISP,
int  iters = DEFAULT_ITERS,
int  levels = DEFAULT_LEVELS,
int  msg_type = CV_32F 
)
explicit

the default constructor

§ StereoBeliefPropagation() [2/2]

cv::gpu::StereoBeliefPropagation::StereoBeliefPropagation ( int  ndisp,
int  iters,
int  levels,
float  max_data_term,
float  data_weight,
float  max_disc_term,
float  disc_single_jump,
int  msg_type = CV_32F 
)

the full constructor taking the number of disparities, number of BP iterations on each level, number of levels, truncation of data cost, data weight, truncation of discontinuity cost and discontinuity single jump DataTerm = data_weight * min(fabs(I2-I1), max_data_term) DiscTerm = min(disc_single_jump * fabs(f1-f2), max_disc_term) please see paper for more details

Member Function Documentation

§ estimateRecommendedParams()

static void cv::gpu::StereoBeliefPropagation::estimateRecommendedParams ( int  width,
int  height,
int ndisp,
int iters,
int levels 
)
static

§ operator()() [1/2]

void cv::gpu::StereoBeliefPropagation::operator() ( const GpuMat left,
const GpuMat right,
GpuMat disparity,
Stream stream = Stream::Null() 
)

the stereo correspondence operator. Finds the disparity for the specified rectified stereo pair, if disparity is empty output type will be CV_16S else output type will be disparity.type().

§ operator()() [2/2]

void cv::gpu::StereoBeliefPropagation::operator() ( const GpuMat data,
GpuMat disparity,
Stream stream = Stream::Null() 
)

version for user specified data term

Member Data Documentation

§ data_weight

float cv::gpu::StereoBeliefPropagation::data_weight

§ disc_single_jump

float cv::gpu::StereoBeliefPropagation::disc_single_jump

§ iters

int cv::gpu::StereoBeliefPropagation::iters

§ levels

int cv::gpu::StereoBeliefPropagation::levels

§ max_data_term

float cv::gpu::StereoBeliefPropagation::max_data_term

§ max_disc_term

float cv::gpu::StereoBeliefPropagation::max_disc_term

§ msg_type

int cv::gpu::StereoBeliefPropagation::msg_type

§ ndisp

int cv::gpu::StereoBeliefPropagation::ndisp

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