Hugin trunk 0.1
Loading...
Searching...
No Matches
CalculateFOV.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
26#ifndef _BASICALGORITHMS_CALCULATECFOV_H
27#define _BASICALGORITHMS_CALCULATECFOV_H
28
29#include <hugin_shared.h>
31
33
34
35namespace HuginBase {
36
37
39{
40
41 public:
46
48 virtual ~CalculateFOV() {};
49
50
51 public:
54 { return false; }
55
58 {
59 o_resultFOV = calcFOV(o_panorama);
60 return true; // let's hope so.
61 }
62
63
64 public:
65
67 static hugin_utils::FDiff2D calcFOV(const PanoramaData& panorama);
68
71 {
72 // [TODO] if(!hasRunSuccessfully()) DEBUG;
73 return o_resultFOV.x;
74 }
75
78 {
79 // [TODO] if(!hasRunSuccessfully()) DEBUG;
80 return o_resultFOV.y;
81 }
82
85 {
86 // [TODO] if(!hasRunSuccessfully()) DEBUG;
87 return o_resultFOV;
88 }
89
90
91 protected:
93};
94
95
96}
97#endif // _H
hugin_utils::FDiff2D o_resultFOV
hugin_utils::FDiff2D getResultFOV()
bool runAlgorithm()
implementation of the algorithm.
CalculateFOV(PanoramaData &panorama)
bool modifiesPanoramaData() const
returns true if the algorithm changes the PanoramaData.
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::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