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<*, *> = TFModels.CV.VGG16)

Functions

apply
Link copied to clipboard
open override fun apply(data: FloatArray, inputShape: ImageShape): FloatArray

Properties

modelType
Link copied to clipboard
var modelType: ModelType<*, *>

One the supported models pre-trained on ImageNet.