28#ifndef _PANODATA_LENS_H
29#define _PANODATA_LENS_H
57 {
return m_projectionFormat; }
61 { m_projectionFormat = l; }
64 double getHFOV()
const;
67 void setHFOV(
double d);
70 double getFocalLength()
const;
74 {
return m_cropFactor; };
82 double getAspectRatio()
const;
86 bool isLandscape()
const;
90 {
return m_imageSize; }
97 void update(
const Lens & l);
110 static const char *variableNames[];
vigra::Size2D m_imageSize
LensProjectionFormat m_projectionFormat
void setImageSize(const vigra::Size2D &sz)
set image size in pixels
vigra::Size2D getImageSize() const
get the image size, in pixels
void setProjection(LensProjectionFormat l)
set projection type
double getCropFactor() const
get crop factor, d35mm/dreal
void setCropFactor(double newCropFactor)
sets the crop factor
BaseSrcPanoImage::Projection LensProjectionFormat
LensProjectionFormat getProjection() const
get projection type
misc math function & classes used by other parts of the program
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
std::map< std::string, LensVariable > LensVarMap
std::vector< Lens > LensVector
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.