nx_cheek_localize.nx
buildroot/runtime/nx_cheek_localize.nx
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
imports: nx_syscalls.nx
imported by: nx_localizers_test.nx
structs
| none |
consts
| 21 | const NX_CHEEK_Y_FRAC_TOP_PCT: i64 = 50 |
| 22 | const NX_CHEEK_Y_FRAC_BOT_PCT: i64 = 65 |
| 24 | const NX_CHEEK_X_FRAC_INNER_PCT: i64 = 15 |
| 25 | const NX_CHEEK_X_FRAC_OUTER_PCT: i64 = 35 |
| 27 | const NX_CHEEK_RES_LEFT_X0: i64 = 0 |
| 28 | const NX_CHEEK_RES_LEFT_Y0: i64 = 1 |
| 29 | const NX_CHEEK_RES_LEFT_X1: i64 = 2 |
| 30 | const NX_CHEEK_RES_LEFT_Y1: i64 = 3 |
| 31 | const NX_CHEEK_RES_RIGHT_X0: i64 = 4 |
| 32 | const NX_CHEEK_RES_RIGHT_Y0: i64 = 5 |
| 33 | const NX_CHEEK_RES_RIGHT_X1: i64 = 6 |
| 34 | const NX_CHEEK_RES_RIGHT_Y1: i64 = 7 |
| 35 | const NX_CHEEK_RES_FIELDS: i64 = 8 |
functions
| 37 | func nx_cheek_localize(face_x0: i64, face_y0: i64, called by 1: main |