From 728cc9930cbea478ca732b6c19bab275ef50c6d0 Mon Sep 17 00:00:00 2001 From: Martin Miller Date: Fri, 7 Apr 2017 17:28:23 -0500 Subject: Begin Vision class. This class can display measurements and featuers and find new features. When complete it will also perform measurements. --- src/vision.h | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/vision.h (limited to 'src/vision.h') diff --git a/src/vision.h b/src/vision.h new file mode 100644 index 0000000..6f324c1 --- /dev/null +++ b/src/vision.h @@ -0,0 +1,57 @@ +#ifndef vision_INC +#define vision_INC +#include +#include +#include +#include +#include + +#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 &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 &z); + + protected: + /* ==================== METHODS ======================================= */ + + /* ==================== DATA MEMBERS ======================================= */ + + private: + /* ==================== METHODS ======================================= */ + + /* ==================== DATA MEMBERS ======================================= */ + Mat original, display; + static int _id; + +}; /* ----- end of class Vision ----- */ + +#endif /* ----- #ifndef vision_INC ----- */ -- cgit v1.1