AliceVision
Photogrammetric Computer Vision Framework
Classes | Public Member Functions | List of all members
LCPdatabase Class Reference

LCPdatabase allows to access all the LCP files in the database. More...

#include <lcp.hpp>

Public Member Functions

 LCPdatabase (const std::string &folder, bool omitCameraModel=false)
 LCPdatabase constructor. More...
 
bool empty () const
 
size_t size () const
 
void loadDirectory (const std::filesystem::path &p)
 
LCPinforetrieveLCP ()
 
LCPinforetrieveLCP (const std::string &p)
 Get the LCP from filepath. Retrieve it from cache or load it into the cache.
 
LCPinfofindLCP (const std::string &cameraMake, const std::string &cameraModel, const std::string &lensModel, const int lensID, int rawMode)
 Try to find an appropriate LCP file for a set of camera and lens information amongst a set of files. If a file is found, load its content. More...
 

Detailed Description

LCPdatabase allows to access all the LCP files in the database.

Constructor & Destructor Documentation

◆ LCPdatabase()

LCPdatabase::LCPdatabase ( const std::string &  folder,
bool  omitCameraModel = false 
)
inline

LCPdatabase constructor.

Parameters
[in]folderThe folder containing all lcp files

Member Function Documentation

◆ findLCP()

LCPinfo * LCPdatabase::findLCP ( const std::string &  cameraMake,
const std::string &  cameraModel,
const std::string &  lensModel,
const int  lensID,
int  rawMode 
)

Try to find an appropriate LCP file for a set of camera and lens information amongst a set of files. If a file is found, load its content.

Parameters
[in]cameraMakeCamera maker name
[in]cameraModelCamera model name
[in]lensModelLens model name
[in]lensIDLens ID
[in]rawModeSet if raw status of a profile must be considered or not 0 : no matter about raw status 1 : only raw profile are considered in the search 2 : only non raw profile are considered in the search
[in]omitCameraModelcameraModelOrMaker contains only the camera maker (default is false)
Returns
pointer to the found LCPinfo

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