1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Merge pull request #3090 from akarsakov:ocl_reduce_fix

This commit is contained in:
Vadim Pisarevsky
2014-08-14 08:52:18 +00:00
3 changed files with 17 additions and 8 deletions
-3
View File
@@ -3469,9 +3469,6 @@ static bool ocl_reduce(InputArray _src, OutputArray _dst,
if (!doubleSupport && (sdepth == CV_64F || ddepth == CV_64F))
return false;
if ((op == CV_REDUCE_SUM && sdepth == CV_32F) || op == CV_REDUCE_MIN || op == CV_REDUCE_MAX)
return false;
if (op == CV_REDUCE_AVG)
{
if (sdepth < CV_32S && ddepth < CV_32S)