code wiki / _hdl_build / nx_recon3d_gate.nx

nx_recon3d_gate.nx

buildroot/runtime/_hdl_build/nx_recon3d_gate.nx

9184 B181 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_recon3d_gate.nx -- benchmark the classical multi-view triangulation (cadtwin P1). KAT the fixed-point (projection<->ray consistency, 2-view midpoint recovers a known point), then the CHAMFER benchmark the DTU SOTA uses: synthesize 4 camera views of a KNOWN 9-point cloud (a ~160-unit part), triangulate each point, Chamfer vs ground truth -- CLEAN (near-exact) + NOISY (+/-3px, graceful) + NEG-CONTROL (wrong correspondences => large Chamfer, so the metric discriminates). Reports Chamfer in units + permille of the object diagonal. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_recon3d.nx nx_recon3d_gate.nx

imports: nx_recon3d.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main rg_puts r3_lookat sys_mmap r3_normalize r3_isqrt r3_cross r3_project r3_dotc r3_ray r3_normalize ↻ rg_raydist r3_dist r3_isqrt ↻ rg_putn rg_puts ↻ rg_tooth rg_puts ↻ r3_midpoint r3_dotq r3_dotc ↻ r3_dist ↻ r3_triangulate_n sys_mmap ↻ r3_midpoint ↻ r3_chamfer r3_dist ↻

structs

none

consts

none

functions

9func rg_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 3: rg_putnrg_toothmain
10func rg_putn(v: i64) -> i64
called by 1: main calls 1: rg_puts
23func rg_tooth(name: *u8, pass: i64, fails: *i64) -> i64
called by 1: main calls 1: rg_puts
31func rg_raydist(px: i64, py: i64, pz: i64, cx: i64, cy: i64, cz: i64, dx: i64, dy: i64, dz: i64) -> i64
called by 1: main calls 1: r3_dist
42func main() -> i64