net.sf.jaer.eventprocessing.filter
Class RotateFilter
java.lang.Object
net.sf.jaer.eventprocessing.EventFilter
net.sf.jaer.eventprocessing.EventFilter2D
net.sf.jaer.eventprocessing.filter.RotateFilter
- All Implemented Interfaces:
- java.util.Observer
public class RotateFilter
- extends EventFilter2D
- implements java.util.Observer
Transforms the events in various ways,
e.g. rotates the events so that x becomes y and y becomes x.
This filter acts on events in-place in the packet so it should be rather fast
because it doesn't need to copy events, only modify them.
- Author:
- tobi
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 |
RotateFilter
public RotateFilter(AEChip chip)
- Creates a new instance of RotateFilter
getDescription
public static java.lang.String getDescription()
filterPacket
public EventPacket<?> filterPacket(EventPacket<?> in)
- Description copied from class:
EventFilter2D
- Subclasses implement this method to define custom processing.
- Specified by:
filterPacket
in class EventFilter2D
- Parameters:
in
- the input packet
- Returns:
- the output packet
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
isSwapXY
public boolean isSwapXY()
setSwapXY
public void setSwapXY(boolean swapXY)
isRotate90deg
public boolean isRotate90deg()
setRotate90deg
public void setRotate90deg(boolean rotate90deg)
isInvertY
public boolean isInvertY()
setInvertY
public void setInvertY(boolean invertY)
isInvertX
public boolean isInvertX()
setInvertX
public void setInvertX(boolean invertX)
update
public void update(java.util.Observable o,
java.lang.Object arg)
- Specified by:
update
in interface java.util.Observer