|
Hugintrunk
0.1
|
#include <Lens.h>
Public Types | |
| typedef BaseSrcPanoImage::Projection | LensProjectionFormat |
Public Member Functions | |
| Lens () | |
| construct a new lens. More... | |
| LensProjectionFormat | getProjection () const |
| get projection type More... | |
| void | setProjection (LensProjectionFormat l) |
| set projection type More... | |
| double | getHFOV () const |
| get HFOV in degrees More... | |
| void | setHFOV (double d) |
| set HFOV in degrees More... | |
| double | getFocalLength () const |
| get focal length of lens, it is calculated from the HFOV More... | |
| double | getCropFactor () const |
| get crop factor, d35mm/dreal More... | |
| void | setCropFactor (double newCropFactor) |
| sets the crop factor More... | |
| double | getAspectRatio () const |
| return the sensor ratio (width/height) More... | |
| bool | isLandscape () const |
| check if the image associated with this lens is in landscape orientation. More... | |
| vigra::Size2D | getImageSize () const |
| get the image size, in pixels More... | |
| void | setImageSize (const vigra::Size2D &sz) |
| set image size in pixels More... | |
| void | update (const Lens &l) |
Public Attributes | |
| LensVarMap | variables |
| bool | m_hasExif |
Static Public Attributes | |
| static const char * | variableNames [] |
Private Attributes | |
| LensProjectionFormat | m_projectionFormat |
| vigra::Size2D | m_imageSize |
| double | m_cropFactor |
| HuginBase::Lens::Lens | ( | ) |
construct a new lens.
Definition at line 35 of file Lens.cpp.
References HuginBase::fillLensVarMap(), and variables.
| double HuginBase::Lens::getAspectRatio | ( | ) | const |
return the sensor ratio (width/height)
Definition at line 64 of file Lens.cpp.
References m_imageSize.
|
inline |
get crop factor, d35mm/dreal
Definition at line 73 of file Lens.h.
Referenced by getFocalLength(), HFOVDialog::OnLoadLensParameters(), SaveLensParameters(), and update().
| double HuginBase::Lens::getFocalLength | ( | ) | const |
get focal length of lens, it is calculated from the HFOV
Definition at line 57 of file Lens.cpp.
References HuginBase::SrcPanoImage::calcFocalLength(), const_map_get(), getCropFactor(), HFOV, m_imageSize, m_projectionFormat, and variables.
| double HuginBase::Lens::getHFOV | ( | ) | const |
get HFOV in degrees
Definition at line 47 of file Lens.cpp.
References const_map_get(), and variables.
Referenced by HFOVDialog::OnLoadLensParameters().
|
inline |
get the image size, in pixels
Definition at line 89 of file Lens.h.
Referenced by PanoOperation::ChangeLensOperation::GetInternalCommand(), LoadLensParametersChoose(), and SaveLensParameters().
|
inline |
get projection type
Definition at line 56 of file Lens.h.
Referenced by HFOVDialog::OnLoadLensParameters(), and SaveLensParameters().
| bool HuginBase::Lens::isLandscape | ( | ) | const |
check if the image associated with this lens is in landscape orientation.
Definition at line 70 of file Lens.cpp.
References m_imageSize.
|
inline |
sets the crop factor
Definition at line 77 of file Lens.h.
Referenced by LoadLensParametersChoose().
| void HuginBase::Lens::setHFOV | ( | double | d | ) |
|
inline |
set image size in pixels
Definition at line 93 of file Lens.h.
Referenced by HFOVDialog::OnLoadLensParameters().
|
inline |
| void HuginBase::Lens::update | ( | const Lens & | l | ) |
Definition at line 76 of file Lens.cpp.
References getCropFactor(), m_cropFactor, m_imageSize, m_projectionFormat, and variables.
|
private |
|
private |
Definition at line 118 of file Lens.h.
Referenced by getAspectRatio(), getFocalLength(), isLandscape(), and update().
|
private |
Definition at line 117 of file Lens.h.
Referenced by getFocalLength(), and update().
|
static |
Definition at line 110 of file Lens.h.
Referenced by LoadLensParametersChoose(), and SaveLensParameters().
| LensVarMap HuginBase::Lens::variables |
Definition at line 106 of file Lens.h.
Referenced by getFocalLength(), getHFOV(), Lens(), LoadLensParametersChoose(), HFOVDialog::OnLoadLensParameters(), SaveLensParameters(), setHFOV(), and update().
1.8.5