Dragon API Dragon v0.3.0 Python BrightnessContrast¶ class dragon.vm.dali.ops.BrightnessContrast(**kwargs)[source]¶ Adjust the brightness and contrast of image. Examples: rng = dali.ops.Uniform((0.6, 1.4)) bc = dali.ops.BrightnessContrast() y = bc(inputs['x'], brightness=rng(), contrast=rng()) __new__¶ static BrightnessContrast.__new__( cls, **kwargs)[source]¶ Create a BrightnessContrast operator. Returns:nvidia.dali.ops.BrightnessContrast – The operator.