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 aRandomColorJitterTransform.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NDArraytransform(NDArray array)Applies theTransformto the givenNDArray.
-
-
-
Constructor Detail
-
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
-
-