code wiki / (root) / nx_anatomy_measure.nx

nx_anatomy_measure.nx

buildroot/runtime/nx_anatomy_measure.nx

6330 B171 linesdepth 5pulls 9 transitivereach 1 importersview sourcekind librarytopic anatomy
docsdependenciesstructsconstsfunctions

about

nx_anatomy_measure.nx -- measure named anatomical axes from binary mask. Composes existing primitives (no duplication): - nx_color_skin_mask (already in nx_color_v2) - nx_region_segment (already in nx_region) - nx_eye_detect (Layer 7, KEYSTONE) Cross-section measurement is the central technique here: - bust = widest mask-width across upper torso Y-band - waist = narrowest mask-width across mid torso Y-band - hip = widest mask-width across lower torso Y-band - navel = darkest pixel along torso vertical midline Output: flat-array (axis_id, value_px) bundle ready for nx_beauty_score(). All primitives are flat-array-API to avoid the nxc2 codegen bug with struct-pointer returns.

dependencies 4 imports · 1 importers

nx_syscalls.nx nx_image.nx nx_canon_proportions.nx nx_beauty_score.nx nx_anatomy_measure.nx nx_anatomy_measure_test.nx

imports: nx_syscalls.nxnx_image.nxnx_canon_proportions.nxnx_beauty_score.nx

imported by: nx_anatomy_measure_test.nx

structs

none

consts

28const K_MAGIC_9999: i64 = 9999

functions

32func nx_mask_longest_run_at_y(mask: *Image, y: i64, x0: i64, x1: i64) -> i64
53func nx_mask_widest_y(mask: *Image, y0: i64, y1: i64,
69func nx_mask_narrowest_y(mask: *Image, y0: i64, y1: i64,
97func nx_anatomy_measure_body(mask: *Image, eye_width_px: i64,