Hugin trunk 0.1
Loading...
Searching...
No Matches
TranslatePanorama.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
22#ifndef _BASICALGORITHMS_TRANSLATEPANORAMA_H
23#define _BASICALGORITHMS_TRANSLATEPANORAMA_H
24
25#include <hugin_shared.h>
28
29
30namespace HuginBase {
31
32
34{
35
36 public:
38 explicit TranslatePanorama(PanoramaData& panorama, const double x = 0, const double y = 0, const double z = 0)
39 : PanoramaAlgorithm(panorama), o_x(x), o_y(y), o_z(z)
40 {};
41
43 virtual ~TranslatePanorama() {};
44
45
46 public:
48 static void translatePano(PanoramaData& panorama, const double x, const double y, const double z);
49
50
51 public:
53 virtual bool modifiesPanoramaData() const
54 { return true; }
55
57 virtual bool runAlgorithm()
58 {
59 translatePano(o_panorama, o_x, o_y, o_z);
60 return true; // let's hope so.
61 }
62
63
64 protected:
65 double o_x;
66 double o_y;
67 double o_z;
68};
69
70
71} // namespace
72#endif
Model for a panorama.
TranslatePanorama(PanoramaData &panorama, const double x=0, const double y=0, const double z=0)
virtual bool modifiesPanoramaData() const
returns true if the algorithm changes the PanoramaData.
virtual bool runAlgorithm()
implementation of the algorithm.
#define IMPEX
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
Definition wxcms.cpp:39
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