Package ai.djl.modality.cv.transform
Class Normalize
- java.lang.Object
-
- ai.djl.modality.cv.transform.Normalize
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NDArraytransform(NDArray array)Applies theTransformto the givenNDArray.
-
-
-
Constructor Detail
-
Normalize
public Normalize(float[] mean, float[] std)Creates aNormalizeTransformthat normalizes.- Parameters:
mean- the mean to normalize with for each channelstd- the standard deviation to normalize with for each channel- See Also:
NDImageUtils.normalize(NDArray, float[], float[])
-
-