pixel_math
pixel_mathApply math expressions to a PixInsight view using $T or other view IDs, with rescale, truncate, RGB channels, and optional new-image output. Checkpoints before in-place edits preserve originals.
Instructions
PixelMath expression on a view ($T = target; other view ids usable). new_id creates a new image instead of replacing. Checkpoints first when in place.
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>",
"expression": "<expression>"
},
"name": "pixel_math"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| new_id | No | ||
| rescale | No | ||
| truncate | No | ||
| checkpoint | No | Write an .xisf checkpoint before running (default true) | |
| expression | Yes | ||
| expression_b | No | ||
| expression_g | No |