one more fix in the recently rewritten copyMakeBorder

pull/13383/head
Vadim Pisarevsky 15 years ago
parent 39700c5d54
commit 5633cf0379
  1. 4
      modules/imgproc/src/utils.cpp

@ -113,7 +113,7 @@ static void copyMakeBorder_8u( const uchar* src, int srcstep, Size srcroi,
left *= cn;
right *= cn;
uchar* dstInner = dst + (dststep*top + left)*elemSize;
uchar* dstInner = dst + dststep*top + left*elemSize;
for( i = 0; i < srcroi.height; i++, dstInner += dststep, src += srcstep )
{
@ -183,7 +183,7 @@ static void copyMakeConstBorder_8u( const uchar* src, int srcstep, Size srcroi,
if( dstInner != src )
memcpy( dstInner, src, srcroi.width );
memcpy( dstInner - left, constBuf, left );
memcpy( dstInner + srcroi.width, constBuf + left, right );
memcpy( dstInner + srcroi.width, constBuf, right );
}
dst += dststep*top;

Loading…
Cancel
Save