jAER project on SourceForge

org.orangesky.visuals.filter
Class DecayFilter

java.lang.Object
  extended by net.sf.jaer.eventprocessing.EventFilter
      extended by net.sf.jaer.eventprocessing.EventFilter2D
          extended by org.orangesky.visuals.filter.DecayFilter

public class DecayFilter
extends EventFilter2D

This filter does something - not clear what. No comments. TODO fix javadoc, move this class to proper package

Author:
martin ebner

Field Summary
protected  int[] a
           
protected  int index
           
protected  int length
           
protected  int RingBufSize
           
protected  int[] t
           
 
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
DecayFilter(AEChip chip)
           
 
Method Summary
 int cAdd(int n, int dn)
           
 EventPacket<?> filterPacket(EventPacket<?> in)
          This filterPacket method assumes the events have PolarityEvent type
 boolean getDecay()
           
 java.lang.Object getFilterState()
          should return the filter state in some useful form
 float gettWindow()
           
 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 setDecay(boolean Decay)
           
 void settWindow(float tWindow)
           
 
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, getDescription, 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

RingBufSize

protected final int RingBufSize
See Also:
Constant Field Values

a

protected int[] a

t

protected int[] t

index

protected int index

length

protected int length
Constructor Detail

DecayFilter

public DecayFilter(AEChip chip)
Method Detail

gettWindow

public float gettWindow()

settWindow

public void settWindow(float tWindow)

getDecay

public boolean getDecay()

setDecay

public void setDecay(boolean Decay)

filterPacket

public EventPacket<?> filterPacket(EventPacket<?> in)
This filterPacket method assumes the events have PolarityEvent type

Specified by:
filterPacket in class EventFilter2D
Parameters:
in - the input packet
Returns:
the output packet, where events have possibly been deleted from the input

cAdd

public int cAdd(int n,
                int dn)

getFilterState

public java.lang.Object getFilterState()
Description copied from class: EventFilter
should return the filter state in some useful form

Specified by:
getFilterState in class EventFilter

resetFilter

public void resetFilter()
Description copied from class: EventFilter
should reset the filter to initial state

Specified by:
resetFilter in class EventFilter

initFilter

public void initFilter()
Description copied from class: EventFilter
this should allocate and initialize memory: it may be called when the chip e.g. size parameters are changed after creation of the filter

Specified by:
initFilter in class EventFilter

jAER project on SourceForge