Hugin trunk 0.1
Loading...
Searching...
No Matches
StitcherAlgorithm.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
32#ifndef _ALGORITHM_STITCHERALGORITHM_H
33#define _ALGORITHM_STITCHERALGORITHM_H
34
35
37
38#include <hugin_shared.h>
39#include <vigra/stdimage.hxx>
41
42
43namespace HuginBase {
44
45
48 {
49
50 public:
59
60 public:
62 virtual ~StitcherAlgorithm() {};
63
64
65 public:
67 virtual bool runAlgorithm()
68 { return runStitcher(); }
69
71 virtual bool modifiesPanoramaData() const { return false; };
72
73 protected:
75 virtual bool runStitcher() =0;
76
77
78 protected:
81 };
82
83
84
87 {
88
89 public:
90 typedef vigra::FRGBImage DestImage;
91 typedef vigra::BImage DestAlpha;
92
102
103 public:
106
107
108 protected:
111 };
112
113
116 {
117
118 public:
119 typedef std::string String;
120
124 const PanoramaOptions& options,
125 const UIntSet& usedImages,
126 const String& filename, const bool& addExtension = true)
128 o_filename(filename)
129 {};
130
131 public:
134
135
136
137 protected:
139 };
140
141
142 // parent class does not have a default constructor, leads to compiler errors
143#if 0
148 {
149 public:
152 };
153#endif
154
155} // namespace
156#endif // _H
FileOutputStitcherAlgorithm(PanoramaData &panoramaData, AppBase::ProgressDisplay *progressDisplay, const PanoramaOptions &options, const UIntSet &usedImages, const String &filename, const bool &addExtension=true)
ImageStitcherAlgorithm(PanoramaData &panoramaData, AppBase::ProgressDisplay *progressDisplay, const PanoramaOptions &options, const UIntSet &usedImages, DestImage &panoImage, DestAlpha &alpha)
Model for a panorama.
Panorama image options.
Just a conceptual base class...
virtual bool runStitcher()=0
virtual bool runAlgorithm()
implementation of the algorithm.
StitcherAlgorithm(PanoramaData &panoramaData, AppBase::ProgressDisplay *progressDisplay, const PanoramaOptions &options, const UIntSet &usedImages)
virtual bool modifiesPanoramaData() const
returns flase, hope this is correct
#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