diff --git a/Modules/Core/Transform/include/itkBSplineTransformInitializer.hxx b/Modules/Core/Transform/include/itkBSplineTransformInitializer.hxx index 0ddbcef2ac1..daa5b233fd7 100644 --- a/Modules/Core/Transform/include/itkBSplineTransformInitializer.hxx +++ b/Modules/Core/Transform/include/itkBSplineTransformInitializer.hxx @@ -86,7 +86,6 @@ BSplineTransformInitializer::InitializeTransform() const using PointSetType = PointSet; auto cornerPoints = PointSetType::New(); - cornerPoints->Initialize(); using PointType = typename PointSetType::PointType; using PointIdentifier = typename PointSetType::PointIdentifier; diff --git a/Modules/Filtering/BiasCorrection/include/itkN4BiasFieldCorrectionImageFilter.hxx b/Modules/Filtering/BiasCorrection/include/itkN4BiasFieldCorrectionImageFilter.hxx index 2841a76b23b..f9532b0a9a7 100644 --- a/Modules/Filtering/BiasCorrection/include/itkN4BiasFieldCorrectionImageFilter.hxx +++ b/Modules/Filtering/BiasCorrection/include/itkN4BiasFieldCorrectionImageFilter.hxx @@ -499,14 +499,12 @@ N4BiasFieldCorrectionImageFilter::UpdateB const typename ImporterType::OutputImageType * parametricFieldEstimate = importer->GetOutput(); PointSetPointer fieldPoints = PointSetType::New(); - fieldPoints->Initialize(); - auto & pointSTLContainer = fieldPoints->GetPoints()->CastToSTLContainer(); + auto & pointSTLContainer = fieldPoints->GetPoints()->CastToSTLContainer(); pointSTLContainer.reserve(numberOfIncludedPixels); auto & pointDataSTLContainer = fieldPoints->GetPointData()->CastToSTLContainer(); pointDataSTLContainer.reserve(numberOfIncludedPixels); - auto weights = BSplineFilterType::WeightsContainerType::New(); - weights->Initialize(); + auto weights = BSplineFilterType::WeightsContainerType::New(); auto & weightSTLContainer = weights->CastToSTLContainer(); weightSTLContainer.reserve(numberOfIncludedPixels); diff --git a/Modules/Filtering/DisplacementField/include/itkDisplacementFieldToBSplineImageFilter.hxx b/Modules/Filtering/DisplacementField/include/itkDisplacementFieldToBSplineImageFilter.hxx index 895885b5297..f8ff6c0b07a 100644 --- a/Modules/Filtering/DisplacementField/include/itkDisplacementFieldToBSplineImageFilter.hxx +++ b/Modules/Filtering/DisplacementField/include/itkDisplacementFieldToBSplineImageFilter.hxx @@ -122,7 +122,6 @@ DisplacementFieldToBSplineImageFilter } auto fieldPoints = InputPointSetType::New(); - fieldPoints->Initialize(); auto weights = WeightsContainerType::New(); diff --git a/Modules/Filtering/FastMarching/include/itkFastMarchingImageToNodePairContainerAdaptor.hxx b/Modules/Filtering/FastMarching/include/itkFastMarchingImageToNodePairContainerAdaptor.hxx index af6888ce1f8..add335a6a8f 100644 --- a/Modules/Filtering/FastMarching/include/itkFastMarchingImageToNodePairContainerAdaptor.hxx +++ b/Modules/Filtering/FastMarching/include/itkFastMarchingImageToNodePairContainerAdaptor.hxx @@ -126,7 +126,6 @@ FastMarchingImageToNodePairContainerAdaptor::SetPointsF if (iLabel == Traits::Alive || iLabel == Traits::InitialTrial || iLabel == Traits::Forbidden) { NodePairContainerPointer nodes = NodePairContainerType::New(); - nodes->Initialize(); using IteratorType = ImageRegionConstIteratorWithIndex; IteratorType it(image, image->GetBufferedRegion()); diff --git a/Modules/Numerics/Optimizersv4/include/itkWindowConvergenceMonitoringFunction.hxx b/Modules/Numerics/Optimizersv4/include/itkWindowConvergenceMonitoringFunction.hxx index 9154fa8731c..313b3306f7b 100644 --- a/Modules/Numerics/Optimizersv4/include/itkWindowConvergenceMonitoringFunction.hxx +++ b/Modules/Numerics/Optimizersv4/include/itkWindowConvergenceMonitoringFunction.hxx @@ -94,7 +94,6 @@ WindowConvergenceMonitoringFunction::GetConvergenceValue() const -> Rea bspliner->SetNumberOfWorkUnits(1); auto energyProfileWindow = EnergyProfileType::New(); - energyProfileWindow->Initialize(); for (unsigned int n = 0; n < this->m_WindowSize; ++n) { diff --git a/Modules/Registration/Common/include/itkLandmarkBasedTransformInitializer.hxx b/Modules/Registration/Common/include/itkLandmarkBasedTransformInitializer.hxx index ff299d80452..01a338b032a 100644 --- a/Modules/Registration/Common/include/itkLandmarkBasedTransformInitializer.hxx +++ b/Modules/Registration/Common/include/itkLandmarkBasedTransformInitializer.hxx @@ -121,7 +121,6 @@ LandmarkBasedTransformInitializer::Intern // Set a pointSet from the input landmarks. auto pointSet = PointSetType::New(); - pointSet->Initialize(); PointsContainerConstIterator fixedIt = this->m_FixedLandmarks.begin(); PointsContainerConstIterator movingIt = this->m_MovingLandmarks.begin(); diff --git a/Modules/Registration/Metricsv4/include/itkLabeledPointSetToPointSetMetricv4.hxx b/Modules/Registration/Metricsv4/include/itkLabeledPointSetToPointSetMetricv4.hxx index 88493f78152..095aa7a15de 100644 --- a/Modules/Registration/Metricsv4/include/itkLabeledPointSetToPointSetMetricv4.hxx +++ b/Modules/Registration/Metricsv4/include/itkLabeledPointSetToPointSetMetricv4.hxx @@ -130,7 +130,6 @@ typename LabeledPointSetToPointSetMetricv4Initialize(); typename FixedPointSetType::PointIdentifier count{}; @@ -156,7 +155,6 @@ typename LabeledPointSetToPointSetMetricv4Initialize(); typename MovingPointSetType::PointIdentifier count{}; diff --git a/Modules/Registration/RegistrationMethodsv4/include/itkBSplineSyNImageRegistrationMethod.hxx b/Modules/Registration/RegistrationMethodsv4/include/itkBSplineSyNImageRegistrationMethod.hxx index aea04ae10f2..6fffd805c3c 100644 --- a/Modules/Registration/RegistrationMethodsv4/include/itkBSplineSyNImageRegistrationMethod.hxx +++ b/Modules/Registration/RegistrationMethodsv4/include/itkBSplineSyNImageRegistrationMethod.hxx @@ -279,7 +279,6 @@ typename BSplineSyNImageRegistrationMethodInitialize(); if (fixedPointSets[0]->GetNumberOfPoints() > 0) { diff --git a/Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.hxx b/Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.hxx index 5681c2c7194..886a94ebf7b 100644 --- a/Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.hxx +++ b/Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.hxx @@ -938,7 +938,6 @@ ImageRegistrationMethodv4Initialize(); using SamplePointType = typename MetricSamplePointSetType::PointType; diff --git a/Modules/Registration/RegistrationMethodsv4/include/itkTimeVaryingBSplineVelocityFieldImageRegistrationMethod.hxx b/Modules/Registration/RegistrationMethodsv4/include/itkTimeVaryingBSplineVelocityFieldImageRegistrationMethod.hxx index 54664c8a84e..5aa8bc434d6 100644 --- a/Modules/Registration/RegistrationMethodsv4/include/itkTimeVaryingBSplineVelocityFieldImageRegistrationMethod.hxx +++ b/Modules/Registration/RegistrationMethodsv4/include/itkTimeVaryingBSplineVelocityFieldImageRegistrationMethod.hxx @@ -150,13 +150,10 @@ TimeVaryingBSplineVelocityFieldImageRegistrationMethodInitialize(); VelocityFieldPointSetPointer velocityFieldPointSet = VelocityFieldPointSetType::New(); - velocityFieldPointSet->Initialize(); auto velocityFieldWeights = WeightsContainerType::New(); - velocityFieldWeights->Initialize(); // Monitor the convergence using ConvergenceMonitoringType = itk::Function::WindowConvergenceMonitoringFunction; diff --git a/Modules/Segmentation/Classifiers/include/itkBayesianClassifierInitializationImageFilter.hxx b/Modules/Segmentation/Classifiers/include/itkBayesianClassifierInitializationImageFilter.hxx index 8454a30e6c0..3601f2c1261 100644 --- a/Modules/Segmentation/Classifiers/include/itkBayesianClassifierInitializationImageFilter.hxx +++ b/Modules/Segmentation/Classifiers/include/itkBayesianClassifierInitializationImageFilter.hxx @@ -181,7 +181,6 @@ BayesianClassifierInitializationImageFilterReserve(m_NumberOfClasses); m_MembershipFunctionContainer = MembershipFunctionContainerType::New(); - m_MembershipFunctionContainer->Initialize(); // Clear elements for (unsigned int i = 0; i < m_NumberOfClasses; ++i) { meanEstimatorsContainer->InsertElement(i, new typename GaussianMembershipFunctionType::MeanVectorType(1));