From 8e68ef5d37b7126ede046060b1d437aad59dc5ba Mon Sep 17 00:00:00 2001 From: OTB Bot <otbbot@orfeo-toolbox.org> Date: Mon, 7 Mar 2011 20:00:18 +0100 Subject: [PATCH] STYLE --- Code/Fuzzy/otbFuzzyVariable.h | 2 +- Code/IO/otbGDALImageIO.cxx | 2 +- Testing/Code/Fuzzy/otbFuzzyVariableDSApplied.cxx | 6 +++--- Testing/Code/Fuzzy/otbMassOfBeliefDSApplied.cxx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Code/Fuzzy/otbFuzzyVariable.h b/Code/Fuzzy/otbFuzzyVariable.h index 56a9984502..e1d46b5e8e 100644 --- a/Code/Fuzzy/otbFuzzyVariable.h +++ b/Code/Fuzzy/otbFuzzyVariable.h @@ -36,7 +36,7 @@ namespace otb * 4 values have to be provided. * In addition, 2 more values can be provided to define the min and * the max. By default, they ar 0 and 1 respectively. - * + * */ template <class TLabel = unsigned short, class TPrecision=double> class ITK_EXPORT FuzzyVariable : public itk::DataObject diff --git a/Code/IO/otbGDALImageIO.cxx b/Code/IO/otbGDALImageIO.cxx index 5440596469..9722495b09 100644 --- a/Code/IO/otbGDALImageIO.cxx +++ b/Code/IO/otbGDALImageIO.cxx @@ -431,7 +431,7 @@ void GDALImageIO::Read(void* buffer) // In some cases, we need to change some parameters for RasterIO if(!GDALDataTypeIsComplex(m_PxType) && m_IsComplex && m_IsVectorImage && (m_NbBands > 1)) { - pixelOffset = m_BytePerPixel * 2 ; + pixelOffset = m_BytePerPixel * 2; lineOffset = pixelOffset * lNbColumns; bandOffset = m_BytePerPixel; } diff --git a/Testing/Code/Fuzzy/otbFuzzyVariableDSApplied.cxx b/Testing/Code/Fuzzy/otbFuzzyVariableDSApplied.cxx index 94266656df..b03e9e0329 100644 --- a/Testing/Code/Fuzzy/otbFuzzyVariableDSApplied.cxx +++ b/Testing/Code/Fuzzy/otbFuzzyVariableDSApplied.cxx @@ -31,7 +31,7 @@ int otbFuzzyVariableDSApplied(int argc, char* argv[]) fv->SetMembership("H1", 0, 0, 0.1, 0.5, 0, 0.8); fv->SetMembership("!H1", 0.5, 0.8, 1.0, 1.0, 0, 0.8); - fv->SetMembership("Theta",0.1, 0.5, 0.5, 0.8, 0.2, 1); + fv->SetMembership("Theta", 0.1, 0.5, 0.5, 0.8, 0.2, 1); std::string maxVar; PrecisionType pos; @@ -57,9 +57,9 @@ int otbFuzzyVariableDSApplied(int argc, char* argv[]) << memH1_ << ", " << memTheta - <<"] - MaxVar(" + <<"] - MaxVar(" << pos - << ") : " + << ") : " << maxVar << std::endl; } diff --git a/Testing/Code/Fuzzy/otbMassOfBeliefDSApplied.cxx b/Testing/Code/Fuzzy/otbMassOfBeliefDSApplied.cxx index 80d3e876ff..01e613b4ec 100644 --- a/Testing/Code/Fuzzy/otbMassOfBeliefDSApplied.cxx +++ b/Testing/Code/Fuzzy/otbMassOfBeliefDSApplied.cxx @@ -27,7 +27,7 @@ int otbMassOfBeliefDSApplied(int argc, char* argv[]) { typedef float PrecisionType; - typedef otb::FuzzyVariable<std::string, + typedef otb::FuzzyVariable<std::string, PrecisionType> FuzzyVarType; typedef otb::MassOfBelief<std::string> MassOfBeliefFunctionType; -- GitLab