Repository navigation
EvidenceScene v2.6.0
EvidenceScene v2.6.0
Summary
EvidenceScene v2.6.0 introduces a single-pass C11 hash-table surface snapshot mesher, a 3D cylindrical vessel axis & tilt estimator (fit_cylinder_axis_3d), an encode_mask_rle_from_coords), and C11 single-pass ESTM vertex quantization—delivering up to 10× faster persistent mesh snapshots and >20× faster vessel body estimation while eliminating dense mask and float64 copy overhead.
Highlights
1. Single-Pass C11 Hash-Table Planar Mesher & Zero-Copy float32 Path (evidencescene.surface.persistent_static_surface)
- Added C11 kernel
planar_mesh_snapshot_ht_fast: probes 3 neighbor cells directly in the open-addressing slot hash table, applies exact edge/normal-step/winding gates, and compacts vertices/colors/triangles/normals in a single GIL-released pass (eliminating per-tile Python set iteration andnp.fromiteroverhead). - Added zero-copy
float32support and mask-free fast-path inPersistentPlanarSurfaceReconstructor.integrate_points, avoiding unnecessaryfloat32 -> float64copies before C11planar_project_and_aggregate_fast.
2. 3D Cylindrical Vessel Axis & Tilt Feature Extractor (evidencescene.teleop.task_features)
- Added
MeasuredCylinderAxis3Dandfit_cylinder_axis_3d(...)backed by C11 kernelfit_cylinder_axis_fast(re-exported fromevidencescene.teleop). - Complements
fit_circular_aperture_3dunder top-rim occlusion by fitting azimuthally-binned outer-perimeter circles across upper and lower vessel bands via analytical 2×2 IRLS Gauss-Newton normal equations, supporting arbitraryreference_uporientations.
3. Sparse-Coordinate O(K log K) RLE Mask Encoder (evidencescene.primitives.image_mask)
- Added
encode_mask_rle_from_coords(rows, cols, height=..., width=...)backed by C11 kernelencode_coords_rle_fast(re-exported fromevidencescene.primitives). - Emits bit-exact canonical row-major RLE dictionaries directly from sparse
(row, col)pixel indices without allocating or scanning dense(H, W)boolean images.
4. C11 Single-Pass ESTM Vertex Quantizer (evidencescene.surface.mesh_codec)
- Added C11 kernel
estm_quantize_vertices_fastwired intoencode_surface_mesh_binaryfor single-pass bounding-box extraction anduint16quantization with bit-exact parity against the NumPy fallback.
Verification
- All 80 standalone unit & parity tests pass with both native C11 enabled (
-Wallzero compiler warnings) and pure-NumPy fallback (EVIDENCESCENE_DISABLE_NATIVE=1).