Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CalculateOverlap.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
2 
14 /* This program is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU General Public
16  * License as published by the Free Software Foundation; either
17  * version 2 of the License, or (at your option) any later version.
18  *
19  * This software is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public
25  * License along with this software. If not, see
26  * <http://www.gnu.org/licenses/>.
27  *
28  */
29 
30 #ifndef _ALGO_CALCULATE_OVERLAP_H
31 #define _ALGO_CALCULATE_OVERLAP_H
32 
33 #include <hugin_shared.h>
34 #include <panodata/PanoramaData.h>
35 #include <panodata/Panorama.h>
37 
38 namespace HuginBase
39 {
40 
43 {
44 public:
46  explicit CalculateImageOverlap(const PanoramaData * pano);
48  virtual ~CalculateImageOverlap();
51  void calculate(unsigned int steps);
53  double getOverlap(unsigned int i, unsigned int j) const;
55  void limitToImages(UIntSet img);
57  UIntSet getOverlapForImage(unsigned int i) const;
59  unsigned int getNrOfImages() const { return m_nrImg; };
60 
61 private:
62  std::vector<std::vector<double> > m_overlap;
63  std::vector<PTools::Transform*> m_transform;
64  std::vector<PTools::Transform*> m_invTransform;
65  unsigned int m_nrImg;
67  std::vector<unsigned int> m_testImages;
68 };
69 
70 } //namespace
71 #endif // _ALGO_CALCULATE_OVERLAP_H
std::vector< PTools::Transform * > m_invTransform
std::vector< PTools::Transform * > m_transform
std::set< unsigned int > UIntSet
Definition: PanoramaData.h:51
std::vector< unsigned int > m_testImages
Model for a panorama.
Definition: PanoramaData.h:81
#define IMPEX
Definition: hugin_shared.h:39
class for calculating overlap of images