code wiki / (root) / nx_region.nx

nx_region.nx

buildroot/runtime/nx_region.nx

6841 B194 linesdepth 7pulls 15 transitivereach 13 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_region.nx -- typed body-region segmentation (V7 substrate). Composes V1 Kovac skin mask + L7 CC + L7 component stats into a typed RegionSet with sealed BodyPart enum. Mirrors region.py. genealogy_id: rosenfeld_pfaltz_1966_cc + kovac_2003_skin lineage_id: typed_anatomical_regioning_from_skin_topology

dependencies 4 imports · 7 importers

nx_syscalls.nx nx_image.nx nx_color_v2.nx nx_features.nx nx_region.nx nx_areola_texture.nx nx_face_count.nx nx_mise_en_scene.nx nx_outfit_coverage.nx nx_region_test.nx nx_skin_texture.nx nx_skin_texture_test.nx

imports: nx_syscalls.nxnx_image.nxnx_color_v2.nxnx_features.nx

imported by: nx_areola_texture.nxnx_face_count.nxnx_mise_en_scene.nxnx_outfit_coverage.nxnx_region_test.nxnx_skin_texture.nxnx_skin_texture_test.nx

structs

46struct RegionSet

consts

21const NX_REGION_UNKNOWN: i64 = 0
22const NX_REGION_TORSO: i64 = 1
23const NX_REGION_FACE: i64 = 2
24const NX_REGION_LIMB: i64 = 3
25const NX_REGION_BACKGROUND: i64 = 4
28const NX_REGION_F_KIND: i64 = 0
29const NX_REGION_F_BBOX_MIN_X: i64 = 1
30const NX_REGION_F_BBOX_MIN_Y: i64 = 2
31const NX_REGION_F_BBOX_MAX_X: i64 = 3
32const NX_REGION_F_BBOX_MAX_Y: i64 = 4
33const NX_REGION_F_CENTROID_X: i64 = 5
34const NX_REGION_F_CENTROID_Y: i64 = 6
35const NX_REGION_F_AREA_PX: i64 = 7
36const NX_REGION_F_CONF_Q10: i64 = 8
37const NX_REGION_FIELDS: i64 = 9
38const NX_REGION_MAX_COUNT: i64 = 16
41const NX_REGION_NOISE_AREA_Q10: i64 = 5
42const NX_REGION_LIMB_AREA_Q10: i64 = 20
43const NX_REGION_TORSO_AREA_Q10: i64 = 100
44const NX_REGION_FACE_FRAC_Q10: i64 = 307 // top 30% of torso for FACE

functions

52func nx_region_get_field(set: *RegionSet, i: i64, field: i64) -> i64
56func nx_region_add(set: *RegionSet, kind: i64,
called by 1: nx_region_segment
74func nx_region_count_kind(set: *RegionSet, kind: i64) -> i64
86func nx_region_find_kind(set: *RegionSet, kind: i64) -> i64
97func nx_region_segment(rgb: *Image) -> *RegionSet