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
Commits
076008fd
Commit
076008fd
authored
12 years ago
by
Mark Jenkinson
Browse files
Options
Downloads
Patches
Plain Diff
Put back in the multiplication by 100 to get percentages
parent
ba5a84b6
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
calc_grad_perc_dev.cc
+9
-9
9 additions, 9 deletions
calc_grad_perc_dev.cc
with
9 additions
and
9 deletions
calc_grad_perc_dev.cc
+
9
−
9
View file @
076008fd
...
@@ -64,27 +64,27 @@ int do_work(int argc, char* argv[])
...
@@ -64,27 +64,27 @@ int do_work(int argc, char* argv[])
xpd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
xpd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
tmp
=
lrzgrad
(
fw
[
0
],
mask
);
tmp
=
lrzgrad
(
fw
[
0
],
mask
);
xpd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
xpd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
xpd
[
0
]
/
=
fw
.
xdim
();
xpd
[
0
]
*=
100.0
/
fw
.
xdim
();
xpd
[
1
]
/
=
fw
.
ydim
();
xpd
[
1
]
*=
100.0
/
fw
.
ydim
();
xpd
[
2
]
/
=
fw
.
zdim
();
xpd
[
2
]
*=
100.0
/
fw
.
zdim
();
tmp
=
lrxgrad
(
fw
[
1
],
mask
);
tmp
=
lrxgrad
(
fw
[
1
],
mask
);
ypd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
ypd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
tmp
=
lrygrad
(
fw
[
1
],
mask
);
tmp
=
lrygrad
(
fw
[
1
],
mask
);
ypd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
ypd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
tmp
=
lrzgrad
(
fw
[
1
],
mask
);
tmp
=
lrzgrad
(
fw
[
1
],
mask
);
ypd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
ypd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
ypd
[
0
]
/
=
fw
.
xdim
();
ypd
[
0
]
*=
100.0
/
fw
.
xdim
();
ypd
[
1
]
/
=
fw
.
ydim
();
ypd
[
1
]
*=
100.0
/
fw
.
ydim
();
ypd
[
2
]
/
=
fw
.
zdim
();
ypd
[
2
]
*=
100.0
/
fw
.
zdim
();
tmp
=
lrxgrad
(
fw
[
2
],
mask
);
tmp
=
lrxgrad
(
fw
[
2
],
mask
);
zpd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
zpd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
tmp
=
lrygrad
(
fw
[
2
],
mask
);
tmp
=
lrygrad
(
fw
[
2
],
mask
);
zpd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
zpd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
tmp
=
lrzgrad
(
fw
[
2
],
mask
);
tmp
=
lrzgrad
(
fw
[
2
],
mask
);
zpd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
zpd
.
addvolume
((
tmp
[
0
]
+
tmp
[
1
])
*
0.5
f
);
zpd
[
0
]
/
=
fw
.
xdim
();
zpd
[
0
]
*=
100.0
/
fw
.
xdim
();
zpd
[
1
]
/
=
fw
.
ydim
();
zpd
[
1
]
*=
100.0
/
fw
.
ydim
();
zpd
[
2
]
/
=
fw
.
zdim
();
zpd
[
2
]
*=
100.0
/
fw
.
zdim
();
string
bname
=
fslbasename
(
outname
.
value
());
string
bname
=
fslbasename
(
outname
.
value
());
save_volume4D
(
xpd
,
bname
+
"_x"
);
save_volume4D
(
xpd
,
bname
+
"_x"
);
save_volume4D
(
ypd
,
bname
+
"_y"
);
save_volume4D
(
ypd
,
bname
+
"_y"
);
...
...
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