Hugin trunk
0.1
Loading...
Searching...
No Matches
hugin_base
algorithms
nona
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
>
30
#include <
algorithms/PanoramaAlgorithm.h
>
31
32
#include <
panodata/PanoramaData.h
>
33
34
35
namespace
HuginBase
{
36
37
38
class
IMPEX
CalculateFOV
:
public
PanoramaAlgorithm
39
{
40
41
public
:
43
explicit
CalculateFOV
(
PanoramaData
&
panorama
)
44
:
PanoramaAlgorithm
(
panorama
)
45
{};
46
48
virtual
~CalculateFOV
() {};
49
50
51
public
:
53
bool
modifiesPanoramaData
()
const
54
{
return
false
; }
55
57
bool
runAlgorithm
()
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
70
double
getResultHorizontalFOV
()
71
{
72
// [TODO] if(!hasRunSuccessfully()) DEBUG;
73
return
o_resultFOV.x;
74
}
75
77
double
getResultVerticalFOV
()
78
{
79
// [TODO] if(!hasRunSuccessfully()) DEBUG;
80
return
o_resultFOV.y;
81
}
82
84
hugin_utils::FDiff2D
getResultFOV
()
85
{
86
// [TODO] if(!hasRunSuccessfully()) DEBUG;
87
return
o_resultFOV;
88
}
89
90
91
protected
:
92
hugin_utils::FDiff2D
o_resultFOV
;
93
};
94
95
96
}
97
#endif
// _H
PanoramaAlgorithm.h
PanoramaData.h
HuginBase::CalculateFOV
Definition
CalculateFOV.h:39
HuginBase::CalculateFOV::getResultVerticalFOV
double getResultVerticalFOV()
Definition
CalculateFOV.h:77
HuginBase::CalculateFOV::~CalculateFOV
virtual ~CalculateFOV()
Definition
CalculateFOV.h:48
HuginBase::CalculateFOV::o_resultFOV
hugin_utils::FDiff2D o_resultFOV
Definition
CalculateFOV.h:92
HuginBase::CalculateFOV::getResultFOV
hugin_utils::FDiff2D getResultFOV()
Definition
CalculateFOV.h:84
HuginBase::CalculateFOV::runAlgorithm
bool runAlgorithm()
implementation of the algorithm.
Definition
CalculateFOV.h:57
HuginBase::CalculateFOV::getResultHorizontalFOV
double getResultHorizontalFOV()
Definition
CalculateFOV.h:70
HuginBase::CalculateFOV::CalculateFOV
CalculateFOV(PanoramaData &panorama)
Definition
CalculateFOV.h:43
HuginBase::CalculateFOV::modifiesPanoramaData
bool modifiesPanoramaData() const
returns true if the algorithm changes the PanoramaData.
Definition
CalculateFOV.h:53
HuginBase::PanoramaAlgorithm
Definition
PanoramaAlgorithm.h:47
HuginBase::PanoramaData
Model for a panorama.
Definition
PanoramaData.h:82
hugin_shared.h
IMPEX
#define IMPEX
Definition
hugin_shared.h:39
HuginBase
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
Definition
wxcms.cpp:39
hugin_utils::TDiff2D
Definition
hugin_math.h:83
threshold
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
Generated on Sun Sep 13 2026 02:49:55 for Hugin trunk by
1.9.8