Files
tono/docs/nodes/Fractal Interpolation.md
2026-04-03 23:11:52 -07:00

30 lines
1.3 KiB
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.
# Fractal Interpolation
Fill masked regions using fractal interpolation. Matches the spectral characteristics of the surrounding surface to produce natural-looking infill that preserves texture. Better than Laplace for rough surfaces. Equivalent to Gwyddion's fraccor.c module.
## Inputs
| Name | Type | Required | Description |
|------|------|----------|-------------|
| field | DATA_FIELD | Yes | Input field with regions to fill |
| mask | IMAGE | Yes | Binary mask where white (255) marks pixels to interpolate |
## Outputs
| Name | Type | Description |
|------|------|-------------|
| filled | DATA_FIELD | Field with masked regions filled by fractal interpolation |
## Controls
| Name | Type | Default | Description |
|------|------|---------|-------------|
| iterations | INT | 200 | Number of boundary relaxation iterations (105000) |
## Notes
- Fractal interpolation synthesizes fill data whose power spectrum matches the surrounding surface. This produces a more realistic appearance than Laplace interpolation for textured or rough surfaces.
- The fill region boundaries are smoothed via relaxation to ensure continuity.
- For very smooth surfaces, Laplace Interpolation may produce cleaner results.
- The seed for random synthesis is fixed for reproducibility.