opencv error: failed assertion
Hi, i try to detect the pupill and corners of eye with opencv et qt but when i choose an image to execute my code. qtcreator display this error "OpenCV Error: Assertion failed (ksize.width > 0 && ksize.width % 2 == 1 && ksize.height > 0 && ksize.height % 2 == 1) in createGaussianFilter, file /../../OpenCV-2.4.1/modules/imgproc/src/smooth.cpp, line 402" can anyone help me please
a gaussian kernel needs to be odd size
how can i do it. this is my line code where i use gaussian filter cv::GaussianBlur(srcClone, srcClone, cv::Size(gaussianSize, gaussianSize), 6, 6 ); srcClone is a grayscale image and gaussianSize are integer
dear, RTFM
so, gaussianSize has to be odd.