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

35 lines
1.7 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.
# Feature Detection
Detect edges or corners in a surface using Canny edge detection or Harris corner detection. Outputs a feature map and a table of detected feature locations. Equivalent to Gwyddion's edge/corner detection in filters.c.
## Inputs
| Name | Type | Required | Description |
|------|------|----------|-------------|
| field | DATA_FIELD | Yes | Input surface |
## Outputs
| Name | Type | Description |
|------|------|-------------|
| result | DATA_FIELD | Feature map (binary edges or corner response) |
| features | RECORD_TABLE | Table of detected feature statistics and locations |
## Controls
| Name | Type | Default | Description |
|------|------|---------|-------------|
| method | dropdown | canny | Detection method: canny (edges) or harris (corners) |
| sigma | FLOAT | 1.0 | Gaussian smoothing sigma in pixels (0.120.0) |
| low_threshold | FLOAT | 0.1 | Canny low hysteresis threshold (01) |
| high_threshold | FLOAT | 0.2 | Canny high hysteresis threshold (01) |
| harris_k | FLOAT | 0.05 | Harris detector sensitivity parameter (0.010.5) |
| min_distance | INT | 5 | Minimum distance between detected corners in pixels (1100) |
## Notes
- **Canny**: Multi-stage edge detector with non-maximum suppression and hysteresis thresholding. Output is a binary edge map. Reports edge pixel count and edge fraction.
- **Harris**: Corner detector based on the structure tensor eigenvalues. Output is the corner response map. Reports up to 20 strongest corner locations with physical coordinates.
- Increase sigma to detect larger-scale features and suppress noise.
- For basic edge detection (Sobel, Prewitt, Laplacian), use the Edge Detect node instead.