diff --git a/Code/FeatureExtraction/otbRadiometricMomentsImageFunction.txx b/Code/FeatureExtraction/otbRadiometricMomentsImageFunction.txx
index 06d89f38c1fb147cf10ca619cfc4bbb3907824bf..7f4207dbb28d5583bd6963b96bc31306a11ecc71 100644
--- a/Code/FeatureExtraction/otbRadiometricMomentsImageFunction.txx
+++ b/Code/FeatureExtraction/otbRadiometricMomentsImageFunction.txx
@@ -64,8 +64,8 @@ RadiometricMomentsImageFunction<TInputImage,TCoordRep>
     }
   
   // Check for out of buffer
-  Self* _this = const_cast<Self*>(this);
-  _this->SetInputImage( this->GetInputImage() );
+  //Self* _this = const_cast<Self*>(this);
+  //_this->SetInputImage( this->GetInputImage() );
   if ( !this->IsInsideBuffer( index ) )
     {
     return moments;