code wiki / (root) / nx_features.nx

nx_features.nx

buildroot/runtime/nx_features.nx

14813 B443 linesdepth 6pulls 13 transitivereach 21 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_features.nx -- pure-math classical computer-vision features. No learned weights, no neural network, no model file. Substrate primitives only. Reuses nx_th_isqrt, nx_th_hamming_distance, nx_th_spectral_disc_2x2 from nx_theorems*.nx. Capabilities at this version: * Harris corner response (structure tensor + spectral discriminant) * Edge magnitude threshold (Sobel + clamp) * Connected components on binary mask (union-find) * Hu invariant moments (rotation/scale/translation invariant shape) * Hamming descriptor matching genealogy_id: harris_stephens_1988 + canny_1986 + hu_1962 + rosenfeld_pfaltz_1966 (connected components) lineage_id: structure_tensor + spectral_discriminant + central_moments axioms: NX_AX_ALG_DISTRIBUTIVITY, NX_AX_ORD_LEAST_UPPER_BOUND

dependencies 5 imports · 8 importers

syscalls.nx nx_axioms.nx nx_i128.nx nx_qed_freek.nx nx_image.nx nx_features.nx nx_arm_count.nx nx_face_count.nx nx_features_test.nx nx_geom_test.nx nx_multi_body.nx nx_region.nx nx_skin_texture.nx nx_vision_pipeline_test.nx

imports: syscalls.nxnx_axioms.nxnx_i128.nxnx_qed_freek.nxnx_image.nx

imported by: nx_arm_count.nxnx_face_count.nxnx_features_test.nxnx_geom_test.nxnx_multi_body.nxnx_region.nxnx_skin_texture.nxnx_vision_pipeline_test.nx

structs

182struct CCResult

consts

46const NX_HARRIS_K_NUM: i64 = 4
47const NX_HARRIS_K_DEN: i64 = 100
189const NX_CC_BYTES: i64 = 32

functions

49func nx_feat_harris_response(gray: *Image) -> *ImageS64
96func nx_feat_corners_nms(resp: *ImageS64, threshold: i64) -> *Image
133func nx_feat_count_corners(mask: *Image) -> i64
calls 1: nx_image_get
153func nx_feat_edge_mask(gray: *Image, threshold: i64) -> *Image
192func nx_cc_find(parent: *i64, x: i64) -> i64
207func nx_cc_union(parent: *i64, a: i64, b: i64) -> i64
214func nx_feat_connected_components(mask: *Image) -> *CCResult
299func nx_feat_component_stats(cc: *CCResult, out: *i64) -> i64
357func nx_feat_hu_moments(mask: *Image, out_hu: *i64) -> i64
called by 1: main calls 2: nx_image_getnx_muldiv_i64
441func nx_feat_match_brief(desc_a: i64, desc_b: i64) -> i64
called by 2: mainmain calls 1: nx_th_hamming_distance