mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
one more fix in the recently rewritten copyMakeBorder
This commit is contained in:
parent
39700c5d54
commit
5633cf0379
@ -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…
Reference in New Issue
Block a user