Skip to content

Commit c9d2ed8

Browse files
authored
Merge pull request #6508 from hjmjohnson/future-legacy-principal-components
COMP: Modernize deprecated macros in PrincipalComponentsAnalysis
2 parents c420eca + 8c408d5 commit c9d2ed8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/Numerics/PrincipalComponentsAnalysis/include/itkVectorFieldPCA.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class ITK_TEMPLATE_EXPORT GaussianDistanceKernel : public KernelFunctionBase<TRe
6262
using ConstPointer = SmartPointer<const Self>;
6363

6464
/** Run-time type information (and related methods). */
65-
itkTypeMacro(GaussianDistanceKernel, KernelFunction);
65+
itkOverrideGetNameOfClassMacro(GaussianDistanceKernel);
6666

6767
/** Method for creation through the object factory. */
6868
itkNewMacro(Self);
@@ -123,7 +123,7 @@ class ITK_TEMPLATE_EXPORT VectorFieldPCA : public Object
123123
itkNewMacro(Self);
124124

125125
/** Run-time type information (and related methods). */
126-
itkTypeMacro(VectorFieldPCA, Object);
126+
itkOverrideGetNameOfClassMacro(VectorFieldPCA);
127127

128128
/** Type definitions for the PointSet. */
129129
using InputPointSetType = TPointSetType;
@@ -144,7 +144,7 @@ class ITK_TEMPLATE_EXPORT VectorFieldPCA : public Object
144144
/**
145145
* \brief Input PointSet dimension
146146
*/
147-
itkStaticConstMacro(InputMeshDimension, unsigned int, TPointSetType::PointDimension);
147+
static constexpr unsigned int InputMeshDimension = TPointSetType::PointDimension;
148148

149149
/** type for the vector fields. */
150150
using VectorFieldType = vnl_matrix<TVectorFieldElementType>;

0 commit comments

Comments
 (0)