[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

HuginBase::Lens Class Reference

#include <Lens.h>

List of all members.

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 []


Member Typedef Documentation

typedef BaseSrcPanoImage::Projection HuginBase::Lens::LensProjectionFormat
 


Constructor & Destructor Documentation

HuginBase::Lens::Lens  ) 
 

construct a new lens.


Member Function Documentation

double HuginBase::Lens::getAspectRatio  )  const
 

return the sensor ratio (width/height)

double HuginBase::Lens::getCropFactor  )  const [inline]
 

get crop factor, d35mm/dreal

double HuginBase::Lens::getFocalLength  )  const
 

get focal length of lens, it is calculated from the HFOV

double HuginBase::Lens::getHFOV  )  const
 

get HFOV in degrees

vigra::Size2D HuginBase::Lens::getImageSize  )  const [inline]
 

get the image size, in pixels

LensProjectionFormat HuginBase::Lens::getProjection  )  const [inline]
 

get projection type

bool HuginBase::Lens::isLandscape  )  const
 

check if the image associated with this lens is in landscape orientation.

void HuginBase::Lens::setCropFactor double  newCropFactor  )  [inline]
 

sets the crop factor

void HuginBase::Lens::setEV double  ev  ) 
 

set the exposure value

void HuginBase::Lens::setHFOV double  d  ) 
 

set HFOV in degrees

void HuginBase::Lens::setImageSize const vigra::Size2D &  sz  )  [inline]
 

set image size in pixels

void HuginBase::Lens::setProjection LensProjectionFormat  l  )  [inline]
 

set projection type

void HuginBase::Lens::update const Lens l  ) 
 


Member Data Documentation

bool HuginBase::Lens::m_hasExif
 

const char * HuginBase::Lens::variableNames [static]
 

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}

LensVarMap HuginBase::Lens::variables
 


The documentation for this class was generated from the following files:

Generated on Mon Sep 20 01:01:36 2010 for Hugintrunk by doxygen 1.3.9.1