29 return std::sqrt(diff.x * diff.x + diff.y * diff.y + diff.z * diff.z);
32 void Update(
const Point_t& p,
const std::vector<cv::Point>& contour,
bool dataCorrect,
size_t max_trace_length)
42 if (
trace.size() > max_trace_length)
86 std::vector<std::unique_ptr<CTrack>>
tracks;
87 void Update(
const std::vector<Point_t>& detectedCentroid,
const std::vector<std::vector<cv::Point> > &contour);
89 void updateParameters(
const Params ¶meters);
std::vector< std::unique_ptr< CTrack > > tracks
CTrack(const Point_t &p, const std::vector< cv::Point > &contour, track_t dt, size_t trackID)
std::vector< Point_t > trace
Point_t Update(Point_t p, bool DataCorrect)
int max_allowed_skipped_frames
cv::Point3_< track_t > Point_t
Point_t getEstimatedVelocity() const
std::vector< cv::Point > lastContour
std::vector< cv::Point > getLastContour() const
void Update(const Point_t &p, const std::vector< cv::Point > &contour, bool dataCorrect, size_t max_trace_length)
track_t CalcDist(const Point_t &p)