|
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.PawTrackerStereoBoard4
public class PawTrackerStereoBoard4
Tracks Rat's Paw
Nested Class Summary | |
---|---|
class |
PawTrackerStereoBoard4.Cage
additional classes |
class |
PawTrackerStereoBoard4.Point
Point : all data about a point in opengl 3D space |
class |
PawTrackerStereoBoard4.Voxel
additional classes |
class |
PawTrackerStereoBoard4.VoxelTable
additional classes |
class |
PawTrackerStereoBoard4.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.PawTrackerStereoBoard4.PawCluster> |
paws
|
protected ch.unizh.ini.jaer.projects.pawtracker.PawTrackerStereoBoard4.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 | |
---|---|
PawTrackerStereoBoard4(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)
|
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 |
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()
|
int |
getGrasp_timelength_min()
|
float |
getIntensity()
|
int |
getIntensityZoom()
|
int |
getMax_finger_clusters()
|
int |
getNb_x_voxels()
|
int |
getNb_y_voxels()
|
int |
getNb_z_voxels()
|
float |
getPaw_mix_off_evts()
|
float |
getPaw_mix_on_evts()
|
int |
getPaw_surround()
|
float |
getPixel_size()
|
float |
getPlane_tracker_mix()
|
int |
getRecordUpTo()
|
float |
getRetina_angle()
|
float |
getRetina_height()
|
float |
getRetina_tilt_angle()
|
float |
getRetinae_distance()
|
float |
getScoreDisplayThreshold()
|
float |
getScoreThreshold()
|
float |
getShadowFactor()
|
int |
getStart_min_events()
|
int |
getStart_z_displacement()
|
float |
getTimeDelay()
|
int |
getTracker_lifeTime()
|
int |
getTracker_prelifeTime()
|
int |
getTracker_viable_nb_events()
|
float |
getTrackerSubsamplingDistance()
|
float |
getValueThreshold()
|
float |
getVoxel_size()
|
int |
getVoxels_x0()
|
int |
getVoxels_y0()
|
int |
getVoxels_z0()
|
float |
getVoxelThreshold()
|
float |
getX_finger_dist_min()
|
float |
getY_finger_dist_min()
|
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 |
isCheckNose()
|
boolean |
isDetectGrasp()
|
boolean |
isLogDataEnabled()
|
boolean |
isRecordTrackerData()
|
boolean |
isResetClusters()
|
boolean |
isResetPawTracking()
|
boolean |
isRestart()
|
boolean |
isShow2DWindow()
|
boolean |
isShow3DWindow()
|
boolean |
isShowAll()
|
boolean |
isShowAxes()
|
boolean |
isShowCage()
|
boolean |
isShowFingers()
|
boolean |
isShowFingersRange()
|
boolean |
isShowRetina()
|
boolean |
isShowScore()
|
boolean |
isShowXColor()
|
boolean |
isShowYColor()
|
boolean |
isShowZColor()
|
boolean |
isTrackFingers()
|
boolean |
isTrackZPlane()
|
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 void |
resetVoxelsFor(int pix,
int time,
int leftOrRight)
|
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 |
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 |
setCheckNose(boolean checkNose)
|
void |
setColorizeFactor(float colorizeFactor)
|
void |
setColorizePeriod(int colorizePeriod)
|
void |
setCube_size(int cube_size)
|
void |
setDetectGrasp(boolean detectGrasp)
|
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 |
setGrasp_timelength_min(int grasp_timelength_min)
|
void |
setIntensity(float intensity)
|
void |
setIntensityZoom(int intensityZoom)
|
void |
setLogDataEnabled(boolean logDataEnabled)
|
void |
setMax_finger_clusters(int max_finger_clusters)
|
void |
setNb_x_voxels(int nb_x_voxels)
|
void |
setNb_y_voxels(int nb_y_voxels)
|
void |
setNb_z_voxels(int nb_z_voxels)
|
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 |
setPlane_tracker_mix(float plane_tracker_mix)
|
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 |
setScoreDisplayThreshold(float scoreDisplayThreshold)
|
void |
setScoreThreshold(float scoreThreshold)
|
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 |
setShowFingers(boolean showFingers)
|
void |
setShowFingersRange(boolean showFingersRange)
|
void |
setShowRetina(boolean showRetina)
|
void |
setShowScore(boolean showScore)
|
void |
setShowXColor(boolean showXColor)
|
void |
setShowYColor(boolean showYColor)
|
void |
setShowZColor(boolean showZColor)
|
void |
setStart_min_events(int start_min_events)
|
void |
setStart_z_displacement(int start_z_displacement)
|
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 |
setTrackerSubsamplingDistance(float trackerSubsamplingDistance)
|
void |
setTrackFingers(boolean trackFingers)
|
void |
setTrackZPlane(boolean trackZPlane)
|
void |
setValueThreshold(float valueThreshold)
|
void |
setVoxel_size(float voxel_size)
|
void |
setVoxels_x0(int voxels_x0)
|
void |
setVoxels_y0(int voxels_y0)
|
void |
setVoxels_z0(int voxels_z0)
|
void |
setVoxelThreshold(float voxelThreshold)
|
void |
setX_finger_dist_min(float x_finger_dist_min)
|
void |
setY_finger_dist_min(float y_finger_dist_min)
|
void |
setZ_finger_dist_min(float z_finger_dist_min)
|
java.lang.String |
toString()
|
PawTrackerStereoBoard4.Point |
triangulate(PawTrackerStereoBoard4.Point p1,
PawTrackerStereoBoard4.Point p2,
PawTrackerStereoBoard4.Point p3,
PawTrackerStereoBoard4.Point p4)
|
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.PawTrackerStereoBoard4.PawCluster> paws
protected ch.unizh.ini.jaer.projects.pawtracker.PawTrackerStereoBoard4.PlaneTracker planeTracker
Constructor Detail |
---|
public PawTrackerStereoBoard4(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)
protected void resetVoxelsFor(int pix, int time, int leftOrRight)
public PawTrackerStereoBoard4.Point triangulate(PawTrackerStereoBoard4.Point p1, PawTrackerStereoBoard4.Point p2, PawTrackerStereoBoard4.Point p3, PawTrackerStereoBoard4.Point p4)
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)
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 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 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 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 getPlane_tracker_mix()
public void setPlane_tracker_mix(float plane_tracker_mix)
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 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 void setTrackZPlane(boolean trackZPlane)
public boolean isTrackZPlane()
public void setDetectGrasp(boolean detectGrasp)
public boolean isDetectGrasp()
public void setCheckNose(boolean checkNose)
public boolean isCheckNose()
public int getStart_z_displacement()
public void setStart_z_displacement(int start_z_displacement)
public int getStart_min_events()
public void setStart_min_events(int start_min_events)
public int getGrasp_timelength_min()
public void setGrasp_timelength_min(int grasp_timelength_min)
public void setRecordUpTo(int recordUpTo)
public int getNb_x_voxels()
public void setNb_x_voxels(int nb_x_voxels)
public int getNb_y_voxels()
public void setNb_y_voxels(int nb_y_voxels)
public int getNb_z_voxels()
public void setNb_z_voxels(int nb_z_voxels)
public int getRecordUpTo()
public void setVoxel_size(float voxel_size)
public float getVoxel_size()
public void setVoxelThreshold(float voxelThreshold)
public float getVoxelThreshold()
public void setScoreThreshold(float scoreThreshold)
public float getScoreThreshold()
public void setScoreDisplayThreshold(float scoreDisplayThreshold)
public float getScoreDisplayThreshold()
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 getVoxels_x0()
public void setVoxels_x0(int voxels_x0)
public int getVoxels_y0()
public void setVoxels_y0(int voxels_y0)
public int getVoxels_z0()
public void setVoxels_z0(int voxels_z0)
public int getBuffer_size()
public void setBuffer_size(int buffer_size)
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |