Class ImagePreprocessing

java.lang.Object
deepnetts.util.ImagePreprocessing
All Implemented Interfaces:
Preprocessing<Tensor>, Serializable

public class ImagePreprocessing extends Object implements Preprocessing<Tensor>, Serializable
Image pre-processing to be used at inference time, after feeding input to the network.
See Also:
  • Constructor Details

    • ImagePreprocessing

      public ImagePreprocessing()
  • Method Details

    • apply

      public void apply(Tensor input)
      Specified by:
      apply in interface Preprocessing<Tensor>
    • isSubMean

      public boolean isSubMean()
    • setSubMean

      public void setSubMean(boolean subMean)
    • isInvertPixels

      public boolean isInvertPixels()
    • setInvertPixels

      public void setInvertPixels(boolean invertPixels)
    • getMean

      public TensorBase getMean()
    • setMean

      public void setMean(TensorBase mean)
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)