public class EnergyFilter extends BaseDataProcessor
Dither
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_MAX_ENERGY
If energy is below this threshold frame is dropped
|
logger
Constructor and Description |
---|
EnergyFilter() |
EnergyFilter(double maxEnergy) |
Modifier and Type | Method and Description |
---|---|
Data |
getData()
Returns the next DoubleData object, skipping frames with zero energy
|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
getPredecessor, initialize, setPredecessor
getName, initLogger, toString
@S4Double(defaultValue=2.0) public static final java.lang.String PROP_MAX_ENERGY
public EnergyFilter(double maxEnergy)
public EnergyFilter()
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 Data getData() throws DataProcessingException
getData
in interface DataProcessor
getData
in class BaseDataProcessor
DataProcessingException
- if a data processing error occurred