BilateralBlur#

class deeptrack.math.BilateralBlur(d: int | Callable[[...], int] = 3, sigma_color: float | Callable[[...], float] = 50, sigma_space: float | Callable[[...], float] = 50, **kwargs)#

Bases: Blur

Blur an image using a bilateral filter.

Bilateral filters blur homogenous areas while trying to preserve edges.

Parameters#

dint

Diameter of each pixel neighborhood with value range.

sigma_colornumber

Filter sigma in the color space with value range. A large value of the parameter means that farther colors within the pixel neighborhood (see sigma_space) will be mixed together, resulting in larger areas of semi-equal color.

sigma_spacenumber

Filter sigma in the coordinate space with value range. A large value of the parameter means that farther pixels will influence each other as long as their colors are close enough (see sigma_color).