summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/tracker-easy.h
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-04-28 09:14:13 +0200
committerStéphane Lenclud <github@lenclud.com>2019-04-28 09:14:13 +0200
commit389f77790d649a9da852ff7df3e0717b4c4dc1c3 (patch)
tree4a50fa4456019669c02d6df76a0bf107766ef054 /tracker-easy/tracker-easy.h
parent3e56f47a9cef709d4a099a0ac6ff43e361fe4a43 (diff)
Easy Tracker: Adding basic bad pose filter based on pitch consistency.
Working toward five vertices support.
Diffstat (limited to 'tracker-easy/tracker-easy.h')
-rw-r--r--tracker-easy/tracker-easy.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/tracker-easy/tracker-easy.h b/tracker-easy/tracker-easy.h
index f36ea598..e1dcee55 100644
--- a/tracker-easy/tracker-easy.h
+++ b/tracker-easy/tracker-easy.h
@@ -68,7 +68,11 @@ namespace EasyTracker
private:
void UpdateModel();
void CreateCameraIntrinsicsMatrices();
- void ProcessFrame();
+ void ProcessFrame();
+ void MatchVertices(int& aTopIndex, int& aRightIndex, int& aLeftIndex, int& aCenterIndex, int& aTopRight, int& aTopLeft);
+ void MatchThreeOrFourVertices(int& aTopIndex, int& aRightIndex, int& aLeftIndex, int& aCenterIndex);
+ void MatchFiveVertices(int& aTopIndex, int& aRightIndex, int& aLeftIndex, int& aTopRight, int& aTopLeft);
+
//
@@ -118,6 +122,8 @@ namespace EasyTracker
int iSkippedFrameCount = 0;
int iFps = 0;
int iSkippedFps = 0;
+ uint iBadSolutionCount = 0;
+ uint iGoodSolutionCount = 0;
//
KalmanFilterPose iKf;