Skip to content

Instantly share code, notes, and snippets.

View intsynko's full-sized avatar

Konstantin intsynko

  • Soapbox
  • Kazan, Russia
View GitHub Profile
@kendricktan
kendricktan / gabor_filter.py
Created May 16, 2016 01:07
Gabor kernel filter example in python
import numpy as np
import cv2
# cv2.getGaborKernel(ksize, sigma, theta, lambda, gamma, psi, ktype)
# ksize - size of gabor filter (n, n)
# sigma - standard deviation of the gaussian function
# theta - orientation of the normal to the parallel stripes
# lambda - wavelength of the sunusoidal factor
# gamma - spatial aspect ratio
# psi - phase offset