Skip to content

Commit 4d9cbe1

Browse files
committed
STYLE: Fix KWStyle dashboard errors
1 parent c9667fd commit 4d9cbe1

18 files changed

+190
-218
lines changed

include/itkArrivalFunctionToPathFilter.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Copyright (c) Insight Software Consortium. All rights reserved.
1010
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
1111
12-
This software is distributed WITHOUT ANY WARRANTY; without even
12+
This software is distributed WITHOUT ANY WARRANTY; without even
1313
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
1414
PURPOSE. See the above copyright notices for more information.
1515
@@ -30,12 +30,12 @@ namespace itk
3030
/**
3131
* \class ArrivalFunctionToPathCommand
3232
* \brief A command to listen for Optimizer Iteration events.
33-
* \author Dan Mueller, Queensland University of Technology,
33+
* \author Dan Mueller, Queensland University of Technology,
3434
* dan.muel[at]gmail.com
3535
*
3636
*
3737
* \ingroup MinimalPathExtraction
38-
*
38+
*
3939
*/
4040

4141
template <class TFilter>
@@ -49,7 +49,7 @@ class ArrivalFunctionToPathCommand : public itk::Command
4949

5050
/** Method for creation through the object factory. */
5151
itkNewMacro( Self );
52-
52+
5353
/** Some useful typedefs. */
5454
typedef TFilter FilterType;
5555

@@ -80,15 +80,15 @@ class ArrivalFunctionToPathCommand : public itk::Command
8080
protected:
8181
ArrivalFunctionToPathCommand(){}
8282
~ArrivalFunctionToPathCommand(){}
83-
83+
8484
private:
8585
ArrivalFunctionToPathCommand( const Self& );
8686
void operator = ( const Self& );
8787

8888
typename FilterType::Pointer m_Filter;
8989
};
9090

91-
91+
9292
/** \class ArrivalFunctionToPathFilter
9393
* \brief Extracts a path from a Fast Marching arrival function.
9494
*
@@ -152,17 +152,17 @@ class ITK_EXPORT ArrivalFunctionToPathFilter :
152152

153153
/** Run-time type information (and related methods). */
154154
itkTypeMacro(ArrivalFunctionToPathFilter,ImageToPathFilter);
155-
155+
156156
/** Method for creation through the object factory. */
157157
itkNewMacro(Self);
158158

159159
/** Some image typedefs. */
160160
typedef TInputImage InputImageType;
161161
typedef typename InputImageType::Pointer InputImagePointer;
162162
typedef typename InputImageType::ConstPointer InputImageConstPointer;
163-
typedef typename InputImageType::RegionType InputImageRegionType;
163+
typedef typename InputImageType::RegionType InputImageRegionType;
164164
typedef typename InputImageType::PixelType InputImagePixelType;
165-
165+
166166
/** Some path typedefs. */
167167
typedef TOutputPath OutputPathType;
168168
typedef typename OutputPathType::Pointer OutputPathPointer;
@@ -229,7 +229,7 @@ class ITK_EXPORT ArrivalFunctionToPathFilter :
229229
/** Get the next end point from which to back propagate. */
230230
virtual const PointType & GetNextEndPoint( );
231231

232-
typename CostFunctionType::Pointer m_CostFunction;
232+
typename CostFunctionType::Pointer m_CostFunction;
233233
typename OptimizerType::Pointer m_Optimizer;
234234
typename OptimizerType::MeasureType m_TerminationValue;
235235
std::vector<PointType> m_PointList;

include/itkArrivalFunctionToPathFilter.hxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
Copyright (c) Insight Software Consortium. All rights reserved.
1010
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
1111
12-
This software is distributed WITHOUT ANY WARRANTY; without even
13-
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12+
This software is distributed WITHOUT ANY WARRANTY; without even
13+
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
1414
PURPOSE. See the above copyright notices for more information.
1515
1616
=========================================================================*/
@@ -176,7 +176,7 @@ ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
176176
// Set the output index
177177
// NOTE: m_CurrentOutput is used in Execute() and GetNextEndPoint()
178178
m_CurrentOutput = n;
179-
179+
180180
// Make the output
181181
OutputPathPointer output = static_cast<TOutputPath*>( this->MakeOutput(n).GetPointer() );
182182
this->ProcessObject::SetNthOutput( n, output.GetPointer() );
@@ -201,11 +201,11 @@ ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
201201

202202
// Initialize optimizer
203203
m_Optimizer->SetInitialPosition( end );
204-
204+
205205
// Use optimizer to back propagate from end point
206206
m_Optimizer->StartOptimization( );
207207
}
208-
208+
209209
// Clean up by removing observer
210210
m_Optimizer->RemoveObserver( observerTag );
211211
}
@@ -238,7 +238,7 @@ ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
238238
{
239239
return;
240240
}
241-
241+
242242
// Convert parameters to point
243243
bool valid = false;
244244
unsigned int numparams = optimizer->GetCurrentPosition().GetSize();
@@ -253,7 +253,7 @@ ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
253253
{
254254
return;
255255
}
256-
256+
257257
// Convert point to continuous index
258258
InputImagePointer input = const_cast<InputImageType*>( this->GetInput() );
259259
ContinuousIndexType cindex;
@@ -265,7 +265,7 @@ ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
265265
}
266266

267267
template<class TInputImage, class TOutputPath>
268-
void
268+
void
269269
ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
270270
::PrintSelf(std::ostream& os, Indent indent) const
271271
{

include/itkIterateNeighborhoodOptimizer.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
Copyright (c) Insight Software Consortium. All rights reserved.
1010
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
1111
12-
This software is distributed WITHOUT ANY WARRANTY; without even
13-
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12+
This software is distributed WITHOUT ANY WARRANTY; without even
13+
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
1414
PURPOSE. See the above copyright notices for more information.
1515
1616
=========================================================================*/
@@ -78,7 +78,7 @@ class IterateNeighborhoodOptimizer :
7878
/** Stop optimization.
7979
* \sa ResumeOptimization */
8080
void StopOptimization( void );
81-
81+
8282
/**
8383
* Get/set whether the nieghborhood is defined by face connectivity or
8484
* by face+edge+vertex connectivity. Default is FullyConnectedOn.
@@ -108,7 +108,7 @@ class IterateNeighborhoodOptimizer :
108108
private:
109109
IterateNeighborhoodOptimizer(const Self&); //purposely not implemented
110110
void operator=(const Self&); //purposely not implemented
111-
111+
112112
bool m_Stop;
113113
bool m_Maximize;
114114
bool m_FullyConnected;

include/itkPhysicalCentralDifferenceImageFunction.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
Copyright (c) Insight Software Consortium. All rights reserved.
1010
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
1111
12-
This software is distributed WITHOUT ANY WARRANTY; without even
13-
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12+
This software is distributed WITHOUT ANY WARRANTY; without even
13+
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
1414
PURPOSE. See the above copyright notices for more information.
1515
1616
=========================================================================*/
@@ -39,10 +39,10 @@ namespace itk
3939
* \ingroup MinimalPathExtraction
4040
*/
4141
template <
42-
class TInputImage,
42+
class TInputImage,
4343
class TCoordRep = float >
4444
class ITK_EXPORT PhysicalCentralDifferenceImageFunction :
45-
public ImageFunction< TInputImage,
45+
public ImageFunction< TInputImage,
4646
CovariantVector<double, TInputImage::ImageDimension>,
4747
TCoordRep >
4848
{
@@ -54,12 +54,12 @@ class ITK_EXPORT PhysicalCentralDifferenceImageFunction :
5454
/** Standard class typedefs. */
5555
typedef PhysicalCentralDifferenceImageFunction Self;
5656
typedef ImageFunction<TInputImage,
57-
CovariantVector<double,
57+
CovariantVector<double,
5858
itkGetStaticConstMacro(ImageDimension)>,
5959
TCoordRep> Superclass;
6060
typedef SmartPointer<Self> Pointer;
6161
typedef SmartPointer<const Self> ConstPointer;
62-
62+
6363
/** Run-time type information (and related methods). */
6464
itkTypeMacro(PhysicalCentralDifferenceImageFunction, ImageFunction);
6565

@@ -74,17 +74,17 @@ class ITK_EXPORT PhysicalCentralDifferenceImageFunction :
7474

7575
/** Index typedef support. */
7676
typedef typename Superclass::IndexType IndexType;
77-
77+
7878
/** ContinuousIndex typedef support. */
7979
typedef typename Superclass::ContinuousIndexType ContinuousIndexType;
8080

8181
/** Point typedef support. */
8282
typedef typename Superclass::PointType PointType;
83-
83+
8484
/** Linear interpolate function typedef. */
8585
typedef LinearInterpolateImageFunction<TInputImage, TCoordRep>
8686
InterpolateImageFunctionType;
87-
87+
8888
/** Set the input image.
8989
* \warning this method caches BufferedRegion information.
9090
* If the BufferedRegion has changed, user must call
@@ -118,12 +118,12 @@ class ITK_EXPORT PhysicalCentralDifferenceImageFunction :
118118
* bounds before calling this method. */
119119
virtual OutputType EvaluateAtContinuousIndex(
120120
const ContinuousIndexType& cindex ) const
121-
{
121+
{
122122
PointType point;
123123
m_Interpolator->GetInputImage()->TransformContinuousIndexToPhysicalPoint( cindex, point );
124124
return this->Evaluate( point );
125125
}
126-
126+
127127
/** Evalulate the image derivative by central differencing at specified
128128
* physical point.
129129
*
@@ -140,7 +140,7 @@ class ITK_EXPORT PhysicalCentralDifferenceImageFunction :
140140
private:
141141
PhysicalCentralDifferenceImageFunction( const Self& ); //purposely not implemented
142142
void operator=( const Self& ); //purposely not implemented
143-
143+
144144
typename InterpolateImageFunctionType::Pointer m_Interpolator;
145145

146146
};

include/itkPhysicalCentralDifferenceImageFunction.hxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
Copyright (c) Insight Software Consortium. All rights reserved.
1010
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
1111
12-
This software is distributed WITHOUT ANY WARRANTY; without even
13-
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12+
This software is distributed WITHOUT ANY WARRANTY; without even
13+
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
1414
PURPOSE. See the above copyright notices for more information.
1515
1616
=========================================================================*/
@@ -70,7 +70,7 @@ PhysicalCentralDifferenceImageFunction<TInputImage,TCoordRep>
7070
TCoordRep valueRight = m_Interpolator->Evaluate( pointRight );
7171

7272
// Compute derivative
73-
derivative[dim] = (valueRight - valueLeft) *
73+
derivative[dim] = (valueRight - valueLeft) *
7474
(0.5 / Superclass::m_Image->GetSpacing()[dim]);
7575
}
7676

include/itkSingleImageCostFunction.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
Copyright (c) Insight Software Consortium. All rights reserved.
1010
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
1111
12-
This software is distributed WITHOUT ANY WARRANTY; without even
13-
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12+
This software is distributed WITHOUT ANY WARRANTY; without even
13+
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
1414
PURPOSE. See the above copyright notices for more information.
1515
1616
=========================================================================*/
@@ -28,7 +28,7 @@
2828

2929
namespace itk
3030
{
31-
31+
3232
/** \class SingleImageCostFunction
3333
* \brief This class is a cost function which queries
3434
* an underlying image for the single value.
@@ -37,7 +37,7 @@ namespace itk
3737
* underlying cost function. The user may also provide an image
3838
* interpolator (if not provided the LinearInterpolateImageFunction
3939
* is used by default). The gradient is computed using central
40-
* differences in physical space.
40+
* differences in physical space.
4141
*
4242
* The parameters are the physical location (itkPoint) of the current
4343
* position. Initialize() must be called before using this cost function.
@@ -48,7 +48,7 @@ namespace itk
4848
*
4949
* \ingroup MinimalPathExtraction
5050
*/
51-
template <class TImage>
51+
template <class TImage>
5252
class ITK_EXPORT SingleImageCostFunction :
5353
public SingleValuedCostFunction
5454
{
@@ -72,7 +72,7 @@ class ITK_EXPORT SingleImageCostFunction :
7272
/** DerivativeType typedef.
7373
* It defines a type used to return the cost function derivative. */
7474
typedef typename Superclass::DerivativeType DerivativeType;
75-
75+
7676
/** ParametersType typedef.
7777
* It defines a position in the optimization search space. */
7878
typedef typename Superclass::ParametersType ParametersType;
@@ -116,7 +116,7 @@ class ITK_EXPORT SingleImageCostFunction :
116116
virtual void Initialize(void) throw ( ExceptionObject );
117117

118118
/** Return the number of parameters required by the Transform */
119-
unsigned int GetNumberOfParameters(void) const
119+
unsigned int GetNumberOfParameters(void) const
120120
{ return ImageDimension; }
121121

122122
/** This method returns the value of the cost function corresponding

include/itkSingleImageCostFunction.hxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
Copyright (c) Insight Software Consortium. All rights reserved.
1010
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
1111
12-
This software is distributed WITHOUT ANY WARRANTY; without even
13-
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12+
This software is distributed WITHOUT ANY WARRANTY; without even
13+
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
1414
PURPOSE. See the above copyright notices for more information.
1515
1616
=========================================================================*/
@@ -55,7 +55,7 @@ SingleImageCostFunction<TImage>
5555
{
5656
m_Interpolator = DefaultInterpolatorType::New();
5757
}
58-
58+
5959
// Ensure gradient image function is initialized
6060
if( !m_GradientImageFunction )
6161
{
@@ -118,14 +118,14 @@ SingleImageCostFunction<TImage>
118118
// Init the derivative
119119
derivative.SetSize(ImageDimension);
120120
derivative.Fill( 0.0 );
121-
121+
122122
// Convert parameters to point
123123
PointType point;
124124
for (unsigned int i=0; i<ImageDimension; i++)
125125
{
126126
point[i] = static_cast<typename PointType::ValueType>( parameters[i] );
127127
}
128-
128+
129129
// Ensure point is inside image
130130
typename GradientImageFunctionType::OutputType output;
131131
output.Fill( 0.0 );
@@ -140,7 +140,7 @@ SingleImageCostFunction<TImage>
140140
for (int i=0; i<ImageDimension; i++)
141141
{
142142
derivative[i] = static_cast<typename DerivativeType::ValueType>( output[i] );
143-
143+
144144
// NOTE: The cost function may undefined / unreachable areas
145145
// (indicated by very large values) which may skew the gradient.
146146
// To avoid this skewing effect, we reset gradient values larger

0 commit comments

Comments
 (0)