nvidia.dali.experimental.dynamic.saturation#

nvidia.dali.experimental.dynamic.saturation(input, /, *, batch_size=None, device=None, dtype=None, image_type=None, saturation=None)#

Changes the saturation level of the image.

This operator allows sequence inputs and supports volumetric data.

Supported backends
  • ‘cpu’

  • ‘gpu’

Parameters:

input (Tensor/Batch ('HWC', 'FHWC', 'DHWC')) – Input to the operator.

Keyword Arguments:
  • dtype (nvidia.dali.types.DALIDataType, optional) –

    Output data type.

    If not set, the input type is used.

  • image_type (nvidia.dali.types.DALIImageType, optional, default = DALIImageType.RGB) – The color space of the input and the output image.

  • saturation (float or Tensor/Batch of float, optional, default = 1.0) –

    The saturation change factor.

    Values must be non-negative.

    Example values:

    • 0 - Completely desaturated image.

    • 1 - No change to image’s saturation.

    Supports per-frame inputs.