From 7ccbe109707555cc9e24749c4a9a111769232c63 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Thu, 12 Jun 2014 15:15:59 +0400 Subject: [PATCH] fixed cv::warpPerspective --- modules/imgproc/src/imgwarp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/imgproc/src/imgwarp.cpp b/modules/imgproc/src/imgwarp.cpp index c946afc..8b3c4be 100644 --- a/modules/imgproc/src/imgwarp.cpp +++ b/modules/imgproc/src/imgwarp.cpp @@ -4172,9 +4172,10 @@ static bool ocl_warpTransform(InputArray _src, OutputArray _dst, InputArray _M0, int type = _src.type(), depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type); double doubleSupport = dev.doubleFPConfig() > 0; - int interpolation = flags & INTER_MAX, rowsPerWI = dev.isIntel() && interpolation <= INTER_LINEAR ? 4 : 1; + int interpolation = flags & INTER_MAX; if( interpolation == INTER_AREA ) interpolation = INTER_LINEAR; + int rowsPerWI = dev.isIntel() && op_type == OCL_OP_AFFINE && interpolation <= INTER_LINEAR ? 4 : 1; if ( !(borderType == cv::BORDER_CONSTANT && (interpolation == cv::INTER_NEAREST || interpolation == cv::INTER_LINEAR || interpolation == cv::INTER_CUBIC)) || -- 2.7.4