Class RandomColorJitter

java.lang.Object
ai.djl.modality.cv.transform.RandomColorJitter
All Implemented Interfaces:
Transform

public class RandomColorJitter extends Object implements Transform
A Transform that randomly jitters the brightness, contrast, saturation, and hue of an image.
  • Constructor Details

    • RandomColorJitter

      public RandomColorJitter(float brightness, float contrast, float saturation, float hue)
      Creates a RandomColorJitter Transform.
      Parameters:
      brightness - the brightness factor from 0 to 1
      contrast - the contrast factor from 0 to 1
      saturation - the saturation factor from 0 to 1
      hue - the hue factor from 0 to 1
  • Method Details