BearExtrCam.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00029
00033
00034 #ifndef __BEAR_EXTR_CAM_H_
00035 #define __BEAR_EXTR_CAM_H_
00036
00037 #include "BearExtrCamStr.h"
00038
00039 using namespace std;
00040 namespace MipAlgorithms{
00041
00045 class BearExtrCamInput{
00046 public:
00047 cv::Mat* currImage;
00048 int areaCircleMin;
00049 int areaCircleMax;
00050 Decimal crThr;
00051 int wROI;
00052 int hROI;
00054 int areaCircMinRect;
00056 int areaCircMaxRect;
00058 Decimal actTime;
00059
00060
00062 BearExtrCamInput();
00063
00069 BearExtrCamInput(cv::Mat *ci, const int &acm, const int &acM, const Decimal &ct, const int &wR, const int &hR, const int &acmRect, const int &acMRect, const Decimal &at);
00070
00072 ~BearExtrCamInput();
00073
00075 BearExtrCamInput(const BearExtrCamInput& rhs);
00076
00078 BearExtrCamInput& operator=(const BearExtrCamInput& rhs);
00079 };
00080
00084 class BearExtrCamOutput{
00085 public:
00087 vector<Position2DArma> imagePlanePoints;
00089 bool validOutput;
00090
00092 BearExtrCamOutput();
00093
00095 BearExtrCamOutput(vector<Position2DArma> &pp, const bool &vo);
00096
00098 ~BearExtrCamOutput();
00099
00101 BearExtrCamOutput(const BearExtrCamOutput& rhs);
00102
00104 BearExtrCamOutput& operator=(const BearExtrCamOutput& rhs);
00105
00107 void normalizePoints(vector<featureImage> &fi, BearExtrCamPar* par);
00108 };
00109
00113 class BearExtrCam{
00114 private:
00115 BearExtrCamPar* _pars;
00116 BearExtrCamVar* _vars;
00117 bool _firstStep;
00118 vector<featureImage> _featureList;
00119 TooN::Matrix<3> pm;
00120
00121 public:
00123 BearExtrCam();
00124
00126 BearExtrCam(const BearExtrCamPar &pars);
00127
00129 ~BearExtrCam();
00130
00133 void step(BearExtrCamInput &beci, BearExtrCamOutput &beco);
00134
00137 void firstStep(BearExtrCamInput &beci);
00138
00141 void normalStep(BearExtrCamInput &beci, BearExtrCamOutput &beco);
00142
00145 BearExtrCamPar* getPar();
00146
00149 void setAdjustedParameters(BearExtrCamInput &beci);
00150 };
00151 }
00152 #endif