Hugin trunk 0.1
Loading...
Searching...
No Matches
Lens.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
28#ifndef _PANODATA_LENS_H
29#define _PANODATA_LENS_H
30
31
32#include <string>
33#include <vector>
34#include <map>
35#include <hugin_shared.h>
36
40
41namespace HuginBase {
42
43
44class IMPEX Lens {
45
46 public:
48
52 Lens();
53
54 public:
57 { return m_projectionFormat; }
58
61 { m_projectionFormat = l; }
62
64 double getHFOV() const;
65
67 void setHFOV(double d);
68
70 double getFocalLength() const;
71
73 double getCropFactor() const
74 { return m_cropFactor; };
75
78 { m_cropFactor=newCropFactor; };
79
82 double getAspectRatio() const;
83
86 bool isLandscape() const;
87
89 vigra::Size2D getImageSize() const
90 { return m_imageSize; }
91
93 void setImageSize(const vigra::Size2D & sz)
94 { m_imageSize = sz; }
95
96 // updates everything, including the lens variables.
97 void update(const Lens & l);
98
99
100 public: //?
101
102 // bool isLandscape;
103
104 // these are the lens specific settings.
105 // lens correction parameters
107
108#ifndef SWIG
109 // dimensionless array not supported by SWIG
110 static const char *variableNames[];
111#endif
112
114
115
116 private:
118 vigra::Size2D m_imageSize;
120
121};
122
123
125typedef std::vector<Lens> LensVector;
126
127
128} // namespace
129#endif // _H
vigra::Size2D m_imageSize
Definition Lens.h:118
LensProjectionFormat m_projectionFormat
Definition Lens.h:117
double m_cropFactor
Definition Lens.h:119
void setImageSize(const vigra::Size2D &sz)
set image size in pixels
Definition Lens.h:93
vigra::Size2D getImageSize() const
get the image size, in pixels
Definition Lens.h:89
void setProjection(LensProjectionFormat l)
set projection type
Definition Lens.h:60
double getCropFactor() const
get crop factor, d35mm/dreal
Definition Lens.h:73
void setCropFactor(double newCropFactor)
sets the crop factor
Definition Lens.h:77
BaseSrcPanoImage::Projection LensProjectionFormat
Definition Lens.h:47
LensVarMap variables
Definition Lens.h:106
LensProjectionFormat getProjection() const
get projection type
Definition Lens.h:56
bool m_hasExif
Definition Lens.h:113
misc math function & classes used by other parts of the program
#define IMPEX
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
Definition wxcms.cpp:39
std::map< std::string, LensVariable > LensVarMap
std::vector< Lens > LensVector
Definition Lens.h:125
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