how to extract gabor feature using opencv?
Does the latest OpenCV version have the function to get this feature?
Does the latest OpenCV version have the function to get this feature?
yes.
you create a Gabor Kernel (beware, 3.0 docs only), then use it with filter2d .
cv::Mat kernel = cv::getGaborKernel(cv::Size(kernel_size,kernel_size), sig, th, lm, gm, ps);
cv::filter2D(src_f, dest, CV_32F, kernel);
(both in opencv2/imgproc/imgproc.hpp)
What are you supposed to do with dest
to get a feature out of it. I though you had to sum the squares of the pixel values to get the 'Gabor energy', however, this seems to loose the sign of the Gabor filter, see my question here: http://answers.opencv.org/question/42056/does-using-gabor-energy-disregard-the-sign-of-the/
Asked: 2014-09-03 21:42:32 -0600
Seen: 4,714 times
Last updated: Sep 04 '14
How to intuitively interpret Gabor lambda param?
Gabor kernel not normalized - feature or bug?
Find how smooth or rough a surface in an image is
LBP recognizer model for face recognition
face recognition using opencv2.4.3
facerec_demo model->predict exception thrown