measure_core_clipping
Measures clipping in the brightest image region by counting pixels above a set level in wide and inner boxes around the core, returning fractions and peak luminance.
Instructions
Measure how much of the brightest region is above a level. Around the brightest 64 px block (mean luminance), counts pixels with any channel above level in a 128 px box (every 2nd pixel) and a 32 px box (every pixel), both centred on that block and held inside the image. Returns JSON: fraction_above_wide, fraction_above_inner, peak (largest luminance in the wide box), core_center [x, y], wide_box, inner_box. luminance is 0.2126R + 0.7152G + 0.0722B.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | Pixel level; a pixel with any channel above it is counted | |
| view_id | Yes | View to measure |