Hi everyone, I'd like to be able to use the gabor filter on my image to extract features to put into a classifier. I've been told Gabor is the most effective for my program (detecting certain hand positions). Can anyone comment on how to use it correctly? I have the following currently, but my output is just a white image.
Mat gaborOut, outAsFloat, gaborImage;
cvtColor(outImg, outAsFloat, CV_32F);
Mat gaborKernel = getGaborKernel(cv::Size(30,30), 1, 0, 1, 0.02);
filter2D(outAsFloat, gaborOut, 1, gaborKernel);
gaborOut.convertTo(gaborImage, CV_8U, 1.0/255.0);
Currently the kernel variables are just ones I've found from other examples, maybe this is the source of the problem? outImg is a Mat of contours e.g.
Thanks for your help.