Spectral Angle Mapper quantifies the shape similarity between a pixel’s spectrum and a reference spectral signature by treating each as a vector in an n-dimensional space (one dimension per band). Because the comparison is purely angular, SAM is highly robust to illumination differences and overall brightness scaling.
How it works #
- Vector definition
- Pixel spectrum
- Reference spectrum (endmember)
- Angle computation
- Dot product (spectral shape agreement)
- Euclidean norm (vector length)
- Normalization (0–1 scale) To provide an intuitive “similarity” output, the raw angle is mapped to the unit interval:
- 1 → identical spectral shape
- 0 → orthogonal (maximally different) spectral shape
- Per-pixel evaluation The calculation is applied to every image pixel, producing a SAM band where higher values indicate closer spectral conformity to the chosen reference.
#
Key properties #
Property | Benefit |
---|---|
Illumination‐invariant | Ignores overall brightness differences, focusing on spectral shape. |
Unit-less | Comparable across instruments and scenes once wavelengths are aligned. |
Normalised output | Consistent 0–1 scale simplifies thresholding and visualisation. |
When to use SAM #
- Mineral prospection: Differentiate minerals with similar albedo but distinct absorption shapes.
- Vegetation studies: Match species or health states under varying sun–sensor geometries.
- Change detection: Highlight spectral‐shape changes while suppressing mere brightness shifts.