Package ai.djl.modality.cv.transform
Class RandomColorJitter
- java.lang.Object
-
- ai.djl.modality.cv.transform.RandomColorJitter
-
-
Constructor Summary
Constructors Constructor Description RandomColorJitter(float brightness, float contrast, float saturation, float hue)
Creates aRandomColorJitter
Transform
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NDArray
transform(NDArray array)
Applies theTransform
to the givenNDArray
.
-
-
-
Constructor Detail
-
RandomColorJitter
public RandomColorJitter(float brightness, float contrast, float saturation, float hue)
Creates aRandomColorJitter
Transform
.- 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
-
-