Skip to main content

pyarchinit-photogrammetry-core

Native kernels of pyarchinit-photogrammetry, written in Rust (PyO3 + rayon) and imported as ppg_core. The package is optional: pyarchinit-photogrammetry keeps the numpy version of every kernel, uses it when ppg_core is missing or when PPG_NATIVE=0, and its tests compare the two.

Kernels: fusion of the depth maps of one photo, depth z-buffer and normals, projection of points with the COLMAP camera models, scoring of the photos of an orthomosaic tile, agreement of points with a depth map (confidence), PatchMatch multi-view stereo of one photo (patchmatch_depth: a plane per pixel, normalised cross correlation with the best of its neighbouring photos, red-black propagation and random refinement, from random planes or from a depth map), the GPU kernels (wgpu: SIFT, descriptor matching, PatchMatch, fusion), RTKLIB's post-processing of GNSS observations (ppk_solve, from 0.5: what rnx2rtkp -k options -o solution files does, with RTKLIB built into the extension), and the decoding of Hatanaka-compressed RINEX (crx2rnx, from 0.6: Compact RINEX 1.0, 3.0 and 3.1 into the RINEX that RNXCMP's CRX2RNX writes, by a decoder of our own written from the description of the format in Hatanaka (2008), Bulletin of the Geographical Survey Institute 55, 21-30). From 0.7 (API 10) the kernels of the TIN (engine.tin): the constrained Delaunay triangulation of the vertices with the break lines as constraints (tin_triangulate, with the crate spade, robust predicates in double precision; constraints that cross are split at a new vertex), the TIN rasterised on a grid (tin_rasterize), its contour segments (tin_contours) and its exact cut and fill against a plane (tin_volume). From 0.8 (API 11) RTKLIB's conversion of raw receiver logs into RINEX 3 (raw_to_rinex, what RTKLIB's convbin does, with convert_cancel to stop it): u-blox UBX (time marks TIM-TM2 as event records), RTCM 3 and NovAtel; Septentrio SBF, Trimble RT-17 and Unicore are known by name but their decoders are not built (vendor/rtklib/VERSION says why). RTKLIB is built with NFREQ=3 (and NEXOBS=3), as the post-processing needs, where convbin's makefile has NFREQ=4: at most 6 signals of a satellite in an epoch are kept instead of 7, so on logs of many signals (Galileo E6, BeiDou B3I, B1C and B2a beside the others) the core may write fewer observation types than convbin; on RTKLIB's samples of u-blox, RTCM 3 and NovAtel (3 signals at most) the RINEX is the same. API 12 (the first piece of the native engine, same version): the bundle adjustment of engine/bundle.py solved in Rust (bundle_adjust: Levenberg-Marquardt over the camera system reduced by the Schur complement, in double precision on the CPU; dense Cholesky with the crate faer up to 15 000 reduced columns, its sparse Cholesky above, conjugate gradients with a block-Jacobi preconditioner when the factor would pass 4 GiB; Jacobians by forward dual numbers; the six camera models of the projection kernels; the losses none, Huber and Cauchy on the tie points; control points, scale bars, GNSS positions with a bias per flight and the rolling shutter as in the Python problem) and the same problem evaluated at its parameters (bundle_evaluate: residuals, gradient, Jacobian, cost). scipy stays the reference of the tests and what the program uses where the core is missing or a camera model is not among the six. API 13 (the matching step of the native engine, same version): the features step (native_features, native_features_pixels: the photos decoded and reduced as COLMAP reduces them, SIFT on the GPUs and the CPU together through one queue, into a feature store of one file per photo), the generic preselection of the pairs on the small store (native_preselect: every pair matched in blocks, verified, weighted by its inliers), the two-stage matching of the pairs into a match store (native_match_pairs: the largest scales first, then along the epipolar lines of their model, brute force where the first stage is unsure), the stores read and written from Python (native_store_read, native_store_write, native_store_names, native_store_header, native_match_read, native_match_pairs_list, each opening the store; NativeFeatureStore and NativeMatchStore hold one open for a step that goes through every item: the export of a project to COLMAP's database and the import of one) and, for the tests, the photos as COLMAP reads them (read_grey, rescale_as_colmap). Every step releases the GIL and reports through progress(done, total, message) at the start, then at most every min_interval seconds (0.5) and with the last state when it ends; an exception of the callback cancels it. The kernels are exact on every device and the RANSAC is seeded by the pair, so the matches are the same whichever device did them; COLMAP stays the classic engine and the reference of the tests.

Build and install in the environment of pyarchinit-photogrammetry (a Rust toolchain is needed):

pip install ./native        # or: uv pip install ./native

Building it compiles RTKLIB's C sources too (vendor/rtklib, with the cc crate): a C compiler is needed (Xcode's command line tools, gcc or clang, MSVC on Windows). RTKLIB is built as C99 and without fused multiply-add (-ffp-contract=off, /fp:precise with MSVC): the integer ambiguities of a kinematic solution hang on the last bit of the arithmetic, and the arm64 compilers, which fuse by default, would otherwise fix other epochs than the x86 builds of the same project (on RTKLIB's test data 115 of 120 instead of about 40).

License: GPL-2.0-or-later. The extension includes RTKLIB-EX v2.5.1 (https://github.com/rtklibexplorer/RTKLIB, commit 62d4677ed8425a4e2748c6d390b500d1afb493fc), Copyright (c) 2007-2020, T. Takasu, distributed under the BSD 2-clause license: its text is in vendor/rtklib/license.txt and in NOTICE, which come with the package. Of RTKLIB's receiver decoders only ublox.c (T. Takasu, T. Suzuki) and novatel.c (T. Takasu) are included. Their headers name no licence: BSD 2-clause for them is inferred from the distribution (T. Takasu holds the copyright of its license.txt), see vendor/rtklib/VERSION. RTKLIB's optional routines of the IAU SOFA library (sofa.c, a licence of their own) are not included.

The SIFT of the native matching (gpu_sift.rs, sift_cpu.rs) follows the structure of VLFeat's sift.c (BSD 2-clause), and the solvers and the LO-RANSAC of its verification follow COLMAP's estimators (BSD 3-clause); no file of either is compiled into the extension. Their notices are in NOTICE.

The Rust crates built into the extension are under licences compatible with the GPL (MIT or Apache-2.0: PyO3, numpy, rayon, wgpu, spade and their dependencies).

Metadata

Release files for pyarchinit-photogrammetry-core 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyarchinit-photogrammetry-core 0.10.0
File Size Uploaded Provenance Actions
pyarchinit_photogrammetry_core-0.10.0.tar.gz 1.1 MB With provenance Details for pyarchinit_photogrammetry_core-0.10.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pyarchinit-photogrammetry-core 0.10.0
File Actions
pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-win_amd64.whl
pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-macosx_11_0_arm64.whl
pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 25.5 MB

Release files / pyarchinit_photogrammetry_core-0.10.0.tar.gz

Download URL pyarchinit_photogrammetry_core-0.10.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
b10019b6ed0d42f831139a813ad60489454e134db228024c14091aad38006f2e
BLAKE2b-256 checksum
How to use checksums
1534faa78da475e1978d09e382111e360aa03a834e52ac55cc06af2b7b55c4ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-win_amd64.whl

Download URL pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-win_amd64.whl
Size 5.1 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f90d0541681c2410eec76a75020d0c5ea28f0cbe9fbd2413fed26a5f30eb4b9c
BLAKE2b-256 checksum
How to use checksums
a401643e7d8b7a6ab63dca7f0c85ea756a8800c37da4635f7cf00ef62041a5c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 5.7 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
73d16c81c9e7e4ae2775a2be3e8465e018b6c70cfead1b8bbaf119dbea321157
BLAKE2b-256 checksum
How to use checksums
576bd3beaf36934c80f9aee70558c660c0998a9b04f21233fa6b6df906cd7998
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 5.2 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
a1841b6de4e6d4e1bf2c49bf0c0d3984c4d5151a2fd010a6670ad0ef35c812c0
BLAKE2b-256 checksum
How to use checksums
7950f4f836ca7368cd5c12241065be9d819d214092f3c7402f6b595e030e212b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-macosx_11_0_arm64.whl
Size 4.0 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1545f8adc15afbc9fd883e2de31af76944a1625e78d3fef9bb835347a25cceee
BLAKE2b-256 checksum
How to use checksums
ac755bba830bce613a3d623f3459a10cae050f7d16e38b7cba09564b4463a3b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL pyarchinit_photogrammetry_core-0.10.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 4.4 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
27e8a4c1b2ba52dee1388bfbb71c92543b87a8bfbd038f169e62c3fc8b3b3a4f
BLAKE2b-256 checksum
How to use checksums
287754e7571d24de621ff1e3f2bc72e8b1df4c74b192d2113d3a7ab834185a71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for pyarchinit-photogrammetry-core 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for pyarchinit_photogrammetry_core-0.10.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page