|
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
public class OrientationEvent
Represents an event with an orientation that can take 4 values.
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).
| Nested Class Summary | |
|---|---|
static class |
OrientationEvent.UnitVector
represents a unit orientation. |
| Nested classes/interfaces inherited from class net.sf.jaer.event.PolarityEvent |
|---|
PolarityEvent.Polarity |
| Field Summary | |
|---|---|
boolean |
hasOrientation
Defaults to true; set to false to indicate unknown orientation. |
byte |
orientation
The orientation value. |
static OrientationEvent.UnitVector[] |
unitVectors
An array of 4 nearest-neighbor unit vectors going CCW from horizontal. |
| 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 | |
|---|---|
OrientationEvent()
Creates a new instance of OrientationEvent |
|
| Method Summary | |
|---|---|
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 orientation
public boolean hasOrientation
public static final OrientationEvent.UnitVector[] unitVectors
these unitDirs are indexed by inputType, then by (inputType+4)%4 (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
| Constructor Detail |
|---|
public OrientationEvent()
| Method Detail |
|---|
public int getType()
getType in interface EventInterface<BasicEvent>getType in class PolarityEventhasOrientationpublic java.lang.String toString()
toString in class PolarityEventpublic int getNumCellTypes()
EventInterface
getNumCellTypes in interface EventInterface<BasicEvent>getNumCellTypes in class PolarityEventpublic void copyFrom(BasicEvent src)
copyFrom in interface EventInterface<BasicEvent>copyFrom in class PolarityEventsrc - the event to copy from
|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||