diff --git a/Modules/Filtering/ImageManipulation/include/otbSpectralAngleFunctor.h b/Modules/Filtering/ImageManipulation/include/otbSpectralAngleFunctor.h
index 8b6c1ab13264aaa6621c335aaea50cc183276da4..36da5ecf11927ba630dad4afd4fb5213522bb305 100644
--- a/Modules/Filtering/ImageManipulation/include/otbSpectralAngleFunctor.h
+++ b/Modules/Filtering/ImageManipulation/include/otbSpectralAngleFunctor.h
@@ -24,6 +24,7 @@
 #include "otbMath.h"
 #include <algorithm>
 #include <vector>
+#include <numeric>
 
 namespace otb
 {