diff --git a/Code/BasicFilters/otbMeanShiftImageFilter2.h b/Code/BasicFilters/otbMeanShiftImageFilter2.h
index fa4675b91e09974a13bffbce0678a949422a8472..0c3b6f7fc40b6e7742a4ab7dbc38e3ac013f976c 100644
--- a/Code/BasicFilters/otbMeanShiftImageFilter2.h
+++ b/Code/BasicFilters/otbMeanShiftImageFilter2.h
@@ -114,6 +114,8 @@ public:
   itkGetConstMacro(SpatialBandwidth, double);
   itkSetMacro(SpatialBandwidth, double);
 
+  itkGetConstMacro(MaxIterationNumber, unsigned int);
+  itkSetMacro(MaxIterationNumber, unsigned int);
 
   itkGetConstMacro(IterationCount, unsigned int);