digital_image_processing.filters.gabor_filter

Attributes

img

Functions

gabor_filter_kernel(→ numpy.ndarray)

Module Contents

digital_image_processing.filters.gabor_filter.gabor_filter_kernel(ksize: int, sigma: int, theta: int, lambd: int, gamma: int, psi: int) numpy.ndarray
Parameters:
  • ksize – The kernelsize of the convolutional filter (ksize x ksize)

  • sigma – standard deviation of the gaussian bell curve

  • theta – The orientation of the normal to the parallel stripes of Gabor function.

  • lambd – Wavelength of the sinusoidal component.

  • gamma – The spatial aspect ratio and specifies the ellipticity of the support of Gabor function.

  • psi – The phase offset of the sinusoidal function.

>>> gabor_filter_kernel(3, 8, 0, 10, 0, 0).tolist()
[[0.8027212023735046, 1.0, 0.8027212023735046], [0.8027212023735046, 1.0, 0.8027212023735046], [0.8027212023735046, 1.0, 0.8027212023735046]]
digital_image_processing.filters.gabor_filter.img