|
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.tracking.MultiLineClusterTracker.LineCluster
public class MultiLineClusterTracker.LineCluster
Represents a single tracked line. It is characterized mainly by the normal to it from the chip image LL corner. rhoPixels is the length of the normal in pixels and thetaRad is the angle of the normal in radians CCW from x-axis.
Field Summary | |
---|---|
protected java.awt.Color |
color
|
protected int |
firstTimestamp
|
protected float |
instantaneousEventRate
|
protected float |
instantaneousISI
|
protected int |
lastTimestamp
|
double |
length
|
java.awt.geom.Point2D.Float |
location
center or average line location of cluster in pixels |
protected int |
MAX_PATH_LENGTH
|
protected int |
numEvents
|
java.awt.geom.Point2D.Float |
velocity
velocity of cluster in pixels/tick, where tick is timestamp tick (usually microseconds) |
Constructor Summary | |
---|---|
MultiLineClusterTracker.LineCluster()
|
|
MultiLineClusterTracker.LineCluster(MultiLineClusterTracker.LineCluster one,
MultiLineClusterTracker.LineCluster two)
Constructs a cluster by merging two clusters. |
|
MultiLineClusterTracker.LineCluster(net.sf.jaer.eventprocessing.tracking.MultiLineClusterTracker.LineSegment s)
|
Method Summary | |
---|---|
void |
addSegment(net.sf.jaer.eventprocessing.tracking.MultiLineClusterTracker.LineSegment seg)
Adds the segment to this LineCluster |
double |
distanceAbsTo(MultiLineClusterTracker.LineCluster c)
|
double |
distanceAbsTo(net.sf.jaer.eventprocessing.tracking.MultiLineClusterTracker.LineSegment c)
|
double |
distanceMetric(double dRhoPixels,
double dThetaRad)
computes metric of distance in rho/theta space, normalizing each by appropriate size: rho by chip.getMaxSize() and theta by Math.PI. |
float |
getAvgEventRate()
|
float |
getAvgISI()
|
int |
getClusterNumber()
|
java.awt.Color |
getColor()
|
int |
getLastEventTimestamp()
|
int |
getLifetime()
|
java.awt.geom.Point2D.Float |
getLocation()
|
double |
getRhoPixels()
length of normal to line in pixels from chip LL corner |
double |
getThetaDeg()
Angle of normal to line CCW from x axis with 0 and 180 being horizontal and 90 being vertical. |
double |
getThetaRad()
Angle of normal to line CCW from x axis with 0 and PI being horizontal and PI/2 being vertical. |
java.awt.geom.Point2D.Float |
getVelocity()
|
boolean |
isOverlapping(MultiLineClusterTracker.LineCluster c)
Returns true if cluster overlapped another cluster |
boolean |
isVisible()
|
void |
setAvgEventRate(float avgEventRate)
|
void |
setAvgISI(float avgISI)
|
void |
setClusterNumber(int clusterNumber)
|
void |
setColor(java.awt.Color color)
|
void |
setColorAccordingToAge()
Sets color according to age of cluster |
void |
setLocation(java.awt.geom.Point2D.Float l)
|
void |
setRhoPixels(double rhoPixels)
|
void |
setThetaRad(double thetaRad)
|
java.lang.String |
toString()
|
void |
updatePath()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.awt.geom.Point2D.Float location
public java.awt.geom.Point2D.Float velocity
protected final int MAX_PATH_LENGTH
protected java.awt.Color color
protected int numEvents
protected int lastTimestamp
protected int firstTimestamp
protected float instantaneousEventRate
protected float instantaneousISI
public double length
Constructor Detail |
---|
public MultiLineClusterTracker.LineCluster()
public MultiLineClusterTracker.LineCluster(net.sf.jaer.eventprocessing.tracking.MultiLineClusterTracker.LineSegment s)
public MultiLineClusterTracker.LineCluster(MultiLineClusterTracker.LineCluster one, MultiLineClusterTracker.LineCluster two)
one
- the first clustertwo
- the second clusterMethod Detail |
---|
public int getLastEventTimestamp()
public void addSegment(net.sf.jaer.eventprocessing.tracking.MultiLineClusterTracker.LineSegment seg)
seg
- the line segmentpublic double distanceMetric(double dRhoPixels, double dThetaRad)
dRhoPixels
- distance in pixels, assumed non negativedThetaRad
- distance in radians, assumed non negativepublic double distanceAbsTo(MultiLineClusterTracker.LineCluster c)
public double distanceAbsTo(net.sf.jaer.eventprocessing.tracking.MultiLineClusterTracker.LineSegment c)
public boolean isOverlapping(MultiLineClusterTracker.LineCluster c)
c
- the other clusterpublic final java.awt.geom.Point2D.Float getLocation()
public void setLocation(java.awt.geom.Point2D.Float l)
public final boolean isVisible()
public final int getLifetime()
public final void updatePath()
public java.lang.String toString()
toString
in class java.lang.Object
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
public java.awt.geom.Point2D.Float getVelocity()
public void setColorAccordingToAge()
public int getClusterNumber()
public void setClusterNumber(int clusterNumber)
public float getAvgISI()
public void setAvgISI(float avgISI)
public float getAvgEventRate()
public void setAvgEventRate(float avgEventRate)
public double getThetaRad()
public void setThetaRad(double thetaRad)
public double getThetaDeg()
public double getRhoPixels()
public void setRhoPixels(double rhoPixels)
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |