title: How to apply gabor filter to images in opencv?
body: <p>I've got some wavelets  with the gabor filter code, it's something like this..<img src="https://i.stack.imgur.com/VTj3g.png" alt="wavelets "></p>
  
  <p>but i don't know how to use it on my image? i know there are some ways with matlab,i.e <a href="https://stackoverflow.com/questions/9003147/how-to-apply-gabor-wavelets-to-an-image?rq=1">matlab way</a>.  but I'm using <code>opencv</code>, and I'm very new to this field and <code>matlab</code>, I don't know how to write the opencv code from the matlab code, so , waht am I supposed to do this with <code>opencv</code>? thanks very much!</p>
  
  <p>****Update****<br>
  I've tried @berak's way, and this is the original image <img src="https://i.stack.imgur.com/XfNal.jpg" alt=""></p>
  
  <p>and this is after I applied the filter <img src="https://i.stack.imgur.com/hq9qW.png" alt="enter image description here"> just all white and nothing left,below is my params,</p>
  
  <pre><code>int kernel_size = 31;
  double sig = 1, th = 0, lm = 1.0, gm = 0.02, ps = 0;
  cv::Mat kernel = cv::getGaborKernel(cv::Size(kernel_size, kernel_size), sig, th, lm, gm, ps);
  cv::filter2D(src_f, dest, CV_32F, kernel);
  </code></pre>
  
  <p>is there anything wrong with my setting?</p>