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_detail::Worker Class Reference
Collaboration diagram for pangea_detail::Worker:

Public Member Functions

 Worker (fs::path source, fs::path output, Resources &budget, uint64_t since, const Json &camera, bool interactive, int side_limit, bool image_alignment)
void run (bool watch)

Private Types

using AlignmentReference = ImageFeatures

Private Member Functions

AlignmentReference features (const Photo &photo, const std::string &name)
 Extract bounded SIFT features for a possible alignment reference.
Json align (Photo &photo, const std::string &name, ImageFeatures *cached=nullptr)
 Try to refine a photo's georeferenced transform using recent photos.
void save ()
 Publish the current resume checkpoint through the atomic JSON writer.
bool unchanged (const fs::path &source, const Json &job)
 Recheck source identity before modifying map state.
void process (const Json &job, PreparedPhoto *prepared=nullptr, std::exception_ptr prepared_error=nullptr)

Private Attributes

fs::path input
fs::path root
Resources & resources
Json state
pangea_survey::StorageDescriptor output_lock
pangea_survey::StorageDescriptor process_lock
bool allow_prompt = false
bool profile_asked = false
int max_map_side = 8192
bool align_images = false
std::vector< AlignmentReference > references

Detailed Description

Coordinate discovery, validation, resumable blending, and snapshot publication.

Definition at line 1526 of file pangea.cpp.

Member Typedef Documentation

◆ AlignmentReference

Definition at line 1535 of file pangea.cpp.

Constructor & Destructor Documentation

◆ Worker()

pangea_detail::Worker::Worker ( fs::path source,
fs::path output,
Resources & budget,
uint64_t since,
const Json & camera,
bool interactive,
int side_limit,
bool image_alignment )
inline

Acquire per-user/output locks and load or initialize the resumable state file.

Definition at line 1835 of file pangea.cpp.

Member Function Documentation

◆ align()

Json pangea_detail::Worker::align ( Photo & photo,
const std::string & name,
ImageFeatures * cached = nullptr )
inlineprivate

Try to refine a photo's georeferenced transform using recent photos.

Parameters
[in,out]photoSource whose transform may be updated.
nameSource name for evidence and reference tracking.
[in,out]cachedOptional precomputed features, moved from when used.
Returns
Alignment decision and available supporting evidence.

Use position priors to screen candidate references; keep the original projection if no feature match passes the geometric checks.

Definition at line 1577 of file pangea.cpp.

◆ features()

AlignmentReference pangea_detail::Worker::features ( const Photo & photo,
const std::string & name )
inlineprivate

Extract bounded SIFT features for a possible alignment reference.

Parameters
photoSource image and initial world transform.
nameSource name for the alignment record.
Returns
Descriptors and keypoints expressed in original image pixels.

Detect on reduced, border-masked imagery to limit feature work; restore original coordinates before fitting geometry.

Definition at line 1544 of file pangea.cpp.

◆ process()

void pangea_detail::Worker::process ( const Json & job,
PreparedPhoto * prepared = nullptr,
std::exception_ptr prepared_error = nullptr )
inlineprivate

Validate one discovered source and checkpoint its blend as an idempotent job.

Definition at line 1702 of file pangea.cpp.

◆ run()

void pangea_detail::Worker::run ( bool watch)
inline

Process stable jobs; in watch mode, defer changing files and export periodically.

Definition at line 1916 of file pangea.cpp.

◆ save()

void pangea_detail::Worker::save ( )
inlineprivate

Publish the current resume checkpoint through the atomic JSON writer.

Definition at line 1683 of file pangea.cpp.

◆ unchanged()

bool pangea_detail::Worker::unchanged ( const fs::path & source,
const Json & job )
inlineprivate

Recheck source identity before modifying map state.

Parameters
sourceCurrent source path.
jobDiscovery record containing the expected identity.
Returns
True on a match; false when a changing input can be deferred.

Reject an identity change while resuming a pending photo: some tiles may already incorporate the original input.

Definition at line 1691 of file pangea.cpp.

Field Documentation

◆ align_images

bool pangea_detail::Worker::align_images = false
private

Definition at line 1534 of file pangea.cpp.

◆ allow_prompt

bool pangea_detail::Worker::allow_prompt = false
private

Definition at line 1531 of file pangea.cpp.

◆ input

fs::path pangea_detail::Worker::input
private

Definition at line 1527 of file pangea.cpp.

◆ max_map_side

int pangea_detail::Worker::max_map_side = 8192
private

Definition at line 1533 of file pangea.cpp.

◆ output_lock

pangea_survey::StorageDescriptor pangea_detail::Worker::output_lock
private

Definition at line 1530 of file pangea.cpp.

◆ process_lock

pangea_survey::StorageDescriptor pangea_detail::Worker::process_lock
private

Definition at line 1530 of file pangea.cpp.

◆ profile_asked

bool pangea_detail::Worker::profile_asked = false
private

Definition at line 1532 of file pangea.cpp.

◆ references

std::vector<AlignmentReference> pangea_detail::Worker::references
private

Definition at line 1536 of file pangea.cpp.

◆ resources

Resources& pangea_detail::Worker::resources
private

Definition at line 1528 of file pangea.cpp.

◆ root

fs::path pangea_detail::Worker::root
private

Definition at line 1527 of file pangea.cpp.

◆ state

Json pangea_detail::Worker::state
private

Definition at line 1529 of file pangea.cpp.


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