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