Skip to content

Commit a259028

Browse files
committed
STYLE: Replace TCoordType with TCoordinate in Filtering/ImageGrid
In general, `TCoordinate` is used to denote the name of a template parameter for a coordinate type.
1 parent bde7aac commit a259028

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

Modules/Filtering/ImageGrid/include/itkInterpolateImagePointsFilter.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace itk
5454
* Limitations: The coordinates must be in an image of the same dimension as the
5555
* input image. There is no reason why this should be the case and future
5656
* revisions should look at eliminating this limitation.
57-
* Currently TCoordType must be the same as the input pixel type (TInputImage).
57+
* Currently TCoordinate must be the same as the input pixel type (TInputImage).
5858
* Again future revisions should look at eliminating this limitation.
5959
* Though the output generation may be streamed the entire input image,
6060
* must be supplied. The coordinates may be streamed in smaller blocks.
@@ -75,8 +75,8 @@ namespace itk
7575

7676
template <typename TInputImage,
7777
typename TOutputImage,
78-
typename TCoordType = typename TInputImage::PixelType,
79-
typename InterpolatorType = BSplineInterpolateImageFunction<TInputImage, TCoordType>>
78+
typename TCoordinate = typename TInputImage::PixelType,
79+
typename InterpolatorType = BSplineInterpolateImageFunction<TInputImage, TCoordinate>>
8080
class ITK_TEMPLATE_EXPORT InterpolateImagePointsFilter : public ImageToImageFilter<TInputImage, TOutputImage>
8181
{
8282
public:
@@ -115,7 +115,7 @@ class ITK_TEMPLATE_EXPORT InterpolateImagePointsFilter : public ImageToImageFilt
115115
using ContinuousIndexType = typename InterpolatorType::ContinuousIndexType;
116116

117117
/** Typedefs to describe and access coordinate images */
118-
using CoordImageType = Image<TCoordType, Self::ImageDimension>;
118+
using CoordImageType = Image<TCoordinate, Self::ImageDimension>;
119119

120120
/** Typedef for region copier */
121121
using RegionCopierType = ImageToImageFilterDetail::ImageRegionCopier<Self::ImageDimension, Self::ImageDimension>;

Modules/Filtering/ImageGrid/include/itkInterpolateImagePointsFilter.hxx

+15-15
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
namespace itk
3434
{
3535

36-
template <typename TInputImage, typename TOutputImage, typename TCoordType, typename InterpolatorType>
37-
InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordType, InterpolatorType>::InterpolateImagePointsFilter()
36+
template <typename TInputImage, typename TOutputImage, typename TCoordinate, typename InterpolatorType>
37+
InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordinate, InterpolatorType>::InterpolateImagePointsFilter()
3838
{
3939
m_Interpolator = InterpolatorType::New();
4040
m_DefaultPixelValue = 0;
@@ -44,9 +44,9 @@ InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordType, Interpolator
4444
this->ThreaderUpdateProgressOff();
4545
}
4646

47-
template <typename TInputImage, typename TOutputImage, typename TCoordType, typename InterpolatorType>
47+
template <typename TInputImage, typename TOutputImage, typename TCoordinate, typename InterpolatorType>
4848
void
49-
InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordType, InterpolatorType>::SetInputImage(
49+
InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordinate, InterpolatorType>::SetInputImage(
5050
const TInputImage * inputImage)
5151
{
5252
this->SetInput(0, inputImage); // This is a data filter input
@@ -55,19 +55,19 @@ InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordType, Interpolator
5555
m_Interpolator->SetInputImage(inputImage);
5656
}
5757

58-
template <typename TInputImage, typename TOutputImage, typename TCoordType, typename InterpolatorType>
58+
template <typename TInputImage, typename TOutputImage, typename TCoordinate, typename InterpolatorType>
5959
void
60-
InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordType, InterpolatorType>::SetInterpolationCoordinate(
60+
InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordinate, InterpolatorType>::SetInterpolationCoordinate(
6161
const CoordImageType * coordinate,
6262
unsigned int setDimension)
6363
{
6464
// Set each coordinate as an input. Note that Input '0' is for the image.
6565
this->SetInput(setDimension + 1, coordinate); // This is a data filter input
6666
}
6767

68-
template <typename TInputImage, typename TOutputImage, typename TCoordType, typename InterpolatorType>
68+
template <typename TInputImage, typename TOutputImage, typename TCoordinate, typename InterpolatorType>
6969
void
70-
InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordType, InterpolatorType>::DynamicThreadedGenerateData(
70+
InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordinate, InterpolatorType>::DynamicThreadedGenerateData(
7171
const OutputImageRegionType & outputRegionForThread)
7272
{
7373
OutputImagePointer outputPtr = this->GetOutput();
@@ -120,9 +120,9 @@ InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordType, Interpolator
120120
}
121121
}
122122

123-
template <typename TInputImage, typename TOutputImage, typename TCoordType, typename InterpolatorType>
123+
template <typename TInputImage, typename TOutputImage, typename TCoordinate, typename InterpolatorType>
124124
void
125-
InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordType, InterpolatorType>::GenerateInputRequestedRegion()
125+
InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordinate, InterpolatorType>::GenerateInputRequestedRegion()
126126
{
127127
// Call the superclass' implementation of this method
128128
Superclass::GenerateInputRequestedRegion();
@@ -139,9 +139,9 @@ InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordType, Interpolator
139139
inputPtr->SetRequestedRegionToLargestPossibleRegion();
140140
}
141141

142-
template <typename TInputImage, typename TOutputImage, typename TCoordType, typename InterpolatorType>
142+
template <typename TInputImage, typename TOutputImage, typename TCoordinate, typename InterpolatorType>
143143
void
144-
InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordType, InterpolatorType>::GenerateOutputInformation()
144+
InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordinate, InterpolatorType>::GenerateOutputInformation()
145145
{
146146
// Call the superclass' implementation of this method
147147
Superclass::GenerateOutputInformation();
@@ -169,10 +169,10 @@ InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordType, Interpolator
169169
outputPtr->SetLargestPossibleRegion(outputLargestPossibleRegion);
170170
}
171171

172-
template <typename TInputImage, typename TOutputImage, typename TCoordType, typename InterpolatorType>
172+
template <typename TInputImage, typename TOutputImage, typename TCoordinate, typename InterpolatorType>
173173
void
174-
InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordType, InterpolatorType>::PrintSelf(std::ostream & os,
175-
Indent indent) const
174+
InterpolateImagePointsFilter<TInputImage, TOutputImage, TCoordinate, InterpolatorType>::PrintSelf(std::ostream & os,
175+
Indent indent) const
176176
{
177177
Superclass::PrintSelf(os, indent);
178178

0 commit comments

Comments
 (0)