diff --git a/Code/MultiScale/otbMorphologicalPyramidAnalyseFilter.txx b/Code/MultiScale/otbMorphologicalPyramidAnalyseFilter.txx
index 5e48c9eb801427c1dc139c09b6388b6690c4d357..ad0a9159af9e4cc99c3641b2578b50be0d589999 100644
--- a/Code/MultiScale/otbMorphologicalPyramidAnalyseFilter.txx
+++ b/Code/MultiScale/otbMorphologicalPyramidAnalyseFilter.txx
@@ -211,7 +211,8 @@ namespace otb
 	for (int j =0; j<InputImageType::ImageDimension;j++)
 	  {
 	    sizeTmp=size[j];
-	    size[j]=static_cast<unsigned int>(static_cast<double>(sizeTmp)/this->GetSubSampleScale());
+	    // As we knwow that our values will always be positive ones, we can simulate round by ceil(value+0.5)
+	    size[j]=static_cast<unsigned int>(ceil((static_cast<double>(sizeTmp)/this->GetSubSampleScale())+0.5));
 	  }
 	otbMsgDebugMacro(<<"New size: "<<size);
     
diff --git a/Examples/Learning/SVMImageEstimatorClassificationMultiExample.cxx b/Examples/Learning/SVMImageEstimatorClassificationMultiExample.cxx
index 56ebf31dcf60599420d8bcf2d91e38eb6cc985d5..2ee80f88d80a2dbad6b3d5643c0e490b567164aa 100644
--- a/Examples/Learning/SVMImageEstimatorClassificationMultiExample.cxx
+++ b/Examples/Learning/SVMImageEstimatorClassificationMultiExample.cxx
@@ -48,9 +48,9 @@
 // estimation of the SVM model. Left: RGB image. Right: image of labels.} 
 // \label{fig:SVMROISMULTI}
 // \end{figure}
-//
+
 // The following header files are needed for the program:
-//
+
 //  Software Guide : EndLatex 
 
 
@@ -85,7 +85,7 @@ int main( int argc, char *argv[])
     const char* inputImageFileName = argv[1];
     const char* trainingImageFileName = argv[2];
     const char* outputImageFileName = argv[3];
-    const char* outputModelFileName = argv[4];
+//  const char* outputModelFileName = argv[4];
 
 //  Software Guide : BeginLatex
 //