measure_star_layer
Analyze a star layer to quantify brightness levels, color diversity, and star chroma. Returns fractions above thresholds plus median and max values for quality assessment.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"view_id": "<view_id>",
"levels": "<levels>"
},
"name": "measure_star_layer"
}
}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 |