public class ImagePreProcessingSerializerStrategy extends Object implements NormalizerSerializerStrategy<ImagePreProcessingScaler>
NormalizerSerializerStrategy
for ImagePreProcessingScaler
Saves the min range, max range, and max pixel value as
doublesConstructor and Description |
---|
ImagePreProcessingSerializerStrategy() |
Modifier and Type | Method and Description |
---|---|
NormalizerType |
getSupportedType()
Get the enum opType of the supported normalizer
|
ImagePreProcessingScaler |
restore(InputStream stream)
Restore a normalizer that was previously serialized by this strategy
|
void |
write(ImagePreProcessingScaler normalizer,
OutputStream stream)
Serialize a normalizer to a output stream
|
public ImagePreProcessingSerializerStrategy()
public void write(ImagePreProcessingScaler normalizer, OutputStream stream) throws IOException
NormalizerSerializerStrategy
write
in interface NormalizerSerializerStrategy<ImagePreProcessingScaler>
normalizer
- the normalizerstream
- the output stream to write toIOException
public ImagePreProcessingScaler restore(InputStream stream) throws IOException
NormalizerSerializerStrategy
restore
in interface NormalizerSerializerStrategy<ImagePreProcessingScaler>
stream
- the stream to read serialized data fromIOException
public NormalizerType getSupportedType()
NormalizerSerializerStrategy
getSupportedType
in interface NormalizerSerializerStrategy<ImagePreProcessingScaler>
Normalizer.getType()
Copyright © 2020. All rights reserved.