Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/ITK_Example02_CustomOrMultipleParameterMaps.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
" )"
]
Expand Down
14 changes: 7 additions & 7 deletions examples/exampleoutput/Parameters.0.txt
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
20 changes: 10 additions & 10 deletions examples/exampleoutput/Parameters.1.txt
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
16 changes: 8 additions & 8 deletions examples/exampleoutput/Parameters.2.txt
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
14 changes: 7 additions & 7 deletions examples/exampleoutput/Parameters.3.txt
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
14 changes: 7 additions & 7 deletions examples/exampleoutput/parameters_custom.txt
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
Loading