net.sf.jaer.eventprocessing.filter
Class EpipolarRectification
java.lang.Object
net.sf.jaer.eventprocessing.EventFilter
net.sf.jaer.eventprocessing.EventFilter2D
net.sf.jaer.eventprocessing.filter.EpipolarRectification
- All Implemented Interfaces:
- java.util.Observer
public class EpipolarRectification
- extends EventFilter2D
- implements java.util.Observer
This filter apply the epipolar correction (loading pixel correspondance tables
previously computed using matlab or other tools)
to one retina only here (epipolar correction is appply to two retinas used in stereo
but slightly angled toward each other) so that pixel at the same height appears
on the same y line)
One must select which retina to correct, left or non left
(should be easily adapted to any configuration)
To correct both retinae, one must use two instances of this filter
- Author:
- rogister
Field Summary |
protected int |
LEFT
|
protected int |
OFF
|
protected int |
ON
|
protected int |
RIGHT
|
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 |
RIGHT
protected final int RIGHT
- See Also:
- Constant Field Values
LEFT
protected final int LEFT
- See Also:
- Constant Field Values
ON
protected final int ON
- See Also:
- Constant Field Values
OFF
protected final int OFF
- See Also:
- Constant Field Values
EpipolarRectification
public EpipolarRectification(AEChip chip)
getDescription
public static java.lang.String getDescription()
filterPacket
public EventPacket filterPacket(EventPacket in)
- filters in to out. if filtering is enabled, the number of out may be less
than the number put in
- Specified by:
filterPacket
in class EventFilter2D
- Parameters:
in
- input events can be null or empty.
- Returns:
- the processed events, may be fewer in number. filtering may occur in place in the in 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
update
public void update(java.util.Observable o,
java.lang.Object arg)
- Specified by:
update
in interface java.util.Observer
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
setLeft
public void setLeft(boolean left)
isLeft
public boolean isLeft()
setRight
public void setRight(boolean right)
isRight
public boolean isRight()
setX_size
public void setX_size(int x_size)
getX_size
public int getX_size()
setY_size
public void setY_size(int y_size)
getY_size
public int getY_size()
setI1
public void setI1(boolean i1)
isI1
public boolean isI1()
setI2
public void setI2(boolean i2)
isI2
public boolean isI2()
setI3
public void setI3(boolean i3)
isI3
public boolean isI3()
setI4
public void setI4(boolean i4)
isI4
public boolean isI4()