BrightnessContrast

class dragon.vm.dali.ops.BrightnessContrast[source]

Adjust the brightness and contrast.

Examples:

# Historical jitter range for brightness and contrast
twist_rng = dali.ops.Uniform(range=[0.6, 1.4])

bc = dali.ops.BrightnessContrast()
y = bc(inputs['x'], brightness=twist_rng(), contrast=twist_rng())

__new__

static BrightnessContrast.__new__(cls)[source]

Create a BrightnessContrastBrightnessContrast operator.

Returns:
nvidia.dali.ops.BrightnessContrast – The operator.