bug #3094: added CV_Assert to PyrDown_ to check if source matrix is not empty

This commit is contained in:
Dmitry Retinskiy 2013-08-14 15:30:35 +04:00
parent bcba3fc6b8
commit 4eb85189e5

View File

@ -191,6 +191,7 @@ pyrDown_( const Mat& _src, Mat& _dst, int borderType )
typedef typename CastOp::type1 WT;
typedef typename CastOp::rtype T;
CV_Assert( !_src.empty() );
Size ssize = _src.size(), dsize = _dst.size();
int cn = _src.channels();
int bufstep = (int)alignSize(dsize.width*cn, 16);