#include <camera.hpp>
Public Member Functions | |
Camera (const float &width, const float &height, const float &u0, const float &v0, const float &focal_length_in_pixels, const Sophus::SE3f &pose=Sophus::SE3f()) | |
Construct a virtual camera from typical parameters. | |
void | draw () |
Draw the camera keyframe as well as the frustrum. | |
void | setPose (const Sophus::SE3f &T_cam_rel_map) |
Public Attributes | |
float | focal_length |
Eigen::Vector3f | frustum [4] |
unsigned int | height |
Sophus::SE3f | pose |
Eigen::Vector2f | principal_point |
Eigen::Vector3f | updated_frustum [4] |
unsigned int | width |
Definition at line 30 of file camera.hpp.
qglv::Camera::Camera | ( | const float & | width, |
const float & | height, | ||
const float & | u0, | ||
const float & | v0, | ||
const float & | focal_length_in_pixels, | ||
const Sophus::SE3f & | pose = Sophus::SE3f() |
||
) |
Construct a virtual camera from typical parameters.
If from a dslam parameters file, this is usually the rectified versions of width, height, u0 and v0.
Camera(parameters.rect_width, parameters.rect_height, parameters.rect_u0, parameters.rect_v0, parameters.focal_length_in_pixels, parameters.Te.inverse() )
width | |
height | |
u0 | |
v0 | |
focal_length_in_pixels | |
pose | : initialise with the pose for the camera extrinsics |
Definition at line 24 of file camera.cpp.
void qglv::Camera::draw | ( | ) |
Draw the camera keyframe as well as the frustrum.
The frustrum is useful since it gives you an idea of the direction it's facing.
Definition at line 66 of file camera.cpp.
void qglv::Camera::setPose | ( | const Sophus::SE3f & | T_cam_rel_map | ) |
Convert the tracker calculated T_cam_rel_map transform into a camera pose.
Refer to our transform cheat sheets on transforms <-> poses https://docs.google.com/a/yujinrobot.com/document/d/1HRgc0avn08vL_LGN8-SuiaaSQUYt4HbBwwZtVOGzMIo/edit#
T_cam_rel_map |
Definition at line 58 of file camera.cpp.
Definition at line 71 of file camera.hpp.
Eigen::Vector3f qglv::Camera::frustum[4] |
Definition at line 69 of file camera.hpp.
unsigned int qglv::Camera::height |
Definition at line 70 of file camera.hpp.
Sophus::SE3f qglv::Camera::pose |
Definition at line 68 of file camera.hpp.
Eigen::Vector2f qglv::Camera::principal_point |
Definition at line 72 of file camera.hpp.
Eigen::Vector3f qglv::Camera::updated_frustum[4] |
Definition at line 69 of file camera.hpp.
unsigned int qglv::Camera::width |
Definition at line 70 of file camera.hpp.