Skip to content

Commit 7dd7686

Browse files
authored
Merge pull request #18 from dzenanz/master
STYLE: minor fixes
2 parents c7328c9 + 8909cf0 commit 7dd7686

File tree

12 files changed

+8
-41
lines changed

12 files changed

+8
-41
lines changed

Math/ExampleCostFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public SingleValuedCostFunction
2121
/** Run-time type information (and related methods). */
2222
itkTypeMacro(ExampleCostFunction2, SingleValuedCostfunction);
2323

24-
unsigned int GetNumberOfParameters(void) const override { return 2; } // itk::CostFunction
24+
unsigned int GetNumberOfParameters() const override { return 2; } // itk::CostFunction
2525

2626
MeasureType GetValue(const ParametersType & parameters) const override {
2727
return pow(parameters[0]+5, 2)+pow(parameters[1]-7, 2)+5;

PointSet/ReadPointSet.cxx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ int main( int argc, char *argv[] )
4848

4949
MeshType::Pointer mesh = polyDataReader->GetOutput();
5050

51-
PointType point;
52-
5351
std::cout << "Testing itk::VTKPolyDataReader" << std::endl;
5452

5553
unsigned int numberOfPoints = mesh->GetNumberOfPoints();
@@ -70,13 +68,6 @@ int main( int argc, char *argv[] )
7068
return EXIT_FAILURE;
7169
}
7270

73-
/*
74-
for(unsigned int i=0; i<numberOfPoints; i++)
75-
{
76-
mesh->GetPoint(i, &point);
77-
}
78-
*/
79-
8071
// Retrieve points
8172
for(unsigned int i = 0; i < numberOfPoints; i++)
8273
{

Registration/ImageRegistrationMethod.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,6 @@ void CreateEllipseImage(ImageType::Pointer image)
262262
transform->SetIdentity();
263263

264264
TransformType::OutputVectorType translation;
265-
TransformType::CenterType center;
266-
267265
translation[ 0 ] = 65;
268266
translation[ 1 ] = 45;
269267
transform->Translate( translation, false );
@@ -314,8 +312,6 @@ void CreateSphereImage(ImageType::Pointer image)
314312
transform->SetIdentity();
315313

316314
TransformType::OutputVectorType translation;
317-
TransformType::CenterType center;
318-
319315
translation[ 0 ] = 50;
320316
translation[ 1 ] = 50;
321317
transform->Translate( translation, false );

Registration/ImageRegistrationMethodAffine.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,6 @@ void CreateEllipseImage(ImageType::Pointer image)
229229
transform->SetIdentity();
230230

231231
TransformType::OutputVectorType translation;
232-
TransformType::CenterType center;
233-
234232
translation[ 0 ] = 65;
235233
translation[ 1 ] = 45;
236234
transform->Translate( translation, false );
@@ -281,8 +279,6 @@ void CreateSphereImage(ImageType::Pointer image)
281279
transform->SetIdentity();
282280

283281
TransformType::OutputVectorType translation;
284-
TransformType::CenterType center;
285-
286282
translation[ 0 ] = 50;
287283
translation[ 1 ] = 50;
288284
transform->Translate( translation, false );

Registration/ImageRegistrationMethodBSpline.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,6 @@ void CreateEllipseImage(ImageType::Pointer image)
294294
transform->SetIdentity();
295295

296296
TransformType::OutputVectorType translation;
297-
TransformType::CenterType center;
298-
299297
translation[ 0 ] = 65;
300298
translation[ 1 ] = 45;
301299
transform->Translate( translation, false );
@@ -346,8 +344,6 @@ void CreateCircleImage(ImageType::Pointer image)
346344
transform->SetIdentity();
347345

348346
TransformType::OutputVectorType translation;
349-
TransformType::CenterType center;
350-
351347
translation[ 0 ] = 50;
352348
translation[ 1 ] = 50;
353349
transform->Translate( translation, false );

Registration/MutualInformation.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,6 @@ void CreateEllipseImage(ImageType::Pointer image)
273273
transform->SetIdentity();
274274

275275
TransformType::OutputVectorType translation;
276-
TransformType::CenterType center;
277-
278276
translation[ 0 ] = 65;
279277
translation[ 1 ] = 45;
280278
transform->Translate( translation, false );
@@ -325,8 +323,6 @@ void CreateCircleImage(ImageType::Pointer image)
325323
transform->SetIdentity();
326324

327325
TransformType::OutputVectorType translation;
328-
TransformType::CenterType center;
329-
330326
translation[ 0 ] = 50;
331327
translation[ 1 ] = 50;
332328
transform->Translate( translation, false );

Registration/MutualInformationAffine.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,6 @@ void CreateEllipseImage(ImageType::Pointer image)
270270
transform->SetIdentity();
271271

272272
TransformType::OutputVectorType translation;
273-
TransformType::CenterType center;
274-
275273
translation[ 0 ] = 65;
276274
translation[ 1 ] = 45;
277275
transform->Translate( translation, false );
@@ -322,8 +320,6 @@ void CreateCircleImage(ImageType::Pointer image)
322320
transform->SetIdentity();
323321

324322
TransformType::OutputVectorType translation;
325-
TransformType::CenterType center;
326-
327323
translation[ 0 ] = 50;
328324
translation[ 1 ] = 50;
329325
transform->Translate( translation, false );

SimpleOperations/BresenhamLine.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ int main(int argc, char *argv[])
1313

1414
#include <iostream>
1515

16-
static void Vector(void);
17-
static void Line(void);
16+
static void Vector();
17+
static void Line();
1818

1919
int main(int argc, char *argv[])
2020
{
@@ -24,7 +24,7 @@ int main(int argc, char *argv[])
2424
return EXIT_SUCCESS;
2525
}
2626

27-
void Vector(void)
27+
void Vector()
2828
{
2929

3030
itk::BresenhamLine<2> line;
@@ -41,7 +41,7 @@ void Vector(void)
4141

4242
}
4343

44-
void Line(void)
44+
void Line()
4545
{
4646

4747
itk::BresenhamLine<2> line;

SpatialObjects/EllipseSpatialObject.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ int main( int argc, char *argv[] )
5555
transform->SetIdentity();
5656

5757
TransformType::OutputVectorType translation;
58-
TransformType::CenterType center;
59-
6058
translation[ 0 ] = size[0] * spacing[0] / 2.0;
6159
translation[ 1 ] = size[1] * spacing[1] / 4.0;
6260
transform->Translate( translation, false );

SpatialObjects/SpatialObjectToImageFilter.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ int main( int argc, char *argv[] )
5555
transform->SetIdentity();
5656

5757
TransformType::OutputVectorType translation;
58-
TransformType::CenterType center;
59-
6058
translation[ 0 ] = size[0] * spacing[0] / 2.0;
6159
translation[ 1 ] = size[1] * spacing[1] / 4.0;
6260
transform->Translate( translation, false );

0 commit comments

Comments
 (0)