Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mu-map
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tamino Huxohl
mu-map
Commits
e0eafaf3
Commit
e0eafaf3
authored
2 years ago
by
Tamino Huxohl
Browse files
Options
Downloads
Patches
Plain Diff
correctly pass args in recon script
parent
df4cde3d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mu_map/recon/recon.py
+16
-11
16 additions, 11 deletions
mu_map/recon/recon.py
with
16 additions
and
11 deletions
mu_map/recon/recon.py
+
16
−
11
View file @
e0eafaf3
...
...
@@ -69,16 +69,16 @@ OSMAPOSLParameters :=
; warning: do not normally use together with a prior
;inter-iteration filter subiteration interval := 4
;inter-iteration filter type := Separable Gaussian
post-filter type := Separable Gaussian
separable gaussian filter parameters :=
x-dir filter fwhm (in mm) := 6
y-dir filter fwhm (in mm) := 6
z-dir filter fwhm (in mm) := 6
x-dir maximum kernel size := 129
y-dir maximum kernel size := 129
z-dir maximum kernel size := 31
Normalise filter to 1 := 1
end separable gaussian filter parameters :=
;
post-filter type := Separable Gaussian
;
separable gaussian filter parameters :=
;
x-dir filter fwhm (in mm) := 6
;
y-dir filter fwhm (in mm) := 6
;
z-dir filter fwhm (in mm) := 6
;
x-dir maximum kernel size := 129
;
y-dir maximum kernel size := 129
;
z-dir maximum kernel size := 31
;
Normalise filter to 1 := 1
;
end separable gaussian filter parameters :=
END :=
"""
...
...
@@ -112,6 +112,7 @@ def reconstruct(
init
:
Optional
[
Tuple
[
Dict
[
str
,
str
],
np
.
ndarray
]]
=
None
,
n_subsets
:
Optional
[
int
]
=
4
,
n_iterations
:
Optional
[
int
]
=
10
,
**
kwargs
,
):
# sanitize parameters
n_subiterations
=
n_subsets
*
n_iterations
...
...
@@ -222,7 +223,11 @@ if __name__ == "__main__":
else
:
projection
=
load_as_interfile
(
args
.
projection
)
header
,
image
=
reconstruct
(
projection
,
mu_map
=
mu_map
)
kwargs
=
vars
(
args
)
del
kwargs
[
"
mu_map
"
]
del
kwargs
[
"
projection
"
]
print
(
kwargs
)
header
,
image
=
reconstruct
(
projection
,
mu_map
=
mu_map
,
**
kwargs
)
image
=
image
[:,
:,
::
-
1
]
write_interfile
(
args
.
out
,
header
,
image
)
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