Skip to main content

//clika-runtime/io.clika.runtime/ImageProcessor/Companion/fromArgs

fromArgs

[common]
fun fromArgs(resize: <Error class: unknown class><Long, Long>? = null, crop: <Error class: unknown class><Long, Long>? = null, rescale: Double? = null, mean: FloatArray? = null, std: FloatArray? = null, where: Placement? = null): ImageProcessor

Build from the common knobs with no configuration file: resize to (height, width) and crop to (height, width) when given, the pixel rescale (1 / 255 by default), and per-channel mean and std (length 1 or 3, both given to normalize; both null for none).