summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-16 23:49:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-16 23:54:31 +0200
commitc031551efd47e56384c46342df8a5b2030f19fb4 (patch)
treea6279548a3d2843a778b605804a680fdba5fd989
parent006cc7bc4e23eff8c8fcf8bbb6d9c516676e7a3f (diff)
tracker/pt: use final, pragma once
-rw-r--r--tracker-pt/trans_calib.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/tracker-pt/trans_calib.h b/tracker-pt/trans_calib.h
index e20fc767..b697a7d4 100644
--- a/tracker-pt/trans_calib.h
+++ b/tracker-pt/trans_calib.h
@@ -5,10 +5,9 @@
* copyright notice and this permission notice appear in all copies.
*/
-#ifndef TRANSCALIB_H
-#define TRANSCALIB_H
+#pragma once
-#include <opencv2/core/core.hpp>
+#include <opencv2/core.hpp>
//-----------------------------------------------------------------------------
// Calibrates the translation from head to model = t_MH
@@ -17,7 +16,7 @@
// measurement equation when head position = t_CH is fixed:
// (R_CM_k , Id)*(-t_MH, t_CH) = t_CM_k
-class TranslationCalibrator
+class TranslationCalibrator final
{
public:
TranslationCalibrator();
@@ -35,5 +34,3 @@ private:
cv::Matx66f P; // normalized precision matrix = inverse covariance
cv::Vec6f y; // P*(-t_MH, t_CH)
};
-
-#endif //TRANSCALIB_H