nx_uncanny_valley.nx
buildroot/runtime/nx_uncanny_valley.nx
about
nx_uncanny_valley.nx -- composite "person doesn't belong in scene" detector.
Image #58 failure class: subject feels SLIGHTLY pasted onto the
scene. Multiple sub-signals contribute:
1. Lighting consistency (already shipped: nx_lighting_consistency)
2. Shadow integration — does subject cast shadows on environment?
3. Skin-too-perfect signal (mannequin index lookup)
4. Edge-seam / chroma-fringe artifact on subject silhouette
5. Subject-environment color cast match
This composite takes the 5 sub-scores and emits one uncanny-valley
verdict. High = compositing-seam visible / pasted. Low = subject
belongs in scene.
Output flat-array:
result[0..4] = per-axis Q10 scores
result[5] = composite_q10
result[6] = verdict
result[7] = failing_axis
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_award_axes_test.nx
structs
| none |
consts
| 28 | const NX_MAGIC_2048: i64 = 2048 |
| 30 | const NX_UNCANNY_RES_LIGHTING: i64 = 0 |
| 31 | const NX_UNCANNY_RES_SHADOW: i64 = 1 |
| 32 | const NX_UNCANNY_RES_MANNEQUIN: i64 = 2 |
| 33 | const NX_UNCANNY_RES_EDGE_SEAM: i64 = 3 |
| 34 | const NX_UNCANNY_RES_COLOR_CAST: i64 = 4 |
| 35 | const NX_UNCANNY_RES_COMPOSITE: i64 = 5 |
| 36 | const NX_UNCANNY_RES_VERDICT: i64 = 6 |
| 37 | const NX_UNCANNY_RES_FAIL_AXIS: i64 = 7 |
| 38 | const NX_UNCANNY_RES_FIELDS: i64 = 8 |
| 40 | const NX_UNCANNY_V_PASTED_IN: i64 = 0 |
| 41 | const NX_UNCANNY_V_NOTICEABLE: i64 = 1 |
| 42 | const NX_UNCANNY_V_ACCEPTABLE: i64 = 2 |
| 43 | const NX_UNCANNY_V_BELONGS_IN_SCENE: i64 = 3 |
| 45 | const NX_UNCANNY_AXIS_LIGHTING: i64 = 0 |
| 46 | const NX_UNCANNY_AXIS_SHADOW: i64 = 1 |
| 47 | const NX_UNCANNY_AXIS_MANNEQUIN: i64 = 2 |
| 48 | const NX_UNCANNY_AXIS_EDGE_SEAM: i64 = 3 |
| 49 | const NX_UNCANNY_AXIS_COLOR_CAST: i64 = 4 |
functions
| 60 | func nx_uncanny_valley(lighting_q10: i64, shadow_q10: i64, called by 1: main |