Sharpen

class Sharpen(modelType: ModelType) : Preprocessor

Applies the final image preprocessing that is specific for each of available models trained on ImageNet according chosen modelType.

Constructors

Sharpen
Link copied to clipboard
fun Sharpen(modelType: ModelType = ModelType.VGG_16)

Functions

apply
Link copied to clipboard
open override fun apply(data: FloatArray, inputShape: ImageShape): FloatArray
Transforms data with inputShape to the new data with the same shape.

Properties

modelType
Link copied to clipboard
var modelType: ModelType
One the supported models pre-trained on ImageNet.