5.3.2.19. Struct RoI_t

5.3.2.19.1. Struct Documentation

struct RoI_t

Features required in the tracking.

Public Members

uint32_t id

RoI unique identifiers. A RoI identifier should starts from 1 while 0 should be reserved for uninitialized structure.

uint32_t frame

Frame number of the RoI.

uint32_t xmin

Minimum \(x\) coordinates of the bounding box.

uint32_t xmax

Maximum \(x\) coordinates of the bounding box.

uint32_t ymin

Minimum \(y\) coordinates of the bounding box.

uint32_t ymax

Maximum \(y\) coordinates of the bounding box.

uint32_t S

Numbers of points/pixels = surfaces of the RoIs.

float x

\(x\) coordinates of the centroid ( \( x = S_x / S \)).

float y

\(y\) coordinates of the centroid ( \( y = S_y / S \)).

uint32_t prev_id

Previous corresponding RoI identifiers ( \(RoI_{t - 1} \leftrightarrow RoI_{t}\)).

uint32_t next_id

Next corresponding RoI identifiers ( \( RoI_{t} \leftrightarrow RoI_{t + 1}\)).

float dx

\(x\) components of the distance between centroids at \(t - 1\) and \(t\).

float dy

\(y\) components of the distance between centroids at \(t - 1\) and \(t\).

float error

Velocity norm / error. \( e = \sqrt{dx^2 + dy^2} \).

uint32_t time

Number of times the RoI and its predecessors have been associated (non-moving RoI).

uint32_t time_motion

Number of times the RoI and its predecessors have been associated (moving RoI).

uint8_t is_extrapolated

Boolean that defines if this RoI has been extrapolated. It prevents to associate it to a new track.

float a

Semi-major axis (ellipse) of the RoI.

float b

Semi-minor axis (ellipse) of the RoI.