BearExtrCamStr.h

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------------
00002 //
00003 // $Id$
00004 //
00005 // Copyright 2008, 2009, 2010, 2011, 2012  Antonio Franchi and Paolo Stegagno
00006 //
00007 // This file is part of MIP.
00008 //
00009 // MIP is free software: you can redistribute it and/or modify
00010 // it under the terms of the GNU General Public License as published by
00011 // the Free Software Foundation, either version 3 of the License, or
00012 // (at your option) any later version.
00013 //
00014 // MIP is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
00018 //
00019 // You should have received a copy of the GNU General Public License
00020 // along with MIP. If not, see <http://www.gnu.org/licenses/>.
00021 //
00022 // Contact info: antonio.franchi@tuebingen.mpg.de stegagno@diag.uniroma1.it
00023 //
00024 // ----------------------------------------------------------------------------
00025 
00029 
00033 
00034 #ifndef __BEAR_EXTR_CAM_STR_H_
00035 #define __BEAR_EXTR_CAM_STR_H_
00036 
00037 #include "BearExtrCamUtils.h"
00038 
00039 using namespace std;
00040 namespace MipAlgorithms{
00041  
00042  class featureImage {
00043   public:
00044    
00045    TooN::Matrix<3> pmat;
00046    
00048    cv::Point position;
00050    cv::Point oldCirclePosition; // posizione precedente nel pìano immagine del centro del K
00052    cv::Point circlePosition; // posizione del centro del cerchio sul piano immagine
00054    cv::Rect roi;
00056    vpDot2 d; // tracker del cerchio associato al K
00058    bool init; // flag di inizializzazione del tracker del cerchio
00059    // OLD
00061    int allarm;
00062    
00063    /* Methods */
00065    featureImage();
00066    
00072    featureImage( cv::Point po, cv::Point cp, cv::Rect Roi, TooN::Matrix<3> p );
00073    
00076    featureImage(const featureImage& k);
00077    
00080    featureImage& operator=(const featureImage& k);
00081    
00094    static void findFeature(cv::Mat Image,int Tl_x, int Tl_y, int _Tp_width, int _Tp_height, std::vector<featureImage> & camera, TooN::Matrix<3> pm, BearExtrCamPar* par, BearExtrCamVar* var);
00095    
00096 //    static void findCircleHough(cv::Image &src, )
00097    
00098    static void trackFeatureVisp(cv::Mat &Image, vector<featureImage> & camera, BearExtrCamPar* par, BearExtrCamVar* var);
00099    
00100    void computePosition(cv::Mat& Image,featureImage K, BearExtrCamPar* par, BearExtrCamVar* var);
00101    
00102  };
00103 }
00104 #endif

Generated on Mon Feb 20 07:01:06 2017 for MIP by  doxygen 1.5.6