03-Hybrid_vision_toolkit API (C++)
English | 中文
hv_evt2_codec.h
evt2::EVT2Header
EVT2 format file header structure.
struct EVT2Header {
std::string format_line; // Format line
std::string integrator; // Integrator name
std::string date; // Creation date
uint32_t width; // Sensor width
uint32_t height; // Sensor height
uint64_t start_timestamp; // Start timestamp (microseconds)
};evt2::EventCDEncoder
CD event encoder, encodes EventCD events into EVT2 raw format.
class EventCDEncoder {
public:
void setEvent(unsigned short x, unsigned short y, short polarity, Timestamp timestamp);
void encode(RawEvent* raw_event);
unsigned short x, y;
short p;
Timestamp t;
};evt2::EventTriggerEncoder
External trigger event encoder.
class EventTriggerEncoder {
public:
void setEvent(short polarity, short trigger_id, Timestamp timestamp);
void encode(RawEvent* raw_event);
short p, id;
Timestamp t;
};evt2::EventTimeEncoder
Time high bit encoder.
class EventTimeEncoder {
public:
explicit EventTimeEncoder(Timestamp base);
void encode(RawEvent* raw_event);
Timestamp getNextTimeHigh() const;
void reset(Timestamp base = 0);
};evt2::EVT2Decoder
EVT2 format decoder.
class EVT2Decoder {
public:
EVT2Decoder();
size_t decode(const uint8_t* buffer, size_t buffer_size,
std::vector<Metavision::EventCD>& cd_events,
std::vector<std::tuple<short, short, Timestamp>>* trigger_events = nullptr);
void reset();
Timestamp getCurrentTimeBase() const;
};Type Definition: using Timestamp = uint64_t;
hv_camera.h
Class hv::HV_Camera
Used for event stream and image stream acquisition of event camera (DVS).
Inheritance Relationship
- No inheritance relationship, independent class
