gradient_correction
gradient_correctionRemove light-pollution gradients on linear images with DBE, GradientCorrection, or ABE. Provides checkpoints, previews, and dry-run for sample layout validation.
Instructions
Remove light-pollution gradients on a LINEAR image. method 'DBE' (DynamicBackgroundExtraction with automatically placed background samples, stars/object rejected; the user's preferred method), 'GradientCorrection' (default when DBE not requested), or 'ABE'. Checkpoints first. Look at the preview afterwards; dry_run reports the DBE sample layout.
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": "gradient_correction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| scale | No | GradientCorrection scale (default 5) | |
| degree | No | ABE polynomial degree (default 4) | |
| method | No | ||
| params | No | Extra raw PixInsight process parameters (exact PJSR names) | |
| radius | No | DBE sample radius px | |
| dry_run | No | ||
| smoothing | No | DBE model smoothing (default 0.25) | |
| tolerance | No | DBE: reject samples brighter than background by this many sigma (default 2) | |
| checkpoint | No | Write an .xisf checkpoint before running (default true) | |
| correction | No | ||
| samples_per_row | No | DBE grid density (default 10) |