Contrast

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

Adjust the contrast of image.

Examples:

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

contrast = dali.ops.Contrast()
y = contrast(inputs['x'], contrast=twist_rng())

__new__

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

Create a Contrast operator.

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