How it works...
From skimage.filters, use the gabor_kernel() function to return the complex two-dimensional Gabor filter kernel.
The Gabor kernel is a Gaussian kernel multiplied (modulated) by a (complex) harmonic function, consisting of a real cosine and an imaginary sine term.
The frequency parameter to the function represents the spatial frequency of the harmonic (in pixels).
The frequency is ∞ 1/wavelength and is also inversely proportional to σ. Similarly, the bandwidth is ∞ 1/σ, where σ is the standard deviation of a Gaussian kernel.
The θ parameter represents the orientation in radian (for example, θ =0 implies that the harmonic is oriented toward the x direction).
The bandwidth parameter represents the bandwidth that the Gabor filter ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access