GaussianFilter¶
- class GaussianFilter(self, width: int, height: int, sigma: float, deinterleave: bool = false)¶
Bases:
pybind11_object
Gaussian filter class.
Gaussian filter constructor.
- Parameters:
- width: int¶
image width.
- height: int¶
image height.
- sigma: float¶
Standard deviation for Gaussian kernel.
- deinterleave: bool = false¶
if true, deinterleave R, G, B channels and perform Gaussian filter on each individual channel. It can be faster to deinterleave when repeatedly calling Gaussian filter with the same sigma and the same image resolution.
Methods
Gaussian filter constructor.
Overloaded function.
Inherited Methods
Operators
__doc__
Gaussian filter constructor.
__module__
Attributes
__annotations__
- __init__(self, width: int, height: int, sigma: float, deinterleave: bool = false)¶
Gaussian filter constructor.
- Parameters:
- width: int¶
image width.
- height: int¶
image height.
- sigma: float¶
Standard deviation for Gaussian kernel.
- deinterleave: bool = false¶
if true, deinterleave R, G, B channels and perform Gaussian filter on each individual channel. It can be faster to deinterleave when repeatedly calling Gaussian filter with the same sigma and the same image resolution.
- apply(*args, **kwargs)¶
Overloaded function.
apply(self: visp._visp.core.GaussianFilter, I: visp._visp.core.ImageGray, I_blur: visp._visp.core.ImageGray) -> None
Apply Gaussian filter on grayscale image.
- Parameters:
- I
input grayscale image.
- I_blur
output blurred grayscale image.
apply(self: visp._visp.core.GaussianFilter, I: visp._visp.core.ImageRGBa, I_blur: visp._visp.core.ImageRGBa) -> None
Apply Gaussian filter on color image.
- Parameters:
- I
input color image.
- I_blur
output blurred color image.