Files
tono/docs/nodes/Scar Removal.md
2026-03-30 23:10:42 -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.
# Scar Removal
Detect and remove horizontal scan scars using Gwyddion-derived scar marking thresholds, then interpolate over the detected mask with a Laplace-style inpaint.
## Inputs
| Name | Type | Required | Description |
|------|------|----------|-------------|
| field | DATA_FIELD | Yes | Input field with scan scars |
## Outputs
| Name | Type | Description |
|------|------|-------------|
| corrected | DATA_FIELD | Field with scars removed and interpolated |
| scar_mask | IMAGE | Binary mask of the detected scar pixels |
## Controls
| Name | Type | Default | Description |
|------|------|---------|-------------|
| scar_type | dropdown | both | Which scar polarity to detect: both, positive (bright), or negative (dark) |
| threshold_high | FLOAT | 0.666 | High threshold relative to local RMS for strong scar detection (02) |
| threshold_low | FLOAT | 0.25 | Low threshold for extending already-detected scars (02) |
| min_length | INT | 16 | Minimum horizontal run length in pixels to classify as a scar (14096) |
| max_width | INT | 4 | Maximum vertical width in pixels for a scar candidate (132) |
## Limitations
- Designed for horizontal (fast-scan) scars only; vertical scars are not detected.
- Aggressive thresholds may remove legitimate surface features that resemble scars.