Static platform data about the F2 and its main image sensor. More...
#include <Platform.h>
Public Member Functions | |
virtual void | rawToRGBColorMatrix (int kelvin, float *matrix) const |
Produce a 3x4 affine matrix that maps from sensor RGB to linear-luminance sRGB at the given white balance. | |
virtual const std::string & | manufacturer () const |
The camera's manufacturer. | |
virtual const std::string & | model () const |
The camera's model. | |
virtual unsigned short | minRawValue () const |
The F2 produces 10-bit raw values, always positive. | |
virtual unsigned short | maxRawValue () const |
The F2 produces 10-bit raw values, always positive. | |
virtual BayerPattern | bayerPattern () const |
The F2's bayer pattern (the top-left 2x2 block of pixels is GRBG. | |
Static Public Member Functions | |
static const Platform & | instance () |
Access to the singleton instance of this class. |
Static platform data about the F2 and its main image sensor.
Definition at line 14 of file Platform.h.
void FCam::F2::Platform::rawToRGBColorMatrix | ( | int | kelvin, | |
float * | matrix | |||
) | const [virtual] |
Produce a 3x4 affine matrix that maps from sensor RGB to linear-luminance sRGB at the given white balance.
Given in row-major order.
Implements FCam::Platform.
Definition at line 10 of file Platform.cpp.
virtual const std::string& FCam::F2::Platform::manufacturer | ( | ) | const [inline, virtual] |
The camera's manufacturer.
(e.g. Canon).
Implements FCam::Platform.
Definition at line 17 of file Platform.h.
virtual const std::string& FCam::F2::Platform::model | ( | ) | const [inline, virtual] |
The camera's model.
Should also include manufacturer (e.g. Canon 400D).
Implements FCam::Platform.
Definition at line 20 of file Platform.h.
const Platform & FCam::F2::Platform::instance | ( | ) | [static] |
Access to the singleton instance of this class.
Normally you access the platform data via Frame::platform or Sensor::platform.
Definition at line 35 of file Platform.cpp.