auto_crop
auto_cropTrim registration edges by detecting rows and columns with excessive zero pixels, then crop them with optional padding. Use dry-run to preview crop rectangle before applying.
Instructions
Trim registration edges: finds rows/columns with > max_zero_fraction zero pixels and crops them (+pad). dry_run reports the rect only. Checkpoints first.
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": "auto_crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| pad | No | ||
| dry_run | No | ||
| threshold | No | ||
| checkpoint | No | Write an .xisf checkpoint before running (default true) | |
| max_zero_fraction | No |