1
Description: Make mricron works with Debian's FSL
3
Author: Michael Hanke <michael.hanke@gmail.com>
7
AStringList := TStringList.Create;
8
AProcess.CommandLine := lCmd;
10
- AProcess.Environment.Add(gBGImg.FSLDIR);
11
- AProcess.Environment.Add(gBGImg.FSLOUTPUTTYPE);
12
+ // On Debian FSLDIR is set outside mricron
13
+ //AProcess.Environment.Add(gBGImg.FSLDIR);
14
+ // and we must not set any environment variable to let the child process
15
+ // inherit the current environment settings
16
+ //AProcess.Environment.Add(gBGImg.FSLOUTPUTTYPE);
18
//AProcess.Environment.Add('FSLDIR=/usr/local/fsl');
19
//AProcess.Environment.Add('FSLOUTPUTTYPE=NIFTI_GZ');
24
- lCmd := extractfilepath(paramstr(0))+'bet';
26
- lCmd := lCmd+'.exe';
28
- if not PathExists (lCmd) then begin
29
- lCmd := '/usr/local/fsl/bin/bet_8UI';
30
- if not PathExists (lCmd) then begin
31
- lCmd := '/usr/local/fsl/bin/bet';
32
- if not PathExists (lCmd) then
35
- end; //no bet in home folder...
36
+ // On Debian we guarantee that bet is globally available if installed at all
38
+ //lCmd := extractfilepath(paramstr(0))+'bet';
40
+ //lCmd := lCmd+'.exe';
42
+ //if not PathExists (lCmd) then begin
43
+ // lCmd := '/usr/local/fsl/bin/bet_8UI';
44
+ // if not PathExists (lCmd) then begin
45
+ // lCmd := '/usr/local/fsl/bin/bet';
46
+ // if not PathExists (lCmd) then
49
+ //end; //no bet in home folder...
50
lCmd := lCmd+' "'+lInFile+'" "'+lOutFile +'" -f '+floattostr(lFrac);
51
BETForm.Memo1.Lines.Add(lCmd);