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 NormalizerTypegetSupportedType()Get the enum opType of the supported normalizerImagePreProcessingScalerrestore(InputStream stream)Restore a normalizer that was previously serialized by this strategyvoidwrite(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:NormalizerSerializerStrategySerialize a normalizer to a output stream- Specified by:
writein 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:NormalizerSerializerStrategyRestore a normalizer that was previously serialized by this strategy- Specified by:
restorein 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:NormalizerSerializerStrategyGet the enum opType of the supported normalizer- Specified by:
getSupportedTypein interfaceNormalizerSerializerStrategy<ImagePreProcessingScaler>- Returns:
- the enum opType
- See Also:
Normalizer.getType()
-
-