Rescaling

class Rescaling(scalingCoefficient: Float) : FloatArrayOperation

This preprocessor defines the Rescaling operation. It scales each pixel pixel_i = pixel_i / scalingCoefficient.

Constructors

Rescaling
Link copied to clipboard
common
fun Rescaling(scalingCoefficient: Float = 255f)

Functions

apply
Link copied to clipboard
common
open fun apply(input: <ERROR CLASS><FloatArray, <ERROR CLASS>>): <ERROR CLASS><FloatArray, <ERROR CLASS>>
getOutputShape
Link copied to clipboard
common
open fun getOutputShape(inputShape: <ERROR CLASS>): <ERROR CLASS>

Properties

scalingCoefficient
Link copied to clipboard
common
var scalingCoefficient: Float = 255f

Scaling coefficient.