From a39bc1c5900580b594ac2b355ab32f30c3e78535 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Wed, 29 Jan 2025 16:08:57 +0100 Subject: [PATCH 1/2] STYLE: Default default-constructor of `PyImageFilter` Found by regular expression `::.+\(\)\r\n{}` in "itk*.hxx" files Suggested by Denis Shamonin. --- Modules/Core/Common/include/itkPyImageFilter.h | 2 +- Modules/Core/Common/include/itkPyImageFilter.hxx | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Modules/Core/Common/include/itkPyImageFilter.h b/Modules/Core/Common/include/itkPyImageFilter.h index 9b6401078e7..9d8acb77e61 100644 --- a/Modules/Core/Common/include/itkPyImageFilter.h +++ b/Modules/Core/Common/include/itkPyImageFilter.h @@ -102,7 +102,7 @@ class ITK_TEMPLATE_EXPORT PyImageFilter : public ImageToImageFilter -PyImageFilter::PyImageFilter() -{} - template PyImageFilter::~PyImageFilter() { From b94770d8746133a441df1796e3d1628c6935adfc Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Wed, 29 Jan 2025 16:02:06 +0100 Subject: [PATCH 2/2] STYLE: Move empty member functions with empty param list from .hxx to .h Moved the member function definitions of member functions that have an empty parameter list and an empty member function definition from their "itk*.hxx" file to the corresponding "itk*.h" file, and into their class definition. Found by regular expression `::.+\(\)\r\n{}` in "itk*.hxx" files. Suggested by Denis Shamonin. --- Modules/Core/Common/include/itkMapContainer.h | 3 ++- Modules/Core/Common/include/itkMapContainer.hxx | 10 ---------- Modules/Core/Common/include/itkVectorContainer.h | 3 ++- .../Core/Common/include/itkVectorContainer.hxx | 5 ----- Modules/Core/Mesh/include/itkImageToMeshFilter.h | 5 +++-- .../Core/Mesh/include/itkImageToMeshFilter.hxx | 9 --------- .../include/itkPatchBasedDenoisingImageFilter.h | 3 ++- .../include/itkPatchBasedDenoisingImageFilter.hxx | 5 ----- Modules/Numerics/FEM/include/itkFEMSolver.h | 3 ++- Modules/Numerics/FEM/include/itkFEMSolver.hxx | 5 ----- .../include/itkNarrowBandImageFilterBase.h | 3 ++- .../include/itkNarrowBandImageFilterBase.hxx | 5 ----- .../itkBinaryMaskToNarrowBandPointSetFilter.h | 3 ++- .../itkBinaryMaskToNarrowBandPointSetFilter.hxx | 8 -------- .../include/itkLevelSetDomainPartitionMesh.h | 3 ++- .../include/itkLevelSetDomainPartitionMesh.hxx | 5 ----- .../include/itkLevelSetEquationAdvectionTerm.h | 3 ++- .../include/itkLevelSetEquationAdvectionTerm.hxx | 5 ----- .../include/itkLevelSetEquationBinaryMaskTerm.h | 3 ++- .../include/itkLevelSetEquationBinaryMaskTerm.hxx | 5 ----- .../include/itkLevelSetEquationCurvatureTerm.h | 3 ++- .../include/itkLevelSetEquationCurvatureTerm.hxx | 5 ----- .../include/itkLevelSetEquationLaplacianTerm.h | 3 ++- .../include/itkLevelSetEquationLaplacianTerm.hxx | 5 ----- .../itkLevelSetEquationOverlapPenaltyTerm.h | 3 ++- .../itkLevelSetEquationOverlapPenaltyTerm.hxx | 5 ----- .../include/itkLevelSetEquationPropagationTerm.h | 3 ++- .../itkLevelSetEquationPropagationTerm.hxx | 5 ----- .../include/itkLevelSetEvolutionBase.h | 9 ++++++--- .../include/itkLevelSetEvolutionBase.hxx | 15 --------------- 30 files changed, 35 insertions(+), 115 deletions(-) diff --git a/Modules/Core/Common/include/itkMapContainer.h b/Modules/Core/Common/include/itkMapContainer.h index 956087a6b43..abb66e2545d 100644 --- a/Modules/Core/Common/include/itkMapContainer.h +++ b/Modules/Core/Common/include/itkMapContainer.h @@ -461,7 +461,8 @@ class ITK_TEMPLATE_EXPORT MapContainer * memory usage. */ void - Squeeze(); + Squeeze() + {} /** * Tell the container to release any memory it may have allocated and diff --git a/Modules/Core/Common/include/itkMapContainer.hxx b/Modules/Core/Common/include/itkMapContainer.hxx index 1792e7555d8..e527e70e82e 100644 --- a/Modules/Core/Common/include/itkMapContainer.hxx +++ b/Modules/Core/Common/include/itkMapContainer.hxx @@ -226,16 +226,6 @@ MapContainer::Reserve(ElementIdentifier sz) } } -/** - * Tell the container to try to minimize its memory usage for storage of - * the current number of elements. This is NOT guaranteed to decrease - * memory usage. - */ -template -void -MapContainer::Squeeze() -{} - /** * Tell the container to release any memory it may have allocated and * return itself to its initial state. diff --git a/Modules/Core/Common/include/itkVectorContainer.h b/Modules/Core/Common/include/itkVectorContainer.h index 9ee59857bde..e5a8f96ee27 100644 --- a/Modules/Core/Common/include/itkVectorContainer.h +++ b/Modules/Core/Common/include/itkVectorContainer.h @@ -549,7 +549,8 @@ class ITK_TEMPLATE_EXPORT VectorContainer * with other containers in the toolkit. */ void - Squeeze(); + Squeeze() + {} /** * Clear the elements. The final size will be zero. diff --git a/Modules/Core/Common/include/itkVectorContainer.hxx b/Modules/Core/Common/include/itkVectorContainer.hxx index a8fc5962093..570c47ef006 100644 --- a/Modules/Core/Common/include/itkVectorContainer.hxx +++ b/Modules/Core/Common/include/itkVectorContainer.hxx @@ -178,11 +178,6 @@ VectorContainer::Reserve(ElementIdentifier sz) { this->CreateIndex(sz - 1); } - -template -void -VectorContainer::Squeeze() -{} } // namespace itk::detail #endif diff --git a/Modules/Core/Mesh/include/itkImageToMeshFilter.h b/Modules/Core/Mesh/include/itkImageToMeshFilter.h index fb06d248d98..cda99ff5b21 100644 --- a/Modules/Core/Mesh/include/itkImageToMeshFilter.h +++ b/Modules/Core/Mesh/include/itkImageToMeshFilter.h @@ -87,9 +87,10 @@ class ITK_TEMPLATE_EXPORT ImageToMeshFilter : public MeshSource OutputMeshType * GetOutput(); - /** Prepare the output */ + /** Prepare the output. This is a void implementation to prevent the ProcessObject version to be called. */ void - GenerateOutputInformation() override; + GenerateOutputInformation() override + {} protected: ImageToMeshFilter(); diff --git a/Modules/Core/Mesh/include/itkImageToMeshFilter.hxx b/Modules/Core/Mesh/include/itkImageToMeshFilter.hxx index 00d72c3038c..467299a9b9e 100644 --- a/Modules/Core/Mesh/include/itkImageToMeshFilter.hxx +++ b/Modules/Core/Mesh/include/itkImageToMeshFilter.hxx @@ -78,15 +78,6 @@ ImageToMeshFilter::GetOutput() -> OutputMeshType * return dynamic_cast(this->ProcessObject::GetOutput(0)); } -/** - * copy information from first input to all outputs - * This is a void implementation to prevent the - * ProcessObject version to be called - */ -template -void -ImageToMeshFilter::GenerateOutputInformation() -{} } // end namespace itk #endif diff --git a/Modules/Filtering/Denoising/include/itkPatchBasedDenoisingImageFilter.h b/Modules/Filtering/Denoising/include/itkPatchBasedDenoisingImageFilter.h index 2423ba0092b..f3343105cad 100644 --- a/Modules/Filtering/Denoising/include/itkPatchBasedDenoisingImageFilter.h +++ b/Modules/Filtering/Denoising/include/itkPatchBasedDenoisingImageFilter.h @@ -431,7 +431,8 @@ class ITK_TEMPLATE_EXPORT PatchBasedDenoisingImageFilter ThreadedApplyUpdate(const InputImageRegionType & regionToProcess, const int itkNotUsed(threadId)); void - PostProcessOutput() override; + PostProcessOutput() override + {} virtual void SetThreadData(int threadId, const ThreadDataStruct & data); diff --git a/Modules/Filtering/Denoising/include/itkPatchBasedDenoisingImageFilter.hxx b/Modules/Filtering/Denoising/include/itkPatchBasedDenoisingImageFilter.hxx index 902ffaf61ff..64ad94dbfdf 100644 --- a/Modules/Filtering/Denoising/include/itkPatchBasedDenoisingImageFilter.hxx +++ b/Modules/Filtering/Denoising/include/itkPatchBasedDenoisingImageFilter.hxx @@ -2332,11 +2332,6 @@ PatchBasedDenoisingImageFilter::ComputeGradientJointE return gradientJointEntropy; } -template -void -PatchBasedDenoisingImageFilter::PostProcessOutput() -{} - template void PatchBasedDenoisingImageFilter::PrintSelf(std::ostream & os, Indent indent) const diff --git a/Modules/Numerics/FEM/include/itkFEMSolver.h b/Modules/Numerics/FEM/include/itkFEMSolver.h index 5ffa36415a7..9b1b6599fe1 100644 --- a/Modules/Numerics/FEM/include/itkFEMSolver.h +++ b/Modules/Numerics/FEM/include/itkFEMSolver.h @@ -382,7 +382,8 @@ class ITK_TEMPLATE_EXPORT Solver : public ProcessObject /** Decompose matrix using svd, qr, etc. if needed. */ void - DecomposeK(); + DecomposeK() + {} /** Solve for the displacement vector u. May be overridden in derived * classes. */ diff --git a/Modules/Numerics/FEM/include/itkFEMSolver.hxx b/Modules/Numerics/FEM/include/itkFEMSolver.hxx index 295e78970f9..fd30babeb04 100644 --- a/Modules/Numerics/FEM/include/itkFEMSolver.hxx +++ b/Modules/Numerics/FEM/include/itkFEMSolver.hxx @@ -517,11 +517,6 @@ Solver::AssembleF(int dim) } } -template -void -Solver::DecomposeK() -{} - template void Solver::RunSolver() diff --git a/Modules/Numerics/NarrowBand/include/itkNarrowBandImageFilterBase.h b/Modules/Numerics/NarrowBand/include/itkNarrowBandImageFilterBase.h index 4594fe05615..86292d711ba 100644 --- a/Modules/Numerics/NarrowBand/include/itkNarrowBandImageFilterBase.h +++ b/Modules/Numerics/NarrowBand/include/itkNarrowBandImageFilterBase.h @@ -271,7 +271,8 @@ class ITK_TEMPLATE_EXPORT NarrowBandImageFilterBase : public FiniteDifferenceIma /** This method allows deallocation of data and further post processing */ void - PostProcessOutput() override; + PostProcessOutput() override + {} /* This function clears all pixels from the narrow band */ void diff --git a/Modules/Numerics/NarrowBand/include/itkNarrowBandImageFilterBase.hxx b/Modules/Numerics/NarrowBand/include/itkNarrowBandImageFilterBase.hxx index 2f3b7c943d8..21175f05b34 100644 --- a/Modules/Numerics/NarrowBand/include/itkNarrowBandImageFilterBase.hxx +++ b/Modules/Numerics/NarrowBand/include/itkNarrowBandImageFilterBase.hxx @@ -281,11 +281,6 @@ NarrowBandImageFilterBase::ThreadedCalculateChange(co return timeStep; } -template -void -NarrowBandImageFilterBase::PostProcessOutput() -{} - template void NarrowBandImageFilterBase::GetSplitRegion(const size_t & i, ThreadRegionType & splitRegion) diff --git a/Modules/Segmentation/LevelSets/include/itkBinaryMaskToNarrowBandPointSetFilter.h b/Modules/Segmentation/LevelSets/include/itkBinaryMaskToNarrowBandPointSetFilter.h index a1933ff15c9..0c745ae1635 100644 --- a/Modules/Segmentation/LevelSets/include/itkBinaryMaskToNarrowBandPointSetFilter.h +++ b/Modules/Segmentation/LevelSets/include/itkBinaryMaskToNarrowBandPointSetFilter.h @@ -141,7 +141,8 @@ class ITK_TEMPLATE_EXPORT BinaryMaskToNarrowBandPointSetFilter : public ImageToM /** Some type alias associated with the output mesh. */ void - GenerateOutputInformation() override; + GenerateOutputInformation() override + {} private: DistanceFilterPointer m_DistanceFilter{}; diff --git a/Modules/Segmentation/LevelSets/include/itkBinaryMaskToNarrowBandPointSetFilter.hxx b/Modules/Segmentation/LevelSets/include/itkBinaryMaskToNarrowBandPointSetFilter.hxx index 9f639e28cf8..508a913374e 100644 --- a/Modules/Segmentation/LevelSets/include/itkBinaryMaskToNarrowBandPointSetFilter.hxx +++ b/Modules/Segmentation/LevelSets/include/itkBinaryMaskToNarrowBandPointSetFilter.hxx @@ -62,14 +62,6 @@ BinaryMaskToNarrowBandPointSetFilter::PrintSelf(std::o os << indent << "BandWidth: " << m_BandWidth << std::endl; } -/** - * - */ -template -void -BinaryMaskToNarrowBandPointSetFilter::GenerateOutputInformation() -{} - /** * */ diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionMesh.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionMesh.h index f3220fd7f06..03ec0466a69 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionMesh.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionMesh.h @@ -71,7 +71,8 @@ class ITK_TEMPLATE_EXPORT LevelSetDomainPartitionMesh : public LevelSetDomainPar /** Allocate a list mesh with each node being a list of overlapping * level set support at that pixel */ void - AllocateListDomain(); + AllocateListDomain() + {} private: MeshPointer m_Mesh{}; diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionMesh.hxx b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionMesh.hxx index 96d36dd430c..00140ffb9a2 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionMesh.hxx +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetDomainPartitionMesh.hxx @@ -48,11 +48,6 @@ LevelSetDomainPartitionMesh::PopulateListDomain() } } -template -void -LevelSetDomainPartitionMesh::AllocateListDomain() -{} - } // end namespace itk #endif diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.h index e183b966c3c..5cded8a0904 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.h @@ -109,7 +109,8 @@ class ITK_TEMPLATE_EXPORT LevelSetEquationAdvectionTerm : public LevelSetEquatio /** \todo to be documented. */ void - Update() override; + Update() override + {} /** Initialize the parameters in the terms prior to an iteration */ void diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.hxx b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.hxx index ba76c23b646..4904b9753a3 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.hxx +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationAdvectionTerm.hxx @@ -123,11 +123,6 @@ void LevelSetEquationAdvectionTerm::Initialize(const LevelSetInputIndexType &) {} -template -void -LevelSetEquationAdvectionTerm::Update() -{} - template void LevelSetEquationAdvectionTerm::UpdatePixel( diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.h index b07b935d185..5d89f5ebbc1 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.h @@ -85,7 +85,8 @@ class ITK_TEMPLATE_EXPORT LevelSetEquationBinaryMaskTerm : public LevelSetEquati /** Update the term parameter values at end of iteration */ void - Update() override; + Update() override + {} /** Initialize parameters in the terms prior to an iteration */ void diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.hxx b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.hxx index 5a1d0671933..7ce57591ca2 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.hxx +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationBinaryMaskTerm.hxx @@ -30,11 +30,6 @@ LevelSetEquationBinaryMaskTerm::LevelSetEquationBina this->m_RequiredData.insert("Value"); } -template -void -LevelSetEquationBinaryMaskTerm::Update() -{} - template void LevelSetEquationBinaryMaskTerm::InitializeParameters() diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.h index f314d88dad4..68ca7a7e4bf 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.h @@ -108,7 +108,8 @@ class ITK_TEMPLATE_EXPORT LevelSetEquationCurvatureTerm : public LevelSetEquatio /** Update the term parameter values at end of iteration */ void - Update() override; + Update() override + {} /** Initialize the parameters in the terms prior to an iteration */ void diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.hxx b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.hxx index e4a2baa0a65..66aca56d6af 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.hxx +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationCurvatureTerm.hxx @@ -81,11 +81,6 @@ void LevelSetEquationCurvatureTerm::Initialize(const LevelSetInputIndexType &) {} -template -void -LevelSetEquationCurvatureTerm::Update() -{} - template void LevelSetEquationCurvatureTerm::UpdatePixel( diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.h index cd1fb5fb51d..80c7527bc84 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.h @@ -92,7 +92,8 @@ class ITK_TEMPLATE_EXPORT LevelSetEquationLaplacianTerm : public LevelSetEquatio /** Update the term parameter values at end of iteration */ void - Update() override; + Update() override + {} /** Initialize the parameters in the terms prior to an iteration */ void diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.hxx b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.hxx index 787a967536e..cc22df66bb1 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.hxx +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationLaplacianTerm.hxx @@ -41,11 +41,6 @@ void LevelSetEquationLaplacianTerm::Initialize(const LevelSetInputIndexType &) {} -template -void -LevelSetEquationLaplacianTerm::Update() -{} - template void LevelSetEquationLaplacianTerm::UpdatePixel( diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.h index 0f023d9c152..67ca32067c0 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.h @@ -94,7 +94,8 @@ class ITK_TEMPLATE_EXPORT LevelSetEquationOverlapPenaltyTerm /** Update the term parameter values at end of iteration */ void - Update() override; + Update() override + {} /** Initialize parameters in the terms prior to an iteration */ void diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.hxx b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.hxx index 53d7e0a3f24..fb8c12ceb24 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.hxx +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationOverlapPenaltyTerm.hxx @@ -32,11 +32,6 @@ LevelSetEquationOverlapPenaltyTerm::LevelSetEquation this->m_CacheImage = nullptr; } -template -void -LevelSetEquationOverlapPenaltyTerm::Update() -{} - template void LevelSetEquationOverlapPenaltyTerm::UpdatePixel( diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.h index a17140305b4..4f754007e0d 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.h @@ -102,7 +102,8 @@ class ITK_TEMPLATE_EXPORT LevelSetEquationPropagationTerm : public LevelSetEquat /** \todo to be documented. */ void - Update() override; + Update() override + {} /** Initialize the parameters in the terms prior to an iteration */ void diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.hxx b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.hxx index ec23414fc99..6741fea81e5 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.hxx +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEquationPropagationTerm.hxx @@ -54,11 +54,6 @@ LevelSetEquationPropagationTerm:: const LevelSetInputIndexType &) {} -template -void -LevelSetEquationPropagationTerm::Update() -{} - template void LevelSetEquationPropagationTerm::UpdatePixel( diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEvolutionBase.h b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEvolutionBase.h index f472b0a41f1..66f303be02a 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEvolutionBase.h +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEvolutionBase.h @@ -140,16 +140,19 @@ class ITK_TEMPLATE_EXPORT LevelSetEvolutionBase : public Object /** Initialize the update buffers for all level sets to hold the updates of * equations in each iteration. No-op by default. */ virtual void - AllocateUpdateBuffer(); + AllocateUpdateBuffer() + {} /** Computer the update at each pixel and store in the update buffer. No-op by * default. */ virtual void - ComputeIteration(); + ComputeIteration() + {} /** Compute the time-step for the next iteration. No-op by default. */ virtual void - ComputeTimeStepForNextIteration(); + ComputeTimeStepForNextIteration() + {} virtual void UpdateLevelSets() = 0; diff --git a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEvolutionBase.hxx b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEvolutionBase.hxx index 35ccd633cc2..6485a1e4d22 100644 --- a/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEvolutionBase.hxx +++ b/Modules/Segmentation/LevelSetsv4/include/itkLevelSetEvolutionBase.hxx @@ -236,20 +236,5 @@ LevelSetEvolutionBase::Evolve() } } -template -void -LevelSetEvolutionBase::AllocateUpdateBuffer() -{} - -template -void -LevelSetEvolutionBase::ComputeIteration() -{} - -template -void -LevelSetEvolutionBase::ComputeTimeStepForNextIteration() -{} - } // namespace itk #endif // itkLevelSetEvolutionBase_hxx