nx_skin_texture.nx
buildroot/runtime/nx_skin_texture.nx
about
nx_skin_texture.nx -- skin-texture realism detector.
Pre-segmented-set convention: caller computes nx_region_segment(rgb)
in main() and passes set in. Verdict is allocated inside compute()
and returned by pointer. Field comparisons on the returned verdict
MUST bind through a local first (let k = v.kind; if k != X), per
docs/NISHILANG_TYPED_PRIMITIVES_GAP.md Gap 3.
dependencies 5 imports · 3 importers
imports: nx_syscalls.nxnx_image.nxnx_features.nxnx_texture.nxnx_region.nx
imported by: nx_areola_texture.nxnx_region_isolated_test.nxnx_skin_texture_test.nx
structs
| 31 | struct SkinTextureVerdict |
consts
| 21 | const NX_ST_UNKNOWN: i64 = 0 |
| 22 | const NX_ST_NORMAL: i64 = 1 |
| 23 | const NX_ST_PLASTIC_SHEEN: i64 = 2 |
| 24 | const NX_ST_TOO_NOISY: i64 = 3 |
| 26 | const NX_ST_ENERGY_PLASTIC_Q10: i64 = 900 |
| 27 | const NX_ST_CONTRAST_PLASTIC_Q10: i64 = 50 |
| 28 | const NX_ST_CONTRAST_NOISY_Q10: i64 = 500 |
| 29 | const NX_ST_HOMOGENEITY_NOISY_Q10: i64 = 300 |
functions
| 42 | func nx_skin_crop_gray(src: *Image, x0: i64, y0: i64, x1: i64, y1: i64) -> *Image called by 2: nx_areola_texture_computenx_skin_texture_compute calls 3: nx_image_allocnx_image_setnx_image_get |
| 58 | func nx_skin_texture_compute(rgb: *Image, set: *RegionSet) -> *SkinTextureVerdict |