Hugin trunk 0.1
Loading...
Searching...
No Matches
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>
35#include <panodata/Panorama.h>
37
38namespace HuginBase
39{
40
43{
44public:
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
61private:
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
class for calculating overlap of images
std::vector< PTools::Transform * > m_transform
std::vector< std::vector< double > > m_overlap
unsigned int getNrOfImages() const
return number of images in underlying pano
std::vector< PTools::Transform * > m_invTransform
std::vector< unsigned int > m_testImages
Model for a panorama.
#define IMPEX
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
Definition wxcms.cpp:39
std::set< unsigned int > UIntSet
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition threshold.h:41