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:
ksize
Size of the filter returned.sigma
Standard deviation of the gaussian envelope.theta
Orientation of the normal to the parallel stripes of a Gabor function.lambda
Wavelength of the sinusoidal factor.gamma
Spatial aspect ratio.psi
Phase offset.ktype
Type of filter coefficients. It can beCV_32F
orCV_64F
.