nvidia.dali.experimental.dynamic.brightness#

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

Adjusts the brightness of the images.

The brightness is adjusted based on the following formula:

out = brightness_shift * output_range + brightness * in

Where output_range is 1 for float outputs or the maximum positive value for integral types.

This operator can also change the type of data.

This operator allows sequence inputs and supports volumetric data.

Supported backends
  • ‘cpu’

  • ‘gpu’

Parameters:

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

Keyword Arguments:
  • brightness (float or Tensor/Batch of float, optional, default = 1.0) –

    Brightness multiplier.

    Supports per-frame inputs.

  • brightness_shift (float or Tensor/Batch of float, optional, default = 0.0) –

    The brightness shift.

    For signed types, 1.0 represents the maximum positive value that can be represented by the type.

    Supports per-frame inputs.

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

    Output data type.

    If not set, the input type is used.