Sharpen

class Sharpen(modelTypePreprocessing: ModelType<*, *>) : Preprocessor

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

Constructors

Sharpen
Link copied to clipboard
fun Sharpen(modelTypePreprocessing: ModelType<*, *> = TFModels.CV.VGG16())

Functions

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

Properties

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

One the supported models pre-trained on ImageNet.