Files

Image-driven road divider and dash-row reconstruction
====================================================

Research scope
--------------
Downstream linear-paint refinement of families-pass-20261012. Gaussian ground
renders and calibrated transforms are the geometric/image input; point clouds
and colliders are not used. Road, pedestrian, facade, crossing and symbol
features stay unchanged. Existing semantic road coverage and vehicle evidence
are reused. This does not retrain or rerun the semantic models.

Why the prior output missed paint
--------------------------------
The prior extractor required semantic marking support for visible image paint.
Its later dash completion only filled slots between already admitted objects;
it could not discover an entirely missing neighboring row. Short component
orientation and median period estimates could also skew placement.

Method
------
OpenCV top-hat morphology extracts locally bright, thin white/yellow paint.
Connected components propose dashes; probabilistic Hough and transverse ridge
centroids propose longer strips. Detection runs on every surveyed tile using
the same metric policy. Road-domain, vehicle and whole-crossing/symbol masks
constrain proposals; semantic road-marking confidence is not a mandatory gate.

Overlapping tile observations are deduplicated in world coordinates. OpenCV
Huber fitting estimates axes. A standard consensus search on short-component
centers forms rows even when individual blurred rectangles have noisy angles.
SciPy least_squares estimates phase and period jointly, with shared median
length and width. Neighbouring supported straight rows can share direction,
but need not share phase or lane spacing. Center/angle/residual evidence must
support the shared direction; arbitrary curves are not forced parallel.

Every proposed dashed row then requires fresh longitudinal image-profile
confirmation (brightness peaks, width, period and intervening gaps). This
rejects periodic-looking dirt and recovers visible exterior dashes within a
bounded 10 m search. Profile centers reanchor the axis; supported neighboring
rows share direction and period after this image check. Prior map objects may
propose a row, but cannot bypass image confirmation.

Collinear continuous and dashed sections are partitioned before periodic
fitting. Only bounded internal missing dash slots are inferred. Newly found
exterior paint requires actual image profile peaks; no blind continuation outside
the observed range. Full crossing envelopes are excluded from thin-line search.
New accepted line geometry replaces covered prior line geometry; uncovered
pieces are retained with provenance. This reduces duplicate overlays but does
not guarantee seamless joins or resolve every closely spaced paint pattern.

Ready components and sources
----------------------------
OpenCV morphology, HoughLinesP, fitLine; SciPy least_squares and cKDTree;
GEOS/Shapely overlap, clipping and validity. The application glue associates
observations and preserves topology/provenance; there are no street-specific
coordinates, processing ROIs or threshold branches.
https://docs.opencv.org/4.x/d9/db0/tutorial_hough_lines.html
https://docs.opencv.org/4.x/d3/dbe/tutorial_opening_closing_hats.html

Validation and limits
---------------------
Controlled checks cover unseeded parallel dividers/two dash rows, empty and
masked images, exact row spacing, internal missing slots, mixed solid/dash
transitions and rigid-transform invariance. Real-scene audit checks unchanged
nonlinear layers, valid XYZ, unique IDs, collinear rows and output references.
Counts measure produced objects, not independent precision or recall.

This pass models locally straight paint. Curved long markings, severe scan
noise, occlusion, missing road coverage and irregular lengths can still leave
partial rows. The reviewed frozen run also has small gaps introduced where
new rectangles replace only part of a prior continuous line. Closely adjacent
solid/dashed paint can merge into a thick proposal; undetected arrow stems or
crossing stripes can be classified as linear paint. A low-quality Smolensk
candidate remains visually uncertain. These are known limitations, not a
production-quality acceptance. It does not solve every symbol or every marking type. Images
show whole prior review areas as well as every admitted row; diagnostic review
framing never affects processing. Refer to visual-review.json for the actual
accepted scope and limitations of this exact frozen run.

Execution and reproduction
--------------------------
All detection, numerical fitting, tests and rendering run on Worker006.
Mac operations are orchestration, hash verification, artifact copying and review.
Qualification: .runtime/simulation-qualifications/lines-pass-20261012/operator.
Worker: C:/NDC_MISSIONCORE_CACHE/urban-mapping/qualifications/lines-pass-20261012.
Canonical source: simulation/urban-plan-research/lines_pass/bundle.json.
Stage flat sources using bundle files and SHA-256; the source ZIP is already flat.
review-font.ttf is an external rendering-only dependency retained and hashed in
qualification source, omitted from the source archive.

Stages: reconstruct_lines, test_lines, audit_lines, render_lines, render_plan.
Operator replay uses run_lines.py, collect_lines.py, verify_lines.py, the scene
registry, config-v8.json, accepted baseline hashes, the existing checkout/queue,
SSH mission-gpu and private survey caches. It is not a standalone public CLI.
Set URBAN_SOURCE_BUNDLE to the qualified immutable source directory.

Pinned image:
sha256:925b093545e15c270d95d4076139ad8ed48e790eccd9434a58495d58c97671d0
4 CPU, 20 GiB memory, 1 GiB tmpfs, network none, read-only root, 1800 s timeout.
Queue reservation precedes execution; exact owned-container cleanup is checked
before release. Source and accepted baseline hashes accompany every receipt.
No production-map deployment, system installs, commit or Ops publication.