[][src]Function opencv::imgproc::get_gabor_kernel

pub fn get_gabor_kernel(
    ksize: Size,
    sigma: f64,
    theta: f64,
    lambd: f64,
    gamma: f64,
    psi: f64,
    ktype: i32
) -> Result<Mat>

Returns Gabor filter coefficients.

For more details about gabor filter equations and parameters, see: Gabor Filter.

Parameters

  • 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.
  • lambd: Wavelength of the sinusoidal factor.
  • gamma: Spatial aspect ratio.
  • psi: Phase offset.
  • ktype: Type of filter coefficients. It can be CV_32F or CV_64F .

C++ default parameters

  • psi: CV_PI*0.5
  • ktype: CV_64F