Fixed bug in cv::pyrUp. Reenabled accuracy test.

This commit is contained in:
Andrey Kamaev
2011-11-27 11:55:59 +00:00
parent 35e69a1ee3
commit fb2fad52a2
2 changed files with 8 additions and 8 deletions

View File

@@ -349,7 +349,7 @@ pyrUp_( const Mat& _src, Mat& _dst )
for( ; sy <= y + 1; sy++ )
{
WT* row = buf + ((sy - sy0) % PU_SZ)*bufstep;
int _sy = borderInterpolate(sy, ssize.height, BORDER_REFLECT_101);
int _sy = borderInterpolate(sy*2, dsize.height, BORDER_REFLECT_101)/2;
const T* src = (const T*)(_src.data + _src.step*_sy);
if( ssize.width == cn )