cross-sensor-cal

Stage 05 MESMA

DO NOT EDIT OUTSIDE MARKERS

Using the spectral library

The spectral library from Stage 04 provides the candidate endmember spectra. You load it as a NumPy array and pass it to the MESMA routine alongside the target image. MESMA iterates through library combinations to find the model with the lowest root mean square error (RMSE).

from unmixing.el_mesma import MesmaCore

mesma = MesmaCore()
fractions, residuals = mesma._mesma(image, library)

Endmember selection strategies

Outputs

Validation

Last updated: 2025-08-18