提交 231bc17d 编写于 作者: I Ilya Lavrenov

added conditional compilation

上级 faa6074f
...@@ -1399,12 +1399,14 @@ static void calcHist( const Mat* images, int nimages, const int* channels, ...@@ -1399,12 +1399,14 @@ static void calcHist( const Mat* images, int nimages, const int* channels,
} }
} }
#ifdef HAVE_OPENCL
enum enum
{ {
BINS = 256 BINS = 256
}; };
static bool ocl_calcHist1(InputArrayOfArrays _src, OutputArray _hist, int ddepth = CV_32S) static bool ocl_calcHist1(InputArray _src, OutputArray _hist, int ddepth = CV_32S)
{ {
int compunits = ocl::Device::getDefault().maxComputeUnits(); int compunits = ocl::Device::getDefault().maxComputeUnits();
size_t wgs = ocl::Device::getDefault().maxWorkGroupSize(); size_t wgs = ocl::Device::getDefault().maxWorkGroupSize();
...@@ -1450,6 +1452,8 @@ static bool ocl_calcHist(InputArrayOfArrays images, OutputArray hist) ...@@ -1450,6 +1452,8 @@ static bool ocl_calcHist(InputArrayOfArrays images, OutputArray hist)
return ocl_calcHist1(v[0], hist, CV_32F); return ocl_calcHist1(v[0], hist, CV_32F);
} }
#endif
} }
void cv::calcHist( const Mat* images, int nimages, const int* channels, void cv::calcHist( const Mat* images, int nimages, const int* channels,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册