Struct SubjectId#
Defined in File pose_analysis_result.hpp
Struct Documentation#
-
struct SubjectId#
Identifies which person a query is about, as opposed to where they happened to sit in a frame’s subjects array.
A distinct type on purpose. Before tracking existed, run_pose.py wrote subject_id == array position, so “subject index” and “subject id” were the same int holding the same value — meaning a missed call site during the switch to identity keying would have compiled cleanly and silently plotted a different person. Making it its own type turns every such site into a compile error instead.
Public Functions
-
SubjectId() = default#
-
inline explicit constexpr SubjectId(int v)#
-
inline constexpr bool is_tracked() const#
Untracked detections carry a negative id (run_pose.py’s -(i+1) fallback); real tracker ids are >= 0.
Public Members
-
int value = -1#
-
SubjectId() = default#