mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
Issues found by static analysis (5th round)
This commit is contained in:
@@ -477,6 +477,7 @@ static bool matchTemplate_CCOEFF_NORMED(InputArray _image, InputArray _templ, Ou
|
||||
integral(_image, image_sums, image_sqsums, CV_32F, CV_32F);
|
||||
|
||||
int type = image_sums.type(), depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type);
|
||||
CV_Assert(cn >= 1 && cn <= 4);
|
||||
|
||||
ocl::Kernel k("matchTemplate_CCOEFF_NORMED", ocl::imgproc::match_template_oclsrc,
|
||||
format("-D CCOEFF_NORMED -D T=%s -D T1=%s -D cn=%d", ocl::typeToStr(type), ocl::typeToStr(depth), cn));
|
||||
|
||||
Reference in New Issue
Block a user