code wiki / (root) / nx_skin_texture.nx

nx_skin_texture.nx

buildroot/runtime/nx_skin_texture.nx

3925 B102 linesdepth 8pulls 17 transitivereach 4 importersview sourcekind librarytopic skin
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_image.nx nx_features.nx nx_texture.nx nx_region.nx nx_skin_texture.nx nx_areola_texture.nx nx_region_isolated_test.nx nx_skin_texture_test.nx

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

31struct SkinTextureVerdict

consts

21const NX_ST_UNKNOWN: i64 = 0
22const NX_ST_NORMAL: i64 = 1
23const NX_ST_PLASTIC_SHEEN: i64 = 2
24const NX_ST_TOO_NOISY: i64 = 3
26const NX_ST_ENERGY_PLASTIC_Q10: i64 = 900
27const NX_ST_CONTRAST_PLASTIC_Q10: i64 = 50
28const NX_ST_CONTRAST_NOISY_Q10: i64 = 500
29const NX_ST_HOMOGENEITY_NOISY_Q10: i64 = 300

functions

42func nx_skin_crop_gray(src: *Image, x0: i64, y0: i64, x1: i64, y1: i64) -> *Image
58func nx_skin_texture_compute(rgb: *Image, set: *RegionSet) -> *SkinTextureVerdict