From 7cec950d7bf565cc9d4b16d6200ac39895655789 Mon Sep 17 00:00:00 2001 From: OTB Bot <otbbot@orfeo-toolbox.org> Date: Wed, 4 Jun 2014 19:55:22 +0200 Subject: [PATCH] STYLE --- Code/Simulation/otbReduceSpectralResponse.h | 2 +- Code/Simulation/otbReduceSpectralResponse.txx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Code/Simulation/otbReduceSpectralResponse.h b/Code/Simulation/otbReduceSpectralResponse.h index 6fdb68fa08..5c3e605b6d 100644 --- a/Code/Simulation/otbReduceSpectralResponse.h +++ b/Code/Simulation/otbReduceSpectralResponse.h @@ -33,7 +33,7 @@ namespace otb * * It takes the spectral response of an object and the relative spectral * response of a satellite (one response per band) to compute the satellite spectral bands. - * + * * There are 2 operating modes: * - luminance mode (default): integrates the spectral response over each band * - reflectance mode (needs to call SetReflectanceMode(true)): takes into account the solar irradiance in the integration diff --git a/Code/Simulation/otbReduceSpectralResponse.txx b/Code/Simulation/otbReduceSpectralResponse.txx index 09a2377c53..a1620c775b 100644 --- a/Code/Simulation/otbReduceSpectralResponse.txx +++ b/Code/Simulation/otbReduceSpectralResponse.txx @@ -84,9 +84,9 @@ ReduceSpectralResponse<TSpectralResponse , TRSR> while (pit != pairs.end()) { totalArea += ((*pit).second)*(*solarIrradiance)((*pit).first); - ++pit; + ++pit; } - } + } while (it != pairs.end() - 1) { @@ -295,7 +295,7 @@ ReduceSpectralResponse<TSpectralResponse , TRSR> for(typename VectorPairType::const_iterator it = m_ReduceResponse->GetResponse().begin(); it != m_ReduceResponse->GetResponse().end(); ++it) { os <<indent << "Band Nb : "<< it - m_ReduceResponse->GetResponse().begin() << ": [" << (*it).first << ","<< (*it).second << "]" << std::endl; - } + } } } // end namespace otb -- GitLab