nvidia.dali.experimental.dynamic.experimental.erode#

nvidia.dali.experimental.dynamic.experimental.erode(input, /, *, batch_size=None, device=None, anchor=None, border_mode=None, iterations=None, mask_size=None)#

Performs an erosion operation on the input image.

This operator allows sequence inputs.

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:
  • anchor (int or list of int or Tensor/Batch of int, optional, default = [-1, -1]) –

    Sets the anchor point of the structuring element. Default value (-1, -1) uses the element’s center as the anchor point.

    Supports per-frame inputs.

  • border_mode (str, optional, default = ‘constant’) – Border mode to be used when accessing elements outside input image.

  • iterations (int, optional, default = 1) – Number of times to execute the operation, typically set to 1. Setting to a value higher than 1 is equivelent to increasing the mask size by (mask_width - 1, mask_height -1) for every additional iteration.

  • mask_size (int or list of int or Tensor/Batch of int, optional, default = [3, 3]) –

    Size of the structuring element.

    Supports per-frame inputs.