Ask Your Question

Revision history [back]

click to hide/show revision 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!

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!