code wiki / (root) / nx_image_clarity.nx

nx_image_clarity.nx

buildroot/runtime/nx_image_clarity.nx

4030 B113 linesdepth 7pulls 8 transitivereach 0 importersview sourcekind orphan librarytopic image
docsdependenciesstructsconstsfunctions

about

nx_clarity.nx -- photographic vs image-level clarity. Per-region Sobel + salience-peak window + focal-vs-ambient ratio.

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_image.nx nx_salience.nx nx_image_clarity.nx

imports: nx_syscalls.nxnx_image.nxnx_salience.nx

imported by: nobody (leaf or entry point)

structs

26struct ClarityVerdict

consts

14const NX_CLARITY_NONE: i64 = 0
15const NX_CLARITY_PHOTOGRAPHIC: i64 = 1
16const NX_CLARITY_IMAGE_LEVEL: i64 = 2
17const NX_CLARITY_MIXED: i64 = 3
19const NX_CLARITY_FOCAL_RADIUS_Q10: i64 = 128
20const NX_CLARITY_SHARP_FLOOR_Q10: i64 = 256
21const NX_CLARITY_PHOTO_RATIO_Q10: i64 = 2048
22const NX_CLARITY_LEVEL_RATIO_Q10: i64 = 1280
23const NX_CLARITY_RATIO_CAP: i64 = 10240
24const NX_CLARITY_SOBEL_TO_Q10: i64 = 16

functions

36func nx_clarity_compute(gray: *Image, verdict: *ClarityVerdict) -> i64