nvidia.dali.experimental.dynamic.experimental.median_blur#

nvidia.dali.experimental.dynamic.experimental.median_blur(input, /, *, batch_size=None, device=None, window_size=None)#

Median blur performs smoothing of an image or sequence of images by replacing each pixel with the median color of a surrounding rectangular region.

Supported backends
  • ‘gpu’

Parameters:

input (Tensor/Batch ('HW', 'HWC', 'FHWC', 'CHW', 'FCHW')) – Input data. Must be images in HWC or CHW layout, or a sequence of those.

Keyword Arguments:

window_size (int or list of int or Tensor/Batch of int, optional, default = [3, 3]) – The size of the window over which the smoothing is performed