public class ImagePreProcessingScaler extends Object implements DataNormalization
Constructor and Description |
---|
ImagePreProcessingScaler() |
ImagePreProcessingScaler(double a,
double b) |
ImagePreProcessingScaler(double a,
double b,
int maxBits)
Preprocessor can take a range as minRange and maxRange
|
Modifier and Type | Method and Description |
---|---|
void |
fit(DataSet dataSet)
Fit a dataset (only compute
based on the statistics from this dataset0
|
void |
fit(DataSetIterator iterator)
Iterates over a dataset
accumulating statistics for normalization
|
void |
load(File... statistics)
Load the statistics
for the data normalizer
|
void |
preProcess(DataSet toPreProcess)
Pre process a dataset
|
void |
save(File... statistics)
Save the accumulated statistics
|
void |
transform(DataSet toPreProcess)
Transform the data
|
public ImagePreProcessingScaler()
public ImagePreProcessingScaler(double a, double b)
public ImagePreProcessingScaler(double a, double b, int maxBits)
a,
- default = 0b,
- default = 1maxBits
- in the image, default = 8public void fit(DataSet dataSet)
fit
in interface DataNormalization
dataSet
- the dataset to compute onpublic void fit(DataSetIterator iterator)
fit
in interface DataNormalization
iterator
- the iterator to use for
collecting statistics.public void preProcess(DataSet toPreProcess)
DataSetPreProcessor
preProcess
in interface DataSetPreProcessor
preProcess
in interface DataNormalization
toPreProcess
- the data set to pre processpublic void transform(DataSet toPreProcess)
transform
in interface DataNormalization
toPreProcess
- the dataset to transformpublic void load(File... statistics) throws IOException
load
in interface DataNormalization
statistics
- the files to persistIOException
public void save(File... statistics) throws IOException
save
in interface DataNormalization
statistics
- the statistics to saveIOException
Copyright © 2016. All Rights Reserved.