Commit e1df9d60 authored by Emmanuel Christophe's avatar Emmanuel Christophe

STYLE: remove spaces before ;

parent a700bdf4
......@@ -9,7 +9,7 @@
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
Copyright (c) Institut Telecom ; Telecom bretagne. All rights reserved.
Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved.
See ITCopyright.txt for details.
......
......@@ -9,7 +9,7 @@
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
Copyright (c) Institut Telecom ; Telecom bretagne. All rights reserved.
Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved.
See ITCopyright.txt for details.
......
......@@ -50,7 +50,7 @@ class ITK_EXPORT EuclideanDistanceWithMissingValue :
typedef EuclideanDistanceWithMissingValue Self;
typedef otb::Statistics::EuclideanDistanceWithMissingValuePow2< TVector >
Superclass;
typedef itk::SmartPointer< Self > Pointer ;
typedef itk::SmartPointer< Self > Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
typedef typename Superclass::MeasurementVectorSizeType
......@@ -60,10 +60,10 @@ class ITK_EXPORT EuclideanDistanceWithMissingValue :
itkTypeMacro(EuclideanDistanceWithMissingValue, EuclideanDistance);
/** Method for creation through the object factory. */
itkNewMacro(Self) ;
itkNewMacro(Self);
/** Type of the component of a vector */
typedef typename TVector::ValueType ValueType ;
typedef typename TVector::ValueType ValueType;
/** Gets the distance between the origin and x */
double Evaluate(const TVector &x) const {
......@@ -86,7 +86,7 @@ class ITK_EXPORT EuclideanDistanceWithMissingValue :
protected:
EuclideanDistanceWithMissingValue() {}
virtual ~EuclideanDistanceWithMissingValue() {}
} ; // end of class
}; // end of class
} // end namespace statistics
......
......@@ -51,7 +51,7 @@ class ITK_EXPORT EuclideanDistanceWithMissingValuePow2 :
/** Standard "Self" typedef. */
typedef EuclideanDistanceWithMissingValuePow2 Self;
typedef itk::Statistics::EuclideanDistance< TVector > Superclass;
typedef itk::SmartPointer< Self > Pointer ;
typedef itk::SmartPointer< Self > Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
typedef typename Superclass::MeasurementVectorSizeType MeasurementVectorSizeType;
......@@ -59,20 +59,20 @@ class ITK_EXPORT EuclideanDistanceWithMissingValuePow2 :
itkTypeMacro(EuclideanDistanceWithMissingValuePow2, EuclideanDistance);
/** Method for creation through the object factory. */
itkNewMacro(Self) ;
itkNewMacro(Self);
/** Type of the component of a vector */
typedef typename TVector::ValueType ValueType ;
typedef typename TVector::ValueType ValueType;
/** Gets the distance between the origin and x */
double Evaluate(const TVector &x) const ;
double Evaluate(const TVector &x) const;
/** Gets the distance between x1 and x2 */
double Evaluate(const TVector &x1, const TVector &x2) const ;
double Evaluate(const TVector &x1, const TVector &x2) const;
/** Gets the cooridnate distance between a and b. NOTE: a and b
* should be type of component */
double Evaluate(const ValueType &a, const ValueType &b) const ;
double Evaluate(const ValueType &a, const ValueType &b) const;
/** Returns true if the distance between x and the origin is less
* than radius */
......@@ -80,7 +80,7 @@ class ITK_EXPORT EuclideanDistanceWithMissingValuePow2 :
return Superclass::IsWithinRange( x, radius ); }
/** Check if a value is NaN or not */
static bool IsMissingValue ( const ValueType & v) ;
static bool IsMissingValue ( const ValueType & v);
/** Set a value to Nan */
static void SetToMissingValue ( ValueType & v );
......@@ -88,7 +88,7 @@ class ITK_EXPORT EuclideanDistanceWithMissingValuePow2 :
protected:
EuclideanDistanceWithMissingValuePow2() {}
virtual ~EuclideanDistanceWithMissingValuePow2() {}
} ; // end of class
}; // end of class
} // end namespace statistics
......
......@@ -38,18 +38,18 @@ EuclideanDistanceWithMissingValuePow2< TVector >
itkExceptionMacro( << "Vector lengths must be equal." );
}
double temp, distance = itk::NumericTraits< double >::Zero ;
double temp, distance = itk::NumericTraits< double >::Zero;
for(unsigned int i = 0 ; i < x1.Size(); i++ )
for(unsigned int i = 0; i < x1.Size(); i++ )
{
if ( !IsMissingValue( x1[i] ) && !IsMissingValue( x2[i] ) )
{
temp = x1[i] - x2[i] ;
distance += temp * temp ;
temp = x1[i] - x2[i];
distance += temp * temp;
}
}
return distance ;
return distance;
}
template< class TVector >
......@@ -66,18 +66,18 @@ EuclideanDistanceWithMissingValuePow2< TVector >
itk::MeasurementVectorTraits::Assert( this->m_Origin, measurementVectorSize,
"EuclideanDistance::Evaluate Origin and input vector have different lengths");
double temp, distance = itk::NumericTraits< double >::Zero ;
double temp, distance = itk::NumericTraits< double >::Zero;
for(unsigned int i = 0 ; i < measurementVectorSize ; i++ )
for(unsigned int i = 0; i < measurementVectorSize; i++ )
{
if ( !IsMissingValue( this->GetOrigin()[i] ) && !IsMissingValue( x[i] ) )
{
temp = this->GetOrigin()[i] - x[i] ;
distance += temp * temp ;
temp = this->GetOrigin()[i] - x[i];
distance += temp * temp;
}
}
return distance ;
return distance;
}
template< class TVector >
......@@ -89,8 +89,8 @@ EuclideanDistanceWithMissingValuePow2< TVector >
if ( IsMissingValue( a ) || IsMissingValue( b ) )
return 0.0;
double temp = a - b ;
return temp * temp ;
double temp = a - b;
return temp * temp;
}
template< class TVector >
......
......@@ -54,7 +54,7 @@ class ITK_EXPORT FlexibleDistanceWithMissingValue :
/** Standard "Self" typedef. */
typedef FlexibleDistanceWithMissingValue Self;
typedef otb::Statistics::EuclideanDistanceWithMissingValuePow2< TVector > Superclass;
typedef itk::SmartPointer< Self > Pointer ;
typedef itk::SmartPointer< Self > Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
typedef typename Superclass::MeasurementVectorSizeType MeasurementVectorSizeType;
......@@ -63,20 +63,20 @@ class ITK_EXPORT FlexibleDistanceWithMissingValue :
itkTypeMacro(FlexibleDistanceWithMissingValue, EuclideanDistanceWithMissingValuePow2);
/** Method for creation through the object factory. */
itkNewMacro(Self) ;
itkNewMacro(Self);
/** Type of the component of a vector */
typedef typename TVector::ValueType ValueType ;
typedef typename TVector::ValueType ValueType;
/** Gets the distance between the origin and x */
double Evaluate(const TVector &x) const ;
double Evaluate(const TVector &x) const;
/** Gets the distance between x1 and x2 */
double Evaluate(const TVector &x1, const TVector &x2) const ;
double Evaluate(const TVector &x1, const TVector &x2) const;
/** Gets the cooridnate distance between a and b. NOTE: a and b
* should be type of component */
double Evaluate(const ValueType &a, const ValueType &b) const ;
double Evaluate(const ValueType &a, const ValueType &b) const;
/** Returns true if the distance between x and the origin is less
* than radius */
......
......@@ -43,18 +43,18 @@ FlexibleDistanceWithMissingValue< TVector >
itkExceptionMacro( << "Vector lengths must be equal." );
}
double temp, distance = itk::NumericTraits< double >::Zero ;
double temp, distance = itk::NumericTraits< double >::Zero;
for(unsigned int i = 0 ; i < x1.Size(); i++ )
for(unsigned int i = 0; i < x1.Size(); i++ )
{
if ( !IsMissingValue( x1[i] ) && !IsMissingValue( x2[i] ) )
{
temp = vcl_pow( vcl_abs( vcl_pow(x1[i],this->Alpha) - vcl_pow(x2[i],this->Alpha) ), this->Beta );
distance += temp ;
distance += temp;
}
}
return distance ;
return distance;
}
template< class TVector >
......@@ -76,18 +76,18 @@ FlexibleDistanceWithMissingValue< TVector >
itk::MeasurementVectorTraits::Assert( this->m_Origin, measurementVectorSize,
"EuclideanDistance::Evaluate Origin and input vector have different lengths");
double temp, distance = itk::NumericTraits< double >::Zero ;
double temp, distance = itk::NumericTraits< double >::Zero;
for(unsigned int i = 0 ; i < measurementVectorSize ; i++ )
for(unsigned int i = 0; i < measurementVectorSize; i++ )
{
if ( !IsMissingValue( this->GetOrigin()[i] ) && !IsMissingValue( x[i] ) )
{
temp = vcl_pow( vcl_abs( vcl_pow(this->GetOrigin()[i],this->Alpha) - vcl_pow(x[i],this->Alpha) ), this->Beta) ;
distance += temp ;
temp = vcl_pow( vcl_abs( vcl_pow(this->GetOrigin()[i],this->Alpha) - vcl_pow(x[i],this->Alpha) ), this->Beta);
distance += temp;
}
}
return distance ;
return distance;
}
template< class TVector >
......@@ -102,8 +102,8 @@ FlexibleDistanceWithMissingValue< TVector >
if ( IsMissingValue( a ) || IsMissingValue( b ) )
return 0.0;
double temp = vcl_pow(vcl_abs(vcl_pow(a,this->Alpha) - vcl_pow(b,this->Alpha)), this->Beta) ;
return temp ;
double temp = vcl_pow(vcl_abs(vcl_pow(a,this->Alpha) - vcl_pow(b,this->Alpha)), this->Beta);
return temp;
}
template< class TVector >
......
......@@ -138,7 +138,7 @@ CumulantsForEdgeworth< TInput >
fMu3 = 0.0;
fMu4 = 4.0;
fDataAvailable = false;
return ;
return;
}
double sigma = sqrt( fMu2 );
......
......@@ -76,7 +76,7 @@ private:
AttributesMapOpeningLabelMapFilter(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented
} ; // end of class
}; // end of class
} // end namespace otb
......
......@@ -82,7 +82,7 @@ namespace otb
/** Destructor */
~ConfigurationFile();
/** PrintSelf method */
void PrintSelf(std::ostream& os, itk::Indent indent) const ;
void PrintSelf(std::ostream& os, itk::Indent indent) const;
private:
/** The instance singleton */
static Pointer Instance;
......
......@@ -70,7 +70,7 @@ public:
virtual void ConnectToDB(){};
virtual void PerformTransaction(const TransactorType& theTransaction) const {} ;
virtual void PerformTransaction(const TransactorType& theTransaction) const {};
protected:
......
......@@ -111,7 +111,7 @@ protected:
/** GISTableToLabelMapFilter needs the entire input be
* available. Thus, it needs to provide an implementation of
* GenerateInputRequestedRegion(). */
void GenerateInputRequestedRegion() ;
void GenerateInputRequestedRegion();
/** Single-threaded version of GenerateData. This filter delegates
* to the OGR driver. */
......@@ -129,7 +129,7 @@ private:
SizeType m_Size;
IndexType m_StartIndex;
} ; // end of class
}; // end of class
} // end namespace otb
......
......@@ -91,7 +91,7 @@ protected:
/** GISTableToVectorDataFilter needs the entire input be
* available. Thus, it needs to provide an implementation of
* GenerateInputRequestedRegion(). */
void GenerateInputRequestedRegion() ;
void GenerateInputRequestedRegion();
/** Single-threaded version of GenerateData. This filter delegates
* to the OGR driver. */
......@@ -103,7 +103,7 @@ private:
void operator=(const Self&); //purposely not implemented
typename VectorDataFileReaderType::Pointer m_Reader;
} ; // end of class
}; // end of class
} // end namespace otb
......
......@@ -115,7 +115,7 @@ private:
/** The functor */
FunctorType m_Functor;
} ; // end of class
}; // end of class
} // end namespace otb
......
......@@ -126,7 +126,7 @@ protected:
/** LabelMapToAttributeImageFilter needs the entire input be
* available. Thus, it needs to provide an implementation of
* GenerateInputRequestedRegion(). */
void GenerateInputRequestedRegion() ;
void GenerateInputRequestedRegion();
/** LabelMapToAttributeImageFilter will produce the entire output. */
//void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
......@@ -148,7 +148,7 @@ private:
InputGISConnectionPointerType m_InputGISConnection;
/** GIS table name */
std::string m_GISTableName;
} ; // end of class
}; // end of class
} // end namespace otb
......
......@@ -98,7 +98,7 @@ protected:
/** LabelMapToAttributeImageFilter needs the entire input be
* available. Thus, it needs to provide an implementation of
* GenerateInputRequestedRegion(). */
void GenerateInputRequestedRegion() ;
void GenerateInputRequestedRegion();
/** LabelMapToAttributeImageFilter will produce the entire output. */
//void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
......@@ -112,7 +112,7 @@ private:
void operator=(const Self&); //purposely not implemented
} ; // end of class
}; // end of class
} // end namespace itk
......
......@@ -43,7 +43,7 @@ void PostGISConnectionImplementation::ConnectToDB()
{
std::stringstream connstring;
connstring << "host=" << m_Host << " dbname=" << m_DBName << " user=" << m_User ;
connstring << "host=" << m_Host << " dbname=" << m_DBName << " user=" << m_User;
if(m_Password!="")
connstring << " password=" << m_Password;
......
......@@ -107,10 +107,10 @@ public:
//ConnectionPointerType GetConstConnection() const;
/** Add an alpha numeric column to the table */
// const std::string AddVarCharColumn(unsigned int size) ;
// const std::string AddVarCharColumn(unsigned int size);
/** Insert Alpha Numeric Data in the Car char column */
// void AddStrDataToVarCharColumn(std::string data) ;
// void AddStrDataToVarCharColumn(std::string data);
protected:
/** Constructor */
......
......@@ -82,7 +82,7 @@ PostGISTable<TConnectionImplementation, TPrecision, SpatialDimension>
std::stringstream sqlCmd;
this->InsertBegin( sqlCmd );
sqlCmd << "POINT( ";
for (uint i=0 ; i < SpatialDimension ; i++)
for (uint i=0; i < SpatialDimension; i++)
{
sqlCmd << pt[i] << " ";
}
......@@ -108,7 +108,7 @@ template <class TConnectionImplementation, class TPrecision, unsigned int Spatia
VertexIterator itVertex = l->GetVertexList()->Begin();
while (itVertex != l->GetVertexList()->End())
{
for (uint i=0 ; i < SpatialDimension ; i++)
for (uint i=0; i < SpatialDimension; i++)
{
sqlCmd << itVertex.Value()[i] << " ";
++itVertex;
......@@ -149,7 +149,7 @@ PostGISTable<TConnectionImplementation, TPrecision, SpatialDimension>
{
//polygon->line_to(itVertex.Value()[0],m_SensorModelFlip*itVertex.Value()[1]);
//std::cout << "vertex: " << itVertex.Value()<< std::endl;
for (uint i=0 ; i < SpatialDimension ; ++i)
for (uint i=0; i < SpatialDimension; ++i)
{
sqlCmd << itVertex.Value()[i] << " ";
//++itVertex;
......@@ -182,7 +182,7 @@ PostGISTable<TConnectionImplementation, TPrecision, SpatialDimension>
while (itVertex != correctCurrentPolygonIntRing->GetVertexList()->End())
{
//polygon->line_to(itVertex.Value()[0],m_SensorModelFlip*itVertex.Value()[1]);
for (uint i=0 ; i < SpatialDimension ; i++)
for (uint i=0; i < SpatialDimension; i++)
{
sqlCmd << itVertex.Value()[i] << " ";
++itVertex;
......
......@@ -305,7 +305,7 @@ private:
/** The near infra-red channel index */
unsigned int m_NIRChannelIndex;
} ; // end of class
}; // end of class
} // end namespace itk
......
......@@ -199,7 +199,7 @@ protected:
private:
StatisticsAttributesLabelMapFilter(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented
} ; // end of class
}; // end of class
} // end namespace otb
......
......@@ -97,7 +97,7 @@ public:
typedef typename Superclass::IndexValueType IndexValueType;
/** Default constructor. Needed since we provide a cast constructor. */
SubsampledImageRegionConstIterator() ;
SubsampledImageRegionConstIterator();
/** Constructor establishes an iterator to walk a particular image and a
* particular region of that image. */
......@@ -164,7 +164,7 @@ public:
/** Set the index.
* It is moved to the next available (usable) index.
* \sa GetIndex */
void SetIndex(const IndexType &ind) ;
void SetIndex(const IndexType &ind);
/** Get the Index. */
IndexType GetIndex() const
......
......@@ -112,7 +112,7 @@ protected:
/** VectorDataToGISTAbleFilter needs the entire input be
* available. Thus, it needs to provide an implementation of
* GenerateInputRequestedRegion(). */
void GenerateInputRequestedRegion() ;
void GenerateInputRequestedRegion();
/** Single-threaded version of GenerateData. */
......@@ -131,7 +131,7 @@ private:
InputGISConnectionPointerType m_InputGISConnection;
/** GIS table name */
std::string m_GISTableName;
} ; // end of class
}; // end of class
} // end namespace otb
......
......@@ -229,7 +229,7 @@ void
//Use our own value for the background
output->SetBackgroundValue( itk::NumericTraits<OutputLabelMapPixelType>::max() );
//Set the value of the first label
m_lab = itk::NumericTraits<LabelType>::Zero ;
m_lab = itk::NumericTraits<LabelType>::Zero;
// otbGenericMsgDebugMacro(<<"input " << idx);
//The projection information
......@@ -312,12 +312,12 @@ VectorDataToLabelMapFilter< TVectorData, TLabelMap >
std::cout << "spacing " << this->GetOutput()->GetSpacing()<< std::endl;
// For each position in the bounding region of the polygon
for (double i = polygonExtRingBoundReg.GetOrigin(0);i < polygonExtRingBoundReg.GetOrigin(0) + polygonExtRingBoundReg.GetSize(0) ;i+=this->GetOutput()->GetSpacing()[0])
for (double i = polygonExtRingBoundReg.GetOrigin(0);i < polygonExtRingBoundReg.GetOrigin(0) + polygonExtRingBoundReg.GetSize(0);i+=this->GetOutput()->GetSpacing()[0])
{
vertex[0] = static_cast<VertexValueType>(i) ;
for (double j = polygonExtRingBoundReg.GetOrigin(1);j<polygonExtRingBoundReg.GetOrigin(1) + polygonExtRingBoundReg.GetSize(1) ;j+=this->GetOutput()->GetSpacing()[1])
vertex[0] = static_cast<VertexValueType>(i);
for (double j = polygonExtRingBoundReg.GetOrigin(1);j<polygonExtRingBoundReg.GetOrigin(1) + polygonExtRingBoundReg.GetSize(1);j+=this->GetOutput()->GetSpacing()[1])
{
vertex[1] = static_cast<VertexValueType>(j) ;
vertex[1] = static_cast<VertexValueType>(j);
if (correctPolygonExtRing->IsInside(vertex) || correctPolygonExtRing->IsOnEdge (vertex))
{
......
......@@ -117,7 +117,7 @@ LineSpatialObjectListToRightAnglePointSetFilter<TImage,TLinesList ,TPointSet>
/** Compute the distance between the two segments and the right angle formed by this segments*/
double dist1 = this->ComputeDistanceFromPointToSegment(RightAngleCoordinate,*itLinesListTest);
double dist2 = this->ComputeDistanceFromPointToSegment(RightAngleCoordinate,*itLinesListCur) ;
double dist2 = this->ComputeDistanceFromPointToSegment(RightAngleCoordinate,*itLinesListCur);
/** Use Pythagore to compute the distance between the two segments*/
double SegmentDistance = vcl_sqrt(dist1*dist1 + dist2*dist2);
......@@ -157,8 +157,8 @@ LineSpatialObjectListToRightAnglePointSetFilter<TImage,TLinesList ,TPointSet>
double X2 = (*itPointsDst).GetPosition()[0]; //xq2
double Y2 = (*itPointsDst).GetPosition()[1]; //yq2
double dist1 = vcl_sqrt((X1-rAngle[0])*(X1-rAngle[0]) + (Y1-rAngle[1])*(Y1-rAngle[1])) ;
double dist2 = vcl_sqrt((X2-rAngle[0])*(X2-rAngle[0]) + (Y2-rAngle[1])*(Y2-rAngle[1])) ;
double dist1 = vcl_sqrt((X1-rAngle[0])*(X1-rAngle[0]) + (Y1-rAngle[1])*(Y1-rAngle[1]));
double dist2 = vcl_sqrt((X2-rAngle[0])*(X2-rAngle[0]) + (Y2-rAngle[1])*(Y2-rAngle[1]));
return std::min(dist1,dist2);
}
......@@ -197,12 +197,12 @@ LineSpatialObjectListToRightAnglePointSetFilter<TImage,TLinesList ,TPointSet>
//Compute the orientation
double dx = Xp1 - Xp2;
double dy = Yp1 - Yp2 ;
double dy = Yp1 - Yp2;
double orientation = vcl_atan2(dy,dx);
if(orientation < 0)
orientation += CONST_PI;
return orientation ;
return orientation;
}
......
......@@ -92,7 +92,7 @@ VectorDataIOFactory<TData>
if ( firstTime )
{
itk::ObjectFactoryBase::RegisterFactory( OGRVectorDataIOFactory<TData>::New() );
itk::ObjectFactoryBase::RegisterFactory( KMLVectorDataIOFactory<TData>::New() );
// itk::ObjectFactoryBase::RegisterFactory( KMLVectorDataIOFactory<TData>::New() );
firstTime = false;
}
}
......
......@@ -9,7 +9,7 @@
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
Copyright (c) Institut Telecom ; Telecom bretagne. All rights reserved.
Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved.
See ITCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
......
......@@ -9,7 +9,7 @@
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
Copyright (c) Institut Telecom ; Telecom bretagne. All rights reserved.
Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved.
See ITCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
......
......@@ -9,7 +9,7 @@
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
Copyright (c) Institut Telecom ; Telecom bretagne. All rights reserved.
Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved.
See ITCopyright.txt for details.
......
......@@ -9,7 +9,7 @@
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
Copyright (c) Institut Telecom ; Telecom bretagne. All rights reserved.
Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved.
See ITCopyright.txt for details.
......
......@@ -9,7 +9,7 @@
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
Copyright (c) Institut Telecom ; Telecom bretagne. All rights reserved.
Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved.
See ITCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
......
......@@ -9,7 +9,7 @@
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
Copyright (c) Institut Telecom ; Telecom bretagne. All rights reserved.
Copyright (c) Institut Telecom; Telecom bretagne. All rights reserved.
See ITCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
......
......@@ -300,8 +300,8 @@ WaveletFilterBank< TInputImage, TOutputImage, TWaveletOperator, Wavelet::FORWARD
}
else
{
destIndex[i] = srcIndex[i] ;
destSize[i] = srcSize[i] ;
destIndex[i] = srcIndex[i];
destSize[i] = srcSize[i];
}
}
......@@ -363,8 +363,8 @@ WaveletFilterBank< TInputImage, TOutputImage, TWaveletOperator, Wavelet::FORWARD
}
else
{
destIndex[i] = srcIndex[i] ;
destSize[i] = srcSize[i] ;
destIndex[i] = srcIndex[i];
destSize[i] = srcSize[i];
}
}
......@@ -898,8 +898,8 @@ WaveletFilterBank< TInputImage, TOutputImage, TWaveletOperator, Wavelet::INVERSE
}
else
{
destIndex[i] = srcIndex[i] ;
destSize[i] = srcSize[i] ;
destIndex[i] = srcIndex[i];
destSize[i] = srcSize[i];
}
}
......@@ -934,8 +934,8 @@ WaveletFilterBank< TInputImage, TOutputImage, TWaveletOperator, Wavelet::INVERSE
}
else
{
destIndex[i] = srcIndex[i] ;
destSize[i] = srcSize[i] ;
destIndex[i] = srcIndex[i];
destSize[i] = srcSize[i];
}
}
......@@ -979,7 +979,7 @@ WaveletFilterBank< TInputImage, TOutputImage, TWaveletOperator, Wavelet::INVERSE
typedef typename FaceListType::iterator FaceListIterator;
// Faces iterations
typename NeighborhoodIteratorType::RadiusType radiusMax ;
typename NeighborhoodIteratorType::RadiusType radiusMax;
for ( unsigned int idx = 0; idx < OutputImageDimension; idx++ )
{
radiusMax[idx] = lowPassOperator.GetRadius(idx);
......
......@@ -87,13 +87,13 @@ public:
* GetLowPassCoefficientVector
* By default (without template specification) it does nothing usable
*/
void GetLowPassCoefficientVector ( CoefficientVector & coeff ) const ;
void GetLowPassCoefficientVector ( CoefficientVector & coeff ) const;
/**
* GetHighPassCoefficientVector
* By default (without template specification) it does nothing usable
*/
void GetHighPassCoefficientVector ( CoefficientVector & coeff ) const ;
void GetHighPassCoefficientVector ( CoefficientVector & coeff ) const;
protected:
WaveletGenerator() {}
......
......@@ -132,7 +132,7 @@ protected:
/**
* Prints some debugging information
*/
virtual void PrintSelf(std::ostream &os, itk::Indent i) const ;
virtual void PrintSelf(std::ostream &os, itk::Indent i) const;
typedef WaveletGenerator< TMotherWaveletOperator > WaveletGeneratorType;
typedef typename WaveletGeneratorType::Pointer WaveletGeneratorPointerType;
......@@ -148,7 +148,7 @@ protected:
* Perform the "a-trou" algorithm for shift-invariant transformation.
* It transforms the filter \f$ H(z) \f$ into \f$ H(z^2) \f$.
*/
void UpSamplingCoefficients ( CoefficientVector & coeff ) ;
void UpSamplingCoefficients ( CoefficientVector & coeff );
/**
* Performs filter reversion, ie. \f$ H(z^{-1}) \f$.
......
......@@ -179,7 +179,7 @@ AeronetFileReader
mean = 0.;
stddev = 0.;
if ( vec.size() <= 0 ) return;
for(unsigned int i=0 ; i <vec.size() ; i++)
for(unsigned int i=0; i <vec.size(); i++)