Class ImagePreProcessingSerializerStrategy
- java.lang.Object
-
- org.nd4j.linalg.dataset.api.preprocessor.serializer.ImagePreProcessingSerializerStrategy
-
- All Implemented Interfaces:
NormalizerSerializerStrategy<ImagePreProcessingScaler>
public class ImagePreProcessingSerializerStrategy extends Object implements NormalizerSerializerStrategy<ImagePreProcessingScaler>
-
-
Constructor Summary
Constructors Constructor Description ImagePreProcessingSerializerStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NormalizerType
getSupportedType()
Get the enum opType of the supported normalizerImagePreProcessingScaler
restore(InputStream stream)
Restore a normalizer that was previously serialized by this strategyvoid
write(ImagePreProcessingScaler normalizer, OutputStream stream)
Serialize a normalizer to a output stream
-
-
-
Method Detail
-
write
public void write(ImagePreProcessingScaler normalizer, OutputStream stream) throws IOException
Description copied from interface:NormalizerSerializerStrategy
Serialize a normalizer to a output stream- Specified by:
write
in interfaceNormalizerSerializerStrategy<ImagePreProcessingScaler>
- Parameters:
normalizer
- the normalizerstream
- the output stream to write to- Throws:
IOException
-
restore
public ImagePreProcessingScaler restore(InputStream stream) throws IOException
Description copied from interface:NormalizerSerializerStrategy
Restore a normalizer that was previously serialized by this strategy- Specified by:
restore
in interfaceNormalizerSerializerStrategy<ImagePreProcessingScaler>
- Parameters:
stream
- the stream to read serialized data from- Returns:
- the restored normalizer
- Throws:
IOException
-
getSupportedType
public NormalizerType getSupportedType()
Description copied from interface:NormalizerSerializerStrategy
Get the enum opType of the supported normalizer- Specified by:
getSupportedType
in interfaceNormalizerSerializerStrategy<ImagePreProcessingScaler>
- Returns:
- the enum opType
- See Also:
Normalizer.getType()
-
-