anisotropic_gauss_kernel

anisotropic_gauss_kernel(sig_x, sig_y, theta=0, truncate=3)[source]

Gaussian kernel with different standard deviations in x and y direction.

Parameters
sig_x: int

Standard deviation in x-direction. A value of e.g. 5 means that the Gaussian kernel will reach a standard deviation of 1 after 5 pixel.

sig_y: int

Standard deviation in y-direction.

theta: float

Angle in degrees

truncate: float

Truncate the filter at this many standard deviations. Default is 4.0.

Returns
——-
kernel: ndarray

The Gaussian kernel as a 2D array.