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

Crop, resample, and rotate BGRA images into the requested camera frame. More...

#include <algorithm>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <array>
#include <stdexcept>
#include <vector>
Include dependency graph for image_framing.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  pangea_survey::ImageFraming
 Produce a bounded crop/resample view over a source BGRA image. More...
struct  pangea_survey::ImageFraming::Sample
struct  pangea_survey::ImageFraming::Crop
 Source-space crop and uniform scale needed for an output frame. More...
struct  pangea_survey::ImageFraming::View

Namespaces

namespace  pangea_survey

Functions

void pangea_survey::validateJpegSize (int width, int height)
 Validate encoded-image dimensions before allocating pixel buffers.

Detailed Description

Crop, resample, and rotate BGRA images into the requested camera frame.

Framing is shared by rendering and metadata generation: returning the exact crop geometry lets callers derive matching intrinsics. A single scale on both axes preserves aspect ratio, while reusable buffers avoid a second full image allocation when the input can be viewed directly.

Definition in file image_framing.h.