SSCMA-Micro CPP SDK  v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
STrack Class Reference

#include <strack.h>

Collaboration diagram for STrack:

Public Member Functions

 STrack (std::vector< float > tlwh_, float score, int label)
 
 ~STrack ()
 
void static_tlwh ()
 
void static_tlbr ()
 
std::vector< float > tlwh_to_xyah (std::vector< float > tlwh_tmp)
 
std::vector< float > to_xyah ()
 
void mark_lost ()
 
void mark_removed ()
 
int next_id ()
 
int end_frame ()
 
void activate (KalmanFilter &kalman_filter, int frame_id)
 
void re_activate (STrack &new_track, int frame_id, bool new_id=false)
 
void update (STrack &new_track, int frame_id)
 

Static Public Member Functions

static std::vector< float > tlbr_to_tlwh (std::vector< float > &tlbr)
 
static void multi_predict (std::vector< STrack * > &stracks, KalmanFilter &kalman_filter)
 

Public Attributes

bool is_activated
 
int track_id
 
int state
 
std::vector< float > _tlwh
 
std::vector< float > tlwh
 
std::vector< float > tlbr
 
int frame_id
 
int tracklet_len
 
int start_frame
 
KAL_MEAN mean
 
KAL_COVA covariance
 
float score
 
int label
 

Constructor & Destructor Documentation

◆ STrack()

STrack::STrack ( std::vector< float >  tlwh_,
float  score,
int  label 
)

◆ ~STrack()

STrack::~STrack ( )

Member Function Documentation

◆ activate()

void STrack::activate ( KalmanFilter kalman_filter,
int  frame_id 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ end_frame()

int STrack::end_frame ( )

◆ mark_lost()

void STrack::mark_lost ( )
Here is the caller graph for this function:

◆ mark_removed()

void STrack::mark_removed ( )
Here is the caller graph for this function:

◆ multi_predict()

void STrack::multi_predict ( std::vector< STrack * > &  stracks,
KalmanFilter kalman_filter 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ next_id()

int STrack::next_id ( )

◆ re_activate()

void STrack::re_activate ( STrack new_track,
int  frame_id,
bool  new_id = false 
)
Here is the caller graph for this function:

◆ static_tlbr()

void STrack::static_tlbr ( )

◆ static_tlwh()

void STrack::static_tlwh ( )

◆ tlbr_to_tlwh()

vector< float > STrack::tlbr_to_tlwh ( std::vector< float > &  tlbr)
static

◆ tlwh_to_xyah()

vector< float > STrack::tlwh_to_xyah ( std::vector< float >  tlwh_tmp)

◆ to_xyah()

vector< float > STrack::to_xyah ( )

◆ update()

void STrack::update ( STrack new_track,
int  frame_id 
)
Here is the caller graph for this function:

Member Data Documentation

◆ _tlwh

std::vector<float> STrack::_tlwh

◆ covariance

KAL_COVA STrack::covariance

◆ frame_id

int STrack::frame_id

◆ is_activated

bool STrack::is_activated

◆ label

int STrack::label

◆ mean

KAL_MEAN STrack::mean

◆ score

float STrack::score

◆ start_frame

int STrack::start_frame

◆ state

int STrack::state

◆ tlbr

std::vector<float> STrack::tlbr

◆ tlwh

std::vector<float> STrack::tlwh

◆ track_id

int STrack::track_id

◆ tracklet_len

int STrack::tracklet_len