How to use Gabor Filter using Opencv Java API
i want to use Gabor filter usin gopencv with java API. i referred to the docs, and it is as follows:
getGaborKernel
public static Mat getGaborKernel(Size ksize,
double sigma,
double theta,
double lambd,
double gamma,
double psi,
int ktype)
my problem is that i do not know how to specify the parameters, for an exampel, the Size, should it be the size of the image or what?
please provided brief explanation concerning how to use the parameters.
stolen from here:
ksizeSize of the filter returned.sigmaStandard deviation of the gaussian envelope.thetaOrientation of the normal to the parallel stripes of a Gabor function.lambdaWavelength of the sinusoidal factor.gammaSpatial aspect ratio.psiPhase offset.ktypeType of filter coefficients. It can beCV_32ForCV_64F.