Normalizing
This preprocessor defines normalizing operation. Given mean and std for n channels, this operation normalizes each channel of the input array, i.e.
output[channel] = (input[channel] - mean[channel]) / std[channel].
Constructors
Normalizing
Link copied to clipboard
fun Normalizing()
Content copied to clipboard
Functions
apply
Link copied to clipboard
open override fun apply(data: FloatArray, inputShape: ImageShape): FloatArray
Content copied to clipboard
Transforms data with inputShape to the new data with the same shape.