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
59760c69
Commit
59760c69
authored
20 years ago
by
Mark Jenkinson
Browse files
Options
Downloads
Patches
Plain Diff
Working version with intents - hopefully
parent
0f827b2c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ContrastMgr.cc
+31
-7
31 additions, 7 deletions
ContrastMgr.cc
with
31 additions
and
7 deletions
ContrastMgr.cc
+
31
−
7
View file @
59760c69
...
...
@@ -17,6 +17,7 @@
#include
"miscmaths/f2z.h"
#include
"paradigm.h"
#include
"utils/tracer_plus.h"
#include
"fslio/fslio.h"
using
namespace
Utilities
;
using
namespace
MISCMATHS
;
...
...
@@ -208,14 +209,22 @@ namespace FILM {
ostrstream
osc
(
strc
,
50
);
osc
<<
suffix
<<
c_counter
<<
'\0'
;
VolumeInfo
tmpinfo
;
// Write out tstat:
fstat
.
setInfo
(
sigmaSquareds
.
getInfo
());
tmpinfo
=
sigmaSquareds
.
getInfo
();
tmpinfo
.
intent_code
=
NIFTI_INTENT_FTEST
;
tmpinfo
.
intent_p1
=
0.0
;
fstat
.
setInfo
(
tmpinfo
);
fstat
.
setPreThresholdPositions
(
sigmaSquareds
.
getPreThresholdPositions
());
fstat
.
unthreshold
();
fstat
.
writeAsFloat
(
logger
.
getDir
()
+
"/fstat"
+
strc
);
// Write out zstat:
zstat
.
setInfo
(
sigmaSquareds
.
getInfo
());
tmpinfo
=
sigmaSquareds
.
getInfo
();
tmpinfo
.
intent_code
=
NIFTI_INTENT_ZSCORE
;
tmpinfo
.
intent_p1
=
0.0
;
zstat
.
setInfo
(
tmpinfo
);
zstat
.
setPreThresholdPositions
(
sigmaSquareds
.
getPreThresholdPositions
());
zstat
.
unthreshold
();
zstat
.
writeAsFloat
(
logger
.
getDir
()
+
"/zfstat"
+
strc
);
...
...
@@ -231,32 +240,47 @@ namespace FILM {
ostrstream
osc
(
strc
,
50
);
osc
<<
suffix
<<
c_counter
<<
'\0'
;
VolumeInfo
tmpinfo
;
// Write out neffs:
neff
.
setInfo
(
sigmaSquareds
.
getInfo
());
tmpinfo
=
sigmaSquareds
.
getInfo
();
neff
.
setInfo
(
tmpinfo
);
neff
.
setPreThresholdPositions
(
sigmaSquareds
.
getPreThresholdPositions
());
neff
.
unthreshold
();
neff
.
writeAsFloat
(
logger
.
getDir
()
+
"/neff"
+
strc
);
// Write out cope:
cb
.
setInfo
(
sigmaSquareds
.
getInfo
());
tmpinfo
=
sigmaSquareds
.
getInfo
();
tmpinfo
.
intent_code
=
NIFTI_INTENT_CORREL
;
tmpinfo
.
intent_p1
=
0.0
;
cb
.
setInfo
(
tmpinfo
);
cb
.
setPreThresholdPositions
(
sigmaSquareds
.
getPreThresholdPositions
());
cb
.
unthreshold
();
cb
.
writeAsFloat
(
logger
.
getDir
()
+
"/cope"
+
strc
);
// Write out varcope:
varcb
.
setInfo
(
sigmaSquareds
.
getInfo
());
tmpinfo
=
sigmaSquareds
.
getInfo
();
tmpinfo
.
intent_code
=
NIFTI_INTENT_CHISQ
;
tmpinfo
.
intent_p1
=
0.0
;
varcb
.
setInfo
(
tmpinfo
);
varcb
.
setPreThresholdPositions
(
sigmaSquareds
.
getPreThresholdPositions
());
varcb
.
unthreshold
();
varcb
.
writeAsFloat
(
logger
.
getDir
()
+
"/varcope"
+
strc
);
// Write out tstat:
tstat
.
setInfo
(
sigmaSquareds
.
getInfo
());
tmpinfo
=
sigmaSquareds
.
getInfo
();
tmpinfo
.
intent_code
=
NIFTI_INTENT_TTEST
;
tmpinfo
.
intent_p1
=
0.0
;
tstat
.
setInfo
(
tmpinfo
);
tstat
.
setPreThresholdPositions
(
sigmaSquareds
.
getPreThresholdPositions
());
tstat
.
unthreshold
();
tstat
.
writeAsFloat
(
logger
.
getDir
()
+
"/tstat"
+
strc
);
// Write out zstat:
zstat
.
setInfo
(
sigmaSquareds
.
getInfo
());
tmpinfo
=
sigmaSquareds
.
getInfo
();
tmpinfo
.
intent_code
=
NIFTI_INTENT_ZSCORE
;
tmpinfo
.
intent_p1
=
0.0
;
zstat
.
setInfo
(
tmpinfo
);
zstat
.
setPreThresholdPositions
(
sigmaSquareds
.
getPreThresholdPositions
());
zstat
.
unthreshold
();
zstat
.
writeAsFloat
(
logger
.
getDir
()
+
"/zstat"
+
strc
);
...
...
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