Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
siena
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
siena
Commits
f8d1ee70
Commit
f8d1ee70
authored
18 years ago
by
Mark Jenkinson
Browse files
Options
Downloads
Patches
Plain Diff
Made all siena scripts call fast1 rather than fast (which is about to become fast2)
parent
91a55d0b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
lesions_0.1
+2
-2
2 additions, 2 deletions
lesions_0.1
lesions_0.2
+2
-2
2 additions, 2 deletions
lesions_0.2
lesions_0.3
+2
-2
2 additions, 2 deletions
lesions_0.3
siena_diff.cc
+1
-1
1 addition, 1 deletion
siena_diff.cc
sienax
+2
-2
2 additions, 2 deletions
sienax
with
9 additions
and
9 deletions
lesions_0.1
+
2
−
2
View file @
f8d1ee70
...
...
@@ -34,7 +34,7 @@ fi
# brain-extract t1 and run segmentation; pve_0 should be CSF only
${
FSLDIR
}
/bin/bet
$1
$1_brain
-m
${
FSLDIR
}
/bin/fast
-e
-ov
$1_brain
${
FSLDIR
}
/bin/fast
1
-e
-ov
$1_brain
# register t1 to standard space and invert transform
${
FSLDIR
}
/bin/flirt
-ref
${
FSLDIR
}
/etc/standard/avg152T1_brain
-in
$1_brain
-omat
$1_brain_2_std
.mat
...
...
@@ -65,7 +65,7 @@ ${FSLDIR}/bin/avwmaths $2_brain_mask $2_brain_mask
${
FSLDIR
}
/bin/avwmaths
$2
-mas
$2_brain_mask
$2_brain
# run segmentation on t2; pve_0 should be CSF+lesions; transform into t1 space, remask with t1 brain mask
${
FSLDIR
}
/bin/fast
$t2segopts
-c
$nclasses
-e
-ov
$2_brain
${
FSLDIR
}
/bin/fast
1
$t2segopts
-c
$nclasses
-e
-ov
$2_brain
${
FSLDIR
}
/bin/flirt
-in
$t2lesions
-ref
$1
-out
$1_lesion
+CSF
-applyxfm
-init
$2_to_$1
.mat
${
FSLDIR
}
/bin/avwmaths
$1_lesion
+CSF
-mas
$1_brain_mask
$1_lesion
+CSF
...
...
This diff is collapsed.
Click to expand it.
lesions_0.2
+
2
−
2
View file @
f8d1ee70
...
...
@@ -50,7 +50,7 @@ done
# brain-extract t1 and run segmentation; pve_0 should be CSF only
${
FSLDIR
}
/bin/bet
$A
${
A
}
_brain
-m
${
FSLDIR
}
/bin/fast
-e
-ov
${
A
}
_brain
${
FSLDIR
}
/bin/fast
1
-e
-ov
${
A
}
_brain
# register t1 to standard space and invert transform
${
FSLDIR
}
/bin/flirt
-ref
${
FSLDIR
}
/etc/standard/avg152T1_brain
-in
${
A
}
_brain
-omat
${
A
}
_brain_2_std.mat
...
...
@@ -79,7 +79,7 @@ ${FSLDIR}/bin/flirt -in ${A}_brain_mask -out ${B}_brain_mask -ref $B -applyxfm -
${
FSLDIR
}
/bin/avwmaths
$B
-mas
${
B
}
_brain_mask
${
B
}
_brain
# run segmentation on t2; $t2lesions should be CSF+lesions; transform into t1 space, remask with t1 brain mask
${
FSLDIR
}
/bin/fast
$t2segopts
-c
$nclasses
-e
-ov
${
B
}
_brain
${
FSLDIR
}
/bin/fast
1
$t2segopts
-c
$nclasses
-e
-ov
${
B
}
_brain
${
FSLDIR
}
/bin/flirt
-in
$t2lesions
-ref
$A
-out
${
A
}
_lesion+CSF
-applyxfm
-init
${
B
}
_to_
${
A
}
.mat
${
FSLDIR
}
/bin/avwmaths
${
A
}
_lesion+CSF
-mas
${
A
}
_brain_mask
${
A
}
_lesion+CSF
...
...
This diff is collapsed.
Click to expand it.
lesions_0.3
+
2
−
2
View file @
f8d1ee70
...
...
@@ -51,7 +51,7 @@ echo "working" > ${A}_lesions.txt
# brain-extract t1 and run segmentation; pve_0 should be CSF only
${
FSLDIR
}
/bin/bet
$A
${
A
}
_brain
-m
${
FSLDIR
}
/bin/fast
-e
-ov
${
A
}
_brain
${
FSLDIR
}
/bin/fast
1
-e
-ov
${
A
}
_brain
# register t1 to standard space and invert transform
${
FSLDIR
}
/bin/flirt
-ref
${
FSLDIR
}
/etc/standard/avg152T1_brain
-in
${
A
}
_brain
-omat
${
A
}
_brain_2_std.mat
...
...
@@ -80,7 +80,7 @@ ${FSLDIR}/bin/flirt -in ${A}_brain_mask -out ${B}_brain_mask -ref $B -applyxfm -
${
FSLDIR
}
/bin/avwmaths
$B
-mas
${
B
}
_brain_mask
${
B
}
_brain
# run segmentation on t2; $t2lesions should be CSF+lesions; transform into t1 space, remask with t1 brain mask
${
FSLDIR
}
/bin/fast
$t2segopts
-c
$nclasses
-e
-ov
${
B
}
_brain
${
FSLDIR
}
/bin/fast
1
$t2segopts
-c
$nclasses
-e
-ov
${
B
}
_brain
${
FSLDIR
}
/bin/flirt
-in
$t2lesions
-ref
$A
-out
${
A
}
_lesion+CSF
-applyxfm
-init
${
B
}
_to_
${
A
}
.mat
${
FSLDIR
}
/bin/avwmaths
${
A
}
_lesion+CSF
-mas
${
A
}
_brain_mask
${
A
}
_lesion+CSF
...
...
This diff is collapsed.
Click to expand it.
siena_diff.cc
+
1
−
1
View file @
f8d1ee70
...
...
@@ -227,7 +227,7 @@ if(1) // always done unless the above uncommented and used instead of this test
cout
<<
"saving image 1 to disk prior to segmentation"
<<
endl
;
save_volume
(
in1
,
argv1
+
"_halfwayto_"
+
argv2
+
"_brain"
);
in1
.
destroy
();
sprintf
(
thestring
,
"%s/bin/fast %s %s %s_halfwayto_%s_brain > %s_halfwayto_%s_brain.vol 2>&1"
,
sprintf
(
thestring
,
"%s/bin/fast
1
%s %s %s_halfwayto_%s_brain > %s_halfwayto_%s_brain.vol 2>&1"
,
fsldir
,
segtype
,
segoptions
,
argv
[
1
],
argv
[
2
],
argv
[
1
],
argv
[
2
]);
cout
<<
thestring
<<
endl
;
system
(
thestring
);
...
...
This diff is collapsed.
Click to expand it.
sienax
+
2
−
2
View file @
f8d1ee70
...
...
@@ -138,7 +138,7 @@ fi
echo
""
>>
${
I
}
.sienax
echo
"---------- segment tissue into types --------------------------------"
>>
${
I
}
.sienax
if
[
$nseg
=
2
]
;
then
${
FSLDIR
}
/bin/fast
-c
2
$imtype
-e
-ov
$segopts
${
I
}
_stdmaskbrain
>>
${
I
}
.sienax 2>&1
${
FSLDIR
}
/bin/fast
1
-c
2
$imtype
-e
-ov
$segopts
${
I
}
_stdmaskbrain
>>
${
I
}
.sienax 2>&1
echo
""
>>
${
I
}
.sienax
echo
"---------- convert brain volume into normalised volume --------------"
>>
${
I
}
.sienax
S
=
`
${
FSLDIR
}
/bin/avwstats
${
I
}
_stdmaskbrain_pve_1
-m
-v
`
...
...
@@ -150,7 +150,7 @@ else
${
FSLDIR
}
/bin/avwmaths_32R
$lm
-bin
-mul
-1
-add
1
-mul
${
I
}
_stdmaskbrain
${
I
}
_stdmaskbrain
fi
${
FSLDIR
}
/bin/fast
$imtype
-e
-ov
$segopts
${
I
}
_stdmaskbrain
>>
${
I
}
.sienax 2>&1
${
FSLDIR
}
/bin/fast
1
$imtype
-e
-ov
$segopts
${
I
}
_stdmaskbrain
>>
${
I
}
.sienax 2>&1
if
[
_
$lm
!=
_
]
;
then
${
FSLDIR
}
/bin/avwmaths_32R
$lm
-bin
-max
${
I
}
_stdmaskbrain_pve_2
${
I
}
_stdmaskbrain_pve_2
...
...
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