evlib.codec.fileformat.aedat

aedat file formats, mainly for DV software by iniVation.

Classes

IteratorAedat4(aedat4_file)

Base AEDAT4 iterator backed by the local AEDAT4 reader.

IteratorAedat4Event(aedat4_file)

Iterator over AEDAT4 event packets.

IteratorAedat4Frame(aedat4_file)

Iterator over AEDAT4 frame packets.

IteratorAedat4Imu(aedat4_file)

Iterator over AEDAT4 IMU packets.

IteratorAedat4Trigger(aedat4_file)

Iterator over AEDAT4 trigger packets.

class evlib.codec.fileformat.aedat.IteratorAedat4(aedat4_file)

Base AEDAT4 iterator backed by the local AEDAT4 reader.

Parameters:

aedat4_file (str)

FORMAT = 'aedat4'
close()

Close the underlying AEDAT4 reader.

Return type:

None

__next__()
Return type:

Any

class evlib.codec.fileformat.aedat.IteratorAedat4Event(aedat4_file)

Iterator over AEDAT4 event packets.

Parameters:

aedat4_file (str)

__next__()

Return the next AEDAT4 event packet.

Returns:

Event packet with x, y, timestamp, and polarity arrays.

Return type:

RawEvents

FORMAT = 'aedat4'
close()

Close the underlying AEDAT4 reader.

Return type:

None

class evlib.codec.fileformat.aedat.IteratorAedat4Trigger(aedat4_file)

Iterator over AEDAT4 trigger packets.

Parameters:

aedat4_file (str)

__next__()

Return the next AEDAT4 trigger row.

Returns:

Dictionary with trigger as an array of [timestamp, type] rows and num as the row count.

Return type:

Dict[str, Any]

FORMAT = 'aedat4'
close()

Close the underlying AEDAT4 reader.

Return type:

None

class evlib.codec.fileformat.aedat.IteratorAedat4Imu(aedat4_file)

Iterator over AEDAT4 IMU packets.

Parameters:

aedat4_file (str)

__next__()

Return the next AEDAT4 IMU row.

Returns:

Dictionary with imu as [timestamp, ax, ay, az, gx, gy, gz] and num as the row count.

Return type:

Dict[str, Any]

FORMAT = 'aedat4'
close()

Close the underlying AEDAT4 reader.

Return type:

None

class evlib.codec.fileformat.aedat.IteratorAedat4Frame(aedat4_file)

Iterator over AEDAT4 frame packets.

Parameters:

aedat4_file (str)

__next__()

Return the next AEDAT4 frame packet.

Returns:

Dictionary with frame as a (1, height, width, channels) array, t as the frame timestamp, and num as the frame count.

Return type:

Dict[str, Any]

FORMAT = 'aedat4'
close()

Close the underlying AEDAT4 reader.

Return type:

None