ynsat logo

Spectral Angle Mapper (SAM)

1 min read

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 #

  1. Vector definition
    • Pixel spectrum R = [ R 1 , R 2 , , R n ] T
    • Reference spectrum (endmember) S = [ S 1 , S 2 , , S n ] T
  2. Angle computation θ = arccos ( R · S R S ) , 0 θ π 2
    • R · S  Dot product (spectral shape agreement)
    • ·  Euclidean norm (vector length)
  3. Normalization (0–1 scale) To provide an intuitive “similarity” output, the raw angle is mapped to the unit interval: SAM norm = 1 θ π / 2
    • 1 → identical spectral shape
    • 0 → orthogonal (maximally different) spectral shape
  4. 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 #

PropertyBenefit
Illumination‐invariantIgnores overall brightness differences, focusing on spectral shape.
Unit-lessComparable across instruments and scenes once wavelengths are aligned.
Normalised outputConsistent 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.
Updated on June 19, 2025