![]() |
AliceVision
Photogrammetric Computer Vision Framework
|
LCPinfo loads and hosts the content of a Lens Correction Profile (LCP) file, parameters of distortion, vignetting and chromatic aberration models for different set of camera settings (focal length, focus distance, aperture value). Detailed information on LCP file content can be found in the Adobe technical report "Adobe Camera Model" part of the documentation of the Adobe free tool Lens Profile Creator. More...
#include <lcp.hpp>
Public Member Functions | |
| LCPinfo (const std::string &filename, bool fullParsing=true) | |
| LCPinfo constructor. More... | |
| void | load (const std::string &filename, bool fullParsing=true) |
| LCPinfo loader. More... | |
| void | getDistortionParams (const float &focalLength, const float &focusDistance, LensParam &lparam) |
| Get distortion parameters for a given couple focal length, focus distance. Focus distance can set to zero. More... | |
| void | getVignettingParams (const float &focalLength, const float &aperture, LensParam &lparam) |
| Get vignetting parameters for a given couple focal length, aperture value. Aperture value can set to zero. More... | |
| void | getChromaticParams (const float &focalLength, const float &focusDistance, LensParam &lparam) |
| Get defringing parameters for a given couple focal length, focus distance. Focus distance can set to zero. More... | |
| bool | isEmpty () const |
| Indicate that no lens parameter set is available. More... | |
| const std::string & | getAuthor () const |
| Get profile author. More... | |
| const std::string & | getProfileName () const |
| Get profile name. More... | |
| const std::string & | getCameraMaker () const |
| Get camera maker. More... | |
| const std::string & | getCameraModel () const |
| Get camera model. More... | |
| const std::string & | getUniqueCameraModel () const |
| Get unique camera model. More... | |
| const std::string & | getCameraPrettyName () const |
| Get camera pretty name. More... | |
| const std::string & | getLensPrettyName () const |
| Get lens pretty name. More... | |
| const std::string & | getLensInfo () const |
| Get lens information. More... | |
| void | getLensIDs (std::vector< int > &lensIDs) const |
| Get all known IDs for the lens. More... | |
| void | getLensModels (std::vector< std::string > &lensModels) const |
| Get all known model names for the lens. More... | |
| int | getImageWidth () const |
| Get image width. More... | |
| int | getImageLength () const |
| Get image length. More... | |
| float | getSensorFormatFactor () const |
| Get sensor format factor. More... | |
| bool | isRawProfile () const |
| Get raw profile status. More... | |
| int | getModelNumber () const |
| Get lens information. More... | |
| void | setAuthor (const std::string &str) |
| Set profile author. More... | |
| void | setAuthor () |
| Set profile author with current text value. | |
| void | setProfileName (const std::string &str) |
| Set profile name. More... | |
| void | setCameraMaker (const std::string &str) |
| Set camera maker. More... | |
| void | setCameraModel (const std::string &str) |
| Set camera model. More... | |
| void | setUniqueCameraModel (const std::string &str) |
| Set unique camera model. More... | |
| void | setCameraPrettyName (const std::string &str) |
| Set camera pretty name. More... | |
| void | setLensPrettyName (const std::string &str) |
| Set lens pretty name. More... | |
| void | setLensInfo (const std::string &str) |
| Set lens information. More... | |
| void | addLensID (int lensID) |
| Set an alternate lens ID for the lens. More... | |
| void | addLensModel (std::string lensModel) |
| Set an alternate model name for the lens. More... | |
| void | setImageWidth (int w) |
| Set image width. More... | |
| void | setImageLength (int l) |
| Set image length. More... | |
| void | setSensorFormatFactor (float f) |
| Set sensor format factor. More... | |
| void | setAsRawProfile () |
| Set raw profile status. More... | |
LCPinfo loads and hosts the content of a Lens Correction Profile (LCP) file, parameters of distortion, vignetting and chromatic aberration models for different set of camera settings (focal length, focus distance, aperture value). Detailed information on LCP file content can be found in the Adobe technical report "Adobe Camera Model" part of the documentation of the Adobe free tool Lens Profile Creator.
| LCPinfo::LCPinfo | ( | const std::string & | filename, |
| bool | fullParsing = true |
||
| ) |
LCPinfo constructor.
| [in] | filename | The lcp path on disk |
| [in] | fullParsing | Load only common camera and lens info and skip all models when set to false (default = true) |
|
inline |
Set an alternate lens ID for the lens.
| [in] | alternate | lens ID |
|
inline |
Set an alternate model name for the lens.
| [in] | alternate | model name |
|
inline |
Get profile author.
|
inline |
Get camera maker.
|
inline |
Get camera model.
|
inline |
Get camera pretty name.
| void LCPinfo::getChromaticParams | ( | const float & | focalLength, |
| const float & | focusDistance, | ||
| LensParam & | lparam | ||
| ) |
Get defringing parameters for a given couple focal length, focus distance. Focus distance can set to zero.
| [in] | focalLength | Focal length in mm |
| [in] | focusDistance | Focus distance in meters |
| [out] | lparam | Lens parameters to be populated with the R, G and B defringing models |
| void LCPinfo::getDistortionParams | ( | const float & | focalLength, |
| const float & | focusDistance, | ||
| LensParam & | lparam | ||
| ) |
Get distortion parameters for a given couple focal length, focus distance. Focus distance can set to zero.
| [in] | focalLength | Focal length in mm |
| [in] | focusDistance | Focus distance in meters |
| [out] | lparam | Lens parameters to be populated with the distortion model |
|
inline |
Get image length.
|
inline |
Get image width.
|
inline |
Get all known IDs for the lens.
|
inline |
Get lens information.
|
inline |
Get all known model names for the lens.
|
inline |
Get lens pretty name.
|
inline |
Get lens information.
|
inline |
Get profile name.
|
inline |
Get sensor format factor.
|
inline |
Get unique camera model.
| void LCPinfo::getVignettingParams | ( | const float & | focalLength, |
| const float & | aperture, | ||
| LensParam & | lparam | ||
| ) |
Get vignetting parameters for a given couple focal length, aperture value. Aperture value can set to zero.
| [in] | focalLength | Focal length in mm |
| [in] | aperture | Aperture value |
| [out] | lparam | Lens parameters to be populated with the vignetting model |
|
inline |
Indicate that no lens parameter set is available.
|
inline |
Get raw profile status.
| void LCPinfo::load | ( | const std::string & | filename, |
| bool | fullParsing = true |
||
| ) |
LCPinfo loader.
| [in] | filename | The lcp path on disk |
| [in] | fullParsing | Load only common camera and lens info and skip all models when set to false (default = true) |
|
inline |
Set raw profile status.
| [in] | raw | profile status |
|
inline |
Set profile author.
| [in] | profile | author |
|
inline |
Set camera maker.
| [in] | camera | maker |
|
inline |
Set camera model.
| [in] | camera | model |
|
inline |
Set camera pretty name.
| [in] | camera | pretty name |
|
inline |
Set image length.
| [in] | image | length |
|
inline |
Set image width.
| [in] | image | width |
|
inline |
Set lens information.
| [in] | lens | information |
|
inline |
Set lens pretty name.
| [in] | lens | pretty name |
|
inline |
Set profile name.
| [in] | profile | name |
|
inline |
Set sensor format factor.
| [in] | sensor | format factor |
|
inline |
Set unique camera model.
| [in] | unique | camera model |
1.8.17