public class ImagePreprocessing extends Object implements Preprocessing<Tensor>, Serializable
Constructor and Description |
---|
ImagePreprocessing() |
Modifier and Type | Method and Description |
---|---|
void |
apply(Tensor input) |
Tensor |
getMean() |
boolean |
isEnabled() |
boolean |
isInvertPixels() |
boolean |
isSubMean() |
void |
setEnabled(boolean enabled) |
void |
setInvertPixels(boolean invertPixels) |
void |
setMean(Tensor mean) |
void |
setSubMean(boolean subMean) |
public void apply(Tensor input)
apply
in interface Preprocessing<Tensor>
public boolean isSubMean()
public void setSubMean(boolean subMean)
public boolean isInvertPixels()
public void setInvertPixels(boolean invertPixels)
public Tensor getMean()
public void setMean(Tensor mean)
public boolean isEnabled()
public void setEnabled(boolean enabled)
Copyright © 2022. All rights reserved.