Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
pangea_survey::PiAiOptics Struct Reference

Nominal Pi AI Camera geometry used by the simulator rendering profile. More...

#include <camera_optics.h>

Static Public Member Functions

static ImageFraming::Crop crop (int sourceWidth, int sourceHeight, int inset)
 Compute a centered source crop matching the nominal sensor frame.
static double verticalFov ()
 Return nominal vertical field of view in degrees.
static double horizontalFov ()
 Return nominal horizontal field of view in degrees.
static double viewportFov (int sourceWidth, int sourceHeight, int inset)
 Find the simulator vertical FOV that yields this captured viewport.

Static Public Attributes

static constexpr int width = 2028
static constexpr int height = 1520
static constexpr double focalMm = 4.74
static constexpr double aperture = 1.79
static constexpr double clearDayShutterSeconds = 0.0001
static constexpr double sensorWidthMm = 4056 * 0.00155
static constexpr double sensorHeightMm = 3040 * 0.00155
static constexpr double radiansToDegrees = 57.295779513082320877
static constexpr double focalPixels = focalMm / (2 * 0.00155)
static constexpr double k1 = -0.03
static constexpr double k2 = 0.005
static constexpr double blueScale = 0.9996
static constexpr double greenScale = 1
static constexpr double redScale = 1.0004
static constexpr double overscan = 1.04

Detailed Description

Nominal Pi AI Camera geometry used by the simulator rendering profile.

Fixed dimensions and focal model define the intrinsic matrix; overscan keeps rotated/distorted output inside the final frame without changing those nominal intrinsics.

Definition at line 66 of file camera_optics.h.

Member Function Documentation

◆ crop()

ImageFraming::Crop pangea_survey::PiAiOptics::crop ( int sourceWidth,
int sourceHeight,
int inset )
inlinestatic

Compute a centered source crop matching the nominal sensor frame.

Parameters
[in]sourceWidthRendered source width in pixels.
[in]sourceHeightRendered source height in pixels.
[in]insetPixels excluded at each source edge.
Returns
Crop geometry and its shared horizontal/vertical sampling scale.

Definition at line 84 of file camera_optics.h.

◆ horizontalFov()

double pangea_survey::PiAiOptics::horizontalFov ( )
inlinestatic

Return nominal horizontal field of view in degrees.

Definition at line 98 of file camera_optics.h.

◆ verticalFov()

double pangea_survey::PiAiOptics::verticalFov ( )
inlinestatic

Return nominal vertical field of view in degrees.

Definition at line 94 of file camera_optics.h.

◆ viewportFov()

double pangea_survey::PiAiOptics::viewportFov ( int sourceWidth,
int sourceHeight,
int inset )
inlinestatic

Find the simulator vertical FOV that yields this captured viewport.

Parameters
[in]sourceWidthRendered viewport width in pixels.
[in]sourceHeightRendered viewport height in pixels.
[in]insetExcluded source-edge pixels used by the crop.
Returns
Vertical field of view in degrees.
Exceptions
std::runtime_errorIf the viewport needs an unsupported FOV.

Definition at line 109 of file camera_optics.h.

Field Documentation

◆ aperture

double pangea_survey::PiAiOptics::aperture = 1.79
static

Definition at line 68 of file camera_optics.h.

◆ blueScale

double pangea_survey::PiAiOptics::blueScale = 0.9996
staticconstexpr

Definition at line 75 of file camera_optics.h.

◆ clearDayShutterSeconds

double pangea_survey::PiAiOptics::clearDayShutterSeconds = 0.0001
staticconstexpr

Definition at line 69 of file camera_optics.h.

◆ focalMm

double pangea_survey::PiAiOptics::focalMm = 4.74
staticconstexpr

Definition at line 68 of file camera_optics.h.

◆ focalPixels

double pangea_survey::PiAiOptics::focalPixels = focalMm / (2 * 0.00155)
staticconstexpr

Definition at line 73 of file camera_optics.h.

◆ greenScale

double pangea_survey::PiAiOptics::greenScale = 1
static

Definition at line 75 of file camera_optics.h.

◆ height

int pangea_survey::PiAiOptics::height = 1520
static

Definition at line 67 of file camera_optics.h.

◆ k1

double pangea_survey::PiAiOptics::k1 = -0.03
staticconstexpr

Definition at line 74 of file camera_optics.h.

◆ k2

double pangea_survey::PiAiOptics::k2 = 0.005
static

Definition at line 74 of file camera_optics.h.

◆ overscan

double pangea_survey::PiAiOptics::overscan = 1.04
staticconstexpr

Definition at line 76 of file camera_optics.h.

◆ radiansToDegrees

double pangea_survey::PiAiOptics::radiansToDegrees = 57.295779513082320877
staticconstexpr

Definition at line 72 of file camera_optics.h.

◆ redScale

double pangea_survey::PiAiOptics::redScale = 1.0004
static

Definition at line 75 of file camera_optics.h.

◆ sensorHeightMm

double pangea_survey::PiAiOptics::sensorHeightMm = 3040 * 0.00155
staticconstexpr

Definition at line 71 of file camera_optics.h.

◆ sensorWidthMm

double pangea_survey::PiAiOptics::sensorWidthMm = 4056 * 0.00155
staticconstexpr

Definition at line 70 of file camera_optics.h.

◆ width

int pangea_survey::PiAiOptics::width = 2028
staticconstexpr

Definition at line 67 of file camera_optics.h.


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