From a0487905b9f4552d4881866dd42eb6dc24bad1de Mon Sep 17 00:00:00 2001 From: Cyrille Valladeau <cyrille.valladeau@c-s.fr> Date: Mon, 28 Sep 2009 14:53:22 +0200 Subject: [PATCH] ERR : pow(doublie, ui) -> pow(double, double) --- Code/Radiometry/otbRadarFunctors.txx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Radiometry/otbRadarFunctors.txx b/Code/Radiometry/otbRadarFunctors.txx index c32331aa6e..7867e50f65 100644 --- a/Code/Radiometry/otbRadarFunctors.txx +++ b/Code/Radiometry/otbRadarFunctors.txx @@ -82,7 +82,7 @@ TerraSarCalibrationImageFunctor<TInput, TOutput> { // m_ImageSize[1]-(lineId+1) because the first acquisition line is the last image one. // line+1 because image starts to 0. - double interval = static_cast<double>(m_ImageSize[1]) / static_cast<double>(m_NoisePolynomialCoefficientsList.size()); + //double interval = static_cast<double>(m_ImageSize[1]) / static_cast<double>(m_NoisePolynomialCoefficientsList.size()); // compute utc time of the line double currTimeUTC = m_TimeUTC[0] + static_cast<double>(m_ImageSize[1]-(lineId-1))*m_InvPRF; unsigned int id = 0; @@ -221,7 +221,7 @@ TerraSarCalibrationComplexImageFunctor<TInput, TOutput> double NEBN = 0.; for(unsigned int i=0; i<curCoeff.size(); i++) { - NEBN += curCoeff[i]*vcl_pow( diffCurRange, i); + NEBN += curCoeff[i]*vcl_pow( diffCurRange, static_cast<double>(i)); } double sigma = ( outRadBr - this->GetCalFactor()*NEBN ) * this->GetSinLocalIncidentAngle(); -- GitLab