Files
NODEDC_MISSION_CORE/simulation/urban-plan-research/orthophoto/README.rst
T
DCCONSTRUCTIONS 69dc566665 feat(research): preserve urban geometry pipelines and qualification suites
Preserve offline geometry, marking, replay and evaluation pipelines with source manifests and synthetic tests. Research qualification does not activate these methods as production navigation.
2026-10-29 09:10:00 +03:00

89 lines
5.2 KiB
ReStructuredText

Uniform Gaussian orthophoto observation adapter
===============================================
Offline observation adapter for the existing urban-plan qualification. It is
not wired into the installed infrastructure provider. Scene-specific paths,
scan poses, source bundles, cached surveys, masks and results stay in private
qualification storage. There are no scene coordinates, review regions or
priority windows in these components.
The original LCC poses.json supplies scanner positions, not surface geometry.
ortho_terrain.py validates their native Z-up frame against cached Gaussian depth,
estimates scanner height robustly, rejects inconsistent roof observations and
builds one smoothed local height field. The existing automatic survey grid is
reused; this increment does not implement a new trajectory-derived tile planner.
Stacked levels such as bridges above roads are not qualified.
ortho_render.py renders original Gaussian attributes with gsplat into world-
aligned 60 m / 4096 px orthographic windows. It produces context and low-surface
layers relative to the common terrain field. This is a 1.465 cm pixel size,
not demonstrated physical accuracy. Source Gaussian attributes are unchanged.
ortho_segment.py runs the existing pinned SAM3 at common 60/30/15 m scales.
ortho_windows.py merges positive instance masks with maximum union, so a missed
detection in an overlapping window cannot erase a positive instance. Empty
visibility windows may be skipped. No map-specific prompts or selectors exist.
ortho_classes.py resolves road/sidewalk competition after all scene windows
have been merged. The extractor supplies maximum per-class score rasters with
its alpha validity gate, calls resolve_surfaces once, then cleans the exclusive
class masks. It must not give sidewalk unconditional priority over road.
SAM3 instance scores remain uncalibrated. Competing semantic classes can still
be wrong; sharper input alone does not establish correct road topology.
Worker contract
---------------
Run only on the reserved external worker, in the already qualified mapping and
SAM3 images. The adapter requires NumPy, SciPy, OpenCV, Pillow, gsplat/torch and
plyfile; SAM3 uses the existing ai-polygon release/model assets. No dependency
installation is performed by these scripts.
Mounts: /base_survey (read-only prior automatic Gaussian survey), /input
(read-only original Gaussian bundle), /run (per-scene config and original poses),
/survey and /evidence (outputs), /release and /assets (read-only pinned SAM3).
ORTHO_SCENE selects the scene record in /run/config.json. That config contains
method (see method.json) and scenes[ORTHO_SCENE].trajectory (filename in /run).
The base survey request.json supplies source.ply, sha256 and source_to_world;
it also supplies tile-index.json, tile job.json and surface-atlas.npz. The
canonical urban-mapping directory must be on PYTHONPATH for camera/digest.
coordinate_cache.py preserves the exact float64 source-to-world transform.
Execute ortho_render.py, then ortho_segment.py. The outputs retain the legacy
1200 px projection contract alongside native 4096 px images. Existing contour
extraction/assembly still uses its 10 cm working raster and previous geometry
parameters, with review priority disabled. This folder changes observation,
not the fitting engine or the live map. Geometry integration remains private
qualification code; these two scripts do not themselves emit a final road map.
python3 -B -m unittest test_ortho_pass validates local relief, roof rejection,
pose-frame rejection, scanner dwell invariance, unknown-ground rejection and
preservation of positive evidence across overlapping empty predictions,
exclusive semantic class competition and rejection of invalid scores. Run in
the mapping image, with this directory on PYTHONPATH. The full qualification
also exercises the existing continuity/junction/assembly contracts.
Evidence and status
-------------------
Private session: .runtime/simulation-qualifications/ortho-pass-20261011.
Per-stage receipts retain exact images, source hashes, parameters, timestamps,
exit status and resource release. Raw model inputs and outputs are retained on
the worker and hashed. The same method completed both scenes (88 Pokrovka and 68 Maroseyka
windows), with 62 tests per scene. Neither result passed whole-scene visual
acceptance: false shapes and incomplete side roads remain. Pokrovka also has
one inter-chain crossing. Consult the final private REVIEW.txt and each
visual-review.json; passing code tests does not establish mapping quality.
Do not promote this adapter as an accepted automatic mapping provider before
whole-scene semantic/visual acceptance. Point clouds are never consumed.
The provider currently omits poses.json from its working source bundle. The
qualification recovered it read-only from the original archive. Production
integration must preserve poses, their hash and the explicit coordinate frame;
the external Gaussian Pipeline service was not changed.
Primary component references:
https://docs.gsplat.studio/main/apis/rasterization.html
https://samgeo.gishub.org/examples/sam3_tiled_segmentation/
The SamGeo package is not installed; its standard overlapping-window recipe is
implemented by the adapter around the already pinned SAM3 processor.