Package ai.djl.modality.cv.transform
Class RandomColorJitter
java.lang.Object
ai.djl.modality.cv.transform.RandomColorJitter
- All Implemented Interfaces:
Transform
A
Transform that randomly jitters the brightness, contrast, saturation, and hue of an
image.-
Constructor Summary
ConstructorsConstructorDescriptionRandomColorJitter(float brightness, float contrast, float saturation, float hue) Creates aRandomColorJitterTransform. -
Method Summary
-
Constructor Details
-
RandomColorJitter
public RandomColorJitter(float brightness, float contrast, float saturation, float hue) Creates aRandomColorJitterTransform.- Parameters:
brightness- the brightness factor from 0 to 1contrast- the contrast factor from 0 to 1saturation- the saturation factor from 0 to 1hue- the hue factor from 0 to 1
-
-
Method Details