nx_haar_gate.nx
buildroot/runtime/nx_haar_gate.nx
about
nx_haar_gate.nx -- REFEREE for R-FACE-1 (nx_haar).
24x24 windows. Three synthetic patterns:
EDGE: left half luma=10, right half=200 (a vertical edge).
FLAT: all 50.
CHECK: 2x2 checker, TL/BR=200, TR/BL=10.
Asserts:
- EDGE_H on EDGE == hand-composed (left-rect - right-rect) AND == -54720.
- EDGE_V on EDGE == 0 (a vertical edge has no top/bottom contrast).
- every feature on FLAT == 0.
- FOUR on CHECK == hand-composed AND == 54720; FOUR on FLAT == 0 (discrim).
Every value PRINTED. stdout + knowledge/status/haar_gate.log. Exit 0/1.
Sovereign: syscalls + nx_image + nx_integral + nx_haar. license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: syscalls.nxnx_image.nxnx_integral.nxnx_haar.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 18 | const N: i64 = 24 |
functions
| 20 | func gp(logfd: i64, s: *u8) -> i64 called by 1: main |
| 27 | func gn(logfd: i64, v: i64) -> i64 called by 1: main |
| 42 | func main() -> i64 |