37 m_imageSize(0,0), m_cropFactor(1.0)
44 "Va",
"Vb",
"Vc",
"Vd",
"Vx",
"Vy",
45 "Ra",
"Rb",
"Rc",
"Rd",
"Re", 0};
static const char * variableNames[]
bool isLandscape() const
check if the image associated with this lens is in landscape orientation.
double getHFOV() const
get HFOV in degrees
const Map::mapped_type & const_map_get(const Map &m, const typename Map::key_type &key)
double getFocalLength() const
get focal length of lens, it is calculated from the HFOV
vigra::Size2D m_imageSize
double getAspectRatio() const
return the sensor ratio (width/height)
Map::mapped_type & map_get(Map &m, const typename Map::key_type &key)
get a map element.
Lens()
construct a new lens.
Base class containing all the variables, but missing some of the other important functions and with s...
static double calcFocalLength(SrcPanoImage::Projection proj, double hfov, double crop, vigra::Size2D imageSize)
calcualte focal length, given crop factor and hfov
void setHFOV(double d)
set HFOV in degrees
void fillLensVarMap(LensVarMap &variables)
just lens variables
void update(const Lens &l)
double getCropFactor() const
get crop factor, d35mm/dreal
LensProjectionFormat m_projectionFormat