public class Dither extends BaseDataProcessor
Other Data
objects are passed along unchanged through
this Dither processor.
See also EnergyFilter
, an alternative to Dither.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_MAX_DITHER
The maximal value which could be added/subtracted to/from the signal
|
static java.lang.String |
PROP_MAX_VAL
The maximal value of dithered values.
|
static java.lang.String |
PROP_MIN_VAL
The minimal value of dithered values.
|
static java.lang.String |
PROP_USE_RANDSEED
The property about using random seed or not
|
logger
Constructor and Description |
---|
Dither() |
Dither(double ditherMax,
boolean useRandSeed,
double maxValue,
double minValue) |
Modifier and Type | Method and Description |
---|---|
Data |
getData()
Returns the next DoubleData object, which is a dithered version of the input
|
void |
initialize()
Initializes this DataProcessor.
|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
getPredecessor, setPredecessor
getName, initLogger, toString
@S4Double(defaultValue=2.0) public static final java.lang.String PROP_MAX_DITHER
@S4Double(defaultValue=1.7976931348623157E308) public static final java.lang.String PROP_MAX_VAL
@S4Double(defaultValue=-1.7976931348623157E308) public static final java.lang.String PROP_MIN_VAL
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_USE_RANDSEED
public Dither(double ditherMax, boolean useRandSeed, double maxValue, double minValue)
public Dither()
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
newProperties
in class ConfigurableAdapter
ps
- a property sheet holding the new dataPropertyException
- if there is a problem with the properties.public void initialize()
BaseDataProcessor
initialize
in interface DataProcessor
initialize
in class BaseDataProcessor
public Data getData() throws DataProcessingException
getData
in interface DataProcessor
getData
in class BaseDataProcessor
DataProcessingException
- if a data processing error occurred