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

30 lines
1.1 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.
# Outlier Mask
Create a mask marking pixels that deviate more than N standard deviations from the mean. Quick way to identify noise spikes and defects. Equivalent to Gwyddion's outliers.c module.
## Inputs
| Name | Type | Required | Description |
|------|------|----------|-------------|
| field | DATA_FIELD | Yes | Input surface |
## Outputs
| Name | Type | Description |
|------|------|-------------|
| mask | IMAGE | Binary mask of outlier pixels |
## Controls
| Name | Type | Default | Description |
|------|------|---------|-------------|
| sigma_threshold | FLOAT | 3.0 | Number of standard deviations beyond which a pixel is an outlier (1.010.0) |
| mode | dropdown | both | Which outliers to flag: both (high and low), high only, or low only |
## Notes
- A pixel is flagged if its z-score (data - mean) / std exceeds the threshold.
- 3σ catches ~0.3% of pixels in a Gaussian distribution. Use 2σ for aggressive filtering or 5σ for conservative.
- The resulting mask can be fed to Laplace Interpolation or Fractal Interpolation to fill the defects.
- For a uniform (constant) field, no pixels are flagged regardless of threshold.