diff --git a/examples/ITK_Example02_CustomOrMultipleParameterMaps.ipynb b/examples/ITK_Example02_CustomOrMultipleParameterMaps.ipynb index 1550df40..5f929392 100644 --- a/examples/ITK_Example02_CustomOrMultipleParameterMaps.ipynb +++ b/examples/ITK_Example02_CustomOrMultipleParameterMaps.ipynb @@ -228,14 +228,14 @@ "outputs": [], "source": [ "# Save custom parameter map\n", - "parameter_object.WriteParameterFile(\n", + "itk.ParameterObject.WriteParameterFile(\n", " parameter_map_custom, \"exampleoutput/parameters_custom.txt\"\n", ")\n", "\n", "# Or serialize each parameter map to a file.\n", "for index in range(parameter_object.GetNumberOfParameterMaps()):\n", " parameter_map = parameter_object.GetParameterMap(index)\n", - " parameter_object.WriteParameterFile(\n", + " itk.ParameterObject.WriteParameterFile(\n", " parameter_map, \"exampleoutput/Parameters.{0}.txt\".format(index)\n", " )" ] diff --git a/examples/exampleoutput/Parameters.0.txt b/examples/exampleoutput/Parameters.0.txt index 12aa8a5d..95010e93 100644 --- a/examples/exampleoutput/Parameters.0.txt +++ b/examples/exampleoutput/Parameters.0.txt @@ -1,19 +1,19 @@ (AutomaticParameterEstimation "true") (AutomaticScalesEstimation "true") (CheckNumberOfSamples "true") -(DefaultPixelValue 0.000000) -(FinalBSplineInterpolationOrder 3.000000) +(DefaultPixelValue 0) +(FinalBSplineInterpolationOrder 3) (FixedImagePyramid "FixedSmoothingImagePyramid") (ImageSampler "RandomCoordinate") (Interpolator "LinearInterpolator") -(MaximumNumberOfIterations 256.000000) -(MaximumNumberOfSamplingAttempts 8.000000) +(MaximumNumberOfIterations 256) +(MaximumNumberOfSamplingAttempts 8) (Metric "AdvancedMattesMutualInformation") (MovingImagePyramid "MovingSmoothingImagePyramid") (NewSamplesEveryIteration "true") -(NumberOfResolutions 3.000000) -(NumberOfSamplesForExactGradient 4096.000000) -(NumberOfSpatialSamples 2048.000000) +(NumberOfResolutions 3) +(NumberOfSamplesForExactGradient 4096) +(NumberOfSpatialSamples 2048) (Optimizer "AdaptiveStochasticGradientDescent") (Registration "MultiResolutionRegistration") (ResampleInterpolator "FinalBSplineInterpolator") diff --git a/examples/exampleoutput/Parameters.1.txt b/examples/exampleoutput/Parameters.1.txt index 9a6ba71b..b12e5574 100644 --- a/examples/exampleoutput/Parameters.1.txt +++ b/examples/exampleoutput/Parameters.1.txt @@ -1,22 +1,22 @@ (AutomaticParameterEstimation "true") (CheckNumberOfSamples "true") -(DefaultPixelValue 0.000000) -(FinalBSplineInterpolationOrder 3.000000) +(DefaultPixelValue 0) +(FinalBSplineInterpolationOrder 3) (FinalGridSpacingInPhysicalUnits 20.000000) (FixedImagePyramid "FixedSmoothingImagePyramid") -(GridSpacingSchedule 1.988100 1.410000 1.000000) +(GridSpacingSchedule 2 1.4142135623730951 1) (ImageSampler "RandomCoordinate") (Interpolator "LinearInterpolator") -(MaximumNumberOfIterations 256.000000) -(MaximumNumberOfSamplingAttempts 8.000000) +(MaximumNumberOfIterations 256) +(MaximumNumberOfSamplingAttempts 8) (Metric "AdvancedMattesMutualInformation" "TransformBendingEnergyPenalty") -(Metric0Weight 1.000000) -(Metric1Weight 1.000000) +(Metric0Weight 1.0) +(Metric1Weight 1.0) (MovingImagePyramid "MovingSmoothingImagePyramid") (NewSamplesEveryIteration "true") -(NumberOfResolutions 3.000000) -(NumberOfSamplesForExactGradient 4096.000000) -(NumberOfSpatialSamples 2048.000000) +(NumberOfResolutions 3) +(NumberOfSamplesForExactGradient 4096) +(NumberOfSpatialSamples 2048) (Optimizer "AdaptiveStochasticGradientDescent") (Registration "MultiMetricMultiResolutionRegistration") (ResampleInterpolator "FinalBSplineInterpolator") diff --git a/examples/exampleoutput/Parameters.2.txt b/examples/exampleoutput/Parameters.2.txt index 99d67ab1..bfc99e1a 100644 --- a/examples/exampleoutput/Parameters.2.txt +++ b/examples/exampleoutput/Parameters.2.txt @@ -1,21 +1,21 @@ -(BSplineInterpolationOrder 1.000000) -(DefaultPixelValue 0.000000) +(BSplineInterpolationOrder 1) +(DefaultPixelValue 0) (ErodeMask "false") -(FinalBSplineInterpolationOrder 3.000000) -(FinalGridSpacingInPhysicalUnits 16.000000) +(FinalBSplineInterpolationOrder 3) +(FinalGridSpacingInPhysicalUnits 16) (FixedImagePyramid "FixedRecursiveImagePyramid") (FixedInternalImagePixelType "float") (HowToCombineTransforms "Compose") (ImageSampler "Random") (Interpolator "BSplineInterpolator") -(MaximumNumberOfIterations 500.000000) +(MaximumNumberOfIterations 500) (Metric "AdvancedMattesMutualInformation") (MovingImagePyramid "MovingRecursiveImagePyramid") (MovingInternalImagePixelType "float") (NewSamplesEveryIteration "true") -(NumberOfHistogramBins 32.000000) -(NumberOfResolutions 1.000000) -(NumberOfSpatialSamples 2048.000000) +(NumberOfHistogramBins 32) +(NumberOfResolutions 1) +(NumberOfSpatialSamples 2048) (Optimizer "AdaptiveStochasticGradientDescent") (Registration "MultiResolutionRegistration") (ResampleInterpolator "FinalBSplineInterpolator") diff --git a/examples/exampleoutput/Parameters.3.txt b/examples/exampleoutput/Parameters.3.txt index 837dc45d..20bb2b7d 100644 --- a/examples/exampleoutput/Parameters.3.txt +++ b/examples/exampleoutput/Parameters.3.txt @@ -1,19 +1,19 @@ (AutomaticParameterEstimation "true") (AutomaticScalesEstimation "true") (CheckNumberOfSamples "true") -(DefaultPixelValue 0.000000) -(FinalBSplineInterpolationOrder 3.000000) +(DefaultPixelValue 0) +(FinalBSplineInterpolationOrder 3) (FixedImagePyramid "FixedSmoothingImagePyramid") (ImageSampler "RandomCoordinate") (Interpolator "LinearInterpolator") -(MaximumNumberOfIterations 256.000000) -(MaximumNumberOfSamplingAttempts 8.000000) +(MaximumNumberOfIterations 256) +(MaximumNumberOfSamplingAttempts 8) (Metric "AdvancedMattesMutualInformation") (MovingImagePyramid "MovingSmoothingImagePyramid") (NewSamplesEveryIteration "true") -(NumberOfResolutions 4.000000) -(NumberOfSamplesForExactGradient 4096.000000) -(NumberOfSpatialSamples 2048.000000) +(NumberOfResolutions 4) +(NumberOfSamplesForExactGradient 4096) +(NumberOfSpatialSamples 2048) (Optimizer "AdaptiveStochasticGradientDescent") (Registration "MultiResolutionRegistration") (ResampleInterpolator "FinalBSplineInterpolator") diff --git a/examples/exampleoutput/parameters_custom.txt b/examples/exampleoutput/parameters_custom.txt index 438d6ecf..542b97be 100644 --- a/examples/exampleoutput/parameters_custom.txt +++ b/examples/exampleoutput/parameters_custom.txt @@ -1,19 +1,19 @@ (AutomaticParameterEstimation "true") (AutomaticScalesEstimation "true") (CheckNumberOfSamples "true") -(DefaultPixelValue 0.000000) -(FinalBSplineInterpolationOrder 3.000000) +(DefaultPixelValue 0) +(FinalBSplineInterpolationOrder 3) (FixedImagePyramid "FixedSmoothingImagePyramid") (ImageSampler "RandomCoordinate") (Interpolator "LinearInterpolator") -(MaximumNumberOfIterations 256.000000) -(MaximumNumberOfSamplingAttempts 8.000000) +(MaximumNumberOfIterations 256) +(MaximumNumberOfSamplingAttempts 8) (Metric "AdvancedMattesMutualInformation") (MovingImagePyramid "MovingSmoothingImagePyramid") (NewSamplesEveryIteration "true") -(NumberOfResolutions 4.000000) -(NumberOfSamplesForExactGradient 4096.000000) -(NumberOfSpatialSamples 2048.000000) +(NumberOfResolutions 4) +(NumberOfSamplesForExactGradient 4096) +(NumberOfSpatialSamples 2048) (Optimizer "AdaptiveStochasticGradientDescent") (Registration "MultiResolutionRegistration") (ResampleInterpolator "FinalBSplineInterpolator")