Commit 68883775 authored by mletavin's avatar mletavin

Adding explicit variable conversion in ocl_medianFilter() to suppress build errors on Linux & Mac

parent df9c75b2
......@@ -2023,8 +2023,8 @@ static bool ocl_medianFilter(InputArray _src, OutputArray _dst, int m)
Size imgSize = _src.size();
bool useOptimized = (1 == cn) &&
imgSize.width >= localsize[0] * 8 &&
imgSize.height >= localsize[1] * 8 &&
(size_t)imgSize.width >= localsize[0] * 8 &&
(size_t)imgSize.height >= localsize[1] * 8 &&
(ocl::Device::getDefault().isIntel());
cv::String kname = format( useOptimized ? "medianFilter%d_u" : "medianFilter%d", m) ;
......
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