|
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
ch.unizh.ini.jaer.projects.pawtracker.PawTrackerStereoBoard2
public class PawTrackerStereoBoard2
Tracks Rat's Paw
Nested Class Summary | |
---|---|
class |
PawTrackerStereoBoard2.Cage
additional classes |
class |
PawTrackerStereoBoard2.EventPoint
EventPoint : all data about a point in retina space |
class |
PawTrackerStereoBoard2.Point
Point : all data about a point in 3D space |
Field Summary | |
---|---|
protected AEChip |
chip
|
protected int |
colorScale
|
protected int[][] |
correctionMatrix
|
protected int |
DELETE_LINK
|
protected double |
EPS
|
protected java.util.Vector<ch.unizh.ini.jaer.projects.pawtracker.PawTrackerStereoBoard2.FingerCluster> |
fingers
|
protected float |
grayValue
|
protected int |
labelNumber
|
protected int |
LEFT
|
protected int |
LEFT_MOST_METHOD
|
protected PawTrackerStereoBoard2.EventPoint[][] |
leftPoints
|
protected int |
NO_LINK
|
protected int |
RIGHT
|
protected int |
RIGHT_MOST_METHOD
|
protected PawTrackerStereoBoard2.EventPoint[][] |
rightPoints
|
Fields inherited from class net.sf.jaer.eventprocessing.EventFilter2D |
---|
enclosedFilter, out |
Fields inherited from class net.sf.jaer.eventprocessing.EventFilter |
---|
annotationEnabled, enclosedFilterChain, filterEnabled, log, perf, propertyTooltipMap, support |
Constructor Summary | |
---|---|
PawTrackerStereoBoard2(AEChip chip)
Creates a new instance of PawTracker |
Method Summary | |
---|---|
void |
annotate(float[][][] frame)
annotate the rendered retina frame to show locations of clusters |
void |
annotate(javax.media.opengl.GLAutoDrawable drawable)
Each annotator enters annotate with graphics context current, in coordinates with pixel 0,0 in LL corner (note opposite from Java2D) and pixel spacing 1 unit after the scaling transform (which is already active). |
void |
annotate(java.awt.Graphics2D g)
// drawing on player window |
float |
computeRangeTotal(int radius)
|
protected float |
decayedValue(float value,
int time)
|
protected float |
direction(float x0,
float y0,
float x1,
float y1)
|
protected float |
distanceBetween(int x1,
int y1,
int x2,
int y2)
|
protected float |
distanceBetween(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
|
protected void |
drawBox(javax.media.opengl.GL gl,
int x,
int x2,
int y,
int y2)
|
protected void |
drawBoxCentered(javax.media.opengl.GL gl,
int x,
int y,
int sx,
int sy)
|
EventPacket |
filterPacket(EventPacket in)
Subclasses implement this method to define custom processing. |
float |
getAlpha()
|
float |
getBrightness()
|
float |
getCage_distance()
|
float |
getCage_door_height()
|
float |
getCage_door_width()
|
float |
getCage_height()
|
float |
getCage_platform_length()
|
float |
getCage_width()
|
float |
getColorizeFactor()
|
int |
getColorizePeriod()
|
float |
getCorrectLeftAngle()
|
float |
getCorrectRightAngle()
|
int |
getCube_size()
|
int |
getDecayTimeLimit()
|
float |
getEvent_strength()
|
java.lang.Object |
getFilterState()
should return the filter state in some useful form |
float |
getFinger_mix()
|
int |
getFinger_surround()
|
float |
getFocal_length()
|
float |
getIntensity()
|
int |
getIntensityZoom()
|
int |
getLowFilter_density()
|
int |
getLowFilter_radius()
|
float |
getLowFilter_threshold()
|
int |
getMax_finger_clusters()
|
float |
getPixel_size()
|
float |
getRetina_angle()
|
float |
getRetina_height()
|
float |
getRetina_tilt_angle()
|
float |
getRetinae_distance()
|
float |
getShadowFactor()
|
boolean |
getshowCorrectionGradient()
|
boolean |
getShowCorrectionMatrix()
|
int |
getTracker_timeLife()
|
float |
getValueMargin()
|
float |
getValueThreshold()
|
float |
getYCurveFactor()
|
int |
getYLeftCorrection()
|
int |
getYRightCorrection()
|
int |
getZFactor()
|
void |
initFilter()
this should allocate and initialize memory: it may be called when the chip e.g. |
boolean |
isCorrectY()
|
boolean |
isDecayOn()
|
boolean |
isGoThroughMode()
|
boolean |
isHighlightDecay()
|
boolean |
isLogDataEnabled()
|
boolean |
isNotCrossing()
|
boolean |
isResetPawTracking()
|
boolean |
isRestart()
|
boolean |
isScaleAcc()
|
boolean |
isShow2DWindow()
|
boolean |
isShow3DWindow()
|
boolean |
isShowAcc()
|
boolean |
isShowAll()
|
boolean |
isShowAxes()
|
boolean |
isShowCage()
|
boolean |
isShowDecay()
|
boolean |
isShowFingers()
|
boolean |
isShowOnlyAcc()
|
boolean |
isShowRetina()
|
boolean |
isShowRight()
|
boolean |
isShowRLColors()
|
boolean |
isShowXColor()
|
boolean |
isShowYColor()
|
boolean |
isShowZColor()
|
boolean |
isShowZones()
|
boolean |
isUseCorrections()
|
boolean |
isUseFastMatching()
|
boolean |
isUseFilter()
|
boolean |
isUseGroups()
|
protected float |
orientation(int x0,
int y0,
int x1,
int y1)
|
protected void |
processEvent(BinocularEvent e)
|
void |
resetFilter()
should reset the filter to initial state |
protected int |
rotateXonY(int x,
int z,
int xRotationCenter,
int zRotationCenter,
float angle)
|
protected int |
rotateYonX(int y,
int z,
int yRotationCenter,
int zRotationCenter,
float angle)
|
protected int |
rotateZonX(int y,
int z,
int yRotationCenter,
int zRotationCenter,
float angle)
|
protected int |
rotateZonY(int x,
int z,
int xRotationCenter,
int zRotationCenter,
float angle)
|
void |
setAlpha(float alpha)
|
void |
setBrightness(float brightness)
|
void |
setCage_distance(float cage_distance)
|
void |
setCage_door_height(float cage_door_height)
|
void |
setCage_door_width(float cage_door_width)
|
void |
setCage_height(float cage_height)
|
void |
setCage_platform_length(float cage_platform_length)
|
void |
setCage_width(float cage_width)
|
void |
setColorizeFactor(float colorizeFactor)
|
void |
setColorizePeriod(int colorizePeriod)
|
void |
setCorrectLeftAngle(float correctLeftAngle)
|
void |
setCorrectRightAngle(float correctRightAngle)
|
void |
setCorrectY(boolean correctY)
|
void |
setCube_size(int cube_size)
|
void |
setDecayOn(boolean decayOn)
|
void |
setDecayTimeLimit(int decayTimeLimit)
|
void |
setEvent_strength(float event_strength)
|
void |
setFinger_mix(float finger_mix)
|
void |
setFinger_surround(int finger_surround)
|
void |
setFocal_length(float focal_length)
|
void |
setGoThroughMode(boolean goThroughMode)
|
void |
setHighlightDecay(boolean highlightDecay)
|
void |
setIntensity(float intensity)
|
void |
setIntensityZoom(int intensityZoom)
|
void |
setLogDataEnabled(boolean logDataEnabled)
|
void |
setLowFilter_density(int lowFilter_density)
|
void |
setLowFilter_radius(int lowFilter_radius)
|
void |
setLowFilter_threshold(float lowFilter_threshold)
|
void |
setMax_finger_clusters(int max_finger_clusters)
|
void |
setNotCrossing(boolean notCrossing)
|
void |
setPixel_size(float pixel_size)
|
void |
setResetPawTracking(boolean resetPawTracking)
|
void |
setRestart(boolean restart)
|
void |
setRetina_angle(float retina_angle)
|
void |
setRetina_height(float retina_height)
|
void |
setRetina_tilt_angle(float retina_tilt_angle)
|
void |
setRetinae_distance(float retinae_distance)
|
void |
setScaleAcc(boolean scaleAcc)
|
void |
setShadowFactor(float shadowFactor)
|
void |
setShow2DWindow(boolean show2DWindow)
|
void |
setShow3DWindow(boolean show3DWindow)
|
void |
setShowAcc(boolean showAcc)
|
void |
setShowAll(boolean showAll)
|
void |
setShowAxes(boolean showAxes)
|
void |
setShowCage(boolean showCage)
|
void |
setShowCorrectionGradient(boolean showCorrectionGradient)
|
void |
setShowCorrectionMatrix(boolean showCorrectionMatrix)
|
void |
setShowDecay(boolean showDecay)
|
void |
setShowFingers(boolean showFingers)
|
void |
setShowOnlyAcc(boolean showOnlyAcc)
|
void |
setShowRetina(boolean showRetina)
|
void |
setShowRight(boolean showRight)
|
void |
setShowRLColors(boolean showRLColors)
|
void |
setShowXColor(boolean showXColor)
|
void |
setShowYColor(boolean showYColor)
|
void |
setShowZColor(boolean showZColor)
|
void |
setShowZones(boolean showZones)
|
void |
setTracker_timeLife(int tracker_timeLife)
|
void |
setUseCorrections(boolean useCorrections)
|
void |
setUseFastMatching(boolean useFastMatching)
|
void |
setUseFilter(boolean useFilter)
|
void |
setUseGroups(boolean useGroups)
|
void |
setValueMargin(float valueMargin)
|
void |
setValueThreshold(float valueThreshold)
|
void |
setYCurveFactor(float yCurveFactor)
|
void |
setYLeftCorrection(int yLeftCorrection)
|
void |
setYRightCorrection(int yRightCorrection)
|
void |
setZFactor(int zFactor)
|
java.lang.String |
toString()
|
void |
update(java.util.Observable o,
java.lang.Object arg)
|
void |
validateParameterChanges()
|
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, wait, wait, wait |
Methods inherited from interface net.sf.jaer.graphics.FrameAnnotater |
---|
isAnnotationEnabled, setAnnotationEnabled |
Field Detail |
---|
protected double EPS
protected final int RIGHT
protected final int LEFT
protected final int RIGHT_MOST_METHOD
protected final int LEFT_MOST_METHOD
protected final int NO_LINK
protected final int DELETE_LINK
protected int labelNumber
protected AEChip chip
protected PawTrackerStereoBoard2.EventPoint[][] leftPoints
protected PawTrackerStereoBoard2.EventPoint[][] rightPoints
protected int[][] correctionMatrix
protected float grayValue
protected int colorScale
protected java.util.Vector<ch.unizh.ini.jaer.projects.pawtracker.PawTrackerStereoBoard2.FingerCluster> fingers
Constructor Detail |
---|
public PawTrackerStereoBoard2(AEChip chip)
Method Detail |
---|
public void initFilter()
EventFilter
initFilter
in class EventFilter
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getFilterState()
EventFilter
getFilterState
in class EventFilter
public void resetFilter()
EventFilter
resetFilter
in class EventFilter
public EventPacket filterPacket(EventPacket in)
EventFilter2D
filterPacket
in class EventFilter2D
in
- the input packet
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
public void validateParameterChanges()
public float computeRangeTotal(int radius)
protected void processEvent(BinocularEvent e)
protected int rotateYonX(int y, int z, int yRotationCenter, int zRotationCenter, float angle)
protected int rotateZonX(int y, int z, int yRotationCenter, int zRotationCenter, float angle)
protected int rotateXonY(int x, int z, int xRotationCenter, int zRotationCenter, float angle)
protected int rotateZonY(int x, int z, int xRotationCenter, int zRotationCenter, float angle)
protected float distanceBetween(int x1, int y1, int x2, int y2)
protected float distanceBetween(int x1, int y1, int z1, int x2, int y2, int z2)
protected float direction(float x0, float y0, float x1, float y1)
protected float orientation(int x0, int y0, int x1, int y1)
protected float decayedValue(float value, int time)
public void annotate(java.awt.Graphics2D g)
annotate
in interface FrameAnnotater
g
- the Graphics2D contextprotected void drawBoxCentered(javax.media.opengl.GL gl, int x, int y, int sx, int sy)
protected void drawBox(javax.media.opengl.GL gl, int x, int x2, int y, int y2)
public void annotate(javax.media.opengl.GLAutoDrawable drawable)
FrameAnnotater
GL gl = drawable.getGL(); gl.glBegin(GL.GL_LINES); gl.glColor3f(.5f, .5f, 0); gl.glVertex2f(0, 0); gl.glVertex2f(getSizeX() - 1, getSizeY() - 1); gl.glEnd();
annotate
in interface FrameAnnotater
drawable
- the OpenGL drawable components, e.g., GLCanvaspublic void annotate(float[][][] frame)
annotate
in interface FrameAnnotater
frame
- the RGB pixel information. First dimension is Y, second is X, third is RGBpublic boolean isLogDataEnabled()
public void setLogDataEnabled(boolean logDataEnabled)
public void setDecayTimeLimit(int decayTimeLimit)
public int getDecayTimeLimit()
public void setIntensityZoom(int intensityZoom)
public int getIntensityZoom()
public void setEvent_strength(float event_strength)
public float getEvent_strength()
public boolean isResetPawTracking()
public void setResetPawTracking(boolean resetPawTracking)
public boolean isRestart()
public void setRestart(boolean restart)
public void setShowCorrectionGradient(boolean showCorrectionGradient)
public boolean getshowCorrectionGradient()
public void setShowCorrectionMatrix(boolean showCorrectionMatrix)
public boolean getShowCorrectionMatrix()
public void setScaleAcc(boolean scaleAcc)
public boolean isScaleAcc()
public void setShowAcc(boolean showAcc)
public boolean isShowAcc()
public void setShowOnlyAcc(boolean showOnlyAcc)
public boolean isShowOnlyAcc()
public void setShowDecay(boolean showDecay)
public boolean isShowDecay()
public void setUseFilter(boolean useFilter)
public boolean isUseFilter()
public void setDecayOn(boolean decayOn)
public boolean isDecayOn()
public void setShowCage(boolean showCage)
public boolean isShowCage()
public void setShowRetina(boolean showRetina)
public boolean isShowRetina()
public void setShow2DWindow(boolean show2DWindow)
public boolean isShow2DWindow()
public void setShow3DWindow(boolean show3DWindow)
public boolean isShow3DWindow()
public void setShowRight(boolean showRight)
public boolean isShowRight()
public void setShowFingers(boolean showFingers)
public boolean isShowFingers()
public void setShowZones(boolean showZones)
public boolean isShowZones()
public void setShowAll(boolean showAll)
public boolean isShowAll()
public void setUseFastMatching(boolean useFastMatching)
public boolean isUseFastMatching()
public void setShowRLColors(boolean showRLColors)
public boolean isShowRLColors()
public void setShowAxes(boolean showAxes)
public boolean isShowAxes()
public int getLowFilter_radius()
public void setLowFilter_radius(int lowFilter_radius)
public int getLowFilter_density()
public void setLowFilter_density(int lowFilter_density)
public float getLowFilter_threshold()
public void setLowFilter_threshold(float lowFilter_threshold)
public float getBrightness()
public void setBrightness(float brightness)
public void setAlpha(float alpha)
public float getAlpha()
public void setIntensity(float intensity)
public float getIntensity()
public void setValueThreshold(float valueThreshold)
public float getValueThreshold()
public void setMax_finger_clusters(int max_finger_clusters)
public int getMax_finger_clusters()
public void setCage_distance(float cage_distance)
public float getCage_distance()
public float getRetina_tilt_angle()
public void setRetina_tilt_angle(float retina_tilt_angle)
public void setRetina_height(float retina_height)
public float getRetina_height()
public void setCage_door_height(float cage_door_height)
public float getCage_door_height()
public void setCage_height(float cage_height)
public float getCage_height()
public void setCage_width(float cage_width)
public float getCage_width()
public void setCage_platform_length(float cage_platform_length)
public float getCage_platform_length()
public void setCage_door_width(float cage_door_width)
public float getCage_door_width()
public void setYLeftCorrection(int yLeftCorrection)
public int getYLeftCorrection()
public void setYRightCorrection(int yRightCorrection)
public int getYRightCorrection()
public void setYCurveFactor(float yCurveFactor)
public float getYCurveFactor()
public void setColorizeFactor(float colorizeFactor)
public float getColorizeFactor()
public void setShadowFactor(float shadowFactor)
public float getShadowFactor()
public void setZFactor(int zFactor)
public int getZFactor()
public void setValueMargin(float valueMargin)
public float getValueMargin()
public void setCorrectLeftAngle(float correctLeftAngle)
public float getCorrectLeftAngle()
public void setCorrectRightAngle(float correctRightAngle)
public float getCorrectRightAngle()
public void setColorizePeriod(int colorizePeriod)
public int getColorizePeriod()
public void setHighlightDecay(boolean highlightDecay)
public boolean isHighlightDecay()
public void setShowZColor(boolean showZColor)
public boolean isShowZColor()
public void setShowYColor(boolean showYColor)
public boolean isShowYColor()
public void setShowXColor(boolean showXColor)
public boolean isShowXColor()
public void setCorrectY(boolean correctY)
public boolean isCorrectY()
public void setCube_size(int cube_size)
public int getCube_size()
public void setNotCrossing(boolean notCrossing)
public boolean isNotCrossing()
public float getFinger_mix()
public void setFinger_mix(float finger_mix)
public int getFinger_surround()
public void setFinger_surround(int finger_surround)
public int getTracker_timeLife()
public void setTracker_timeLife(int tracker_timeLife)
public void setUseGroups(boolean useGroups)
public boolean isUseGroups()
public void setGoThroughMode(boolean goThroughMode)
public boolean isGoThroughMode()
public void setUseCorrections(boolean useCorrections)
public boolean isUseCorrections()
public float getFocal_length()
public void setFocal_length(float focal_length)
public void setRetinae_distance(float retinae_distance)
public float getRetinae_distance()
public void setPixel_size(float pixel_size)
public float getPixel_size()
public void setRetina_angle(float retina_angle)
public float getRetina_angle()
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |