1 | initial version |
You can't use split-fnct here (why do you want that at all?), the function filter2D
expects a matrix as a kernel, split returns nothing (i.e. void) thus the error, so call it properly with a kernel which you can build yourself with cv::getGaussianKernel()
(see http://docs.opencv.org/modules/imgproc/doc/filtering.html?highlight=blur#getgaussiankernel) or directly use cv::GaussianBlur()
(see http://docs.opencv.org/modules/imgproc/doc/filtering.html?highlight=blur#gaussianblur). Good luck!
2 | No.2 Revision |
You can't use split-fnct here (why do you want that at all?), the function filter2D
expects a matrix as a kernel, split returns nothing (i.e. void) thus the error, so call it properly with a kernel which you can build yourself with cv::getGaussianKernel()
(see http://docs.opencv.org/modules/imgproc/doc/filtering.html?highlight=blur#getgaussiankernel) or blur your image directly use via cv::GaussianBlur()
(see http://docs.opencv.org/modules/imgproc/doc/filtering.html?highlight=blur#gaussianblur). Good luck!