nx_planesweep.nx
buildroot/runtime/nx_planesweep.nx
about
nx_planesweep.nx -- Reconstructs depth maps from two stereo views using plane sweep and photo-consistency scoring.
dependencies 1 imports · 4 importers
imports: nx_recon3d.nx
imported by: nx_castview.nxnx_depthfuse.nxnx_featmatch.nxnx_lensdist.nx
structs
| none |
consts
| 11 | const PS_PATCH: i64 = 4 // patch half-width -> 9x9 support; a 5x5 patch spanned only ~2 texture |
| 13 | const PS_BAD: i64 = 999999999 // score for an unusable hypothesis (projects outside the other view) |
functions
| 25 | func ps_tex(x: i64, y: i64) -> i64 |
| 41 | func ps_at(img: *i64, w: i64, h: i64, px: i64, py: i64) -> i64 |
| 49 | func ps_render(cx: i64, cy: i64, cz: i64, basis: *i64, f: i64, zp: i64, w: i64, h: i64, img: *i64) -> i64 |
| 75 | func ps_sad(a: *i64, b: *i64, w: i64, h: i64, ax: i64, ay: i64, bx: i64, by: i64) -> i64 |
| 99 | func ps_sad_norm(a: *i64, b: *i64, w: i64, h: i64, ax: i64, ay: i64, bx: i64, by: i64) -> i64 |
| 141 | func 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 |
| 146 | func 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 |
| 190 | func 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 |