Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
film
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
film
Commits
51e05352
Commit
51e05352
authored
20 years ago
by
Mark Woolrich
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
59760c69
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
ContrastMgr.cc
+4
-3
4 additions, 3 deletions
ContrastMgr.cc
film_gls.cc
+1
-0
1 addition, 0 deletions
film_gls.cc
ftoz.cc
+4
-1
4 additions, 1 deletion
ftoz.cc
glimGls.cc
+6
-1
6 additions, 1 deletion
glimGls.cc
ttologp.cc
+3
-1
3 additions, 1 deletion
ttologp.cc
ttoz.cc
+6
-2
6 additions, 2 deletions
ttoz.cc
with
24 additions
and
8 deletions
ContrastMgr.cc
+
4
−
3
View file @
51e05352
...
...
@@ -211,7 +211,7 @@ namespace FILM {
VolumeInfo
tmpinfo
;
// Write out
t
stat:
// Write out
f
stat:
tmpinfo
=
sigmaSquareds
.
getInfo
();
tmpinfo
.
intent_code
=
NIFTI_INTENT_FTEST
;
tmpinfo
.
intent_p1
=
0.0
;
...
...
@@ -244,6 +244,7 @@ namespace FILM {
// Write out neffs:
tmpinfo
=
sigmaSquareds
.
getInfo
();
tmpinfo
.
intent_code
=
NIFTI_INTENT_NONE
;
neff
.
setInfo
(
tmpinfo
);
neff
.
setPreThresholdPositions
(
sigmaSquareds
.
getPreThresholdPositions
());
neff
.
unthreshold
();
...
...
@@ -251,7 +252,7 @@ namespace FILM {
// Write out cope:
tmpinfo
=
sigmaSquareds
.
getInfo
();
tmpinfo
.
intent_code
=
NIFTI_INTENT_
CORREL
;
tmpinfo
.
intent_code
=
NIFTI_INTENT_
ESTIMATE
;
tmpinfo
.
intent_p1
=
0.0
;
cb
.
setInfo
(
tmpinfo
);
cb
.
setPreThresholdPositions
(
sigmaSquareds
.
getPreThresholdPositions
());
...
...
@@ -260,7 +261,7 @@ namespace FILM {
// Write out varcope:
tmpinfo
=
sigmaSquareds
.
getInfo
();
tmpinfo
.
intent_code
=
NIFTI_INTENT_
CHISQ
;
tmpinfo
.
intent_code
=
NIFTI_INTENT_
ESTIMATE
;
tmpinfo
.
intent_p1
=
0.0
;
varcb
.
setInfo
(
tmpinfo
);
varcb
.
setPreThresholdPositions
(
sigmaSquareds
.
getPreThresholdPositions
());
...
...
This diff is collapsed.
Click to expand it.
film_gls.cc
+
1
−
0
View file @
51e05352
...
...
@@ -214,6 +214,7 @@ int main(int argc, char *argv[])
threshac
=
threshac
.
Rows
(
1
,
cutoff
);
VolumeInfo
volinfo
=
x
.
getInfo
();
volinfo
.
v
=
cutoff
;
volinfo
.
intent_code
=
NIFTI_INTENT_ESTIMATE
;
threshac
.
unthresholdSeries
(
volinfo
,
x
.
getPreThresholdPositions
());
threshac
.
writeAsFloat
(
logger
.
getDir
()
+
"/threshac1"
);
threshac
.
thresholdSeries
();
...
...
This diff is collapsed.
Click to expand it.
ftoz.cc
+
4
−
1
View file @
51e05352
...
...
@@ -129,7 +129,10 @@ int main(int argc,char *argv[])
Volume
zs
(
numTS
);
F2z
::
ComputeFStats
(
fs
,
globalopts
.
dof1
,
globalopts
.
dof2
,
zs
);
zs
.
setInfo
(
fs
.
getInfo
());
VolumeInfo
volinfo
=
fs
.
getInfo
();
volinfo
.
intent_code
=
NIFTI_INTENT_ZSCORE
;
volinfo
.
intent_p1
=
0.0
;
zs
.
setInfo
(
volinfo
);
zs
.
writeAsFloat
(
globalopts
.
zscoresfname
.
c_str
());
}
catch
(
Exception
p_excp
)
...
...
This diff is collapsed.
Click to expand it.
glimGls.cc
+
6
−
1
View file @
51e05352
...
...
@@ -47,16 +47,19 @@ namespace FILM {
SetCorrection
(
inv_xx
,
ind
);
}
void
GlimGls
::
Save
(
const
VolumeInfo
&
volinfo
,
const
ColumnVector
&
prethreshpos
)
void
GlimGls
::
Save
(
const
VolumeInfo
&
p
volinfo
,
const
ColumnVector
&
prethreshpos
)
{
// Need to save b, sigmaSquareds, corrections and dof
Log
&
logger
=
LogSingleton
::
getInstance
();
VolumeInfo
volinfo
=
pvolinfo
;
// b:
Volume
peVol
;
for
(
int
i
=
1
;
i
<=
numParams
;
i
++
)
{
peVol
=
b
.
Row
(
i
).
AsColumn
();
volinfo
.
intent_code
=
NIFTI_INTENT_ESTIMATE
;
peVol
.
setInfo
(
volinfo
);
peVol
.
setPreThresholdPositions
(
prethreshpos
);
peVol
.
unthreshold
();
...
...
@@ -70,6 +73,7 @@ namespace FILM {
}
// sigmaSquareds:
volinfo
.
intent_code
=
NIFTI_INTENT_ESTIMATE
;
sigmaSquareds
.
setInfo
(
volinfo
);
sigmaSquareds
.
setPreThresholdPositions
(
prethreshpos
);
sigmaSquareds
.
unthreshold
();
...
...
@@ -83,6 +87,7 @@ namespace FILM {
// corrections (are the pes correlation matrix (x.t()*x).i() reshapen to a vector):
VolumeInfo
newvolinfo
=
volinfo
;
newvolinfo
.
v
=
numParams
*
numParams
;
newvolinfo
.
intent_code
=
NIFTI_INTENT_NONE
;
corrections
.
setInfo
(
newvolinfo
);
corrections
.
setPreThresholdPositions
(
prethreshpos
);
corrections
.
unthresholdSeries
();
...
...
This diff is collapsed.
Click to expand it.
ttologp.cc
+
3
−
1
View file @
51e05352
...
...
@@ -132,7 +132,9 @@ int main(int argc,char *argv[])
Volume
ps
(
numTS
);
T2z
::
ComputePs
(
vars
,
cbs
,
globalopts
.
dof
,
ps
);
ps
.
setInfo
(
vars
.
getInfo
());
VolumeInfo
volinfo
=
vars
.
getInfo
();
volinfo
.
intent_code
=
NIFTI_INTENT_LOGPVAL
;
ps
.
setInfo
(
volinfo
);
ps
.
writeAsFloat
(
globalopts
.
logpfname
.
c_str
());
}
catch
(
Exception
p_excp
)
...
...
This diff is collapsed.
Click to expand it.
ttoz.cc
+
6
−
2
View file @
51e05352
...
...
@@ -130,9 +130,13 @@ int main(int argc,char *argv[])
Volume
zs
(
numTS
);
T2z
::
ComputeZStats
(
vars
,
cbs
,
globalopts
.
dof
,
zs
);
zs
.
setInfo
(
vars
.
getInfo
());
VolumeInfo
volinfo
=
vars
.
getInfo
();
volinfo
.
intent_code
=
NIFTI_INTENT_ZSCORE
;
volinfo
.
intent_p1
=
0.0
;
zs
.
setInfo
(
volinfo
);
zs
.
writeAsFloat
(
globalopts
.
zscoresfname
.
c_str
());
}
catch
(
Exception
p_excp
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment