5.3.2.18. Struct RoI_motion_t

5.3.2.18.1. Struct Documentation

struct RoI_motion_t

Motion between RoI at \(t - 1\) and \(t\). The features of this structure are values computed after motion compensation.

Public Members

float dx

\(x\) components of the distance between centroids at \(t - 1\) and \(t\). It can represent either abscissa velocity (if is_moving == 1) or abscissa error distance (if is_moving == 0).

float dy

\(y\) components of the distance between centroids at \(t - 1\) and \(t\). It can represent either ordinate velocity (if is_moving == 1) or ordinate error distance if (is_moving == 0).

float error

Velocity norm (if is_moving == 1) or error (if is_moving == 0). \( e = \sqrt{dx^2 + dy^2} \).

uint8_t is_moving

Boolean that defines if the RoI is moving (is_moving == 1) or not (is_moving == 0).