eos
0.7.1
|
Represents a set of estimated model parameters (rotation, translation) and camera parameters (viewing frustum). More...
#include <nonlinear_camera_estimation.hpp>
Public Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive) |
Public Attributes | |
CameraType | camera_type |
Frustum | frustum |
float | r_x |
float | r_y |
float | r_z |
float | t_x |
float | t_y |
int | screen_width |
int | screen_height |
boost::optional< float > | focal_length |
Friends | |
class | cereal::access |
Represents a set of estimated model parameters (rotation, translation) and camera parameters (viewing frustum).
The estimated rotation and translation transform the model from model-space to camera-space, and, if one wishes to use OpenGL, can be used to build the model-view matrix. The parameters are the inverse of the camera position in 3D space.
The camera frustum describes the size of the viewing plane of the camera, and can be used to build an OpenGL-conformant orthographic projection matrix.
Together, these parameters fully describe the imaging process of a given model instance (under an orthographic projection).
The rotation values are given in radians and estimated using the RPY convention. Yaw is applied first to the model, then pitch, then roll (R * P * Y * vertex).
Todo: This class may need a major overhaul so it supports all our fitting algorithms, some of them which use quaternions, others estimate the angles, as well as work with both orthographic and perspective projection.
|
inline |
Serialises this class using cereal.
[in] | archive | The archive to serialise to (or to serialise from). |