26
26
# include " QuickView.h"
27
27
#endif
28
28
29
- typedef itk::Image<itk::RGBPixel<unsigned char >, 2 > ImageType ;
29
+ using ImageType = itk::Image<itk::RGBPixel<unsigned char >, 2 >;
30
30
31
31
static void
32
32
CreateImage (ImageType::Pointer image);
@@ -45,8 +45,8 @@ main(int argc, char * argv[])
45
45
}
46
46
else
47
47
{
48
- typedef itk::ImageFileReader<ImageType> ReaderType ;
49
- ReaderType::Pointer reader = ReaderType::New ();
48
+ using ReaderType = itk::ImageFileReader<ImageType>;
49
+ ReaderType::Pointer reader = ReaderType::New ();
50
50
reader->SetFileName (argv[1 ]);
51
51
reader->Update ();
52
52
input = reader->GetOutput ();
@@ -69,16 +69,16 @@ main(int argc, char * argv[])
69
69
outputSpacing[0 ] = input->GetSpacing ()[0 ] * (static_cast <double >(inputSize[0 ]) / static_cast <double >(outputSize[0 ]));
70
70
outputSpacing[1 ] = input->GetSpacing ()[1 ] * (static_cast <double >(inputSize[1 ]) / static_cast <double >(outputSize[1 ]));
71
71
72
- typedef itk::IdentityTransform<double , 2 > TransformType ;
73
- typedef itk::VectorResampleImageFilter<ImageType, ImageType> ResampleImageFilterType ;
74
- ResampleImageFilterType::Pointer resample = ResampleImageFilterType::New ();
72
+ using TransformType = itk::IdentityTransform<double , 2 >;
73
+ using ResampleImageFilterType = itk::VectorResampleImageFilter<ImageType, ImageType>;
74
+ ResampleImageFilterType::Pointer resample = ResampleImageFilterType::New ();
75
75
resample->SetInput (input);
76
76
resample->SetSize (outputSize);
77
77
resample->SetOutputSpacing (outputSpacing);
78
78
resample->SetTransform (TransformType::New ());
79
79
resample->UpdateLargestPossibleRegion ();
80
80
81
- typedef itk::VectorNearestNeighborInterpolateImageFunction<ImageType, double > NearestInterpolatorType ;
81
+ using NearestInterpolatorType = itk::VectorNearestNeighborInterpolateImageFunction<ImageType, double >;
82
82
NearestInterpolatorType::Pointer nnInterpolator = NearestInterpolatorType::New ();
83
83
84
84
ResampleImageFilterType::Pointer resampleNN = ResampleImageFilterType::New ();
0 commit comments