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)
This is nice! Since when this function exists?
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: Sep 4 '14
Seen: 4,752 times
Last updated: Sep 04 '14