diff options
author | Stéphane Lenclud <github@lenclud.com> | 2019-04-14 11:40:52 +0200 |
---|---|---|
committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-24 18:46:12 +0200 |
commit | a814bff460cff1263e236e465c7ef8c8f88baf55 (patch) | |
tree | fe2dfa5708c0e90d156319703441a5abd8b619ac /tracker-easy/tracker-easy-api.h | |
parent | 51436cc320670e033c69bc01d2178bd245234670 (diff) |
Easy Tracker: Renaming settings.
Diffstat (limited to 'tracker-easy/tracker-easy-api.h')
-rw-r--r-- | tracker-easy/tracker-easy-api.h | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/tracker-easy/tracker-easy-api.h b/tracker-easy/tracker-easy-api.h index e5627d11..b50ce018 100644 --- a/tracker-easy/tracker-easy-api.h +++ b/tracker-easy/tracker-easy-api.h @@ -1,6 +1,13 @@ +/* Copyright (c) 2019 Stephane Lenclud + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + */ + #pragma once -#include "pt-settings.hpp" +#include "settings.h" #include "cv/numeric.hpp" #include "options/options.hpp" @@ -15,10 +22,6 @@ #include <QImage> #include <QString> -#ifdef __clang__ -# pragma clang diagnostic push -# pragma clang diagnostic ignored "-Wweak-vtables" -#endif const int KPointCount = 3; @@ -31,20 +34,4 @@ public: virtual void extract_points(const cv::Mat& image, cv::Mat* aPreview, std::vector<vec2>& aPoints) = 0; }; -struct IEasyTrackerTraits -{ - template<typename t> using pointer = std::shared_ptr<t>; - - IEasyTrackerTraits(); - virtual ~IEasyTrackerTraits(); - - virtual pointer<IPointExtractor> make_point_extractor() const = 0; - virtual QString get_module_name() const = 0; -}; - -template<typename t> -using pt_pointer = typename IEasyTrackerTraits::pointer<t>; -#ifdef __clang__ -# pragma clang diagnostic pop -#endif |