image_statistics
image_statisticsCompute per-channel image statistics (median, mean, sigma, min/max, clipped/saturated counts, noise, SNR, background ratios) to validate every stretch or sharpen step.
Instructions
Per-channel median, MAD, mean, σ, min/max, clipped-black and saturated counts/percent, MRS noise estimate, SNR proxy, background neutrality ratios, linear guess. Read-only. Use after every stretch/sharpen step.
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": {
"id": "<id>"
},
"name": "image_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| rect | No | [x, y, width, height] in image pixels | |
| clip_low | No | Value at/below which pixels count as clipped (default 0) | |
| clip_high | No | Value at/above which pixels count as saturated (default 1) |