Revert optimization for warpAffine INTER_NEAREST mode

This commit is contained in:
Alexander Karsakov
2014-08-04 12:45:00 +04:00
parent d3cdfefa03
commit fec21239c8
3 changed files with 11 additions and 10 deletions

View File

@@ -413,6 +413,9 @@ static bool ocl_pyrDown( InputArray _src, OutputArray _dst, const Size& _dsz, in
Size ssize = _src.size();
Size dsize = _dsz.area() == 0 ? Size((ssize.width + 1) / 2, (ssize.height + 1) / 2) : _dsz;
if (dsize.height < 2 || dsize.width < 2)
return false;
CV_Assert( ssize.width > 0 && ssize.height > 0 &&
std::abs(dsize.width*2 - ssize.width) <= 2 &&
std::abs(dsize.height*2 - ssize.height) <= 2 );