PanoDetectorDefs.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 ; tab-width: 4 -*-
00002 /*
00003 * Copyright (C) 2007-2008 Anael Orlinski
00004 *
00005 * This file is part of Panomatic.
00006 *
00007 * Panomatic is free software; you can redistribute it and/or modify
00008 * it under the terms of the GNU General Public License as published by
00009 * the Free Software Foundation; either version 2 of the License, or
00010 * (at your option) any later version.
00011 *
00012 * Panomatic is distributed in the hope that it will be useful,
00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 * GNU General Public License for more details.
00016 *
00017 * You should have received a copy of the GNU General Public License
00018 * along with Panomatic; if not, write to the Free Software
00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 */
00021 
00022 #ifndef __detectpano_panodetectordefs_h
00023 #define __detectpano_panodetectordefs_h
00024 #include <vector>
00025 #include <iostream>
00026 
00027 
00028 #include <boost/shared_ptr.hpp>
00029 #include <localfeatures/KeyPoint.h>
00030 #include "KDTree.h"
00031 #include "Utils.h"
00032 
00033 
00034 // define KDTree element from a KeyPointPtr
00035 // define a class to wrap an Ipoint and make it KDTree compliant.
00036 class KDElemKeyPoint : public KDTreeSpace::KDTreeElemInterface<double>
00037 {
00038 public:
00039     KDElemKeyPoint (lfeat::KeyPointPtr& iK, int iNumber) : _ivec(iK->_vec), _n(iNumber) {}
00040     inline double& getVectorElem(int iPos) const
00041     {
00042         return _ivec[iPos];   // access to the vector elements.
00043     }
00044     double* _ivec;
00045     size_t _n;
00046 };
00047 
00048 typedef std::vector<KDElemKeyPoint>     KDElemKeyPointVect_t;
00049 
00050 
00051 
00052 
00053 
00054 
00055 
00056 
00057 #endif // __detectpano_panodetectordefs_h
00058 

Generated on 1 Nov 2014 for Hugintrunk by  doxygen 1.4.7