From dc7edacedeb54f3a7badd366227d9767bf543af0 Mon Sep 17 00:00:00 2001 From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org> Date: Wed, 20 Jan 2010 15:38:14 +0800 Subject: [PATCH] DOC: fix bug #0000143 (other locations) + STYLE --- .../otbVectorRescaleIntensityImageFilter.h | 45 +++++++++---------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/Code/BasicFilters/otbVectorRescaleIntensityImageFilter.h b/Code/BasicFilters/otbVectorRescaleIntensityImageFilter.h index 694b7fa51d..3b77e14b24 100755 --- a/Code/BasicFilters/otbVectorRescaleIntensityImageFilter.h +++ b/Code/BasicFilters/otbVectorRescaleIntensityImageFilter.h @@ -86,19 +86,19 @@ public: bool operator!=( const VectorAffineTransform & other ) const { - if (m_OutputMaximum.Size()==other.GetOutputMaximum().Size()) + if (m_OutputMaximum.Size() == other.GetOutputMinimum().Size()) { - for (unsigned int i = 0;i<m_OutputMaximum.Size();++i) + for (unsigned int i = 0; i < m_OutputMinimum.Size(); ++i) { - if ( m_OutputMaximum[i] != other.GetOutputMaximum()[i] ) + if ( m_OutputMinimum[i] != other.GetOutputMinimum()[i] ) { return true; } } } - if (m_OutputMaximum.Size()==other.GetOutputMaximum().Size()) + if (m_OutputMaximum.Size() == other.GetOutputMaximum().Size()) { - for (unsigned int i = 0;i<m_OutputMaximum.Size();++i) + for (unsigned int i = 0; i < m_OutputMaximum.Size(); ++i) { if ( m_OutputMaximum[i] != other.GetOutputMaximum()[i] ) { @@ -106,9 +106,9 @@ public: } } } - if (m_InputMinimum.Size()==other.GetInputMinimum().Size()) + if (m_InputMinimum.Size() == other.GetInputMinimum().Size()) { - for (unsigned int i = 0;i<m_InputMinimum.Size();++i) + for (unsigned int i = 0; i < m_InputMinimum.Size(); ++i) { if ( m_InputMinimum[i] != other.GetInputMinimum()[i] ) { @@ -116,9 +116,9 @@ public: } } } - if (m_InputMaximum.Size()==other.GetInputMaximum().Size()) + if (m_InputMaximum.Size() == other.GetInputMaximum().Size()) { - for (unsigned int i = 0;i<m_InputMaximum.Size();++i) + for (unsigned int i = 0; i < m_InputMaximum.Size(); ++i) { if ( m_InputMaximum[i] != other.GetInputMaximum()[i] ) { @@ -177,8 +177,8 @@ public: private: TOutput m_OutputMaximum; TOutput m_OutputMinimum; - TInput m_InputMinimum; - TInput m_InputMaximum; + TInput m_InputMinimum; + TInput m_InputMaximum; }; } // end namespace functor @@ -204,19 +204,18 @@ class ITK_EXPORT VectorRescaleIntensityImageFilter { public: /** Standard class typedefs. */ - typedef VectorRescaleIntensityImageFilter Self; + typedef VectorRescaleIntensityImageFilter Self; typedef itk::UnaryFunctorImageFilter<TInputImage,TOutputImage, - Functor::VectorAffineTransform< - typename TInputImage::PixelType, - typename TOutputImage::PixelType> > Superclass; - typedef itk::SmartPointer<Self> Pointer; - typedef itk::SmartPointer<const Self> ConstPointer; - - typedef typename TOutputImage::PixelType OutputPixelType; - typedef typename TInputImage::PixelType InputPixelType; - typedef typename InputPixelType::ValueType InputValueType; - typedef typename OutputPixelType::ValueType OutputValueType; - typedef typename itk::NumericTraits<InputValueType>::RealType InputRealType; + Functor::VectorAffineTransform< typename TInputImage::PixelType, + typename TOutputImage::PixelType> > Superclass; + typedef itk::SmartPointer<Self> Pointer; + typedef itk::SmartPointer<const Self> ConstPointer; + + typedef typename TOutputImage::PixelType OutputPixelType; + typedef typename TInputImage::PixelType InputPixelType; + typedef typename InputPixelType::ValueType InputValueType; + typedef typename OutputPixelType::ValueType OutputValueType; + typedef typename itk::NumericTraits<InputValueType>::RealType InputRealType; typedef typename itk::NumericTraits<OutputValueType>::RealType OutputRealType; /** Method for creation through the object factory. */ -- GitLab