1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

imgproc: add src.empty() checks in filter operations

This commit is contained in:
Alexander Alekhin
2020-03-20 21:04:29 +00:00
parent 183e4d50ed
commit 0fb4f2cc9c
9 changed files with 103 additions and 0 deletions
+2
View File
@@ -603,6 +603,8 @@ void GaussianBlur(InputArray _src, OutputArray _dst, Size ksize,
{
CV_INSTRUMENT_REGION();
CV_Assert(!_src.empty());
int type = _src.type();
Size size = _src.size();
_dst.create( size, type );