Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
avwutils
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
avwutils
Merge requests
!18
MNT: Clarify *thrP usage
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
MNT: Clarify *thrP usage
mnt/thrP
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Matthew Webster
requested to merge
mnt/thrP
into
master
3 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
40769a16
1 commit,
3 years ago
1 file
+
8
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
fslmaths.cc
+
8
−
8
Options
@@ -46,12 +46,12 @@ int printUsage(const string& programName)
cout
<<
" -div : divide current image by following input"
<<
endl
;
cout
<<
" -rem : modulus remainder - divide current image by following input and take remainder"
<<
endl
;
cout
<<
" -mas : use (following image>0) to mask current image"
<<
endl
;
cout
<<
" -thr :
use following number to threshold current image
(zero anything below the number)"
<<
endl
;
cout
<<
" -thrp :
us
e following percentage (0-100) of ROBUST RANGE
to threshold current image (zero anything below the number)
"
<<
endl
;
cout
<<
" -thrP :
us
e following percentage (0-100) of
ROBUST RANGE of non-zero voxels and threshold below
"
<<
endl
;
cout
<<
" -uthr : u
se following number to upper-threshold current image
(zero anything above the number)"
<<
endl
;
cout
<<
" -uthrp : u
s
e following percentage (0-100) of ROBUST RANGE
to upper-threshold current image (zero anything above the number)
"
<<
endl
;
cout
<<
" -uthrP : u
s
e following percentage (0-100) of
ROBUST RANGE of non-zero voxels and threshold above
"
<<
endl
;
cout
<<
" -thr :
threshold below the following number
(zero anything below the number)"
<<
endl
;
cout
<<
" -thrp :
threshold below th
e following percentage (0-100) of ROBUST RANGE"
<<
endl
;
cout
<<
" -thrP :
threshold below th
e following percentage (0-100) of
the positive voxels' ROBUST RANGE
"
<<
endl
;
cout
<<
" -uthr : u
pper-threshold above the following number
(zero anything above the number)"
<<
endl
;
cout
<<
" -uthrp : u
pper-threshold above th
e following percentage (0-100) of
the
ROBUST RANGE"
<<
endl
;
cout
<<
" -uthrP : u
pper-threshold above th
e following percentage (0-100) of
the positive voxels' ROBUST RANGE
"
<<
endl
;
cout
<<
" -max : take maximum of following input and current image"
<<
endl
;
cout
<<
" -min : take minimum of following input and current image"
<<
endl
;
cout
<<
" -seed : seed random number generator with following number"
<<
endl
;
@@ -548,7 +548,7 @@ if (!separatenoise)
else
if
(
string
(
argv
[
i
])
==
"-thrP"
)
{
volume4D
<
T
>
mask
(
inputVolume
);
mask
.
binarise
(
0
,
inputVolume
.
max
()
+
1
,
exclusive
);
mask
.
binarise
();
T
lowerlimit
=
(
T
)(
inputVolume
.
robustmin
(
mask
)
+
(
atof
(
argv
[
++
i
])
/
100.0
)
*
(
inputVolume
.
robustmax
(
mask
)
-
inputVolume
.
robustmin
(
mask
)));
inputVolume
.
threshold
(
lowerlimit
,
inputVolume
.
max
()
+
1
,
inclusive
);
}
@@ -564,7 +564,7 @@ if (!separatenoise)
else
if
(
string
(
argv
[
i
])
==
"-uthrP"
)
{
volume4D
<
T
>
mask
(
inputVolume
);
mask
.
binarise
(
0
,
inputVolume
.
max
()
+
1
,
exclusive
);
mask
.
binarise
();
T
upperlimit
=
(
T
)(
inputVolume
.
robustmin
(
mask
)
+
(
atof
(
argv
[
++
i
])
/
100.0
)
*
(
inputVolume
.
robustmax
(
mask
)
-
inputVolume
.
robustmin
(
mask
)));
inputVolume
.
threshold
(
inputVolume
.
min
()
-
1
,
upperlimit
,
inclusive
);
}
Loading