diff --git a/Code/BasicFilters/otbMeanShiftImageFilter.txx b/Code/BasicFilters/otbMeanShiftImageFilter.txx
index 70159f9af98628678cdee79f418128b30b3853bf..2783932a83d43d91e4e27a298b5ecada656ec5df 100644
--- a/Code/BasicFilters/otbMeanShiftImageFilter.txx
+++ b/Code/BasicFilters/otbMeanShiftImageFilter.txx
@@ -384,7 +384,7 @@ namespace otb
     typename LabeledOutputType::IndexType boundIndex;
 
     // TODO: Here it would be possible to extract the polygon edges for each region
-    for(LabelType label = 1; label <= numRegions;++label)
+    for(LabelType label = 0; label < numRegions;++label)
       {
 	regionIndeces = regionList->GetRegionIndeces(label);
 	for(int  i = 0; i < regionList->GetRegionCount(label);++i)