jAER project on SourceForge

net.sf.jaer.stereopsis
Class StereoTranslateRotate

java.lang.Object
  extended by net.sf.jaer.eventprocessing.EventFilter
      extended by net.sf.jaer.eventprocessing.EventFilter2D
          extended by net.sf.jaer.stereopsis.StereoTranslateRotate

public class StereoTranslateRotate
extends EventFilter2D

Shifts both images relatively to each other. A static transformation is applied to each eye's events as follows. First a rotation is applied x' = x*cos_phi - y*sin_phi y' = y*cos_phi + x*sin_phi Then the translations dx and dy are applied. The transformations are applied to the left eye events and then the dual is applied to the right eye events.

Author:
Peter Hess, Tobi Delbruck

Field Summary
 
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
StereoTranslateRotate(AEChip chip)
           
 
Method Summary
 EventPacket filterPacket(EventPacket in)
          Subclasses implement this method to define custom processing.
 int getDx()
           
 int getDy()
           
 java.lang.Object getFilterState()
          should return the filter state in some useful form
 float getPhi()
           
 void initFilter()
          this should allocate and initialize memory: it may be called when the chip e.g.
 boolean isGeneratingFilter()
           
 boolean isSwapEyes()
           
 void resetFilter()
          should reset the filter to initial state
 void setDx(int dx)
           
 void setDy(int dy)
           
 void setPhi(float phi)
          Set the rotation angle phi.
 void setSwapEyes(boolean swapEyes)
           
 
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
 

Constructor Detail

StereoTranslateRotate

public StereoTranslateRotate(AEChip chip)
Method Detail

isGeneratingFilter

public boolean isGeneratingFilter()

getDx

public int getDx()

setDx

public void setDx(int dx)

getDy

public int getDy()

setDy

public void setDy(int dy)

getPhi

public float getPhi()

setPhi

public void setPhi(float phi)
Set the rotation angle phi.

Parameters:
phi - the angle in radians

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

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

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

isSwapEyes

public boolean isSwapEyes()

setSwapEyes

public void setSwapEyes(boolean swapEyes)

jAER project on SourceForge