nx_arm_count.nx
buildroot/runtime/nx_arm_count.nx
about
nx_arm_count.nx -- limb-count detector for SDXL hallucination class.
v0: bbox-touches. v1 ADDS: skin-bridge ratio along centroid line.
dependencies 4 imports · 1 importers
imports: nx_syscalls.nxnx_image.nxnx_color_v2.nxnx_features.nx
imported by: nx_arm_count_test.nx
structs
| 23 | struct ArmCountVerdict |
consts
| 14 | const NX_MAGIC_1024: i64 = 1024 |
| 16 | const NX_ARM_NOISE_AREA_Q10: i64 = 5 |
| 17 | const NX_ARM_LIMB_AREA_Q10: i64 = 20 |
| 18 | const NX_ARM_TORSO_AREA_Q10: i64 = 100 |
| 19 | const NX_ARM_BBOX_MARGIN: i64 = 4 |
| 20 | const NX_ARM_BRIDGE_RATIO_Q10: i64 = 256 |
| 21 | const NX_ARM_LINE_SAMPLES: i64 = 20 |
functions
| 35 | func nx_arm_bbox_touches(a_min_x: i64, a_min_y: i64, a_max_x: i64, a_max_y: i64, called by 1: nx_arm_count_compute |
| 45 | func nx_arm_line_skin_ratio(mask: *Image, x0: i64, y0: i64, x1: i64, y1: i64) -> i64 |
| 67 | func nx_arm_count_compute(rgb: *Image, verdict: *ArmCountVerdict) -> i64 |