compare_images
Compare two open PixInsight views pixel by pixel to measure per-channel max, mean, and 99th-percentile absolute differences, plus out-of-range fractions. Neither view is altered.
Instructions
Compare two open views of the same width, height and channel count, pixel by pixel, over the whole image or a rectangle. Per channel: maximum, mean and 99th-percentile absolute difference, and the fraction of samples outside [0, 1] in each view. "identical" is true when every absolute difference is 0. The 99th percentile is taken over at most 2,000,000 evenly spaced samples (p99Samples says how many); maximum and mean use every sample. Neither view is changed.
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>",
"reference_id": "<reference_id>"
},
"name": "compare_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rect | No | Optional region [x0, y0, x1, y1] in pixels, x1/y1 exclusive | |
| view_id | Yes | First view (A) | |
| reference_id | Yes | Second view (B), compared against A |