]> rtime.felk.cvut.cz Git - opencv.git/commitdiff
fixed outliers check in remap with bilinear interpolation and transparent border...
authorvp153 <vp153@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Fri, 2 Apr 2010 21:37:31 +0000 (21:37 +0000)
committervp153 <vp153@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Fri, 2 Apr 2010 21:37:31 +0000 (21:37 +0000)
git-svn-id: https://code.ros.org/svn/opencv/trunk@2975 73c94f0f-984f-4a5f-82bc-2d8db8d8ee08

opencv/src/cv/cvimgwarp.cpp

index fafc11b54a790af7c31b4883834440325a011c20..c9be56858ba09ec120ccca22c952eb761ab77dd6 100644 (file)
@@ -2092,8 +2092,8 @@ static void remapBilinear( const Mat& _src, Mat& _dst, const Mat& _xy,
                                 v3 = S0 + sy1*sstep + sx1*cn;
                             }
                             else if( borderType == BORDER_TRANSPARENT &&
-                                (unsigned)sx >= (unsigned)(ssize.width-1) &&
-                                (unsigned)sy >= (unsigned)(ssize.height-1))
+                                ((unsigned)sx >= (unsigned)(ssize.width-1) ||
+                                (unsigned)sy >= (unsigned)(ssize.height-1)))
                                 continue;
                             else
                             {