Skip to content
Snippets Groups Projects
Commit 5e8983f1 authored by d.kilic's avatar d.kilic Committed by d.kilic
Browse files

stylistic improvement

parent 6578b82c
No related branches found
No related tags found
1 merge request!115Resolve "Retrack only if whole path leading to the current trackpoint is better"
...@@ -1186,8 +1186,9 @@ size_t Tracker::calcPrevFeaturePoints(int prevFrame, cv::Rect &rect, int frame, ...@@ -1186,8 +1186,9 @@ size_t Tracker::calcPrevFeaturePoints(int prevFrame, cv::Rect &rect, int frame,
continue; continue;
} }
cv::Point2f p2f(at(i).at(prevFrame-at(i).firstFrame()).x()+borderSize, Vec2F prevPoint = at(i).at(prevFrame-at(i).firstFrame());
at(i).at(prevFrame-at(i).firstFrame()).y()+borderSize); prevPoint += Vec2F(borderSize, borderSize);
cv::Point2f p2f = prevPoint.toCvPoint();
if(rect.contains(p2f)) if(rect.contains(p2f))
{ {
mPrevFeaturePoints.push_back(p2f); mPrevFeaturePoints.push_back(p2f);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment