Package deepnetts.util
Class ImagePreprocessing
java.lang.Object
deepnetts.util.ImagePreprocessing
- All Implemented Interfaces:
Preprocessing<TensorBase>,Serializable
Image pre-processing to be used at inference time, after feeding input to the network.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(TensorBase input) getMean()booleanbooleanbooleanvoidsetEnabled(boolean enabled) voidsetInvertPixels(boolean invertPixels) voidsetMean(TensorBase mean) voidsetSubMean(boolean subMean)
-
Constructor Details
-
ImagePreprocessing
public ImagePreprocessing()
-
-
Method Details
-
apply
- Specified by:
applyin interfacePreprocessing<TensorBase>
-
isSubMean
public boolean isSubMean() -
setSubMean
public void setSubMean(boolean subMean) -
isInvertPixels
public boolean isInvertPixels() -
setInvertPixels
public void setInvertPixels(boolean invertPixels) -
getMean
-
setMean
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled)
-