Commit 1aaeea99 authored by Andrey Pavlenko's avatar Andrey Pavlenko Committed by OpenCV Buildbot

Merge pull request #2053 from KonstantinMatskevich:ocl_bugfix_eqhist

parents 512ddcc8 9d04a7ab
...@@ -3169,7 +3169,7 @@ static bool ocl_calcHist(InputArray _src, OutputArray _hist) ...@@ -3169,7 +3169,7 @@ static bool ocl_calcHist(InputArray _src, OutputArray _hist)
static bool ocl_equalizeHist(InputArray _src, OutputArray _dst) static bool ocl_equalizeHist(InputArray _src, OutputArray _dst)
{ {
size_t wgs = ocl::Device::getDefault().maxWorkGroupSize(); size_t wgs = std::min<size_t>(ocl::Device::getDefault().maxWorkGroupSize(), BINS);
// calculation of histogram // calculation of histogram
UMat hist; UMat hist;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment