diff --git a/Modules/Filtering/Statistics/include/otbStreamingHistogramVectorImageFilter.txx b/Modules/Filtering/Statistics/include/otbStreamingHistogramVectorImageFilter.txx index bc980f6e6c67abc211cb864f92544bac2cdc8751..072854bc3aa30e80e3883dbea532c609cb249d8d 100644 --- a/Modules/Filtering/Statistics/include/otbStreamingHistogramVectorImageFilter.txx +++ b/Modules/Filtering/Statistics/include/otbStreamingHistogramVectorImageFilter.txx @@ -271,14 +271,14 @@ PersistentHistogramVectorImageFilter<TInputImage> PixelType vectorValue = it.Get(); - bool skipSampleNoData=false; - if(m_NoDataFlag) + bool skipSampleNoData=false; + if(m_NoDataFlag) { unsigned int itComp=0; - while( itComp < vectorValue.GetSize() ) - { - if (vectorValue[itComp]==m_NoDataValue) - { + while( itComp < vectorValue.GetSize() ) + { + if (vectorValue[itComp]==m_NoDataValue) + { skipSampleNoData=true; itComp++; } @@ -287,7 +287,7 @@ PersistentHistogramVectorImageFilter<TInputImage> skipSampleNoData=false; break; } - } + } } if( !skipSampleNoData )