Go to the documentation of this file.00001
00009 #ifndef SENSORIMAGEPARAMETERS_HPP_
00010 #define SENSORIMAGEPARAMETERS_HPP_
00011
00012 #include "rtslam/pinholeTools.hpp"
00013 #include "jmath/jblas.hpp"
00014
00015 namespace jafar{
00016 namespace rtslam{
00017 using namespace jblas;
00018
00023 struct SensorImageParameters {
00024
00025 public:
00026
00027
00028 unsigned int width;
00029 unsigned int height;
00030
00031
00032 vec4 intrinsic;
00033 vec distortion;
00034 vec correction;
00035
00036 double r2max;
00037
00038
00039 double pixNoise;
00040
00041
00042 double distMin;
00043
00044
00045 unsigned int patchSize;
00046
00053 void setIntrinsicCalibration(const int _width, const int _height, const vec4 _k, const vec & _d, size_t size_c){
00054 width=_width;
00055 height=_height;
00056 intrinsic = _k;
00057 distortion.resize(_d.size());
00058 distortion = _d;
00059 correction.resize(size_c);
00060 pinhole::computeCorrectionModel(width, height, intrinsic, distortion, correction, r2max);
00061 r2max *= r2max;
00062 }
00063
00064 void setMiscellaneous(double _pixNoise,
00065 double d_min){
00066 pixNoise = _pixNoise;
00067 distMin = d_min;
00068 }
00069
00070
00071 } ;
00072 }
00073 }
00074
00075
00076
00077 #endif