Merge pull request #10392 from terfendail:bitexact_fallback

pull/10399/merge
Vadim Pisarevsky 7 years ago
commit 3f68d6d8a7
  1. 3
      modules/imgproc/src/resize.cpp

@ -4055,6 +4055,9 @@ void cv::resize( InputArray _src, OutputArray _dst, Size dsize,
inv_scale_y = (double)dsize.height/ssize.height;
}
if (interpolation == INTER_LINEAR_EXACT && (_src.depth() == CV_32F || _src.depth() == CV_64F))
interpolation = INTER_LINEAR; // If depth isn't supported fallback to generic resize
CV_OCL_RUN(_src.dims() <= 2 && _dst.isUMat() && _src.cols() > 10 && _src.rows() > 10,
ocl_resize(_src, _dst, dsize, inv_scale_x, inv_scale_y, interpolation))

Loading…
Cancel
Save