|
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.event.BasicEvent
net.sf.jaer.event.TypedEvent
net.sf.jaer.event.PolarityEvent
net.sf.jaer.event.OrientationEvent
net.sf.jaer.event.MotionOrientationEvent
public class MotionOrientationEvent
Represents an event with direction of motion and delay
| Nested Class Summary | |
|---|---|
static class |
MotionOrientationEvent.Dir
represents a direction. |
| Nested classes/interfaces inherited from class net.sf.jaer.event.OrientationEvent |
|---|
OrientationEvent.UnitVector |
| Nested classes/interfaces inherited from class net.sf.jaer.event.PolarityEvent |
|---|
PolarityEvent.Polarity |
| Field Summary | |
|---|---|
short |
delay
the 'delay' value of this cell, an analog (but quantized) quantity that signals the time delay assoicated with this event. |
MotionOrientationEvent.Dir |
dir
unit vector of direction of motion |
byte |
direction
the direciton of motion, a quantized value indexing into Dir |
byte |
distance
the distance associated with this motion event. |
float |
speed
speed in pixels per second |
static MotionOrientationEvent.Dir[] |
unitDirs
An array of 8 nearest-neighbor unitDirs going CCW from down (south) direction. |
java.awt.geom.Point2D.Float |
velocity
stores computed velocity (DirectionSelectiveFilter computes it). |
| Fields inherited from class net.sf.jaer.event.OrientationEvent |
|---|
hasOrientation, orientation, unitVectors |
| Fields inherited from class net.sf.jaer.event.PolarityEvent |
|---|
polarity |
| Fields inherited from class net.sf.jaer.event.TypedEvent |
|---|
type |
| Fields inherited from class net.sf.jaer.event.BasicEvent |
|---|
timestamp, x, y |
| Constructor Summary | |
|---|---|
MotionOrientationEvent()
Creates a new instance of MotionOrientationEvent |
|
| Method Summary | |
|---|---|
static java.awt.geom.Point2D.Float |
computeMotionVector(MotionOrientationEvent e)
|
static float |
computeSpeedPPS(MotionOrientationEvent e)
|
void |
copyFrom(BasicEvent src)
copies fields from source event src to this event |
int |
getNumCellTypes()
Returns the number of types this type of event has, e.g. |
int |
getType()
Orientation type output takes values 0-3; 0 is a horizontal edge (0 deg), 1 is an edge tilted up and to right (rotated CCW 45 deg), 2 is a vertical edge (rotated 90 deg), 3 is tilted up and to left (rotated 135 deg from horizontal edge). |
java.lang.String |
toString()
|
| Methods inherited from class net.sf.jaer.event.BasicEvent |
|---|
getTimestamp, getX, getY, setTimestamp, setX, setY |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public byte direction
public MotionOrientationEvent.Dir dir
public short delay
public byte distance
public float speed
public java.awt.geom.Point2D.Float velocity
public static final MotionOrientationEvent.Dir[] unitDirs
these unitDirs are indexed by inputType, then by (inputType+4)%8 (opposite direction) when input type is orientation, then input type 0 is 0 deg horiz edge, so first index could be to down, second to up so list should start with down IMPORTANT, this order *depends* on DirectionSelectiveFilter order of orientations
| Constructor Detail |
|---|
public MotionOrientationEvent()
| Method Detail |
|---|
public int getType()
OrientationEvent
getType in interface EventInterface<BasicEvent>getType in class OrientationEventOrientationEvent.hasOrientationpublic java.lang.String toString()
toString in class OrientationEventpublic int getNumCellTypes()
EventInterface
getNumCellTypes in interface EventInterface<BasicEvent>getNumCellTypes in class OrientationEventpublic void copyFrom(BasicEvent src)
copyFrom in interface EventInterface<BasicEvent>copyFrom in class OrientationEventsrc - the event to copy frompublic static float computeSpeedPPS(MotionOrientationEvent e)
public static java.awt.geom.Point2D.Float computeMotionVector(MotionOrientationEvent e)
|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||