code wiki / (root) / nx_aesthetics.nx

nx_aesthetics.nx

buildroot/runtime/nx_aesthetics.nx

8287 B223 linesdepth 7pulls 12 transitivereach 8 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_aesthetics.nx -- composite image-quality scoring (V10). Synthesizes prior V1-V8 primitives into a single objective image quality report. All measures are Q10 fixed-point. Five components: 1. color harmony (V1) -- hue distribution narrowness 2. lighting quality (V3) -- exposure, range, clipping 3. composition (V2) -- thirds + balance + restrained symmetry 4. subject clarity (V8) -- salience peakedness (low flatness) 5. sharpness (L4) -- mean Sobel magnitude Composite is the equal-weighted mean (configurable in future). Per CAPTAIN_MORONI_DOCTRINE: substrate scores IMAGE properties. Never SUBJECTS. Never PERSONS. Never assigns beauty to humans. Bad photo of a beautiful subject scores poorly; good photo of a mundane subject scores well -- because the score is about the photo, not the people in it. genealogy_id: birkhoff_1933_aesthetic_measure + datta_2006_studying + ke_2006_quality_assessment + machajdik_2010_emotion lineage_id: composite_image_quality_score

dependencies 6 imports · 3 importers

syscalls.nx nx_image.nx nx_color_v2.nx nx_compose.nx nx_light.nx nx_salience.nx nx_aesthetics.nx nx_aesthetics_test.nx nx_image_feature_extract.nx nx_vision_pipeline_test.nx

imports: syscalls.nxnx_image.nxnx_color_v2.nxnx_compose.nxnx_light.nxnx_salience.nx

imported by: nx_aesthetics_test.nxnx_image_feature_extract.nxnx_vision_pipeline_test.nx

structs

39struct AestheticsReport

consts

37const K_MAGIC_1024: i64 = 1024

functions

55func nx_aesthetics_color_harmony(rgb: *Image) -> i64
106func nx_aesthetics_lighting_quality(gray: *Image) -> i64
133func nx_aesthetics_composition(gray: *Image) -> i64
164func nx_aesthetics_subject_clarity(gray: *Image) -> i64
175func nx_aesthetics_sharpness(gray: *Image) -> i64
208func nx_aesthetics_compute(rgb: *Image, gray: *Image,