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

Fixed several issues found by static analysis

This commit is contained in:
Maksim Shabunin
2018-10-23 15:06:33 +03:00
parent e959f449ae
commit 0ccd810738
7 changed files with 11 additions and 5 deletions
+1
View File
@@ -240,6 +240,7 @@ void HOGDescriptor::computeGradient(InputArray _img, InputOutputArray _grad, Inp
CV_INSTRUMENT_REGION();
Mat img = _img.getMat();
CV_Assert(!img.empty());
CV_Assert( img.type() == CV_8U || img.type() == CV_8UC3 );
Size gradsize(img.cols + paddingTL.width + paddingBR.width,