Hugin trunk 0.1
Loading...
Searching...
No Matches
ImageGraph.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
7/* This is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public
18 * License along with this software. If not, see
19 * <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#ifndef _PANODATA_IMAGEGRAPH_H
24#define _PANODATA_IMAGEGRAPH_H
25
26#include <hugin_shared.h>
27
30
31namespace HuginGraph
32{
33
36{
37public:
39};
40
45{
46public:
48 typedef std::vector<HuginBase::UIntSet> GraphList;
50 typedef std::vector<HuginBase::UIntSet> Components;
59 Components GetComponents();
65 bool IsConnected();
71 void VisitAllImages(const size_t startImg, bool forceAllComponents, BreadthFirstSearchVisitor* visitor);
72private:
74}; // class ImageGraph
75
76} // namespace HuginGraph
77
78#endif // _PANODATA_IMAGEGRAPH_H
definitions of classes to calculate overlap between different images
class for calculating overlap of images
Model for a panorama.
abstract base functor for breadth first search in ImageGraph
Definition ImageGraph.h:36
virtual void Visit(const size_t vertex, const HuginBase::UIntSet &visitedNeighbors, const HuginBase::UIntSet &unvisitedNeighbors)=0
class to work with images graphs created from a HuginBase::Panorama class it creates a graph based on...
Definition ImageGraph.h:45
std::vector< HuginBase::UIntSet > GraphList
stores adjacency list for graph
Definition ImageGraph.h:48
std::vector< HuginBase::UIntSet > Components
stores the components of the graph
Definition ImageGraph.h:50
#define IMPEX
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