-
Notifications
You must be signed in to change notification settings - Fork 1
/
antsRegistrationCommand.sh
executable file
·33 lines (31 loc) · 1.15 KB
/
antsRegistrationCommand.sh
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
fixedPoints='data/chicken-4.nii.gz'
movingPoints='data/chicken-3.nii.gz'
outputDirectory='./'
outputPrefix=${outputDirectory}/pseChicken4xChicken3
s=0.1 # sampling rate
k=10 # k - neighborhood
antsRegistration -d 2 \
-o ${outputPrefix} \
-r [${fixedPoints},${movingPoints},1] \
-m PSE[${fixedPoints},${movingPoints},1,${s},1,20,$k] \
-t Affine[0.1] \
-c [50,0,10] \
-s 0 \
-f 1 \
-m PSE[${fixedPoints},${movingPoints},1,${s},1,10,$k] \
-t Affine[0.1] \
-c [40,0,10] \
-s 0 \
-f 1 \
-m PSE[${fixedPoints},${movingPoints},1,${s},1,5,$k] \
-t Affine[0.1] \
-c [20,0,10] \
-s 0 \
-f 1 \
-x [${fixedPoints}]
antsApplyTransforms -d 2 \
-o ${outputPrefix}Warped.nii.gz \
-i ${movingPoints} \
-r ${fixedPoints} \
-n NearestNeighbor \
-t ${outputPrefix}0GenericAffine.mat