ColorTwist

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

Adjust the hue, saturation and brightness of image.

Examples:

rng1 = dali.ops.Uniform((0.6, 1.4))
rng2 = dali.ops.Uniform((-36., 36.))
twist = dali.ops.ColorTwist()
y = twist(inputs['x'], brightness=rng1(), contrast=rng1(),
          saturation=rng1(), hue=rng2())

__new__

static ColorTwist.__new__(
  cls,
  **kwargs
)[source]

Create a Brightness operator.

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