pixelmath_mask
pixelmath_maskEvaluates a PixelMath expression on the active image to produce a mask, returning the mask ID for use in PixInsight workflows.
Instructions
Mask from a PixelMath expression evaluated on the view ($T), e.g. 'iif($T>0.2,1,0)'. Returns mask_id.
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": "pixelmath_mask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| mask_id | No | ||
| rescale | No | ||
| expression | Yes |