measure_clipped_blocks
Counts image blocks with pixels above a specified level to detect clipped regions, returning over-limit block counts and locations.
Instructions
Count image blocks with pixels above a level. Tiles the image in block_size px blocks and samples every 3rd pixel; a sample counts when its luminance or any channel is above level, and a block counts when more than block_fraction of its samples do. Returns JSON: blocks_over, total_blocks, locations (up to 10 counted blocks in descending fraction order: x, y, fraction). luminance is 0.2126R + 0.7152G + 0.0722B.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | Pixel level; a sample whose luminance or any channel is above it counts | |
| view_id | Yes | View to measure | |
| block_size | No | Block edge in pixels (default 50) | |
| block_fraction | Yes | Fraction of a block's samples (0-1) that must be above level for the block to count |