summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/cv-point-extractor.h
blob: 8a8ed66b37c1aaef7193ae3c2a6639288a734f02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* Copyright (c) 2012 Patrick Ruoff
 * Copyright (c) 2015-2016 Stanislaw Halik <sthalik@misaki.pl>
 *
 * 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 "tracker-easy-api.h"

#include <vector>

#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>


using namespace numeric_types;


class CvPointExtractor final : public IPointExtractor
{
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 cv::Mat& frame, cv::Mat* aPreview, std::vector<vec2>& aPoints) override;
    CvPointExtractor(const QString& module_name);

    pt_settings s;
};