nx_region.nx
buildroot/runtime/nx_region.nx
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
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
| 46 | struct RegionSet |
consts
| 21 | const NX_REGION_UNKNOWN: i64 = 0 |
| 22 | const NX_REGION_TORSO: i64 = 1 |
| 23 | const NX_REGION_FACE: i64 = 2 |
| 24 | const NX_REGION_LIMB: i64 = 3 |
| 25 | const NX_REGION_BACKGROUND: i64 = 4 |
| 28 | const NX_REGION_F_KIND: i64 = 0 |
| 29 | const NX_REGION_F_BBOX_MIN_X: i64 = 1 |
| 30 | const NX_REGION_F_BBOX_MIN_Y: i64 = 2 |
| 31 | const NX_REGION_F_BBOX_MAX_X: i64 = 3 |
| 32 | const NX_REGION_F_BBOX_MAX_Y: i64 = 4 |
| 33 | const NX_REGION_F_CENTROID_X: i64 = 5 |
| 34 | const NX_REGION_F_CENTROID_Y: i64 = 6 |
| 35 | const NX_REGION_F_AREA_PX: i64 = 7 |
| 36 | const NX_REGION_F_CONF_Q10: i64 = 8 |
| 37 | const NX_REGION_FIELDS: i64 = 9 |
| 38 | const NX_REGION_MAX_COUNT: i64 = 16 |
| 41 | const NX_REGION_NOISE_AREA_Q10: i64 = 5 |
| 42 | const NX_REGION_LIMB_AREA_Q10: i64 = 20 |
| 43 | const NX_REGION_TORSO_AREA_Q10: i64 = 100 |
| 44 | const NX_REGION_FACE_FRAC_Q10: i64 = 307 // top 30% of torso for FACE |
functions
| 52 | func nx_region_get_field(set: *RegionSet, i: i64, field: i64) -> i64 |
| 56 | func nx_region_add(set: *RegionSet, kind: i64, called by 1: nx_region_segment |
| 74 | func nx_region_count_kind(set: *RegionSet, kind: i64) -> i64 |
| 86 | func nx_region_find_kind(set: *RegionSet, kind: i64) -> i64 |
| 97 | func nx_region_segment(rgb: *Image) -> *RegionSet |