From dd73be16e169fd54363cf018b71bd2f3aa99a026 Mon Sep 17 00:00:00 2001 From: OTB Bot <otbbot@orfeo-toolbox.org> Date: Wed, 31 Jan 2007 09:35:22 +0000 Subject: [PATCH] Correction des tests en erreurs, adaptation du code pour le support de SUNoS. --- Code/MultiScale/otbMorphologicalPyramidAnalyseFilter.txx | 3 ++- .../SVMImageEstimatorClassificationMultiExample.cxx | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Code/MultiScale/otbMorphologicalPyramidAnalyseFilter.txx b/Code/MultiScale/otbMorphologicalPyramidAnalyseFilter.txx index 5e48c9eb80..ad0a9159af 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 56ebf31dcf..2ee80f88d8 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 // -- GitLab