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 NDArray
transform(NDArray array)
Applies theTransform
to the givenNDArray
.
-
-
-
Constructor Detail
-
Normalize
public Normalize(float[] mean, float[] std)
Creates aNormalize
Transform
that 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[])
-
-