code wiki / (root) / nx_lbp_img.nx

nx_lbp_img.nx

buildroot/runtime/nx_lbp_img.nx

2339 B42 linesdepth 9pulls 13 transitivereach 0 importersview sourcekind tooltopic lbp
docsdependenciesstructsconstsfunctions

about

nx_lbp_img.nx -- SOVEREIGN face-descriptor RUNG 2 GATE: bridge the LBP descriptor to REAL pixels. Reads real gallery PNGs (nx_png_decoder, RFC2083), luma-grayscales them (nx_lbp_core.rgb_to_gray), and runs the LBP histogram. Proves: decode ok + histogram covers exactly the interior pixels + self-distance is 0 + two distinct images give distinct descriptors (chi2>0). Discrimination of SAME-person vs DIFFERENT-person (measured against the insightface benchmark) is a later rung. Build/run: ./_offc/nx_sov_build_run.elf nx_lbp_img license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_lbp_core.nx nx_lbp_imgio.nx nx_lbp_img.nx

imports: nx_syscalls.nxnx_lbp_core.nxnx_lbp_imgio.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap descr sys_mmap ↻ load_gray sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_png_decode sys_mmap ↻ _png_check_signature _png_read_u32_be nx_crc32 nx_crc32_update nx_crc32_init nx_crc32_table_at _png_n_channels _png_bytes_per_pixel _png_n_channels ↻ _png_a7_expected _png_a7_col0 _png_a7_coli _png_a7_row0 _png_a7_rowi nx_zlib_inflate sys_mmap ↻ nx_deflate_inflate sys_mmap ↻ nx_bitstream_alloc _deflate_inflate_block _deflate_bytes_consumed adler32 _png_a7_deinterlace _png_a7_col0 ↻ _png_a7_row0 ↻ _png_a7_coli ↻

structs

none

consts

none

functions

11func descr(path: *u8, tag: *u8, hist: *i64) -> i64
23func main() -> i64