measure_star_layer
Measures a star layer image by counting pixels with signal, reporting fractions above set brightness levels, color saturation spread, and chroma of bright stars. Returns max, median, and per-level fractions.
Instructions
Measure a star layer (a mostly black view holding stars). Over every 4th pixel whose largest channel is above 0.005 (nonzero_pixel_count), reports the fraction whose largest channel is above each of the given levels, the interquartile range of their HSV saturation (color_diversity), and the median (max - min) / max of the 20 brightest by R+G+B (bright_star_chroma). Also the largest channel value (max) and the image median (the mean of the channel medians for colour). Returns JSON: max, median, fraction_above {level: fraction}, color_diversity, bright_star_chroma, nonzero_pixel_count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| levels | Yes | Pixel levels; for each, the fraction of star pixels whose largest channel is above it is reported | |
| view_id | Yes | Star layer view to measure |