18std::pair<float, FocalLengthMethod>
25 float sensor_size = -1.0f;
26 if (focal_length > 0.0f && !camera_model.empty())
33 if (focal_length > 0.0f && sensor_size > 0.0f)
35 float flen = focal_length / sensor_size;
41 if (focal_length_35mm > 0.0f)
43 float flen = focal_length_35mm / 35.0f;
Camera database which, given a maker and model string, will look for a camera model in the database a...
CameraModel const * lookup(std::string const &maker, std::string const &model) const
Lookup of a camera model.
@ FOCAL_LENGTH_AND_DATABASE
@ FOCAL_LENGTH_35MM_EQUIV
@ FOCAL_LENGTH_FALLBACK_VALUE
std::pair< float, FocalLengthMethod > extract_focal_length(mve::image::ExifInfo const &exif)
Extracts the focal length from the EXIF tags of an image.
#define SFM_NAMESPACE_END
#define SFM_NAMESPACE_BEGIN
std::string camera_maker
Camera manufacturer.
float focal_length_35mm
Focal length equivalent for 35mm film.
std::string camera_model
Camera model.
float focal_length
Focal length of the image in mm, relative to sensor size.
Representation of a digital camera.
float sensor_width_mm
The width of the sensor in milli meters.