code wiki / (root) / nx_vision_pipeline_test.nx

nx_vision_pipeline_test.nx

buildroot/runtime/nx_vision_pipeline_test.nx

10946 B263 linesdepth 8pulls 22 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_vision_pipeline_test.nx -- full-substrate integration test. Builds a single synthetic 32x32 RGB image with known features (skin-toned background, a bright blob, a vertical edge, a circle) and runs every vision primitive across L0->V10 in sequence. Verifies cross-primitive compatibility and sane output ranges. On any failure returns a unique error code so the smoke runner can pinpoint exactly which primitive class regressed. Coverage: L4 nx_image : alloc, get/set, grayscale, Sobel, gradient mag, Otsu L8 nx_features : Harris, corners, edges, CC, Hu, BRIEF V1 nx_color_v2 : HSV, YCbCr, Kovac skin, palette, dominant V4 nx_geom : Hough lines, Hough circles, orientation hist V5 nx_texture : GLCM (contrast/energy/hom), LBP image+hist V6 nx_scale : Gauss blur, downsample, pyramid 5L, DoG, extrema V2 nx_compose : thirds, H/V symmetry, centroid, balance V3 nx_light : mean, stddev, range, direction hist V8 nx_salience : intensity, combined, peak, flatness V10 nx_aesthetics : full report (5 components + composite)

dependencies 11 imports · 0 importers

syscalls.nx nx_image.nx nx_features.nx nx_color_v2.nx nx_geom.nx nx_texture.nx nx_scale.nx nx_compose.nx nx_light.nx nx_salience.nx nx_vision_pipeline_test.nx

diagram shows first 10 each side; +1 more imports, +0 more importers in the complete lists below.

imports: syscalls.nxnx_image.nxnx_features.nxnx_color_v2.nxnx_geom.nxnx_texture.nxnx_scale.nxnx_compose.nxnx_light.nxnx_salience.nxnx_aesthetics.nx

imported by: nobody (leaf or entry point)

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

main nx_image_alloc sys_mmap nx_image_set nx_image_to_grayscale nx_image_alloc ↻ nx_image_get nx_image_set ↻ nx_image_sobel_x sys_mmap ↻ nx_image_convolve_3x3 nx_image_s64_alloc sys_mmap ↻ nx_image_get ↻ nx_image_s64_set nx_image_sobel_y sys_mmap ↻ nx_image_convolve_3x3 ↻ nx_image_gradient_magnitud nx_image_s64_alloc ↻ nx_image_s64_get nx_muldiv_i64 nx_i128_alloc nx_i128_mul_i64 nx_i128_mul_u64 nx_i128_neg nx_i128_div_i64 nx_i128_is_neg nx_i128_neg ↻ nx_i128_udiv_u64 nx_image_s64_set ↻ nx_image_s64_get ↻ nx_image_histogram_256 nx_image_get ↻ nx_image_otsu_threshold sys_mmap ↻ nx_image_histogram_256 ↻ nx_muldiv_i64 ↻ nx_feat_edge_mask nx_image_sobel_x ↻

structs

none

consts

none

functions

35func main() -> i64 {