Commit 9d04a7ab authored by Konstantin Matskevich's avatar Konstantin Matskevich

bugfix in equalizeHist

parent 0966e5ff
......@@ -3169,7 +3169,7 @@ static bool ocl_calcHist(InputArray _src, OutputArray _hist)
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
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