Files
tono/docs/nodes/Polynomial Level.md

29 lines
893 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Polynomial Level
Fit and subtract a polynomial background of given degree in x and y. Equivalent to gwy_data_field_fit_polynom.
## Inputs
| Name | Type | Required | Description |
|------|------|----------|-------------|
| field | DATA_FIELD | Yes | Input field to level |
## Outputs
| Name | Type | Description |
|------|------|-------------|
| leveled | DATA_FIELD | Field with polynomial background subtracted |
| background | DATA_FIELD | The fitted polynomial background surface |
## Controls
| Name | Type | Default | Description |
|------|------|---------|-------------|
| degree_x | INT | 2 | Polynomial degree in the x direction (05) |
| degree_y | INT | 2 | Polynomial degree in the y direction (05) |
## Notes
- High polynomial degrees (> 4) may overfit and introduce artificial long-range modulation.
- No masking support; all pixels contribute equally to the fit.