@@ -88,39 +88,39 @@ class ITK_TEMPLATE_EXPORT CoocurrenceTextureFeaturesImageFilter
8888 : public ImageToImageFilter< TInputImage, TOutputImage >
8989{
9090public:
91- /* * Standard typedefs */
92- typedef CoocurrenceTextureFeaturesImageFilter Self ;
93- typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass ;
94- typedef SmartPointer< Self > Pointer ;
95- typedef SmartPointer< const Self > ConstPointer ;
91+ /* * Standard type alias */
92+ using Self = CoocurrenceTextureFeaturesImageFilter ;
93+ using Superclass = ImageToImageFilter< TInputImage, TOutputImage >;
94+ using Pointer = SmartPointer< Self >;
95+ using ConstPointer = SmartPointer< const Self >;
9696
9797 /* * Run-time type information (and related methods). */
9898 itkTypeMacro (CoocurrenceTextureFeaturesImageFilter, ImageToImageFilter);
9999
100100 /* * standard New() method support */
101101 itkNewMacro (Self);
102102
103- typedef TInputImage InputImageType ;
104- typedef TOutputImage OutputImageType ;
105- typedef TMaskImage MaskImageType ;
103+ using InputImageType = TInputImage ;
104+ using OutputImageType = TOutputImage ;
105+ using MaskImageType = TMaskImage ;
106106
107- typedef typename InputImageType::PixelType PixelType;
108- typedef typename MaskImageType::PixelType MaskPixelType ;
109- typedef typename InputImageType::IndexType IndexType;
110- typedef typename InputImageType::PointType PointType;
107+ using PixelType = typename InputImageType::PixelType;
108+ using MaskPixelType = typename MaskImageType::PixelType;
109+ using IndexType = typename InputImageType::IndexType;
110+ using PointType = typename InputImageType::PointType;
111111
112- typedef typename InputImageType::OffsetType OffsetType;
113- typedef VectorContainer< unsigned char , OffsetType > OffsetVector ;
114- typedef typename OffsetVector::Pointer OffsetVectorPointer ;
115- typedef typename OffsetVector::ConstPointer OffsetVectorConstPointer ;
112+ using OffsetType = typename InputImageType::OffsetType;
113+ using OffsetVector = VectorContainer< unsigned char , OffsetType >;
114+ using OffsetVectorPointer = typename OffsetVector::Pointer;
115+ using OffsetVectorConstPointer = typename OffsetVector::ConstPointer;
116116
117- typedef typename InputImageType::RegionType InputRegionType ;
118- typedef typename OutputImageType::RegionType OutputRegionType ;
117+ using InputRegionType = typename InputImageType::RegionType;
118+ using OutputRegionType = typename OutputImageType::RegionType;
119119
120- typedef typename itk::ConstNeighborhoodIterator< InputImageType >::RadiusType NeighborhoodRadiusType ;
120+ using NeighborhoodRadiusType = typename itk::ConstNeighborhoodIterator< InputImageType >::RadiusType;
121121
122- typedef typename NumericTraits<PixelType>::RealType MeasurementType ;
123- typedef typename NumericTraits<PixelType>::RealType RealType;
122+ using MeasurementType = typename NumericTraits<PixelType>::RealType;
123+ using RealType = typename NumericTraits<PixelType>::RealType;
124124
125125 /* * Method to set/get the Neighborhood radius */
126126 itkSetMacro (NeighborhoodRadius, NeighborhoodRadiusType);
@@ -134,7 +134,7 @@ class ITK_TEMPLATE_EXPORT CoocurrenceTextureFeaturesImageFilter
134134
135135
136136 /* * Specify the default number of bins per axis */
137- static constexpr unsigned int DefaultBinsPerAxis = 256 ;
137+ static constexpr unsigned int DefaultBinsPerAxis = 256 ;
138138
139139 /* *
140140 * Set the offsets over which the intensities pairs will be computed.
@@ -190,8 +190,8 @@ class ITK_TEMPLATE_EXPORT CoocurrenceTextureFeaturesImageFilter
190190 itkGetConstMacro (Normalize, bool );
191191 itkBooleanMacro (Normalize);
192192
193- typedef typename OutputImageType::PixelType OutputPixelType ;
194- typedef typename NumericTraits< OutputPixelType >::ScalarRealType OutputRealType ;
193+ using OutputPixelType = typename OutputImageType::PixelType;
194+ using OutputRealType = typename NumericTraits< OutputPixelType >::ScalarRealType;
195195
196196#ifdef ITK_USE_CONCEPT_CHECKING
197197 // Begin concept checking
@@ -202,10 +202,10 @@ class ITK_TEMPLATE_EXPORT CoocurrenceTextureFeaturesImageFilter
202202
203203protected:
204204
205- typedef int HistogramIndexType ;
206- typedef itk::Image< HistogramIndexType, TInputImage::ImageDimension > DigitizedImageType ;
207- typedef typename itk::ConstNeighborhoodIterator< DigitizedImageType > NeighborhoodIteratorType ;
208- typedef typename NeighborhoodIteratorType::NeighborIndexType NeighborIndexType;
205+ using HistogramIndexType = int ;
206+ using DigitizedImageType = itk::Image< HistogramIndexType, TInputImage::ImageDimension >;
207+ using NeighborhoodIteratorType = typename itk::ConstNeighborhoodIterator< DigitizedImageType >;
208+ using NeighborIndexType = typename NeighborhoodIteratorType::NeighborIndexType;
209209
210210 CoocurrenceTextureFeaturesImageFilter ();
211211 ~CoocurrenceTextureFeaturesImageFilter () override {}
0 commit comments