Skip to content

Commit 3c574f6

Browse files
N-Dekkerhjmjohnson
authored andcommitted
STYLE: Replace TInputImage::SizeValueType with SizeValueType
Replaced `typename TInputImage::SizeValueType` with `SizeValueType`. In practice, `TInputImage::SizeValueType` is always just an alias of `itk::SizeValueType` anyway.
1 parent 1649dee commit 3c574f6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Modules/Core/ImageFunction/include/itkBSplineDecompositionImageFilter.hxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ BSplineDecompositionImageFilter<TInputImage, TOutputImage>::SetInitialCausalCoef
180180
// See Unser, 1999, Box 2 for explanation
181181

182182
// Yhis initialization corresponds to mirror boundaries
183-
typename TInputImage::SizeValueType horizon = m_DataLength[m_IteratorDirection];
184-
double zn = z;
183+
SizeValueType horizon = m_DataLength[m_IteratorDirection];
184+
double zn = z;
185185
if (m_Tolerance > 0.0)
186186
{
187-
horizon = (typename TInputImage::SizeValueType)std::ceil(std::log(m_Tolerance) / std::log(itk::Math::abs(z)));
187+
horizon = (SizeValueType)std::ceil(std::log(m_Tolerance) / std::log(itk::Math::abs(z)));
188188
}
189189
if (horizon < m_DataLength[m_IteratorDirection])
190190
{

Modules/Filtering/ImageFilterBase/include/itkBoxImageFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class ITK_TEMPLATE_EXPORT BoxImageFilter : public ImageToImageFilter<TInputImage
7070
static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
7171
/** n-dimensional Kernel radius. */
7272
using RadiusType = typename TInputImage::SizeType;
73-
using RadiusValueType = typename TInputImage::SizeValueType;
73+
using RadiusValueType = SizeValueType;
7474

7575
virtual void
7676
SetRadius(const RadiusType & radius);

Modules/Filtering/ImageStatistics/include/itkAccumulateImageFilter.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ AccumulateImageFilter<TInputImage, TOutputImage>::GenerateData()
158158
typename TInputImage::SizeType AccumulatedSize = inputImage->GetLargestPossibleRegion().GetSize();
159159
typename TInputImage::IndexType AccumulatedIndex = inputImage->GetLargestPossibleRegion().GetIndex();
160160

161-
const typename TInputImage::SizeValueType SizeAccumulateDimension = AccumulatedSize[m_AccumulateDimension];
162-
const auto sizeAccumulateDimensionDouble = static_cast<double>(SizeAccumulateDimension);
161+
const SizeValueType SizeAccumulateDimension = AccumulatedSize[m_AccumulateDimension];
162+
const auto sizeAccumulateDimensionDouble = static_cast<double>(SizeAccumulateDimension);
163163
const typename TInputImage::IndexValueType IndexAccumulateDimension = AccumulatedIndex[m_AccumulateDimension];
164164
for (unsigned int i = 0; i < InputImageDimension; ++i)
165165
{

0 commit comments

Comments
 (0)