Merge branch '2.4'
This commit is contained in:
@@ -50,7 +50,6 @@
|
||||
#include "opencv2/core.hpp"
|
||||
#include "opencv2/imgproc.hpp"
|
||||
#include "opencv2/objdetect.hpp"
|
||||
//#include "opencv2/features2d.hpp"
|
||||
|
||||
namespace cv
|
||||
{
|
||||
@@ -125,6 +124,9 @@ namespace cv
|
||||
|
||||
CV_EXPORTS void* getoclCommandQueue();
|
||||
|
||||
//explicit call clFinish. The global command queue will be used.
|
||||
CV_EXPORTS void finish();
|
||||
|
||||
//this function enable ocl module to use customized cl_context and cl_command_queue
|
||||
//getDevice also need to be called before this function
|
||||
CV_EXPORTS void setDeviceEx(Info &oclinfo, void *ctx, void *qu, int devnum = 0);
|
||||
@@ -1714,6 +1716,36 @@ namespace cv
|
||||
private:
|
||||
oclMat minSSD, leBuf, riBuf;
|
||||
};
|
||||
class CV_EXPORTS StereoBeliefPropagation
|
||||
{
|
||||
public:
|
||||
enum { DEFAULT_NDISP = 64 };
|
||||
enum { DEFAULT_ITERS = 5 };
|
||||
enum { DEFAULT_LEVELS = 5 };
|
||||
static void estimateRecommendedParams(int width, int height, int &ndisp, int &iters, int &levels);
|
||||
explicit StereoBeliefPropagation(int ndisp = DEFAULT_NDISP,
|
||||
int iters = DEFAULT_ITERS,
|
||||
int levels = DEFAULT_LEVELS,
|
||||
int msg_type = CV_16S);
|
||||
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 oclMat &left, const oclMat &right, oclMat &disparity);
|
||||
void operator()(const oclMat &data, oclMat &disparity);
|
||||
int ndisp;
|
||||
int iters;
|
||||
int levels;
|
||||
float max_data_term;
|
||||
float data_weight;
|
||||
float max_disc_term;
|
||||
float disc_single_jump;
|
||||
int msg_type;
|
||||
private:
|
||||
oclMat u, d, l, r, u2, d2, l2, r2;
|
||||
std::vector<oclMat> datas;
|
||||
oclMat out;
|
||||
};
|
||||
}
|
||||
}
|
||||
#if defined _MSC_VER && _MSC_VER >= 1200
|
||||
|
Reference in New Issue
Block a user