#include <Lens.h>
Public Types | |
| typedef BaseSrcPanoImage::Projection | LensProjectionFormat |
Public Member Functions | |
| Lens () | |
| construct a new lens. | |
| LensProjectionFormat | getProjection () const |
| get projection type | |
| void | setProjection (LensProjectionFormat l) |
| set projection type | |
| double | getHFOV () const |
| get HFOV in degrees | |
| void | setHFOV (double d) |
| set HFOV in degrees | |
| double | getFocalLength () const |
| get focal length of lens, it is calculated from the HFOV | |
| double | getCropFactor () const |
| get crop factor, d35mm/dreal | |
| void | setCropFactor (double newCropFactor) |
| sets the crop factor | |
| double | getAspectRatio () const |
| return the sensor ratio (width/height) | |
| bool | isLandscape () const |
| check if the image associated with this lens is in landscape orientation. | |
| void | setEV (double ev) |
| set the exposure value | |
| vigra::Size2D | getImageSize () const |
| get the image size, in pixels | |
| void | setImageSize (const vigra::Size2D &sz) |
| set image size in pixels | |
| void | update (const Lens &l) |
Public Attributes | |
| LensVarMap | variables |
| bool | m_hasExif |
Static Public Attributes | |
| const char * | variableNames [] |
Private Attributes | |
| LensProjectionFormat | m_projectionFormat |
| vigra::Size2D | m_imageSize |
| double | m_cropFactor |
|
|
|
|
|
construct a new lens.
Definition at line 39 of file Lens.cpp. References HuginBase::fillLensVarMap(), and variables. |
|
|
return the sensor ratio (width/height)
Definition at line 74 of file Lens.cpp. References m_imageSize. |
|
|
get crop factor, d35mm/dreal
Definition at line 89 of file Lens.h. Referenced by ApplyLensParameters(), getFocalLength(), HFOVDialog::OnLoadLensParameters(), SaveLensParameters(), and update(). |
|
|
get focal length of lens, it is calculated from the HFOV
Definition at line 62 of file Lens.cpp. References PT::calcFocalLength(), const_map_get(), getCropFactor(), HFOV, m_imageSize, m_projectionFormat, and variables. Referenced by HFOVDialog::OnLoadLensParameters(). |
|
|
get HFOV in degrees
Definition at line 52 of file Lens.cpp. References const_map_get(). Referenced by HFOVDialog::OnLoadLensParameters(). |
|
|
get the image size, in pixels
Definition at line 108 of file Lens.h. Referenced by LoadLensParametersChoose(), and SaveLensParameters(). |
|
|
get projection type
Definition at line 72 of file Lens.h. Referenced by ApplyLensParameters(), HFOVDialog::OnLoadLensParameters(), and SaveLensParameters(). |
|
|
check if the image associated with this lens is in landscape orientation.
Definition at line 80 of file Lens.cpp. References m_imageSize. |
|
|
sets the crop factor
Definition at line 93 of file Lens.h. Referenced by HuginBase::ConstStandardImageVariableGroups::getLensForImage(), and LoadLensParametersChoose(). |
|
|
set the exposure value
|
|
|
set HFOV in degrees
Definition at line 57 of file Lens.cpp. References map_get(), and variables. Referenced by HFOVDialog::OnLoadLensParameters(). |
|
|
set image size in pixels
Definition at line 112 of file Lens.h. Referenced by HuginBase::ConstStandardImageVariableGroups::getLensForImage(), and HFOVDialog::OnLoadLensParameters(). |
|
|
set projection type
Definition at line 76 of file Lens.h. Referenced by HuginBase::ConstStandardImageVariableGroups::getLensForImage(), LoadLensParametersChoose(), and HFOVDialog::OnLoadLensParameters(). |
|
|
Definition at line 86 of file Lens.cpp. References getCropFactor(), m_cropFactor, m_imageSize, m_projectionFormat, and variables. |
|
|
Definition at line 138 of file Lens.h. Referenced by update(). |
|
|
|
|
|
Definition at line 137 of file Lens.h. Referenced by getAspectRatio(), getFocalLength(), isLandscape(), and update(). |
|
|
Definition at line 136 of file Lens.h. Referenced by getFocalLength(), and update(). |
|
|
Initial value: { "v", "a", "b", "c", "d", "e", "g", "t",
"Va", "Vb", "Vc", "Vd", "Vx", "Vy",
"Eev", "Er", "Eb",
"Ra", "Rb", "Rc", "Rd", "Re", 0}
|
|
|
Definition at line 125 of file Lens.h. Referenced by ApplyLensParameters(), getFocalLength(), Lens(), LoadLensParametersChoose(), HFOVDialog::OnLoadLensParameters(), SaveLensParameters(), setEV(), setHFOV(), and update(). |
1.3.9.1