|
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.stereopsis.GlobalDisparityFilter
public class GlobalDisparityFilter
The filter assumes a single frontal object and calculates the global x-coordinate disparity. The global disparity is found by correlating each event in a packet with its neighbors. The disparity with highest sum of correlations is then assigned to all events in the packet. Events are only matched if they have same polarity and orientation. An additional viewer window shows the matching matrix.
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 | |
---|---|
GlobalDisparityFilter(AEChip chip)
Creates a new instance of GlobalXDisparityFilter |
Method Summary | |
---|---|
EventPacket |
filterPacket(EventPacket in)
Subclasses implement this method to define custom processing. |
float |
getDistFactor()
|
java.lang.Object |
getFilterState()
should return the filter state in some useful form |
int |
getMaxDisp()
|
int |
getYRes()
|
void |
initFilter()
this should allocate and initialize memory: it may be called when the chip e.g. |
boolean |
isGeneratingFilter()
|
boolean |
isShowMatchingFrame()
|
void |
resetFilter()
should reset the filter to initial state |
void |
setDistFactor(float distFactor)
Set the scaling factor for the event correlation depending on time difference. |
void |
setMaxDisp(int maxDisp)
Maximal disparity which is considered for event matching. |
void |
setShowMatchingFrame(boolean show)
Show the additional viewer window with the matching matrix visalization. |
void |
setYRes(int yRes)
yRes determines the pixel resolution in y direction, i.e. |
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, 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 |
---|
public GlobalDisparityFilter(AEChip chip)
Method Detail |
---|
public void initFilter()
EventFilter
initFilter
in class EventFilter
public void resetFilter()
EventFilter
resetFilter
in class EventFilter
public java.lang.Object getFilterState()
EventFilter
getFilterState
in class EventFilter
public boolean isGeneratingFilter()
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
public void setDistFactor(float distFactor)
public float getDistFactor()
public void setYRes(int yRes)
public int getYRes()
public void setMaxDisp(int maxDisp)
public int getMaxDisp()
public void setShowMatchingFrame(boolean show)
public boolean isShowMatchingFrame()
public EventPacket filterPacket(EventPacket in)
EventFilter2D
filterPacket
in class EventFilter2D
in
- the input packet
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |