19typedef int8_t t_constellation_device_id_t;
20typedef int8_t t_constellation_led_id_it;
22#define XRT_CONSTELLATION_MAX_BLOBS_PER_FRAME 250
24#define XRT_CONSTELLATION_INVALID_DEVICE_ID -1
25#define XRT_CONSTELLATION_INVALID_LED_ID -1
117 t_constellation_device_id_t device_id);
127XRT_NONNULL_ALL
static inline void
134XRT_NONNULL_ALL
static inline void
148XRT_NONNULL_ALL
static inline void
149t_blobwatch_mark_blob_device(
struct t_blobwatch *tbw,
151 t_constellation_device_id_t device_id)
157XRT_NONNULL_ALL
static inline void
Definition t_constellation.h:69
uint64_t id
Internal ID for this observation, may be set by the blobwatch implementation if it needs to know this...
Definition t_constellation.h:73
A generic interface to allow a tracking system to receive "snapshots" of seen t_blob in a frame.
Definition t_constellation.h:86
void(* push_blobs)(struct t_blob_sink *tbs, struct t_blob_observation *observation)
Push a set of blobs into the sink.
Definition t_constellation.h:94
void(* destroy)(struct t_blob_sink *tbs)
Destroy this blob sink.
Definition t_constellation.h:99
A blob is a 2d position in a camera sensor's view that is being tracked.
Definition t_constellation.h:36
struct xrt_vec2 size
The size of the blob, in pixels. May be {0,0}, and may be subpixel accurate.
Definition t_constellation.h:65
t_constellation_led_id_it matched_device_led_id
The LED ID this blob is associated with, if any.
Definition t_constellation.h:53
t_constellation_device_id_t matched_device_id
The device ID this blob is associated with, if any.
Definition t_constellation.h:47
struct xrt_vec2 motion_vector
Estimated motion vector of blob, in pixels per second. Only valid if the tracking system provides it.
Definition t_constellation.h:59
uint32_t blob_id
The ID of a blob, which may be used to track it across frames.
Definition t_constellation.h:41
struct xrt_vec2 center
Centre of blob.
Definition t_constellation.h:56
struct xrt_rect bounding_box
The bounding box of the blob in pixel coordinates.
Definition t_constellation.h:62
Definition t_constellation.h:103
void(* destroy)(struct t_blobwatch *tbw)
Destroy this blobwatch.
Definition t_constellation.h:122
void(* mark_blob_device)(struct t_blobwatch *tbw, const struct t_blob_observation *tbo, t_constellation_device_id_t device_id)
Notify the blobwatch that the blobs in the given observation with the correct ID set are associated w...
Definition t_constellation.h:115
Image rectangle.
Definition xrt_defines.h:444
A 2 element vector with single floats.
Definition xrt_defines.h:268
Common defines and enums for XRT.