code wiki / (root) / nx_planesweep.nx

nx_planesweep.nx

buildroot/runtime/nx_planesweep.nx

8892 B195 linesdepth 3pulls 5 transitivereach 5 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_planesweep.nx -- Reconstructs depth maps from two stereo views using plane sweep and photo-consistency scoring.

dependencies 1 imports · 4 importers

nx_recon3d.nx nx_planesweep.nx nx_castview.nx nx_depthfuse.nx nx_featmatch.nx nx_lensdist.nx

imports: nx_recon3d.nx

imported by: nx_castview.nxnx_depthfuse.nxnx_featmatch.nxnx_lensdist.nx

structs

none

consts

11const PS_PATCH: i64 = 4 // patch half-width -> 9x9 support; a 5x5 patch spanned only ~2 texture
13const PS_BAD: i64 = 999999999 // score for an unusable hypothesis (projects outside the other view)

functions

25func ps_tex(x: i64, y: i64) -> i64
called by 2: ld_renderps_render
41func ps_at(img: *i64, w: i64, h: i64, px: i64, py: i64) -> i64
49func ps_render(cx: i64, cy: i64, cz: i64, basis: *i64, f: i64, zp: i64, w: i64, h: i64, img: *i64) -> i64
calls 2: r3_rayps_tex
75func ps_sad(a: *i64, b: *i64, w: i64, h: i64, ax: i64, ay: i64, bx: i64, by: i64) -> i64
called by 2: fm_match_oneps_sweep_n calls 1: ps_at
99func ps_sad_norm(a: *i64, b: *i64, w: i64, h: i64, ax: i64, ay: i64, bx: i64, by: i64) -> i64
called by 1: ps_sweep_n calls 1: ps_at
141func ps_sweep(ca: *i64, ba: *i64, cb: *i64, bb: *i64, f: i64, ia: *i64, ib: *i64, w: i64, h: i64, s0: i64, s1: i64, ns: i64, depth: *i64) -> i64
calls 1: ps_sweep_n
146func ps_sweep_n(ca: *i64, ba: *i64, cb: *i64, bb: *i64, f: i64, ia: *i64, ib: *i64, w: i64, h: i64, s0: i64, s1: i64, ns: i64, depth: *i64, norm: i64) -> i64
190func ps_true_s(cx: i64, cy: i64, cz: i64, basis: *i64, f: i64, zp: i64, w: i64, h: i64, px: i64, py: i64) -> i64
calls 1: r3_ray