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

32 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.
# Deconvolution
Restore an image via regularised deconvolution. Assumes the image was blurred by a Gaussian PSF with the given sigma. Equivalent to Gwyddion's deconvolve.c module.
## Inputs
| Name | Type | Required | Description |
|------|------|----------|-------------|
| field | DATA_FIELD | Yes | Input blurred field |
## Outputs
| Name | Type | Description |
|------|------|-------------|
| restored | DATA_FIELD | Deconvolved (sharpened) field |
## Controls
| Name | Type | Default | Description |
|------|------|---------|-------------|
| method | dropdown | wiener | Deconvolution method: wiener or richardson_lucy |
| sigma | FLOAT | 2.0 | Gaussian PSF sigma in pixels (0.150.0) |
| regularisation | FLOAT | 0.01 | Regularisation parameter for Wiener filter (1e-61.0) |
| iterations | INT | 10 | Number of iterations (Richardson-Lucy only, 1200) |
## Notes
- **Wiener**: Fast, single-pass frequency-domain filter. The regularisation parameter controls the noise/sharpness tradeoff — smaller values sharpen more but amplify noise.
- **Richardson-Lucy**: Iterative method that preserves positivity. More iterations = sharper result but risk of ringing artifacts.
- The PSF sigma should match the actual blur in the image. If unknown, start with sigma=13 and adjust.
- For tip-shape deconvolution (non-Gaussian PSF), use Tip Deconvolution instead.