From 5d0cc46c17e51596a410da92bd36b80e354c3902 Mon Sep 17 00:00:00 2001
From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org>
Date: Fri, 25 Sep 2009 17:27:44 +0800
Subject: [PATCH] WRG: signed-unsigned comparison

---
 Code/BasicFilters/otbMeanShiftImageFilter.txx | 4 ++--
 Code/MultiScale/otbWaveletFilterBank.txx      | 2 +-
 Code/Radiometry/otbRadarFunctors.txx          | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Code/BasicFilters/otbMeanShiftImageFilter.txx b/Code/BasicFilters/otbMeanShiftImageFilter.txx
index 9ea5b07b73..88e0568678 100644
--- a/Code/BasicFilters/otbMeanShiftImageFilter.txx
+++ b/Code/BasicFilters/otbMeanShiftImageFilter.txx
@@ -373,11 +373,11 @@ MeanShiftImageFilter<TInputImage,TOutputImage,TLabeledOutput,TBufferConverter>
   //define the boundaries
   RegionList *regionList        = edisonProcessor.GetBoundaries();
   int        *regionIndeces;
-  unsigned int        numRegions         = regionList->GetNumRegions();
+  int        numRegions         = regionList->GetNumRegions();
 
   typename LabeledOutputType::IndexType boundIndex;
 
-  for (LabelType label = 0; label < numRegions;++label)
+  for (LabelType label = 0; label < numRegions; ++label)
   {
     OutputPixelType pixel;
     TBufferConverter::FloatArrayToPixel(modes,static_cast<unsigned int>(label*clusteredOutputPtr->GetNumberOfComponentsPerPixel()),
diff --git a/Code/MultiScale/otbWaveletFilterBank.txx b/Code/MultiScale/otbWaveletFilterBank.txx
index 8e5ad9ed05..5e0f884c70 100644
--- a/Code/MultiScale/otbWaveletFilterBank.txx
+++ b/Code/MultiScale/otbWaveletFilterBank.txx
@@ -811,7 +811,7 @@ WaveletFilterBank< TInputImage, TOutputImage, TWaveletOperator, INVERSE >
     lowPassOperator.SetUpSampleFactor( this->GetUpSampleFilterFactor() );
     lowPassOperator.CreateDirectional();
 
-    long int radius [ InputImageDimension ];
+    unsigned long int radius [ InputImageDimension ];
     //radius[0] = lowPassOperator.GetRadius()[0];
 
     HighPassOperatorType highPassOperator;
diff --git a/Code/Radiometry/otbRadarFunctors.txx b/Code/Radiometry/otbRadarFunctors.txx
index c853294c06..c32331aa6e 100644
--- a/Code/Radiometry/otbRadarFunctors.txx
+++ b/Code/Radiometry/otbRadarFunctors.txx
@@ -219,7 +219,7 @@ TerraSarCalibrationComplexImageFunctor<TInput, TOutput>
   double outRadBr = static_cast<double>(m_RadarBrightness( modulus ));
 
   double NEBN = 0.;
-  for(int i=0; i<curCoeff.size(); i++)
+  for(unsigned int i=0; i<curCoeff.size(); i++)
     {
       NEBN += curCoeff[i]*vcl_pow( diffCurRange, i);
     }
-- 
GitLab