BrightnessContrast

class dragon.vm.dali.ops.BrightnessContrast(**kwargs)[source]

Adjust the brightness and contrast of image.

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,
  **kwargs
)[source]

Create a BrightnessContrast operator.

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