-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathSyMMN.pl
executable file
·37 lines (27 loc) · 1.42 KB
/
SyMMN.pl
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
#!/usr/bin/perl
$utilityDirectory = "/mnt/data1/tustison/Utilities/bin/3D/float/";
$imageDirectory = "/mnt/data1/tustison/Projects/Spiromics/DrewCT/downsampled/";
$fixedImagePrefix = "InspB41f";
$movingImagePrefix = "ExpB41f";
$outputDirectory = "/mnt/data1/tustison/Projects/Spiromics/DrewCT/Results/";
$algorithm = "/mnt/data2/Avants/bin/3D/mstart3dt4_mask";
@args = ( $algorithm, $imageDirectory . $fixedImagePrefix . "_downsampled.nii.gz",
$imageDirectory . $movingImagePrefix . "_downsampled.nii.gz",
$imageDirectory . $movingImagePrefix . "to" . $fixedImagePrefix . "_affine.nii.gz",
$imageDirectory . $movingImagePrefix . "to" . $fixedImagePrefix . "_affine.txt",
0,
1000,
16,
9000
);
#system( @args ) == 0 or die "system @args failed: $?";
$algorithm = "/mnt/data2/Avants/bin/3D/SyMMN";
$naming = "SyMMN" . $movingImagePrefix . "to" . $fixedImagePrefix;
@args = ( $algorithm, "-f", $imageDirectory . $fixedImagePrefix . "_downsampledx8.mha",
"-m", $imageDirectory . $movingImagePrefix . "_downsampledx8.mha",
"-c", 5,
"-n", 1,
"-i", "1",
"-o", $outputDirectory . $naming
);
system( @args ) == 0 or die "system @args failed: $?";