nx_skin_diag.nx
buildroot/runtime/nx_skin_diag.nx
about
nx_skin_diag.nx -- VISIBLE diagnostic: is the skin detector accurate on the
real gallery, or do the images not look real, or both? For each PNG in
idx_in.txt it decodes, classifies every pixel, and writes a skin-MASK BMP
(skin -> magenta, non-skin -> dimmed gray) you can open on Windows to SEE
exactly what the detector calls skin. Also prints skin permille and a
presence-by-FRACTION verdict (skin >= 200 permille), so you can compare the
fraction rule against the (mis-designed) concentration gate.
Output: knowledge/staging/media/mask_<i>.bmp
Sovereign: syscalls + nx_media_index (decode+presence deps) + nx_bmp.
license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_media_index.nxnx_bmp.nxnx_blob.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
| 16 | const PRESENT_MAGIC_4096: i64 = 4096 |
| 17 | const PRESENT_MAGIC_4095: i64 = 4095 |
| 19 | const PRESENT_FRAC: i64 = 200 // skin permille floor for the fraction rule |
functions
| 21 | func gp(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 22 | func gn(v: i64) -> i64 |
| 35 | func itoa_into(buf: *u8, off: i64, v: i64) -> i64 |
| 45 | func build_mask_path(buf: *u8, idx: i64) -> i64 |
| 57 | func draw_box(img: *Image, x0: i64, y0: i64, x1: i64, y1: i64) -> i64 |
| 73 | func main() -> i64 |