vpi.Image.gaussian_filter

Image.gaussian_filter(self: vpi.Image, ksize: Union[Tuple[int, int], int], sigma: Union[Tuple[float, float], float], *, backend: vpi.Backend = vpi.Backend.DEFAULT, out: vpi.Image = None, border: vpi.Border = vpi.Border.CLAMP, stream: vpi.Stream = None) vpi.Image

Runs a 2D Gaussian filter over the image.

See also

Refer to the algorithm explanation for more details and usage examples.

Parameters
  • ksize (Tuple[int, int] or int) – The Gaussian kernel size as either (1) a tuple of two ints or (2) a single int, where (1) defines the X and Y directions and (2) defines both.

  • sigma (Tuple[float, float] or float) – The standard deviation of the Gaussian kernel as either (1) a tuple of two floats or (2) a single float, where (1) defines the X and Y directions and (2) defines both.

  • out (vpi.Image, optional) – The output for the algorithm.

  • border (vpi.Border, optional) – The border extension used by the algorithm.

  • backend (vpi.Backend, optional) – The backend to be used by the algorithm.

  • stream (vpi.Stream, optional) – The stream to be used by the algorithm.

Returns

The output for the algorithm.

Return type

vpi.Image

Caution

Restrictions to several arguments may apply. Check the C API references of the submit function and the group concepts for more details.