-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelastixParams_affine.txt
54 lines (41 loc) · 2.06 KB
/
elastixParams_affine.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
(FixedImageDimension 3)
(MovingImageDimension 3)
(Registration "MultiMetricMultiResolutionRegistration")
(FixedImagePyramid "FixedRecursiveImagePyramid")
(MovingImagePyramid "MovingRecursiveImagePyramid")
(Optimizer "AdaptiveStochasticGradientDescent")
(ASGDParameterEstimationMethod "DisplacementDistribution")
(NumberOfSpatialSamples 2000)
(CheckNumberOfSamples "true")
(RequiredRatioOfValidSamples 0.05)
(MaximumNumberOfSamplingAttempts 3)
(NewSamplesEveryIteration "true")
(ImageSampler "RandomCoordinate")
(Transform "AffineTransform")
(AutomaticTransformInitialization "true")
(AutomaticTransformInitializationMethod "CenterOfGravity")
(AutomaticScalesEstimation "true")
(HowToCombineTransforms "Compose")
(Interpolator "LinearInterpolator")
//(Interpolator "BSplineInterpolator")
//(BSplineInterpolationOrder 1)
(Metric "AdvancedNormalizedCorrelation") //This line can be modified by run_elastix. Do not change
//(Metric1Use "true" "true" "true" "true") //This line can be modified by run_elastix. Do not change, except as instructed below
//If your corresponding points are placed accurately, using them for the whole
//alignment is a good idea, so have all "true"s in the line above. However,
//accurately placing correspondence points in 3D stacks is hard, so if you
//want your points to guide the alignment into roughly the right spot but then
//let the image correlations drive the final alignment, the line above should
//start with one or two "true"s but then end with a few "false"s.
(NumberOfResolutions 4)
(MaximumNumberOfIterations 3000)
//Output
(Resampler "DefaultResampler")
(ResampleInterpolator "FinalBSplineInterpolator")
(FinalBSplineInterpolationOrder 3)
(DefaultPixelValue 0)
(ResultImagePixelType "float")
(ResultImageFormat "nrrd")
(CompressResultImage "true")
//(WriteResultImageAfterEachResolution "true" "false" "false" "false" "false" "false" "false" "false" "false")
(WriteResultImage "true") //This is the default, but this line can be changed by run_elastix's -p option, so don't remove this line