|
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.aemonitor.AEPacket
ch.unizh.ini.jaer.projects.stereo3D.AEPacket3D
public class AEPacket3D
A structure containing a packer of AEs: addresses, timestamps.
The AE packet efficiently packages a set of events: rather than
using an object per event, it packs a lot of events into an object that references
arrays of primitives. These arrays can be newly allocated or statically
allocated to the capacity of the maximum buffer that is transferred from a device.
Callers must use AEPacket.getNumEvents() to find out the capacity of the packet in the case
that the arrays contain less events than their capacity, which is usually the case when the packet is reused
in a device acquisition.
These AEPacket3D are used only for packaged 3D events (reconstructed from 3D filters/tarckers). For processed events, see the net.sf.jaer.event package.
EventPacket| Field Summary | |
|---|---|
boolean |
overrunOccuredFlag
Signals that an overrun occured on this packet |
| Fields inherited from class net.sf.jaer.aemonitor.AEPacket |
|---|
capacity, events, numEvents, timestamps |
| Constructor Summary | |
|---|---|
AEPacket3D()
Creates a new instance of AEPacketRaw with 0 capacity |
|
AEPacket3D(int[] coordinates_x,
int[] coordinates_y,
int[] coordinates_z,
float[] values,
int[] timestamps)
|
|
AEPacket3D(int[] coordinates_x,
int[] coordinates_y,
int[] disparities,
int[] methods,
int[] lead_sides,
float[] values,
int[] timestamps)
Creates a new instance of AEPacketRaw from addresses and timestamps |
|
AEPacket3D(int size,
int type)
Creates a new instance of AEPacketRaw with an initial capacity |
|
| Method Summary | |
|---|---|
void |
addEvent(Event3D e)
|
protected void |
allocateArrays(int size)
|
void |
clear()
sets number of events to zero |
float[] |
ensureCapacity(float[] array,
int c)
|
int[] |
ensureCapacity(int[] array,
int c)
ensure the capacity given. |
int |
getCapacity()
|
int[] |
getCoordinates_x()
|
int[] |
getCoordinates_y()
|
int[] |
getCoordinates_z()
|
int[] |
getDisparities()
|
Event3D |
getEvent(int k)
uses local EventRaw to return packaged event. |
int[] |
getLead_sides()
|
int[] |
getMethods()
|
AEPacket3D |
getPrunedCopy()
Allocates a new AEPacketRaw and copies the events from this packet into the new one, returning it. |
int[] |
getTimestamps()
|
int |
getType()
|
float[] |
getValues()
|
void |
setCoordinates_x(int[] coordinates)
|
void |
setCoordinates_y(int[] coordinates)
|
void |
setCoordinates_z(int[] coordinates)
|
void |
setDisparities(int[] disparities)
|
void |
setLead_sides(int[] lead_sides)
|
void |
setMethods(int[] methods)
|
void |
setType(int type)
|
| Methods inherited from class net.sf.jaer.aemonitor.AEPacket |
|---|
addEvent, ensureCapacity, getDt, getFirstTimestamp, getLastTimestamp, getNumEvents, getTimestamp, setNumEvents, setTimestamps, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public boolean overrunOccuredFlag
| Constructor Detail |
|---|
public AEPacket3D()
public AEPacket3D(int[] coordinates_x,
int[] coordinates_y,
int[] disparities,
int[] methods,
int[] lead_sides,
float[] values,
int[] timestamps)
timestamps -
public AEPacket3D(int[] coordinates_x,
int[] coordinates_y,
int[] coordinates_z,
float[] values,
int[] timestamps)
public AEPacket3D(int size,
int type)
size - capacity in events| Method Detail |
|---|
protected void allocateArrays(int size)
public int getType()
public void setType(int type)
public int[] getTimestamps()
getTimestamps in class AEPacketpublic float[] getValues()
public int[] getCoordinates_x()
public int[] getCoordinates_y()
public int[] getCoordinates_z()
public int[] getDisparities()
public int[] getMethods()
public int[] getLead_sides()
public void setCoordinates_x(int[] coordinates)
public void setCoordinates_y(int[] coordinates)
public void setCoordinates_z(int[] coordinates)
public void setDisparities(int[] disparities)
public void setMethods(int[] methods)
public void setLead_sides(int[] lead_sides)
public Event3D getEvent(int k)
public int getCapacity()
getCapacity in class AEPacket
public int[] ensureCapacity(int[] array,
int c)
c - the desired capacity
public float[] ensureCapacity(float[] array,
int c)
public void addEvent(Event3D e)
e - an Event to add to the ones already present. Capacity is enlarged if necessary.public void clear()
clear in class AEPacketpublic AEPacket3D getPrunedCopy()
|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||