nx_aesthetics.nx
buildroot/runtime/nx_aesthetics.nx
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
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
| 39 | struct AestheticsReport |
consts
| 37 | const K_MAGIC_1024: i64 = 1024 |
functions
| 55 | func nx_aesthetics_color_harmony(rgb: *Image) -> i64 |
| 106 | func nx_aesthetics_lighting_quality(gray: *Image) -> i64 |
| 133 | func nx_aesthetics_composition(gray: *Image) -> i64 called by 1: nx_aesthetics_compute calls 3: nx_compose_thirds_scorenx_compose_h_symmetrynx_compose_balance_score |
| 164 | func nx_aesthetics_subject_clarity(gray: *Image) -> i64 |
| 175 | func nx_aesthetics_sharpness(gray: *Image) -> i64 |
| 208 | func nx_aesthetics_compute(rgb: *Image, gray: *Image, |