58 bool GetCropFactor(
const std::string&
maker,
const std::string&
model,
double& cropFactor)
const;
71 bool GetCrop(
const std::string& lens,
const double focal,
const vigra::Size2D& imageSize, vigra::Rect2D&
cropRect)
const;
78 bool GetFov(
const std::string& lens,
const double focal,
double& fov)
const;
84 bool GetDistortion(
const std::string& lens,
const double focal, std::vector<double>&
distortion)
const;
92 bool GetVignetting(
const std::string& lens,
const double focal,
const double aperture,
const double distance, std::vector<double>&
vignetting)
const;
99 bool GetTCA(
const std::string& lens,
const double focal, std::vector<double>&
tca_red, std::vector<double>&
tca_blue)
const;
109 bool CleanUpDatabase();
112 bool RemoveLens(
const std::string&
lensname);
115 bool RemoveCamera(
const std::string&
maker,
const std::string&
model);
123 bool SaveCameraCrop(
const std::string&
maker,
const std::string&
model,
const double cropfactor);
131 bool SaveEMoR(
const std::string&
maker,
const std::string&
model,
const int iso,
const std::vector<float>&
emor,
const int weight = 10);
144 bool SaveLensCrop(
const std::string& lens,
const double focal,
const vigra::Size2D& imageSize,
const vigra::Rect2D&
cropRect);
152 bool SaveLensFov(
const std::string& lens,
const double focal,
const double fov,
const int weight = 10);
159 bool SaveDistortion(
const std::string& lens,
const double focal,
const std::vector<double>&
distortion,
const int weight = 10);
168 bool SaveVignetting(
const std::string& lens,
const double focal,
const double aperture,
const double distance,
const std::vector<double>&
vignetting,
const int weight = 10);
176 bool SaveTCA(
const std::string& lens,
const double focal,
const std::vector<double>&
tca_red,
const std::vector<double>&
tca_blue,
const int weight=10);
178 std::string GetDBFilename()
const;
181 static LensDB& GetSingleton();
185 bool ExportToFile(
const std::string& filename);
187 bool ImportFromFile(
const std::string& filename);
LensDB & operator=(const LensDB &)
static LensDB * m_instance
std::vector< std::string > LensList
vector storing a list of lens names
bool SaveLensDataFromPano(const HuginBase::Panorama &pano)
routine for automatically saving information from pano into database
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
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.