code wiki / (root) / nx_cheek_localize.nx

nx_cheek_localize.nx

buildroot/runtime/nx_cheek_localize.nx

2504 B62 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_cheek_localize.nx -- derive cheek bbox from face bbox via Loomis canon. The Loomis face canon places cheekbones at ~50-65% down the face, ~15-35% in from each side. The substrate uses this heuristic to produce a cheek region for nx_response_signal's flushed-cheek check without needing facial-landmark detection. Output flat-array (left_cheek + right_cheek bboxes packed): result[0..3] left cheek: x0, y0, x1, y1 result[4..7] right cheek: x0, y0, x1, y1

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_cheek_localize.nx nx_localizers_test.nx

imports: nx_syscalls.nx

imported by: nx_localizers_test.nx

structs

none

consts

21const NX_CHEEK_Y_FRAC_TOP_PCT: i64 = 50
22const NX_CHEEK_Y_FRAC_BOT_PCT: i64 = 65
24const NX_CHEEK_X_FRAC_INNER_PCT: i64 = 15
25const NX_CHEEK_X_FRAC_OUTER_PCT: i64 = 35
27const NX_CHEEK_RES_LEFT_X0: i64 = 0
28const NX_CHEEK_RES_LEFT_Y0: i64 = 1
29const NX_CHEEK_RES_LEFT_X1: i64 = 2
30const NX_CHEEK_RES_LEFT_Y1: i64 = 3
31const NX_CHEEK_RES_RIGHT_X0: i64 = 4
32const NX_CHEEK_RES_RIGHT_Y0: i64 = 5
33const NX_CHEEK_RES_RIGHT_X1: i64 = 6
34const NX_CHEEK_RES_RIGHT_Y1: i64 = 7
35const NX_CHEEK_RES_FIELDS: i64 = 8

functions

37func nx_cheek_localize(face_x0: i64, face_y0: i64,
called by 1: main