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
camera_profile.h File Reference

Public C API for reading PANGEA camera calibration profiles. More...

#include <stdbool.h>
#include "coverage_scheduler.h"
Include dependency graph for camera_profile.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  usher_camera_profile
 One measured camera calibration loaded from the flat PANGEA profile format. More...

Macros

#define CAMERA_PROFILE_MAX_BYTES   1024

Functions

bool usher_camera_profile_read (const char *filename, struct usher_camera_profile *profile)
 Read a bounded PANGEA_CAMERA_V1 key=value calibration file.

Detailed Description

Public C API for reading PANGEA camera calibration profiles.

The file binds measured intrinsics and mount angles to a camera filename prefix so mapping geometry is never guessed from a backend ID.

Definition in file camera_profile.h.

Macro Definition Documentation

◆ CAMERA_PROFILE_MAX_BYTES

#define CAMERA_PROFILE_MAX_BYTES   1024

Definition at line 30 of file camera_profile.h.

Function Documentation

◆ usher_camera_profile_read()

bool usher_camera_profile_read ( const char * filename,
struct usher_camera_profile * profile )

Read a bounded PANGEA_CAMERA_V1 key=value calibration file.

Parameters
[in]filenameProfile path; comments and blank lines are allowed.
[out]profileReceives parsed geometry and filename prefix; unchanged on failure.
Returns
True only when all required fields are present and valid.

No heap allocation is performed. Duplicate and unknown keys are rejected so a typo cannot silently select a different camera calibration. A valid mapping prefix may have no USHER camera ID (reported as zero); consumers also check that the calibration satisfies their geometry constraints.

Definition at line 132 of file camera_profile.c.