summaryrefslogtreecommitdiff
path: root/src/vision.h
blob: 6f324c19c623e7b695d38b4dc7a3e4e36135486c (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef  vision_INC
#define  vision_INC
#include <cv.h>
#include <Eigen/Dense>
#include <iostream>
#include <opencv2/highgui/highgui.hpp>
#include <vector>

#include "camera.h"
#include "types.h"

using cv::Mat;
using Eigen::Vector2d;
using Eigen::Vector3d;
using Eigen::Matrix;
using std::vector;

/*
 * =====================================================================================
 *        Class:  Vision
 *  Description:  
 * =====================================================================================
 */
class Vision
{
    public:
        /* ====================  LIFECYCLE     ======================================= */
        Vision ();                             /* constructor */

        /* ====================  ACCESSORS     ======================================= */
        void drawMeasurements( const vector<measurement_t> &z, const Camera &cam,
                const cv::Scalar &colsrc, const cv::Scalar &colref,
                bool drawEllipse);

        void show();

        /* ====================  MUTATORS      ======================================= */

        /* ====================  OPERATORS     ======================================= */
        void open(const char *fn, const Camera &cam);
        void acquireFeatures(const Camera &cam, vector<measurement_t> &z);

    protected:
        /* ====================  METHODS       ======================================= */

        /* ====================  DATA MEMBERS  ======================================= */

    private:
        /* ====================  METHODS       ======================================= */

        /* ====================  DATA MEMBERS  ======================================= */
        Mat original, display;
        static int _id;

}; /* -----  end of class Vision  ----- */

#endif   /* ----- #ifndef vision_INC  ----- */