Hugin trunk
0.1
Loading...
Searching...
No Matches
hugin_base
algorithms
basic
StraightenPanorama.h
Go to the documentation of this file.
1
// -*- c-basic-offset: 4 -*-
26
#ifndef _BASICALGORITHMS_STRAIGHTENPANORAMA_H
27
#define _BASICALGORITHMS_STRAIGHTENPANORAMA_H
28
29
#include <
hugin_shared.h
>
30
#include <
algorithms/basic/RotatePanorama.h
>
31
32
33
namespace
HuginBase
{
34
35
36
class
IMPEX
StraightenPanorama
:
public
RotatePanorama
37
{
38
39
public
:
41
explicit
StraightenPanorama
(
PanoramaData
&
panorama
)
42
:
RotatePanorama
(
panorama
,
Matrix3
())
43
{};
44
46
virtual
~StraightenPanorama
() {};
47
48
49
public
:
51
static
Matrix3
calcStraighteningRotation(
const
PanoramaData
&
panorama
);
52
53
public
:
55
virtual
bool
runAlgorithm
()
56
{
57
for
(
unsigned
int
i
=0;
i
<o_panorama.getNrOfImages();
i
++)
58
{
59
const
SrcPanoImage
& img=o_panorama.getImage(
i
);
60
//if translation parameters are non-zero, straighten does not work in current form
61
//TODO: fix straighten with non-zero translation parameters
62
if
(img.getX()!=0 || img.getY()!=0 || img.getZ()!=0)
63
return
true
;
64
};
65
o_transformMat = calcStraighteningRotation(o_panorama);
66
RotatePanorama::runAlgorithm();
67
68
return
true
;
// let's hope so.
69
}
70
};
71
72
73
}
74
#endif
//_H
RotatePanorama.h
HuginBase::PanoramaData
Model for a panorama.
Definition
PanoramaData.h:82
HuginBase::RotatePanorama
Definition
RotatePanorama.h:39
HuginBase::SrcPanoImage
All variables of a source image.
Definition
SrcPanoImage.h:195
HuginBase::StraightenPanorama
Definition
StraightenPanorama.h:37
HuginBase::StraightenPanorama::StraightenPanorama
StraightenPanorama(PanoramaData &panorama)
Definition
StraightenPanorama.h:41
HuginBase::StraightenPanorama::runAlgorithm
virtual bool runAlgorithm()
implementation of the algorithm.
Definition
StraightenPanorama.h:55
HuginBase::StraightenPanorama::~StraightenPanorama
virtual ~StraightenPanorama()
Definition
StraightenPanorama.h:46
Matrix3
general : Matrix3 is a class for handling 3x3 Matrix manipulation.
Definition
Matrix3.h:38
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
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 Tue Sep 1 2026 20:52:06 for Hugin trunk by
1.9.8