SPAM: Software for Practical Analysis of Materials
For any questions that the documentation failed to answer, for suggestions or bug reports please join us in our chat room. You can also participate in one of our yearly workshop to meet us in person.
Global Digital Image Correlation
Two photographs of a sandstone, taken before and after loading in the true triaxial cell of Laboratoire 3SR, look identical. Global DIC finds the shear bands forming inside.
Global DIC · in the field
Tsarmine, in the Arolla valley (Swiss Alps), is a destabilised rock glacier, 500 m long, creeping several metres a year. An autonomous drone flew over it every week of summer 2025, but from one flight to the next the sun and the shadows move. So global DIC does not correlate the photographs: it correlates the geometry of the ground, through hillshades of the elevation models.
Data: S. Vivero, E. Roubin, E. Andò, G. Ruggiero, S. Bonetti (CHANGE, EPFL · Laboratoire 3SR · EPFL Center for Imaging · Fieldwork SA).
# install the pip module
pip install spam
>>> import tifffile
>>> import spam.DIC
>>> # load your images
>>> im1 = tifffile.imread("im1.tif")
>>> im2 = tifffile.imread("im2.tif")
>>> # and register them
>>> spam.DIC.register(im1, im2)
SPAM won the 2024 edition of an Open Source Software for research prize by the French Ministry of Higher Education and Research.
We are delighted to have received this prize, as it aligns with the values and principles that we hold dear such as open source distribution, documented features and community driven developement.
SPAM wouldn't be what it is today without its thriving community and we can't thank you enough for that.
Check out our yearly workshops
From Monday the 28th to Friday the 2nd of July 2027, Athens (Greece).
From Sunday the 9th to Thursday the 13th of November 2025, Dresden (Germany).
Margaretenhof goup photo
Working session
Jäckelfels crags... figuring out the betas
Entering Pfaffenstein
Cite the paper
Cited 181 times as of 2026/09/30. Click below to see the list of articles: