diff options
Diffstat (limited to 'tracker-wii/wii_point_extractor.h')
-rw-r--r-- | tracker-wii/wii_point_extractor.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tracker-wii/wii_point_extractor.h b/tracker-wii/wii_point_extractor.h index 661ce35f..be0e5f45 100644 --- a/tracker-wii/wii_point_extractor.h +++ b/tracker-wii/wii_point_extractor.h @@ -16,19 +16,23 @@ namespace pt_module { -using namespace numeric_types; +using namespace types; class WIIPointExtractor final : public pt_point_extractor { public: + // extracts points from frame and draws some processing info into frame, if draw_output is set + // dt: time since last call in seconds void extract_points(const pt_frame& frame, pt_preview& preview_frame, std::vector<vec2>& points) override; WIIPointExtractor(const QString& module_name); - private: + static constexpr int max_blobs = 16; + pt_settings s; - void draw_point(cv::Mat& preview_frame, const vec2& p, const cv::Scalar& color, int thickness = 1); - bool draw_points(cv::Mat& preview_frame, const struct wii_info& wii, std::vector<vec2>& points); - void draw_bg(cv::Mat& preview_frame, const struct wii_info& wii); + void _draw_point(cv::Mat& preview_frame, const vec2& p, const cv::Scalar& color, int thinkness = 1); + bool _draw_points(cv::Mat& preview_frame, const struct wii_info &wii, std::vector<vec2>& points); + void _draw_bg(cv::Mat& preview_frame, const struct wii_info &wii); }; } // ns impl + |