#include <gpu.hpp>
Public Types | |
enum | { BASIC_PRESET = 0, PREFILTER_XSOBEL = 1 } |
enum | { DEFAULT_NDISP = 64, DEFAULT_WINSZ = 19 } |
Public Member Functions | |
StereoBM_GPU () | |
the default constructor | |
StereoBM_GPU (int preset, int ndisparities=DEFAULT_NDISP, int winSize=DEFAULT_WINSZ) | |
the full constructor taking the camera-specific preset, number of disparities and the SAD window size. ndisparities must be multiple of 8. | |
void | operator() (const GpuMat &left, const GpuMat &right, GpuMat &disparity, Stream &stream=Stream::Null()) |
Static Public Member Functions | |
static bool | checkIfGpuCallReasonable () |
Some heuristics that tries to estmate. | |
Public Attributes | |
int | preset |
int | ndisp |
int | winSize |
float | avergeTexThreshold |
cv::gpu::StereoBM_GPU::StereoBM_GPU | ( | ) |
the default constructor
cv::gpu::StereoBM_GPU::StereoBM_GPU | ( | int | preset, | |
int | ndisparities = DEFAULT_NDISP , |
|||
int | winSize = DEFAULT_WINSZ | |||
) |
the full constructor taking the camera-specific preset, number of disparities and the SAD window size. ndisparities must be multiple of 8.
void cv::gpu::StereoBM_GPU::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 Output disparity has CV_8U type.
static bool cv::gpu::StereoBM_GPU::checkIfGpuCallReasonable | ( | ) | [static] |
Some heuristics that tries to estmate.