Resumable, resource-bounded USHER photo-map assembler. More...
#include <stddef.h>#include <stdio.h>#include <jpeglib.h>#include "exifite.h"#include "sha256fst.h"#include <opencv2/core/persistence.hpp>#include <opencv2/calib3d.hpp>#include <opencv2/features2d.hpp>#include <opencv2/imgproc.hpp>#include <dirent.h>#include <fcntl.h>#include <linux/ioprio.h>#include <poll.h>#include <pthread.h>#include <sched.h>#include <sys/file.h>#include <sys/prctl.h>#include <sys/resource.h>#include <sys/stat.h>#include <sys/statvfs.h>#include <sys/syscall.h>#include <unistd.h>#include <algorithm>#include <array>#include <atomic>#include <cerrno>#include <chrono>#include <cmath>#include <condition_variable>#include <csetjmp>#include <csignal>#include <cstdint>#include <cstdio>#include <filesystem>#include <fstream>#include <functional>#include <iomanip>#include <iostream>#include <map>#include <memory>#include <mutex>#include <sstream>#include <stdexcept>#include <string>#include <thread>#include <vector>#include "version.h"#include "map_storage.h"#include "camera_profile.h"#include "opencv_json.hpp"#include "opencv_parallel.hpp"#include "jpeg_stream.h"Go to the source code of this file.
Data Structures | |
| class | pangea_detail::DesktopPool |
| class | pangea_detail::Resources |
| struct | pangea_detail::FileCloser |
| struct | pangea_detail::DirectoryCloser |
| struct | pangea_detail::InvalidPhoto |
| struct | pangea_detail::AtomicFile |
| struct | pangea_detail::Bounds |
| struct | pangea_detail::Photo |
| struct | pangea_detail::JpegError |
| struct | pangea_detail::Decoder |
| struct | pangea_detail::Tile |
| struct | pangea_detail::ProjectedTile |
| struct | pangea_detail::ImageFeatures |
| struct | pangea_detail::PreparedPhoto |
| struct | pangea_detail::Encoder |
| class | pangea_detail::Worker |
Namespaces | |
| namespace | pangea_detail |
Typedefs | |
| using | pangea_detail::Json = usher_cv_json::Value |
| using | pangea_detail::File = std::unique_ptr<FILE, FileCloser> |
| using | pangea_detail::Directory = std::unique_ptr<DIR, DirectoryCloser> |
Functions | |
| void | pangea_detail::stop (int) |
| void | pangea_detail::check (bool condition, const char *message) |
| double | pangea_detail::seconds (clockid_t clock) |
| uint64_t | pangea_detail::proc_kib (const char *path, const char *wanted) |
| void | pangea_detail::photo_check (bool condition, const char *message) |
| File | pangea_detail::regular_file (const fs::path &path, uint64_t maximum) |
| void | pangea_detail::sync_directory (const fs::path &path) |
| void | pangea_detail::write_json (const fs::path &path, const Json &value) |
| Json | pangea_detail::read_json (const fs::path &path) |
| std::string | pangea_detail::digest (const void *data, size_t size) |
| std::string | pangea_detail::identity (const fs::path &path, bool allow_missing=false) |
| std::string | pangea_detail::exif_text (const exif_view *metadata, exif_directory directory, uint16_t tag) |
| double | pangea_detail::numeric (const Json &values, const char *key, double minimum, double maximum) |
| cv::Matx33d | pangea_detail::rotation (double roll, double pitch, double yaw) |
| Json | pangea_detail::camera_profile (const fs::path &path) |
| void | pangea_detail::jpeg_failure (j_common_ptr state) |
| Route a libjpeg fatal callback to the active recovery point. | |
| void | pangea_detail::jpeg_message (j_common_ptr state, int level) |
| Screen scan diagnostics before dispatching to libjpeg's usual handler. | |
| Photo | pangea_detail::read_photo (const fs::path &path, Resources &resources, const Json &camera, bool standard_profile=false, bool parallel_decode=false) |
| Admit and decode one source JPEG into a projection-ready photo. | |
| fs::path | pangea_detail::tile_path (const fs::path &root, int column, int row) |
| void | pangea_detail::disk_headroom (const fs::path &root, uint64_t required) |
| void | pangea_detail::blend_tile (const Photo &photo, const fs::path &root, uint64_t sequence, Resources &resources, int tile_column, int tile_row) |
| void | pangea_detail::blend (const Photo &photo, const fs::path &root, uint64_t sequence, Resources &resources) |
| Apply one photo to the tiles enclosed by its footprint. | |
| void | pangea_detail::prepare_projection (PreparedPhoto &prepared, Resources &resources) |
| Stage projected colour and weights without modifying durable tiles. | |
| void | pangea_detail::blend_prepared (const PreparedPhoto &prepared, const fs::path &root, uint64_t sequence, Resources &resources) |
| Commit a prepared photo's contributions to independent tile files. | |
| void | pangea_detail::export_map (const fs::path &root, const Json &state, Resources &resources, int max_map_side) |
| int | pangeaSurveyMain (int argc, char **argv) |
| int | main (int argc, char **argv) |
| Dispatch PANGEA survey commands or run incremental photo mapping. | |
Variables | |
| constexpr uint64_t | pangea_detail::mib = 1024 * 1024 |
| constexpr uint64_t | pangea_detail::memory_limit = 128 * mib |
| constexpr double | pangea_detail::pi = 3.14159265358979323846 |
| constexpr double | pangea_detail::world_pixels = 256.0 * (1 << 18) |
| constexpr double | pangea_detail::projected_pixel_m = 2 * pi * 6378137.0 / world_pixels |
| constexpr int | pangea_detail::tile_size = 256 |
| constexpr int | pangea_detail::max_photos = 10000 |
| std::atomic< sig_atomic_t > | pangea_detail::stopping {0} |
| pid_t | pangea_detail::parent_pid = 0 |
Detailed Description
Resumable, resource-bounded USHER photo-map assembler.
Consumes clean USHER JPEGs, validates pose/geometry provenance, and incrementally blends them into checksummed map tiles. Atomic state/checkpoint files allow interrupted runs to resume. MIMIC and explicit real-camera profiles are separate input modes; this flat-ground renderer does not certify map accuracy.
Definition in file pangea.cpp.
Function Documentation
◆ main()
| int main | ( | int | argc, |
| char ** | argv ) |
Dispatch PANGEA survey commands or run incremental photo mapping.
- Parameters
-
argc Command-line argument count. argv Command-line arguments, including the executable name.
- Returns
- Exit status for the selected operation.
Establish restrictive output permissions and the OpenCV backend before dispatching work; the direct mapper installs cooperative stop handlers.
Definition at line 2067 of file pangea.cpp.
◆ pangeaSurveyMain()
| int pangeaSurveyMain | ( | int | argc, |
| char ** | argv ) |
Parse worker options, install signal/resource policy, and run one map session.
- Parameters
-
argc Argument count. argv Input/output paths and optional watch, camera, and resource settings.
- Returns
- Zero on successful completion, otherwise one with a diagnostic.
Definition at line 204 of file survey.cpp.