summaryrefslogtreecommitdiff
path: root/src/types.h
diff options
context:
space:
mode:
authorMartin Miller2017-04-09 13:25:13 -0500
committerMartin Miller2017-04-09 13:25:13 -0500
commite5c3b5117c2f3936967319223e353ac6c7a0b1ca (patch)
tree56c9e8812985205b0a5242b73cc0f32d0886c17d /src/types.h
parentb1315673d8cba1380d00bd571191f403cfc9e99d (diff)
downloadrefslam-e5c3b5117c2f3936967319223e353ac6c7a0b1ca.zip
refslam-e5c3b5117c2f3936967319223e353ac6c7a0b1ca.tar.gz
warp source and reflection patches
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/types.h b/src/types.h
index d264cdc..d43fdf2 100644
--- a/src/types.h
+++ b/src/types.h
@@ -3,10 +3,12 @@
#include <cv.h>
#include <Eigen/Dense>
+#include <exception>
#define MAXLINE 8192
#define MAXFILENAME 1024
#define STATESIZE 9 /* Set to 13 for quaternion estimation, or 9 for quaternion as input */
#define INLIER_THRESHOLD 12.
+#define PATCHSIZE 51 /* must be odd */
using Eigen::Matrix;
using Eigen::Matrix3d;
using Eigen::Quaterniond;
@@ -22,7 +24,7 @@ typedef struct {
Vector3d source, reflection;
double height;
Vector2d Ssrc, Sref;
- cv::Mat patch;
+ cv::Mat patch, refpatch;
double xcorrmax;
} measurement_t;