nx_critic_axes.nx
buildroot/runtime/nx_critic_axes.nx
about
nx_critic_axes.nx -- the SHARED measured-quality AXES (extracted so every loop/gate scores emitted output
with the SAME rulers as the critic -- one formula, many callers; nx_critic_visual/nx_photoreal_critic are
the calibration/epistemics home, this is the reusable measurement lib; consolidation: point them here later).
Axes: fine_detail (1px micro-contrast over foreground) · structure (8x8 block-mean variance -- a real object
has low-freq form, noise/flat do not) · chroma MAD. Overall = MIN axis (hard chain). license_tier: ORIGINAL
dependencies 1 imports · 4 importers
imports: nx_syscalls.nx
imported by: nx_face_carve_gate.nxnx_face_vs_target.nxnx_genloop_gate.nxnx_person_face_gate.nx
structs
| none |
consts
| none |
functions
| 8 | func ca_abs(v: i64) -> i64 { if v < 0 { return 0 - v } return v } |
| 9 | func ca_clamp(v: i64) -> i64 { if v < 0 { return 0 } if v > 1000 { return 1000 } return v } called by 1: ca_score |
| 10 | func ca_lum(g: i64) -> i64 { return ((g & 255) + ((g >> 8) & 255) + ((g >> 16) & 255)) / 3 } |
| 11 | func ca_fg(g: i64) -> i64 { let r: i64 = g & 255; let b: i64 = (g >> 16) & 255; if r >= b { return 1 } return 0 } |
| 12 | func ca_chromaof(g: i64) -> i64 called by 1: ca_chroma_mad |
| 25 | func ca_fgcount(fb: *i64, w: i64, h: i64) -> i64 |
| 32 | func ca_fine_detail(fb: *i64, w: i64, h: i64) -> i64 |
| 53 | func ca_structure(fb: *i64, w: i64, h: i64) -> i64 |
| 88 | func ca_chroma_mad(fb: *i64, w: i64, h: i64) -> i64 |
| 101 | func ca_score(fb: *i64, w: i64, h: i64) -> i64 |
| 110 | func ca_verdict(s: i64) -> *u8 |