Files
tono/docs/nodes/Resample.md

29 lines
964 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.
# Resample
Resample a DATA_FIELD to a new pixel resolution while preserving physical dimensions. Physical size (xreal, yreal) is unchanged; pixel size dx/dy scales accordingly. Equivalent to gwy_data_field_new_resampled.
## Inputs
| Name | Type | Required | Description |
|------|------|----------|-------------|
| field | DATA_FIELD | Yes | Input field to resample |
## Outputs
| Name | Type | Description |
|------|------|-------------|
| resampled | DATA_FIELD | Resampled field at the new resolution |
## Controls
| Name | Type | Default | Description |
|------|------|---------|-------------|
| width | INT | 256 | Output pixel width (2-16384) |
| height | INT | 256 | Output pixel height (2-16384) |
| interpolation | dropdown | linear | Interpolation method: linear, cubic, or nearest |
## Notes
- Physical dimensions are preserved; upsampling does not add new information.
- Very large output sizes (e.g. 16384×16384) require substantial memory.