Skip to content

Commit

Permalink
After re-sampling() track the me (Closes #175)
Browse files Browse the repository at this point in the history
Reduces the threshold used to trigger the re-sampling to 50% of the expected me instead of 90%
  • Loading branch information
fspindle committed Apr 27, 2017
1 parent 347b9a5 commit 4b1c146
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/tracker/me/src/moving-edges/vpMeEllipse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,9 @@ vpMeEllipse::reSample(const vpImage<unsigned char> &I)

unsigned int n = numberOfSignal();
expecteddensity = (alpha2-alpha1) / vpMath::rad((double)me->getSampleStep());
if ((double)n < 0.9*expecteddensity){
if ((double)n < 0.5*expecteddensity){
sample(I);
vpMeTracker::track(I);
}
}

Expand Down

0 comments on commit 4b1c146

Please sign in to comment.