Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

filter2D function error

I m using this line with this function but I have an error.

filter2D(GaussKernel,conspic1,GaussKernel.depth(),split(GaussKernel,KernelAchrSplit),Point(-1,-1),0,BORDER_DEFAULT);

Kernel and conspic1 are Mat object. I suppose I have a problem with the kernel, because I don'tknow any function that returns me it. So I use split function

This is how to use the function for C++:

void filter2D(InputArray src, OutputArray dst, int ddepth, InputArray kernel, Point anchor=Point(-1,-1), double delta=0, int borderType=BORDER_DEFAULT );

The error I have is:

invalid use of void expression

filter2D function error

I m using this line with this function but I have an error.

filter2D(GaussKernel,conspic1,GaussKernel.depth(),split(GaussKernel,KernelAchrSplit),Point(-1,-1),0,BORDER_DEFAULT);

Kernel and conspic1 are Mat object. I suppose I have a problem with the kernel, because I don'tknow any function that returns me it. So I use split function

This is how to use the function for C++:

void filter2D(InputArray src, OutputArray dst, int ddepth, InputArray kernel, Point anchor=Point(-1,-1), double delta=0, int borderType=BORDER_DEFAULT );

The error I have is:

invalid use of void expression