|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaer.eventprocessing.EventFilter
net.sf.jaer.eventprocessing.EventFilter2D
net.sf.jaer.eventprocessing.filter.OnOffProximityLineFilter
public class OnOffProximityLineFilter
An AE filter that outputs only events that are supported by a nearby event of the opposite polarity in the neighborhood. The neighborhood is defined by a subsampling bit shift. This filter can be used to do try to filter out shadows, which produce only one polarity events for an extended shadow. Only thin lines that produce both ON and OFF events in a spatio-temporal neighborhood should pass through. Subsamples space part of address, checks if delta t of current event to opposite polarity is within dt. if so, output event. in either case write subsampled event to lastTimestamps map.
Field Summary | |
---|---|
protected int |
dt
the time in timestamp ticks (1us at present) that a spike needs to be supported by a prior event in the neighborhood by to pass through |
Fields inherited from class net.sf.jaer.eventprocessing.EventFilter2D |
---|
enclosedFilter, out |
Fields inherited from class net.sf.jaer.eventprocessing.EventFilter |
---|
annotationEnabled, chip, enclosedFilterChain, filterEnabled, log, perf, propertyTooltipMap, support |
Constructor Summary | |
---|---|
OnOffProximityLineFilter(AEChip chip)
|
Method Summary | |
---|---|
EventPacket |
filterPacket(EventPacket in)
filters in to out. |
static java.lang.String |
getDescription()
|
int |
getDt()
gets the background allowed delay in us |
java.lang.Object |
getFilterState()
should return the filter state in some useful form |
int |
getSubsampleBy()
|
void |
initFilter()
this should allocate and initialize memory: it may be called when the chip e.g. |
void |
resetFilter()
should reset the filter to initial state |
void |
setDt(int dt)
sets the background delay in us |
void |
setSubsampleBy(int subsampleBy)
Sets the number of bits to subsample by when storing events into the map of past events. |
void |
update(java.util.Observable o,
java.lang.Object arg)
|
Methods inherited from class net.sf.jaer.eventprocessing.EventFilter2D |
---|
checkOutputPacketEventType, checkOutputPacketEventType, getEnclosedFilter, resetOut, setEnclosedFilter, setFilterEnabled |
Methods inherited from class net.sf.jaer.eventprocessing.EventFilter |
---|
getChip, getEnclosedFilterChain, getEnclosingFilter, getPrefs, getPropertyChangeSupport, getPropertyTooltip, isAnnotationEnabled, isEnclosed, isFilterEnabled, prefsEnabledKey, setAnnotationEnabled, setChip, setEnclosed, setEnclosedFilter, setEnclosedFilterChain, setEnclosingFilter, setPreferredEnabledState, setPrefs, setPropertyTooltip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int dt
Constructor Detail |
---|
public OnOffProximityLineFilter(AEChip chip)
Method Detail |
---|
public static java.lang.String getDescription()
public EventPacket filterPacket(EventPacket in)
filterPacket
in class EventFilter2D
in
- input events can be null or empty.
public int getDt()
public void setDt(int dt)
Fires a PropertyChangeEvent "dt"
dt
- delay in usgetDt()
public java.lang.Object getFilterState()
EventFilter
getFilterState
in class EventFilter
public void resetFilter()
EventFilter
resetFilter
in class EventFilter
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
public void initFilter()
EventFilter
initFilter
in class EventFilter
public int getSubsampleBy()
public void setSubsampleBy(int subsampleBy)
subsampleBy
- the number of bits, 0 means no subsampling, 1 means cut event time map resolution by a factor of two in x and in y
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |