public class FiltersPerformance extends Object
Modifier and Type | Field and Description |
---|---|
static double[] |
FILTER_WEIGHTS_DEFAULT |
Constructor and Description |
---|
FiltersPerformance(ImageInfo imgInfo) |
Modifier and Type | Method and Description |
---|---|
double |
computeAbsFromHistogram() |
double |
computeEntropyFromHistogram() |
void |
computeHistogram(byte[] rowff) |
void |
computeHistogramForFilter(FilterType filterType,
byte[] rowb,
byte[] rowbprev) |
FilterType |
getPreferred() |
void |
setFilterWeights(double[] weights)
To set manually the filter weights.
|
void |
setPreferenceForNone(double preferenceForNone)
If larger than 1.0, NONE will be more prefered.
|
void |
tuneMemory(double m)
Values greater than 1.0 (towards infinite) increase the memory towards 1.
|
void |
updateFromFiltered(FilterType ftype,
byte[] rowff,
int rown) |
void |
updateFromRaw(FilterType ftype,
byte[] rowb,
byte[] rowbprev,
int rown)
alternative: computes statistic without filtering
|
public FiltersPerformance(ImageInfo imgInfo)
public void updateFromFiltered(FilterType ftype, byte[] rowff, int rown)
public void updateFromRaw(FilterType ftype, byte[] rowb, byte[] rowbprev, int rown)
public FilterType getPreferred()
public final void computeHistogramForFilter(FilterType filterType, byte[] rowb, byte[] rowbprev)
public void computeHistogram(byte[] rowff)
public double computeAbsFromHistogram()
public final double computeEntropyFromHistogram()
public void setPreferenceForNone(double preferenceForNone)
preferenceForNone
- around 1.0 (default: 1.0)public void tuneMemory(double m)
public void setFilterWeights(double[] weights)
weights
- Five doubles around 1.0, one for each filter type. Lower is prefereredCopyright © 2014. All rights reserved.