10#ifndef SFM_CAMERA_DATABASE_HEADER
11#define SFM_CAMERA_DATABASE_HEADER
53 CameraModel const* lookup (std::string
const& maker,
54 std::string
const& model)
const;
58 void add (std::string
const& maker, std::string
const& model,
59 float sensor_width_mm,
float sensor_height_mm,
60 int sensor_width_px,
int sensor_height_px);
64 std::vector<CameraModel> data;
70CameraDatabase::get (
void)
72 if (CameraDatabase::instance ==
nullptr)
74 return CameraDatabase::instance;
Camera database which, given a maker and model string, will look for a camera model in the database a...
#define SFM_NAMESPACE_END
#define SFM_NAMESPACE_BEGIN
Representation of a digital camera.
float sensor_height_mm
The height of the sensor in milli meters.
float sensor_width_mm
The width of the sensor in milli meters.
int sensor_width_px
The width of the sensor in pixels.
std::string model
The model of the camera.
int sensor_height_px
The height of the sensor in pixels.
std::string maker
The manufacturer for the camera.