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
6a9ea684
Commit
6a9ea684
authored
19 years ago
by
Stephen Smith
Browse files
Options
Downloads
Patches
Plain Diff
CVS: ----------------------------------------------------------------------
parent
1f89d0c3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
siena_diff.cc
+25
-25
25 additions, 25 deletions
siena_diff.cc
with
25 additions
and
25 deletions
siena_diff.cc
+
25
−
25
View file @
6a9ea684
...
...
@@ -26,12 +26,12 @@ using namespace NEWIMAGE;
void
usage
()
{
cout
<<
"
\n
Usage: siena_diff <input1_basename> <input2_basename> [options] [-s segmentation options]
\n\n
"
<<
"[-d] debug - generate edge images and don't remove temporary images
\n
"
<<
"[-2] don't segment grey+white separately (because there is poor grey-white contrast)
\n
"
<<
"[-c <corr>] apply self-calibrating correction factor
\n
"
<<
"[-d]
debug - generate edge images and don't remove temporary images
\n
"
<<
"[-2]
don't segment grey+white separately (because there is poor grey-white contrast)
\n
"
<<
"[-c <corr>]
apply self-calibrating correction factor
\n
"
<<
// "[-e] erode joint mask a lot instead of dilating it slightly (ie find ventricle surface)\n" <<
"[-i] ignore flow in z (may be good if top of brain is missing)
\n
"
<<
"[-m] apply <input1_basename>_stdmask to brain edge points
\n
"
<<
"[-i]
ignore flow in z (may be good if top of brain is missing)
\n
"
<<
"[-m]
apply <input1_basename>_stdmask to brain edge points
\n
"
<<
"[-s <options>] <options> to be passed to segmentation (type
\"
fast
\"
to get these)
\n\n
"
<<
endl
;
exit
(
1
);
}
...
...
@@ -149,28 +149,28 @@ for (i = 3; i < argc; i++) {
// }}}
// {{{ transform images and masks
//
sprintf(thestring,"%s/bin/flirt -o %s_halfwayto_%s -applyisoxfm 1 -paddingsize 0 -init %s_halfwayto_%s.mat -ref %s -in %s",
//
fsldir,argv[1],argv[2],argv[1],argv[2],argv[1],argv[1]);
//
printf("%s\n",thestring); system(thestring);
sprintf
(
thestring
,
"%s/bin/flirt -o %s_halfwayto_%s -applyisoxfm 1 -paddingsize 0 -init %s_halfwayto_%s.mat -ref %s -in %s"
,
fsldir
,
argv
[
1
],
argv
[
2
],
argv
[
1
],
argv
[
2
],
argv
[
1
],
argv
[
1
]);
printf
(
"%s
\n
"
,
thestring
);
system
(
thestring
);
//
sprintf(thestring,"%s/bin/flirt -o %s_halfwayto_%s -applyisoxfm 1 -paddingsize 0 -init %s_halfwayto_%s.mat -ref %s -in %s",
//
fsldir,argv[2],argv[1],argv[2],argv[1],argv[1],argv[2]);
//
printf("%s\n",thestring); system(thestring);
sprintf
(
thestring
,
"%s/bin/flirt -o %s_halfwayto_%s -applyisoxfm 1 -paddingsize 0 -init %s_halfwayto_%s.mat -ref %s -in %s"
,
fsldir
,
argv
[
2
],
argv
[
1
],
argv
[
2
],
argv
[
1
],
argv
[
1
],
argv
[
2
]);
printf
(
"%s
\n
"
,
thestring
);
system
(
thestring
);
//
sprintf(thestring,"%s/bin/flirt -o %s_halfwayto_%s_mask -applyisoxfm 1 -paddingsize 0 -init %s_halfwayto_%s.mat -ref %s -in %s_brain_mask",
//
fsldir,argv[1],argv[2],argv[1],argv[2],argv[1],argv[1]);
//
printf("%s\n",thestring); system(thestring);
sprintf
(
thestring
,
"%s/bin/flirt -o %s_halfwayto_%s_mask -applyisoxfm 1 -paddingsize 0 -init %s_halfwayto_%s.mat -ref %s -in %s_brain_mask"
,
fsldir
,
argv
[
1
],
argv
[
2
],
argv
[
1
],
argv
[
2
],
argv
[
1
],
argv
[
1
]);
printf
(
"%s
\n
"
,
thestring
);
system
(
thestring
);
//
sprintf(thestring,"%s/bin/flirt -o %s_halfwayto_%s_mask -applyisoxfm 1 -paddingsize 0 -init %s_halfwayto_%s.mat -ref %s -in %s_brain_mask",
//
fsldir,argv[2],argv[1],argv[2],argv[1],argv[1],argv[2]);
//
printf("%s\n",thestring); system(thestring);
sprintf
(
thestring
,
"%s/bin/flirt -o %s_halfwayto_%s_mask -applyisoxfm 1 -paddingsize 0 -init %s_halfwayto_%s.mat -ref %s -in %s_brain_mask"
,
fsldir
,
argv
[
2
],
argv
[
1
],
argv
[
2
],
argv
[
1
],
argv
[
1
],
argv
[
2
]);
printf
(
"%s
\n
"
,
thestring
);
system
(
thestring
);
//
if (edge_masking)
//
{
//
sprintf(thestring,"%s/bin/flirt -o %s_halfwayto_%s_valid_mask -applyisoxfm 1 -paddingsize 0 -init %s_halfwayto_%s.mat -ref %s -in %s_valid_mask_with_%s",
//
fsldir,argv[1],argv[2],argv[1],argv[2],argv[1],argv[1],argv[2]);
//
printf("%s\n",thestring); system(thestring);
//
}
if
(
edge_masking
)
{
sprintf
(
thestring
,
"%s/bin/flirt -o %s_halfwayto_%s_valid_mask -applyisoxfm 1 -paddingsize 0 -init %s_halfwayto_%s.mat -ref %s -in %s_valid_mask_with_%s"
,
fsldir
,
argv
[
1
],
argv
[
2
],
argv
[
1
],
argv
[
2
],
argv
[
1
],
argv
[
1
],
argv
[
2
]);
printf
(
"%s
\n
"
,
thestring
);
system
(
thestring
);
}
// }}}
// {{{ dilate masks, read transformed images and masks, and combine to jointly-masked transformed images
...
...
@@ -230,7 +230,7 @@ if(1) // always done unless the above uncommented and used instead of this test
sprintf
(
thestring
,
"%s/bin/fast %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);
system
(
thestring
);
}
else
{
...
...
@@ -482,7 +482,7 @@ if (flow_output)
cout
<<
"AREA "
<<
count
*
voxel_area
<<
" mm^2"
<<
endl
;
cout
<<
"VOLC "
<<
total
*
voxel_volume
<<
" mm^3"
<<
endl
;
cout
<<
"RATIO "
<<
(
total
*
voxel_volume
)
/
(
count
*
voxel_area
)
<<
" mm"
<<
endl
;
/* mean perpendicular edge motion; l in the equations */
cout
<<
"PBVC "
<<
(
calib
*
30
*
total
*
voxel_volume
)
/
(
count
*
voxel_area
)
<<
"
%
%"
<<
endl
;
cout
<<
"PBVC "
<<
(
calib
*
30
*
total
*
voxel_volume
)
/
(
count
*
voxel_area
)
<<
" %"
<<
endl
;
// }}}
return
0
;
...
...
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