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 TypeMethodDescriptionvoid
apply
(TensorBase input) getMean()
boolean
boolean
boolean
void
setEnabled
(boolean enabled) void
setInvertPixels
(boolean invertPixels) void
setMean
(TensorBase mean) void
setSubMean
(boolean subMean)
-
Constructor Details
-
ImagePreprocessing
public ImagePreprocessing()
-
-
Method Details
-
apply
- Specified by:
apply
in 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)
-