Skip to content

Commit d833f53

Browse files
committed
STYLE: CoordRepType -> CoordinateType code readability
For the sake of code readability, a new 'CoordinateType' alias is added for each nested 'CoordRepType' alias. The old 'CoordRepType' aliases will still be available with ITK 6.0, but it is recommended to use 'CoordinateType' instead. The 'CoordRepType' aliases will be removed when 'ITK_FUTURE_LEGACY_REMOVE' is enabled. Similarly, 'InputCoordinateType', 'OutputCoordinateType', and 'ImagePointCoordinateType' replace 'InputCoordRepType', 'OutputCoordRepType', and 'ImagePointCoordRepType', respectively.
1 parent 97f105e commit d833f53

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

examples/Filtering/ResampleBenchmark.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -372,13 +372,13 @@ DefineInterpolator(typename InterpolatorType::Pointer & interpolator,
372372
{
373373
// Interpolator typedefs
374374
using InputImageType = typename InterpolatorType::InputImageType;
375-
using CoordRepType = typename InterpolatorType::CoordRepType;
376-
using CoefficientType = CoordRepType;
375+
using CoordinateType = typename InterpolatorType::CoordinateType;
376+
using CoefficientType = CoordinateType;
377377

378378
// Typedefs for all interpolators
379-
using NearestNeighborInterpolatorType = itk::NearestNeighborInterpolateImageFunction<InputImageType, CoordRepType>;
380-
using LinearInterpolatorType = itk::LinearInterpolateImageFunction<InputImageType, CoordRepType>;
381-
using BSplineInterpolatorType = itk::BSplineInterpolateImageFunction<InputImageType, CoordRepType, CoefficientType>;
379+
using NearestNeighborInterpolatorType = itk::NearestNeighborInterpolateImageFunction<InputImageType, CoordinateType>;
380+
using LinearInterpolatorType = itk::LinearInterpolateImageFunction<InputImageType, CoordinateType>;
381+
using BSplineInterpolatorType = itk::BSplineInterpolateImageFunction<InputImageType, CoordinateType, CoefficientType>;
382382

383383
if (interpolatorName == "Nearest")
384384
{
@@ -402,10 +402,10 @@ DefineExtrapolator(typename ExtrapolatorType::Pointer & extrapolator, const std:
402402
{
403403
// Extrapolator typedefs
404404
using InputImageType = typename ExtrapolatorType::InputImageType;
405-
using CoordRepType = typename ExtrapolatorType::CoordRepType;
405+
using CoordinateType = typename ExtrapolatorType::CoordinateType;
406406

407407
// Typedefs for all extrapolators
408-
using NearestNeighborExtrapolatorType = itk::NearestNeighborExtrapolateImageFunction<InputImageType, CoordRepType>;
408+
using NearestNeighborExtrapolatorType = itk::NearestNeighborExtrapolateImageFunction<InputImageType, CoordinateType>;
409409

410410
if (extrapolatorName == "Nearest")
411411
{

0 commit comments

Comments
 (0)