Skip to content

Commit 3f68d6d

Browse files
committed
Merge pull request opencv#10392 from terfendail:bitexact_fallback
2 parents 83b8cd0 + 5fdb42a commit 3f68d6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/imgproc/src/resize.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4055,6 +4055,9 @@ void cv::resize( InputArray _src, OutputArray _dst, Size dsize,
40554055
inv_scale_y = (double)dsize.height/ssize.height;
40564056
}
40574057

4058+
if (interpolation == INTER_LINEAR_EXACT && (_src.depth() == CV_32F || _src.depth() == CV_64F))
4059+
interpolation = INTER_LINEAR; // If depth isn't supported fallback to generic resize
4060+
40584061
CV_OCL_RUN(_src.dims() <= 2 && _dst.isUMat() && _src.cols() > 10 && _src.rows() > 10,
40594062
ocl_resize(_src, _dst, dsize, inv_scale_x, inv_scale_y, interpolation))
40604063

0 commit comments

Comments
 (0)