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

fixed remap with transparent border (ticket #582)

This commit is contained in:
Vadim Pisarevsky
2010-11-10 21:14:57 +00:00
parent e6b2efeb11
commit e15a2ea95a
3 changed files with 7 additions and 9 deletions
+2 -6
View File
@@ -2175,9 +2175,7 @@ static void remapBicubic( const Mat& _src, Mat& _dst, const Mat& _xy,
else
{
int x[4], y[4];
if( borderType == BORDER_TRANSPARENT &&
((unsigned)(sx+1) >= (unsigned)ssize.width ||
(unsigned)(sy+1) >= (unsigned)ssize.height) )
if( borderType == BORDER_TRANSPARENT )
continue;
if( borderType == BORDER_CONSTANT &&
@@ -2277,9 +2275,7 @@ static void remapLanczos4( const Mat& _src, Mat& _dst, const Mat& _xy,
else
{
int x[8], y[8];
if( borderType == BORDER_TRANSPARENT &&
((unsigned)(sx+3) >= (unsigned)ssize.width ||
(unsigned)(sy+3) >= (unsigned)ssize.height) )
if( borderType == BORDER_TRANSPARENT )
continue;
if( borderType == BORDER_CONSTANT &&