code wiki / (root) / nx_pose_keypoints.nx

nx_pose_keypoints.nx

buildroot/runtime/nx_pose_keypoints.nx

2956 B59 linesdepth 2pulls 2 transitivereach 3 importersview sourcekind librarytopic pose
docsdependenciesstructsconstsfunctions

about

nx_pose_keypoints.nx -- T2 POSE, the WEIGHTS-FREE back half of a heatmap pose estimator (HRNet/OpenPose-class, per the banked primary literature knowledge/library/vidclass_lit_pose.txt: heatmap -> keypoint, part-affinity). A pose CNN emits one confidence HEATMAP per joint; this extracts the keypoint = argmax location + the standard HRNet QUARTER-PIXEL subpixel refinement (shift 0.25px toward the higher neighbor). Pure integer, deterministic, gate-able, and reusable under ANY heatmap producer -- so it composes with the future sovereign f32 pose CNN (nx_f32_conv2d/resblock/groupnorm substrate confirmed present) WITHOUT needing its weights. Coordinates are returned in QUARTER-PIXEL units (pixel*4 + {-1,0,+1}); divide by 4 for pixels. license_tier: ORIGINAL

dependencies 1 imports · 3 importers

nx_syscalls.nx nx_pose_keypoints.nx nx_pose_cnn_gate.nx nx_pose_keypoints_gate.nx nx_vitpose_forward.nx

imports: nx_syscalls.nx

imported by: nx_pose_cnn_gate.nxnx_pose_keypoints_gate.nxnx_vitpose_forward.nx

structs

none

consts

none

functions

11func pose_argmax(hm: *i64, W: i64, H: i64, px: *i64, py: *i64) -> i64
27func pose_keypoint(hm: *i64, W: i64, H: i64, thresh: i64, qx: *i64, qy: *i64) -> i64
47func pose_extract(heatmaps: *i64, J: i64, W: i64, H: i64, thresh: i64, out_qx: *i64, out_qy: *i64, out_conf: *i64) -> i64
called by 1: main calls 2: sys_mmappose_keypoint