summaryrefslogtreecommitdiff
path: root/src/vision.h
diff options
context:
space:
mode:
authorMartin Miller2017-04-07 17:28:23 -0500
committerMartin Miller2017-04-07 17:28:23 -0500
commit728cc9930cbea478ca732b6c19bab275ef50c6d0 (patch)
tree1a1224f18af30cb2690f70380f301b8947513229 /src/vision.h
parentde6c9b3848dccf6140525f5ed020258625b3c48b (diff)
downloadrefslam-728cc9930cbea478ca732b6c19bab275ef50c6d0.zip
refslam-728cc9930cbea478ca732b6c19bab275ef50c6d0.tar.gz
Begin Vision class.
This class can display measurements and featuers and find new features. When complete it will also perform measurements.
Diffstat (limited to 'src/vision.h')
-rw-r--r--src/vision.h57
1 files changed, 57 insertions, 0 deletions
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 <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 ----- */