UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
Loading...
Searching...
No Matches
ufo::OrthogonalCamera Struct Reference

Orthogonal camera model for ray-generation and projection. More...

#include <lib/vision/include/ufo/vision/camera/orthogonal.hpp>

Public Member Functions

void lookAt (Vec3f center, Vec3f const &target, Vec3f const &up)
 Orients the camera so it looks from center toward target.
 
Mat4f projection () const
 
Image< Ray3frays () const
 
template<class ExecutionPolicy >
Image< Ray3frays (ExecutionPolicy &&policy) const
 
Mat4f view () const
 

Public Attributes

float far_clip
 Distance to the far clipping plane.
 
OrthogonalIntrinsics 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== (OrthogonalCamera const &, OrthogonalCamera const &) noexcept=default
 

Detailed Description

Orthogonal camera model for ray-generation and projection.

OrthogonalCamera stores the intrinsic parameters and the extrinsic pose (camera-to-world transform) needed to:

  • build a 4×4 view or projection matrix (view(), projection()),
  • cast a dense Image<Ray3f> of world-space rays through every pixel (rays(), rays(policy)).

Definition at line 82 of file orthogonal.hpp.

Member Function Documentation

◆ lookAt()

void ufo::OrthogonalCamera::lookAt ( Vec3f  center,
Vec3f const &  target,
Vec3f const &  up 
)
inline

Orients the camera so it looks from center toward target.

Parameters
[in]centerThe new camera position in world space.
[in]targetThe point in world space to look at.
[in]upThe world-space up vector.

Definition at line 106 of file orthogonal.hpp.

◆ projection()

Mat4f ufo::OrthogonalCamera::projection ( ) const
inline

Definition at line 111 of file orthogonal.hpp.

◆ rays() [1/2]

Image< Ray3f > ufo::OrthogonalCamera::rays ( ) const
inline

Definition at line 123 of file orthogonal.hpp.

◆ rays() [2/2]

template<class ExecutionPolicy >
Image< Ray3f > ufo::OrthogonalCamera::rays ( ExecutionPolicy &&  policy) const
inline

Definition at line 126 of file orthogonal.hpp.

◆ view()

Mat4f ufo::OrthogonalCamera::view ( ) const
inline

Definition at line 121 of file orthogonal.hpp.

Member Data Documentation

◆ far_clip

float ufo::OrthogonalCamera::far_clip

Distance to the far clipping plane.

Definition at line 98 of file orthogonal.hpp.

◆ intrinsics

OrthogonalIntrinsics ufo::OrthogonalCamera::intrinsics

The intrinsic parameters of the camera.

Definition at line 90 of file orthogonal.hpp.

◆ near_clip

float ufo::OrthogonalCamera::near_clip

Distance to the near clipping plane.

Definition at line 94 of file orthogonal.hpp.

◆ pose

Transform3f ufo::OrthogonalCamera::pose

Camera-to-world pose transform.

Definition at line 86 of file orthogonal.hpp.


The documentation for this struct was generated from the following file: