From 3cc832114dbe1c82b85fd0ea5770befdda6e12d2 Mon Sep 17 00:00:00 2001 From: Thomas Feuvrier <thomas.feuvrier@c-s.fr> Date: Tue, 30 Jan 2007 16:31:11 +0000 Subject: [PATCH] Suite a compilation sur SunOS : Remplacement fonction ceilf (non ANSI) par ceil. --- Code/MultiScale/otbMorphologicalPyramidAnalyseFilter.txx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Code/MultiScale/otbMorphologicalPyramidAnalyseFilter.txx b/Code/MultiScale/otbMorphologicalPyramidAnalyseFilter.txx index c2aebe4828..5e48c9eb80 100644 --- a/Code/MultiScale/otbMorphologicalPyramidAnalyseFilter.txx +++ b/Code/MultiScale/otbMorphologicalPyramidAnalyseFilter.txx @@ -18,6 +18,8 @@ PURPOSE. See the above copyright notices for more information. #ifndef _otbMorphologicalPyramidAnalyseFilter_txx #define _otbMorphologicalPyramidAnalyseFilter_txx +#include <math.h> + #include "otbMorphologicalPyramidAnalyseFilter.h" #include "itkSubtractImageFilter.h" @@ -147,7 +149,7 @@ namespace otb typename InputImageType::Pointer upsampled; // Structuring element size computation - const int structElementDimension=static_cast<int>(ceilf(this->GetSubSampleScale()/2.)); + const int structElementDimension=static_cast<int>(ceil(static_cast<double>(this->GetSubSampleScale()/2.))); // Structuring element creation KernelType structuringElement; -- GitLab