server/src/KalmanTracker.cpp
// Predict the estimated bounding box.
Predict the estimated bounding box.
Predict the estimated bounding box .
StateType KalmanTracker::predict()
{
	Mat p = kf.predict();
	m_age += 1;
	if (m_time_since_update > 0)
		m_hit_streak = 0;
	m_time_since_update += 1;
	StateType predictBox = get_rect_xysr(p.at<float>(0, 0), p.at<float>(1, 0), p.at<float>(2, 0), p.at<float>(3, 0));
	m_history.push_back(predictBox);
	return m_history.back();
}
StateType KalmanTracker :: predict ( ) { Mat p = kf . predict ( ) ; m_age += 1 ; if ( m_time_since_update > 0 ) m_hit_streak = 0 ; m_time_since_update += 1 ; StateType predictBox = get_rect_xysr ( p . at < float > ( 0 , 0 ) , p . at < float > ( 1 , 0 ) , p . at < float > ( 2 , 0 ) , p . at < float > ( 3 , 0 ) ) ; m_history . push_back ( predictBox ) ; return m_history . back ( ) ; }
Predict the estimated bounding box.
Predict the estimated bounding box .
// predict