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

Stores the intrinsic parameters of a perspective camera. More...

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

Public Member Functions

constexpr float aspect () const noexcept
 Computes the aspect ratio (cols / rows).
 

Public Attributes

std::size_t cols {}
 Image width in pixels.
 
float cx {}
 Horizontal principal point in pixels.
 
float cy {}
 Vertical principal point in pixels.
 
bool deterministic = true
 Whether ray generation should be deterministic.
 
float focus_distance = 0.0f
 Distance to the focal plane.
 
float fx = 0.0f
 Horizontal focal length in pixels.
 
float fy = 0.0f
 Vertical focal length in pixels.
 
float lens_radius = 0.0f
 Radius of the camera lens.
 
std::size_t rows {}
 Image height in pixels.
 
float vertical_fov {}
 Vertical field of view in radians.
 
float zoom = 1.0f
 Zoom factor.
 

Friends

bool operator== (PerspectiveIntrinsics const &, PerspectiveIntrinsics const &) noexcept=default
 Memberwise equality comparison.
 

Detailed Description

Stores the intrinsic parameters of a perspective camera.

Definition at line 64 of file perspective_intrinsics.hpp.

Member Function Documentation

◆ aspect()

constexpr float ufo::PerspectiveIntrinsics::aspect ( ) const
inlineconstexprnoexcept

Computes the aspect ratio (cols / rows).

Returns
The aspect ratio.

Definition at line 131 of file perspective_intrinsics.hpp.

Member Data Documentation

◆ cols

std::size_t ufo::PerspectiveIntrinsics::cols {}

Image width in pixels.

Definition at line 72 of file perspective_intrinsics.hpp.

◆ cx

float ufo::PerspectiveIntrinsics::cx {}

Horizontal principal point in pixels.

Optical axis x-offset from the left edge.

Definition at line 82 of file perspective_intrinsics.hpp.

◆ cy

float ufo::PerspectiveIntrinsics::cy {}

Vertical principal point in pixels.

Optical axis y-offset from the top edge.

Definition at line 88 of file perspective_intrinsics.hpp.

◆ deterministic

bool ufo::PerspectiveIntrinsics::deterministic = true

Whether ray generation should be deterministic.

If true, uses a fixed seed per row for reproducibility. If false, uses a thread-local random device for better performance. Default is true.

Definition at line 125 of file perspective_intrinsics.hpp.

◆ focus_distance

float ufo::PerspectiveIntrinsics::focus_distance = 0.0f

Distance to the focal plane.

Used for Depth of Field.

Definition at line 112 of file perspective_intrinsics.hpp.

◆ fx

float ufo::PerspectiveIntrinsics::fx = 0.0f

Horizontal focal length in pixels.

If 0, derived from vertical_fov and aspect().

Definition at line 100 of file perspective_intrinsics.hpp.

◆ fy

float ufo::PerspectiveIntrinsics::fy = 0.0f

Vertical focal length in pixels.

If 0, derived from vertical_fov.

Definition at line 106 of file perspective_intrinsics.hpp.

◆ lens_radius

float ufo::PerspectiveIntrinsics::lens_radius = 0.0f

Radius of the camera lens.

Used for Depth of Field. Default 0 (pinhole).

Definition at line 118 of file perspective_intrinsics.hpp.

◆ rows

std::size_t ufo::PerspectiveIntrinsics::rows {}

Image height in pixels.

Definition at line 68 of file perspective_intrinsics.hpp.

◆ vertical_fov

float ufo::PerspectiveIntrinsics::vertical_fov {}

Vertical field of view in radians.

Definition at line 76 of file perspective_intrinsics.hpp.

◆ zoom

float ufo::PerspectiveIntrinsics::zoom = 1.0f

Zoom factor.

Scales the projection matrix along the x and y axes. Default is 1.0.

Definition at line 94 of file perspective_intrinsics.hpp.


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