diff --git a/Modules/Core/Common/include/itkImageBase.h b/Modules/Core/Common/include/itkImageBase.h index c4d840da9ec..5df26864d02 100644 --- a/Modules/Core/Common/include/itkImageBase.h +++ b/Modules/Core/Common/include/itkImageBase.h @@ -249,7 +249,8 @@ class ITK_TEMPLATE_EXPORT ImageBase : public DataObject * */ virtual void - Allocate(bool initialize = false); + Allocate(bool itkNotUsed(initialize) = false) + {} /** Allocates the pixel buffer of the image, zero-initializing its pixels. `AllocateInitialized()` is equivalent to * `Allocate(true)`. It is just intended to make the code more readable. */ diff --git a/Modules/Core/Common/include/itkImageBase.hxx b/Modules/Core/Common/include/itkImageBase.hxx index 0909730472f..9b6e92cf990 100644 --- a/Modules/Core/Common/include/itkImageBase.hxx +++ b/Modules/Core/Common/include/itkImageBase.hxx @@ -37,13 +37,6 @@ namespace itk { - -template -void -ImageBase::Allocate(bool) -{} - - template void ImageBase::Initialize() diff --git a/Modules/Numerics/FEM/include/itkFEMSolver.h b/Modules/Numerics/FEM/include/itkFEMSolver.h index 9b1b6599fe1..e121b01daf3 100644 --- a/Modules/Numerics/FEM/include/itkFEMSolver.h +++ b/Modules/Numerics/FEM/include/itkFEMSolver.h @@ -141,7 +141,8 @@ class ITK_TEMPLATE_EXPORT Solver : public ProcessObject * \param dt New time step. */ virtual void - SetTimeStep(Float dt); + SetTimeStep(Float itkNotUsed(dt)) + {} /** Returns the Solution for the specified nodal point. */ Float diff --git a/Modules/Numerics/FEM/include/itkFEMSolver.hxx b/Modules/Numerics/FEM/include/itkFEMSolver.hxx index fd30babeb04..33e8aad9f6d 100644 --- a/Modules/Numerics/FEM/include/itkFEMSolver.hxx +++ b/Modules/Numerics/FEM/include/itkFEMSolver.hxx @@ -107,11 +107,6 @@ Solver::GetTimeStep() const -> Float return Float{}; } -template -void -Solver::SetTimeStep(Float itkNotUsed(dt)) -{} - template auto Solver::GetSolution(unsigned int i, unsigned int which) -> Float diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.h index 5cded8a0904..51d28c759c8 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.h @@ -118,13 +118,15 @@ class ITK_TEMPLATE_EXPORT LevelSetEquationAdvectionTerm : public LevelSetEquatio /** \todo to be documented. */ void - Initialize(const LevelSetInputIndexType &) override; + Initialize(const LevelSetInputIndexType &) override + {} /** Supply updates at pixels to keep the term parameters always updated */ void - UpdatePixel(const LevelSetInputIndexType & iP, - const LevelSetOutputRealType & oldValue, - const LevelSetOutputRealType & newValue) override; + UpdatePixel(const LevelSetInputIndexType & itkNotUsed(iP), + const LevelSetOutputRealType & itkNotUsed(oldValue), + const LevelSetOutputRealType & itkNotUsed(newValue)) override + {} protected: LevelSetEquationAdvectionTerm(); diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.hxx b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.hxx index 4904b9753a3..74529cfa6f5 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.hxx +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.hxx @@ -118,19 +118,6 @@ LevelSetEquationAdvectionTerm::GenerateAdvectionImag } } -template -void -LevelSetEquationAdvectionTerm::Initialize(const LevelSetInputIndexType &) -{} - -template -void -LevelSetEquationAdvectionTerm::UpdatePixel( - const LevelSetInputIndexType & itkNotUsed(iP), - const LevelSetOutputRealType & itkNotUsed(oldValue), - const LevelSetOutputRealType & itkNotUsed(newValue)) -{} - template auto LevelSetEquationAdvectionTerm::AdvectionSpeed(const LevelSetInputIndexType & iP) const diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.h index 5d89f5ebbc1..f0bc4dcaa4b 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.h @@ -94,13 +94,15 @@ class ITK_TEMPLATE_EXPORT LevelSetEquationBinaryMaskTerm : public LevelSetEquati /** Initialize term parameters in the dense case by computing for each pixel location */ void - Initialize(const LevelSetInputIndexType & iP) override; + Initialize(const LevelSetInputIndexType & itkNotUsed(iP)) override + {} /** Supply updates at pixels to keep the term parameters always updated */ void - UpdatePixel(const LevelSetInputIndexType & iP, - const LevelSetOutputRealType & oldValue, - const LevelSetOutputRealType & newValue) override; + UpdatePixel(const LevelSetInputIndexType & itkNotUsed(iP), + const LevelSetOutputRealType & itkNotUsed(oldValue), + const LevelSetOutputRealType & itkNotUsed(newValue)) override + {} protected: LevelSetEquationBinaryMaskTerm(); diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.hxx b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.hxx index 7ce57591ca2..fd3b256e8be 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.hxx +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.hxx @@ -38,20 +38,6 @@ LevelSetEquationBinaryMaskTerm::InitializeParameters } -template -void -LevelSetEquationBinaryMaskTerm::Initialize(const LevelSetInputIndexType & itkNotUsed(index)) -{} - - -template -void -LevelSetEquationBinaryMaskTerm::UpdatePixel( - const LevelSetInputIndexType & itkNotUsed(index), - const LevelSetOutputRealType & itkNotUsed(oldValue), - const LevelSetOutputRealType & itkNotUsed(newValue)) -{} - template auto LevelSetEquationBinaryMaskTerm::Value(const LevelSetInputIndexType & index) diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.h index 68ca7a7e4bf..52dd4336b43 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.h @@ -117,13 +117,15 @@ class ITK_TEMPLATE_EXPORT LevelSetEquationCurvatureTerm : public LevelSetEquatio /** Initialize term parameters in the dense case by computing for each pixel location */ void - Initialize(const LevelSetInputIndexType &) override; + Initialize(const LevelSetInputIndexType &) override + {} /** Supply updates at pixels to keep the term parameters always updated */ void - UpdatePixel(const LevelSetInputIndexType & iP, - const LevelSetOutputRealType & oldValue, - const LevelSetOutputRealType & newValue) override; + UpdatePixel(const LevelSetInputIndexType & itkNotUsed(iP), + const LevelSetOutputRealType & itkNotUsed(oldValue), + const LevelSetOutputRealType & itkNotUsed(newValue)) override + {} protected: LevelSetEquationCurvatureTerm(); diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.hxx b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.hxx index 66aca56d6af..e6f2520e9a0 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.hxx +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.hxx @@ -76,19 +76,6 @@ LevelSetEquationCurvatureTerm::Init } } -template -void -LevelSetEquationCurvatureTerm::Initialize(const LevelSetInputIndexType &) -{} - -template -void -LevelSetEquationCurvatureTerm::UpdatePixel( - const LevelSetInputIndexType & itkNotUsed(iP), - const LevelSetOutputRealType & itkNotUsed(oldValue), - const LevelSetOutputRealType & itkNotUsed(newValue)) -{} - template auto LevelSetEquationCurvatureTerm::Value(const LevelSetInputIndexType & iP) diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.h index 80c7527bc84..ce2af5a219d 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.h @@ -101,13 +101,15 @@ class ITK_TEMPLATE_EXPORT LevelSetEquationLaplacianTerm : public LevelSetEquatio /** \todo to be documented. */ void - Initialize(const LevelSetInputIndexType &) override; + Initialize(const LevelSetInputIndexType &) override + {} /** Supply updates at pixels to keep the term parameters always updated */ void - UpdatePixel(const LevelSetInputIndexType & iP, - const LevelSetOutputRealType & oldValue, - const LevelSetOutputRealType & newValue) override; + UpdatePixel(const LevelSetInputIndexType & itkNotUsed(iP), + const LevelSetOutputRealType & itkNotUsed(oldValue), + const LevelSetOutputRealType & itkNotUsed(newValue)) override + {} protected: LevelSetEquationLaplacianTerm(); diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.hxx b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.hxx index cc22df66bb1..0ab5597ca80 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.hxx +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.hxx @@ -36,19 +36,6 @@ LevelSetEquationLaplacianTerm::InitializeParameters( this->SetUp(); } -template -void -LevelSetEquationLaplacianTerm::Initialize(const LevelSetInputIndexType &) -{} - -template -void -LevelSetEquationLaplacianTerm::UpdatePixel( - const LevelSetInputIndexType & itkNotUsed(iP), - const LevelSetOutputRealType & itkNotUsed(oldValue), - const LevelSetOutputRealType & itkNotUsed(newValue)) -{} - template auto LevelSetEquationLaplacianTerm::LaplacianSpeed( diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.h index 67ca32067c0..5d5ae559bd4 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.h @@ -103,7 +103,8 @@ class ITK_TEMPLATE_EXPORT LevelSetEquationOverlapPenaltyTerm /** Initialize term parameters in the dense case by computing for each pixel location */ void - Initialize(const LevelSetInputIndexType & index) override; + Initialize(const LevelSetInputIndexType & itkNotUsed(index)) override + {} /** Compute the sum of Heaviside functions in the multi-levelset cases * except the current levelset */ @@ -112,9 +113,10 @@ class ITK_TEMPLATE_EXPORT LevelSetEquationOverlapPenaltyTerm /** Supply updates at pixels to keep the term parameters always updated */ void - UpdatePixel(const LevelSetInputIndexType & index, - const LevelSetOutputRealType & oldValue, - const LevelSetOutputRealType & newValue) override; + UpdatePixel(const LevelSetInputIndexType & itkNotUsed(index), + const LevelSetOutputRealType & itkNotUsed(oldValue), + const LevelSetOutputRealType & itkNotUsed(newValue)) override + {} protected: diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.hxx b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.hxx index fb8c12ceb24..3713143cd60 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.hxx +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.hxx @@ -32,14 +32,6 @@ LevelSetEquationOverlapPenaltyTerm::LevelSetEquation this->m_CacheImage = nullptr; } -template -void -LevelSetEquationOverlapPenaltyTerm::UpdatePixel( - const LevelSetInputIndexType & itkNotUsed(index), - const LevelSetOutputRealType & itkNotUsed(oldValue), - const LevelSetOutputRealType & itkNotUsed(newValue)) -{} - template void LevelSetEquationOverlapPenaltyTerm::InitializeParameters() @@ -48,12 +40,6 @@ LevelSetEquationOverlapPenaltyTerm::InitializeParame } -template -void -LevelSetEquationOverlapPenaltyTerm::Initialize( - const LevelSetInputIndexType & itkNotUsed(index)) -{} - template auto LevelSetEquationOverlapPenaltyTerm::Value(const LevelSetInputIndexType & index) diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.h index 4f754007e0d..f9120f00c40 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.h @@ -111,13 +111,15 @@ class ITK_TEMPLATE_EXPORT LevelSetEquationPropagationTerm : public LevelSetEquat /** \todo to be documented. */ void - Initialize(const LevelSetInputIndexType &) override; + Initialize(const LevelSetInputIndexType &) override + {} /** Supply updates at pixels to keep the term parameters always updated */ void - UpdatePixel(const LevelSetInputIndexType & iP, - const LevelSetOutputRealType & oldValue, - const LevelSetOutputRealType & newValue) override; + UpdatePixel(const LevelSetInputIndexType & itkNotUsed(iP), + const LevelSetOutputRealType & itkNotUsed(oldValue), + const LevelSetOutputRealType & itkNotUsed(newValue)) override + {} protected: LevelSetEquationPropagationTerm(); diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.hxx b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.hxx index 6741fea81e5..ebc93b77981 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.hxx +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.hxx @@ -48,20 +48,6 @@ LevelSetEquationPropagationTerm:: } } -template -void -LevelSetEquationPropagationTerm::Initialize( - const LevelSetInputIndexType &) -{} - -template -void -LevelSetEquationPropagationTerm::UpdatePixel( - const LevelSetInputIndexType & itkNotUsed(iP), - const LevelSetOutputRealType & itkNotUsed(oldValue), - const LevelSetOutputRealType & itkNotUsed(newValue)) -{} - template auto LevelSetEquationPropagationTerm::PropagationSpeed( diff --git a/Modules/Segmentation/Watersheds/include/itkWatershedBoundaryResolver.h b/Modules/Segmentation/Watersheds/include/itkWatershedBoundaryResolver.h index c2368b3b44e..a8106600fa1 100644 --- a/Modules/Segmentation/Watersheds/include/itkWatershedBoundaryResolver.h +++ b/Modules/Segmentation/Watersheds/include/itkWatershedBoundaryResolver.h @@ -154,7 +154,8 @@ class ITK_TEMPLATE_EXPORT BoundaryResolver : public ProcessObject unsigned short m_Face{ 0 }; void - GenerateOutputRequestedRegion(DataObject * output) override; + GenerateOutputRequestedRegion(DataObject * itkNotUsed(output)) override + {} }; } // end namespace watershed } // end namespace itk diff --git a/Modules/Segmentation/Watersheds/include/itkWatershedBoundaryResolver.hxx b/Modules/Segmentation/Watersheds/include/itkWatershedBoundaryResolver.hxx index 20451c7b906..356e63a47b1 100644 --- a/Modules/Segmentation/Watersheds/include/itkWatershedBoundaryResolver.hxx +++ b/Modules/Segmentation/Watersheds/include/itkWatershedBoundaryResolver.hxx @@ -89,11 +89,6 @@ BoundaryResolver::GenerateData() // ------------------------------------------------------------ // --------------------PIPELINE METHODS------------------------ // ------------------------------------------------------------ -template -void -BoundaryResolver::GenerateOutputRequestedRegion(DataObject *) -{} - template typename BoundaryResolver::DataObjectPointer BoundaryResolver::MakeOutput(DataObjectPointerArraySizeType) diff --git a/Modules/Segmentation/Watersheds/include/itkWatershedSegmentTreeGenerator.h b/Modules/Segmentation/Watersheds/include/itkWatershedSegmentTreeGenerator.h index df30cc4cdd0..5def73e8915 100644 --- a/Modules/Segmentation/Watersheds/include/itkWatershedSegmentTreeGenerator.h +++ b/Modules/Segmentation/Watersheds/include/itkWatershedSegmentTreeGenerator.h @@ -219,7 +219,8 @@ class ITK_TEMPLATE_EXPORT SegmentTreeGenerator : public ProcessObject /** Methods required by the itk pipeline */ void - GenerateOutputRequestedRegion(DataObject * output) override; + GenerateOutputRequestedRegion(DataObject * itkNotUsed(output)) override + {} void GenerateInputRequestedRegion() override; diff --git a/Modules/Segmentation/Watersheds/include/itkWatershedSegmentTreeGenerator.hxx b/Modules/Segmentation/Watersheds/include/itkWatershedSegmentTreeGenerator.hxx index eed1b58600f..6ce89e9ac7f 100644 --- a/Modules/Segmentation/Watersheds/include/itkWatershedSegmentTreeGenerator.hxx +++ b/Modules/Segmentation/Watersheds/include/itkWatershedSegmentTreeGenerator.hxx @@ -552,11 +552,6 @@ SegmentTreeGenerator::MergeSegments(SegmentTableTypePointer s eqT->Add(FROM, TO); } -template -void -SegmentTreeGenerator::GenerateOutputRequestedRegion(DataObject * itkNotUsed(output)) -{} - template void SegmentTreeGenerator::GenerateInputRequestedRegion()