|
UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
|
Perspective camera model for ray-generation and projection. More...
#include <lib/vision/include/ufo/vision/camera/perspective.hpp>
Public Member Functions | |
| float | fx () const noexcept |
| float | fy () const noexcept |
| void | lookAt (Vec3f center, Vec3f const &target, Vec3f const &up) |
Orients the camera so it looks from center toward target. | |
| Mat4f | projection () const |
| Image< Ray3f > | rays () const |
| template<class ExecutionPolicy > | |
| Image< Ray3f > | rays (ExecutionPolicy &&policy) const |
| Mat4f | view () const |
Public Attributes | |
| float | far_clip |
| Distance to the far clipping plane. | |
| PerspectiveIntrinsics | intrinsics |
| The intrinsic parameters of the camera. | |
| float | near_clip |
| Distance to the near clipping plane. | |
| Transform3f | pose |
| Camera-to-world pose transform. | |
Friends | |
| bool | operator== (PerspectiveCamera const &, PerspectiveCamera const &) noexcept=default |
Perspective camera model for ray-generation and projection.
PerspectiveCamera stores the intrinsic parameters and the extrinsic pose (camera-to-world transform) needed to:
view(), projection()),Image<Ray3f> of world-space rays through every pixel (rays(), rays(policy)).The pose convention is camera-to-world: pose is the transform that maps a point from camera space to world space.
Definition at line 92 of file perspective.hpp.
|
inlinenoexcept |
Definition at line 194 of file perspective.hpp.
|
inlinenoexcept |
Definition at line 201 of file perspective.hpp.
Orients the camera so it looks from center toward target.
| [in] | center | The new camera position in world space. |
| [in] | target | The point in world space to look at. |
| [in] | up | The world-space up vector. |
Definition at line 116 of file perspective.hpp.
|
inline |
Definition at line 121 of file perspective.hpp.
Definition at line 133 of file perspective.hpp.
|
inline |
Definition at line 136 of file perspective.hpp.
|
inline |
Definition at line 131 of file perspective.hpp.
| float ufo::PerspectiveCamera::far_clip |
Distance to the far clipping plane.
Definition at line 108 of file perspective.hpp.
| PerspectiveIntrinsics ufo::PerspectiveCamera::intrinsics |
The intrinsic parameters of the camera.
Definition at line 100 of file perspective.hpp.
| float ufo::PerspectiveCamera::near_clip |
Distance to the near clipping plane.
Definition at line 104 of file perspective.hpp.
| Transform3f ufo::PerspectiveCamera::pose |
Camera-to-world pose transform.
Definition at line 96 of file perspective.hpp.