@@ -310,12 +310,12 @@ class CTrack
310310 track_t WidthDist (const CRegion& reg) const ;
311311 track_t HeightDist (const CRegion& reg) const ;
312312
313- void Update (const CRegion& region, bool dataCorrect, size_t max_trace_length, cv::UMat prevFrame, cv::UMat currFrame, int trajLen);
314- void Update (const CRegion& region, const RegionEmbedding& regionEmbedding, bool dataCorrect, size_t max_trace_length, cv::UMat prevFrame, cv::UMat currFrame, int trajLen);
313+ void Update (const CRegion& region, bool dataCorrect, size_t max_trace_length, cv::UMat prevFrame, cv::UMat currFrame, int trajLen, int maxSpeedForStatic );
314+ void Update (const CRegion& region, const RegionEmbedding& regionEmbedding, bool dataCorrect, size_t max_trace_length, cv::UMat prevFrame, cv::UMat currFrame, int trajLen, int maxSpeedForStatic );
315315
316316 bool IsStatic () const ;
317317 bool IsStaticTimeout (int framesTime) const ;
318- bool IsOutOfTheFrame () const ;
318+ bool IsOutOfTheFrame () const ;
319319
320320 cv::RotatedRect GetLastRect () const ;
321321
@@ -328,9 +328,9 @@ class CTrack
328328 TrackingObject ConstructObject () const ;
329329
330330private:
331- TKalmanFilter m_kalman;
332- CRegion m_lastRegion;
333- Trace m_trace;
331+ TKalmanFilter m_kalman;
332+ CRegion m_lastRegion;
333+ Trace m_trace;
334334 cv::RotatedRect m_predictionRect;
335335 Point_t m_predictionPoint;
336336
@@ -343,22 +343,26 @@ class CTrack
343343#endif
344344 std::unique_ptr<VOTTracker> m_VOTTracker;
345345
346+ // /
346347 void RectUpdate (const CRegion& region, bool dataCorrect, cv::UMat prevFrame, cv::UMat currFrame);
347348
349+ // /
348350 void CreateExternalTracker (int channels);
349351
352+ // /
350353 void PointUpdate (const Point_t& pt, const cv::Size& newObjSize, bool dataCorrect, const cv::Size& frameSize);
351354
352355 RegionEmbedding m_regionEmbedding;
353356
354- bool CheckStatic (int trajLen, cv::UMat currFrame, const CRegion& region);
355- cv::UMat m_staticFrame;
356- cv::Rect m_staticRect;
357+ // /
358+ bool CheckStatic (int trajLen, cv::UMat currFrame, const CRegion& region, int maxSpeedForStatic);
359+ cv::UMat m_staticFrame;
360+ cv::Rect m_staticRect;
357361 int m_staticFrames = 0 ;
358- bool m_isStatic = false ;
362+ bool m_isStatic = false ;
359363
360- bool m_filterObjectSize = false ;
361- bool m_outOfTheFrame = false ;
364+ bool m_filterObjectSize = false ;
365+ bool m_outOfTheFrame = false ;
362366};
363367
364368typedef std::vector<std::unique_ptr<CTrack>> tracks_t ;
0 commit comments