nx_features.nx
buildroot/runtime/nx_features.nx
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
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
| 182 | struct CCResult |
consts
| 46 | const NX_HARRIS_K_NUM: i64 = 4 |
| 47 | const NX_HARRIS_K_DEN: i64 = 100 |
| 189 | const NX_CC_BYTES: i64 = 32 |
functions
| 49 | func nx_feat_harris_response(gray: *Image) -> *ImageS64 |
| 96 | func nx_feat_corners_nms(resp: *ImageS64, threshold: i64) -> *Image |
| 133 | func nx_feat_count_corners(mask: *Image) -> i64 calls 1: nx_image_get |
| 153 | func nx_feat_edge_mask(gray: *Image, threshold: i64) -> *Image |
| 192 | func nx_cc_find(parent: *i64, x: i64) -> i64 |
| 207 | func nx_cc_union(parent: *i64, a: i64, b: i64) -> i64 |
| 214 | func nx_feat_connected_components(mask: *Image) -> *CCResult |
| 299 | func nx_feat_component_stats(cc: *CCResult, out: *i64) -> i64 |
| 357 | func nx_feat_hu_moments(mask: *Image, out_hu: *i64) -> i64 |
| 441 | func nx_feat_match_brief(desc_a: i64, desc_b: i64) -> i64 |