diff --git a/Modules/Filtering/Statistics/include/otbPatternSampler.h b/Modules/Filtering/Statistics/include/otbPatternSampler.h index 5a9b640a622d47224f733ef5a48492ba15e08735..cc9dd9465dfe5be082025a960d0707f64f56c31a 100644 --- a/Modules/Filtering/Statistics/include/otbPatternSampler.h +++ b/Modules/Filtering/Statistics/include/otbPatternSampler.h @@ -49,7 +49,7 @@ public: typedef struct Parameter { /** Maximum size of the internal patterns */ - unsigned long MaxPatternSize; + unsigned long MaxPatternSize = 0; /** First sampling pattern */ std::vector<bool> Pattern1; @@ -59,7 +59,7 @@ public: std::vector<bool> Pattern2; /** Seed used to randomly generate patterns (used only if greater than 0) */ - unsigned int Seed; + unsigned int Seed = 0; bool operator!=(const struct Parameter & param) const; } ParameterType;