measure_image
Scores an image on sharpness, tile_seam, or brightness to objectively evaluate quality for iterative refinement.
Instructions
Score an output objectively, for the ratchet (metric: sharpness | tile_seam | brightness).
Use ONLY where the brief has an objective test — then feed the score to loop_record so the ratchet can't be fooled by a model that wants to be done:
tile_seam "seamless texture" — compares the wrap-around join to an interior join. ~1.0 = genuinely tiles; >2 = a real seam. The eye waves this through. sharpness "upscale/restore, add detail" — edge energy. Rises with real detail, falls when a pass just softened the image. Compare ACROSS passes. brightness mean / stddev / p99 — exposure and blown-highlight checks.
A score is not the judgement. A graph with a great number can still look wrong — gate on the metric, decide with your eyes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | No | sharpness | |
| filename | Yes | ||
| subfolder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |