|
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.PawTrackerStereoBoard5
public class PawTrackerStereoBoard5
Tracks Rat's Paw
Nested Class Summary | |
---|---|
class |
PawTrackerStereoBoard5.Cage
additional classes |
class |
PawTrackerStereoBoard5.EpipolarFrame
|
class |
PawTrackerStereoBoard5.Point3D
Point3D : all data about a point in opengl 3D space |
class |
PawTrackerStereoBoard5.Zone
additional classes |
Field Summary | |
---|---|
protected AEChip |
chip
|
protected int |
colorScale
|
protected int |
DELETE_LINK
|
protected double |
EPS
|
protected float |
grayValue
|
protected int |
labelNumber
|
protected int |
LEFT
|
protected int |
LEFT_MOST_METHOD
|
static java.text.DateFormat |
loggingFilenameDateFormat
|
protected int |
NO_LINK
|
protected java.util.Vector<ch.unizh.ini.jaer.projects.pawtracker.PawTrackerStereoBoard5.PawCluster> |
paws
|
protected ch.unizh.ini.jaer.projects.pawtracker.PawTrackerStereoBoard5.PlaneTracker |
planeTracker
|
protected int |
RIGHT
|
protected int |
RIGHT_MOST_METHOD
|
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 | |
---|---|
PawTrackerStereoBoard5(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 |
void |
closeLogData()
|
float |
computeRangeTotal(int radius)
|
protected float |
direction(float x0,
float y0,
float x1,
float y1)
|
void |
displayAllEventTrackers(javax.media.opengl.GL gl)
|
protected float |
distanceBetween(float x1,
float y1,
float x2,
float y2)
|
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)
|
void |
doLog()
log |
void |
doPause()
|
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()
|
int |
getBuffer_size()
|
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()
|
int |
getCube_size()
|
float |
getEventTrackerMix()
|
int |
getEventTrackerSize()
|
float |
getExpansion_mix()
|
java.lang.Object |
getFilterState()
should return the filter state in some useful form |
float |
getFinger_mix()
|
int |
getFinger_surround()
|
float |
getFocal_length()
|
int |
getGrasp_max_elevation()
|
float |
getIntensity()
|
int |
getIntensityZoom()
|
int |
getMax_finger_clusters()
|
int |
getMaxNbEventTracker()
|
float |
getPaw_mix_off_evts()
|
float |
getPaw_mix_on_evts()
|
int |
getPaw_surround()
|
float |
getPixel_size()
|
int |
getRecordUpTo()
|
float |
getRetina_angle()
|
float |
getRetina_height()
|
float |
getRetina_tilt_angle()
|
float |
getRetinae_distance()
|
float |
getShadowFactor()
|
int |
getStart_min_events()
|
float |
getTimeDelay()
|
int |
getTracker_lifeTime()
|
int |
getTracker_prelifeTime()
|
int |
getTracker_viable_nb_events()
|
int |
getTrackerLineWidth()
|
float |
getTrackerSubsamplingDistance()
|
float |
getValueThreshold()
|
float |
getVelocity_mix()
|
float |
getVelocityFactor()
|
float |
getVelocityMin()
|
float |
getVelocityThreshold()
|
float |
getX_finger_dist_min()
|
float |
getY_finger_dist_min()
|
int |
getY_monitor()
|
float |
getZ_finger_dist_min()
|
void |
initFilter()
this should allocate and initialize memory: it may be called when the chip e.g. |
void |
initLogData()
|
boolean |
isLogDataEnabled()
|
boolean |
isRecordTrackerData()
|
boolean |
isResetClusters()
|
boolean |
isResetPawTracking()
|
boolean |
isRestart()
|
boolean |
isShow2DWindow()
|
boolean |
isShow3DWindow()
|
boolean |
isShowAll()
|
boolean |
isShowAxes()
|
boolean |
isShowCage()
|
boolean |
isShowEvenTrackers()
|
boolean |
isShowFingers()
|
boolean |
isShowFingersRange()
|
boolean |
isShowRetina()
|
boolean |
isShowScore()
|
boolean |
isShowVelocity()
|
boolean |
isShowXColor()
|
boolean |
isShowYColor()
|
boolean |
isShowZColor()
|
boolean |
isTrackFingers()
|
boolean |
isUseVelocity()
|
void |
logData(java.lang.String s)
|
protected float |
orientation(int x0,
int y0,
int x1,
int y1)
|
void |
printClusterData()
|
protected void |
processEvent(BinocularEvent e)
|
void |
resetFilter()
should reset the filter to initial state |
protected float |
rotateXonY(float x,
float z,
float xRotationCenter,
float zRotationCenter,
float angle)
|
protected float |
rotateYonX(float y,
float z,
float yRotationCenter,
float zRotationCenter,
float angle)
|
protected float |
rotateZonX(float y,
float z,
float yRotationCenter,
float zRotationCenter,
float angle)
|
protected float |
rotateZonY(float x,
float z,
float xRotationCenter,
float zRotationCenter,
float angle)
|
void |
setAlpha(float alpha)
|
void |
setBrightness(float brightness)
|
void |
setBuffer_size(int buffer_size)
|
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 |
setCube_size(int cube_size)
|
void |
setEventTrackerMix(float eventTrackerMix)
|
void |
setEventTrackerSize(int eventTrackerSize)
|
void |
setExpansion_mix(float expansion_mix)
|
void |
setFinger_mix(float finger_mix)
|
void |
setFinger_surround(int finger_surround)
|
void |
setFocal_length(float focal_length)
|
void |
setGrasp_max_elevation(int grasp_max_elevation)
|
void |
setIntensity(float intensity)
|
void |
setIntensityZoom(int intensityZoom)
|
void |
setLogDataEnabled(boolean logDataEnabled)
|
void |
setMax_finger_clusters(int max_finger_clusters)
|
void |
setMaxNbEventTracker(int maxNbEventTracker)
|
void |
setPaw_mix_off_evts(float paw_mix_off_evts)
|
void |
setPaw_mix_on_evts(float paw_mix_on_evts)
|
void |
setPaw_surround(int paw_surround)
|
void |
setPixel_size(float pixel_size)
|
void |
setRecordTrackerData(boolean recordTrackerData)
|
void |
setRecordUpTo(int recordUpTo)
|
void |
setResetClusters(boolean resetClusters)
|
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 |
setShadowFactor(float shadowFactor)
|
void |
setShow2DWindow(boolean show2DWindow)
|
void |
setShow3DWindow(boolean show3DWindow)
|
void |
setShowAll(boolean showAll)
|
void |
setShowAxes(boolean showAxes)
|
void |
setShowCage(boolean showCage)
|
void |
setShowEvenTrackers(boolean showEvenTrackers)
|
void |
setShowFingers(boolean showFingers)
|
void |
setShowFingersRange(boolean showFingersRange)
|
void |
setShowRetina(boolean showRetina)
|
void |
setShowScore(boolean showScore)
|
void |
setShowVelocity(boolean showVelocity)
|
void |
setShowXColor(boolean showXColor)
|
void |
setShowYColor(boolean showYColor)
|
void |
setShowZColor(boolean showZColor)
|
void |
setStart_min_events(int start_min_events)
|
void |
setTimeDelay(float timeDelay)
|
void |
setTracker_lifeTime(int tracker_lifeTime)
|
void |
setTracker_prelifeTime(int tracker_prelifeTime)
|
void |
setTracker_viable_nb_events(int tracker_viable_nb_events)
|
void |
setTrackerLineWidth(int trackerLineWidth)
|
void |
setTrackerSubsamplingDistance(float trackerSubsamplingDistance)
|
void |
setTrackFingers(boolean trackFingers)
|
void |
setUseVelocity(boolean useVelocity)
|
void |
setValueThreshold(float valueThreshold)
|
void |
setVelocity_mix(float velocity_mix)
|
void |
setVelocityFactor(float velocityFactor)
|
void |
setVelocityMin(float velocityMin)
|
void |
setVelocityThreshold(float velocityThreshold)
|
void |
setX_finger_dist_min(float x_finger_dist_min)
|
void |
setY_finger_dist_min(float y_finger_dist_min)
|
void |
setY_monitor(int y_monitor)
|
void |
setZ_finger_dist_min(float z_finger_dist_min)
|
java.lang.String |
toString()
|
PawTrackerStereoBoard5.Point3D |
triangulate(PawTrackerStereoBoard5.Point3D p2,
PawTrackerStereoBoard5.Point3D p1,
PawTrackerStereoBoard5.Point3D p4,
PawTrackerStereoBoard5.Point3D p3)
|
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 |
---|
public static java.text.DateFormat loggingFilenameDateFormat
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 float grayValue
protected int colorScale
protected java.util.Vector<ch.unizh.ini.jaer.projects.pawtracker.PawTrackerStereoBoard5.PawCluster> paws
protected ch.unizh.ini.jaer.projects.pawtracker.PawTrackerStereoBoard5.PlaneTracker planeTracker
Constructor Detail |
---|
public PawTrackerStereoBoard5(AEChip chip)
Method Detail |
---|
public void doLog()
public void doPause()
public void initLogData()
public void logData(java.lang.String s)
public void closeLogData()
public void initFilter()
EventFilter
initFilter
in class EventFilter
public void printClusterData()
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)
public PawTrackerStereoBoard5.Point3D triangulate(PawTrackerStereoBoard5.Point3D p2, PawTrackerStereoBoard5.Point3D p1, PawTrackerStereoBoard5.Point3D p4, PawTrackerStereoBoard5.Point3D p3)
protected float rotateYonX(float y, float z, float yRotationCenter, float zRotationCenter, float angle)
protected float rotateZonX(float y, float z, float yRotationCenter, float zRotationCenter, float angle)
protected float rotateXonY(float x, float z, float xRotationCenter, float zRotationCenter, float angle)
protected float rotateZonY(float x, float z, float xRotationCenter, float zRotationCenter, float angle)
protected float distanceBetween(int x1, int y1, int x2, int y2)
protected float distanceBetween(float x1, float y1, float x2, float 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)
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 void displayAllEventTrackers(javax.media.opengl.GL gl)
public boolean isUseVelocity()
public void setUseVelocity(boolean useVelocity)
public boolean isLogDataEnabled()
public void setLogDataEnabled(boolean logDataEnabled)
public void setIntensityZoom(int intensityZoom)
public int getIntensityZoom()
public boolean isResetPawTracking()
public void setResetPawTracking(boolean resetPawTracking)
public boolean isResetClusters()
public void setResetClusters(boolean resetClusters)
public boolean isRestart()
public void setRestart(boolean restart)
public void setShowEvenTrackers(boolean showEvenTrackers)
public boolean isShowEvenTrackers()
public void setShowVelocity(boolean showVelocity)
public boolean isShowVelocity()
public void setShowScore(boolean showScore)
public boolean isShowScore()
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 setShowFingers(boolean showFingers)
public boolean isShowFingers()
public void setShowFingersRange(boolean showFingersRange)
public boolean isShowFingersRange()
public void setShowAll(boolean showAll)
public boolean isShowAll()
public void setShowAxes(boolean showAxes)
public boolean isShowAxes()
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 setGrasp_max_elevation(int grasp_max_elevation)
public int getGrasp_max_elevation()
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 setColorizeFactor(float colorizeFactor)
public float getColorizeFactor()
public void setShadowFactor(float shadowFactor)
public float getShadowFactor()
public void setColorizePeriod(int colorizePeriod)
public int getColorizePeriod()
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 setTrackFingers(boolean trackFingers)
public boolean isTrackFingers()
public void setCube_size(int cube_size)
public int getCube_size()
public float getEventTrackerMix()
public void setEventTrackerMix(float eventTrackerMix)
public float getFinger_mix()
public void setFinger_mix(float finger_mix)
public float getPaw_mix_on_evts()
public void setPaw_mix_on_evts(float paw_mix_on_evts)
public float getPaw_mix_off_evts()
public void setPaw_mix_off_evts(float paw_mix_off_evts)
public float getExpansion_mix()
public void setExpansion_mix(float expansion_mix)
public float getVelocity_mix()
public void setVelocity_mix(float velocity_mix)
public float getVelocityFactor()
public void setVelocityFactor(float velocityFactor)
public float getVelocityMin()
public void setVelocityMin(float velocityMin)
public float getVelocityThreshold()
public void setVelocityThreshold(float velocityThreshold)
public float getTrackerSubsamplingDistance()
public void setTrackerSubsamplingDistance(float trackerSubsamplingDistance)
public int getFinger_surround()
public void setFinger_surround(int finger_surround)
public int getPaw_surround()
public void setPaw_surround(int paw_surround)
public int getY_monitor()
public void setY_monitor(int y_monitor)
public int getTracker_lifeTime()
public void setTracker_lifeTime(int tracker_lifeTime)
public int getTracker_prelifeTime()
public void setTracker_prelifeTime(int tracker_prelifeTime)
public int getTracker_viable_nb_events()
public void setTracker_viable_nb_events(int tracker_viable_nb_events)
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()
public void setRecordTrackerData(boolean recordTrackerData)
public boolean isRecordTrackerData()
public int getEventTrackerSize()
public void setEventTrackerSize(int eventTrackerSize)
public int getTrackerLineWidth()
public void setTrackerLineWidth(int trackerLineWidth)
public int getStart_min_events()
public void setStart_min_events(int start_min_events)
public void setRecordUpTo(int recordUpTo)
public int getRecordUpTo()
public void setTimeDelay(float timeDelay)
public float getTimeDelay()
public void setX_finger_dist_min(float x_finger_dist_min)
public float getX_finger_dist_min()
public void setY_finger_dist_min(float y_finger_dist_min)
public float getY_finger_dist_min()
public void setZ_finger_dist_min(float z_finger_dist_min)
public float getZ_finger_dist_min()
public int getBuffer_size()
public void setBuffer_size(int buffer_size)
public int getMaxNbEventTracker()
public void setMaxNbEventTracker(int maxNbEventTracker)
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |