topic: img
28 modules sharing the img name family (derived from the tree's prefix discipline).
The 'img' topic family in the Nishi sovereign ecosystem handles image processing and conversion across multiple stages, from raw byte decoding to final RGB output. Modules like nx_img_core establish the foundational decoding of image headers into pixel data, while nx_img_bytes_to_rgb transforms encoded buffers into interleaved RGB formats. nx_img_convert orchestrates the end-to-end conversion process, including resizing and encoding, ensuring seamless integration within the sovereign system's architecture.
auto-narrated by the local model from this topic's module headers; links verified against the wiki index.
narrated overview -- maintained by the narration lane, module links verified against this wiki.
| module | description | lines | funcs |
|---|---|---|---|
| nx_img_adapt_gate.nx | unit-tests channel adaptation (nx_img_to_rgb) for | 71 | 1 |
| nx_img_bytes_to_rgb.nx | decode an IN-MEMORY encoded image buffer -> interleaved 8-bit RGB (w*h*3, | 226 | 2 |
| nx_img_convert.nx | sovereign image CONVERT (resize -> encode), end-to-end. | 48 | 2 |
| nx_img_convert_loop_gate.nx | full sovereign convert loop, gated. | 79 | 1 |
| nx_img_core.nx | R1 of the SOVEREIGN scanning stack (hardware rung up): raw bytes -> pixels. A sovereign image | 111 | 9 |
| nx_img_core_gate.nx | proves R1 (bytes -> pixels): decode a P2 (ASCII) PGM and a P5 (binary) PGM into the pixel | 66 | 2 |
| nx_img_decode_gate.nx | referee for JPEG wired into the shared decode path (nx_img_to_gray / | 196 | 10 |
| nx_img_dims.nx | read an image's pixel WIDTH/HEIGHT straight from its header bytes (no decode). Powers the | 85 | 7 |
| nx_img_dims_gate.nx | KAT for the header dimension reader against hand-built PNG/GIF/JPEG headers with KNOWN | 66 | 6 |
| nx_img_extract_demo.nx | show the parser finding media (image URLs) in HTML. | 30 | 4 |
| nx_img_harvest.nx | S-CLASS-EXCEED image-URL harvester (operator 2026-07-03: "no we want to get s class | 195 | 9 |
| nx_img_harvest_gate.nx | 97 | 5 | |
| nx_img_place.nx | place a decoded image onto a grayscale print page: luminance conversion + aspect-fit | 76 | 3 |
| nx_img_place_test.nx | gate for image luminance + aspect-fit + scale-blit (no PNG dependency; uses a | 61 | 2 |
| nx_img_print.nx | PRINT A DOCUMENT WITH AN IMAGE, end to end sovereign: generate/Decode a PNG -> | 166 | 4 |
| nx_img_resample.nx | selectable-model image resampler (the "easily | 123 | 4 |
| nx_img_resample_gate.nx | KAT gate for the selectable-model resampler. | 69 | 1 |
| nx_img_sbs.nx | sovereign SIDE-BY-SIDE evidence compositor: oracle screenshot | Nishi screenshot into | 62 | 5 |
| nx_img_scale.nx | sovereign image resampler, hardware-rung-up. | 91 | 3 |
| nx_img_scale_diff.nx | measured-exceed harness, step 3 (diff). | 48 | 1 |
| nx_img_scale_emit.nx | measured-exceed harness, step 1 (emit). | 36 | 1 |
| nx_img_scale_gate.nx | KAT gate for the sovereign bilinear resampler. | 80 | 1 |
| nx_img_segment.nx | R3 of the sovereign scanning stack: binary image -> connected components (glyph boxes). | 74 | 7 |
| nx_img_segment_gate.nx | proves R3 (connected-component segmentation) on a 5x5 binary image with TWO separate | 59 | 2 |
| nx_img_threshold.nx | R2 of the sovereign scanning stack: grayscale -> binary (ink/paper). Otsu's method finds | 52 | 3 |
| nx_img_threshold_gate.nx | proves R2 (Otsu threshold + binarize) on hand-computed images: | 46 | 3 |
| nx_img_to_rgb.nx | decode an encoded image FILE -> interleaved 8-bit RGB (w*h*3, row-major). Thin PATH | 13 | 1 |
| nx_img_to_rgb_gate.nx | referee for the RGB decode path (nx_img_to_rgb) AND the color descriptors | 172 | 9 |