nvidia.dali.fn.brightness — NVIDIA DALI (original) (raw)

nvidia.dali.fn.brightness(__input, /, *, brightness=1.0, brightness_shift=0.0, bytes_per_sample_hint=[0], dtype=None, preserve=False, device=None, name=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

Parameters:

__input (TensorList ( 'FHWC' , 'DHWC' , 'HWC' )) – Input to the operator.

Keyword Arguments: