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
2e3436b7
Commit
2e3436b7
authored
2 years ago
by
Tamino Huxohl
Browse files
Options
Downloads
Patches
Plain Diff
invert mu_map and add filtering to recon script
parent
1cd6a5a2
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
+18
-11
18 additions, 11 deletions
mu_map/recon/recon.py
with
18 additions
and
11 deletions
mu_map/recon/recon.py
+
18
−
11
View file @
2e3436b7
...
...
@@ -67,18 +67,18 @@ OSMAPOSLParameters :=
; keywords that specify the filtering that occurs after every subiteration
; warning: do not normally use together with a prior
;
inter-iteration filter subiteration interval := 4
;
inter-iteration filter type := Separable Gaussian
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 := 12
9
;
y-dir maximum kernel size := 12
9
;
z-dir maximum kernel size := 3
1
;
Normalise filter to 1 := 1
;
end separable gaussian filter parameters :=
separable gaussian filter parameters :=
x-dir filter fwhm (in mm) :=
9.
6
y-dir filter fwhm (in mm) :=
9.
6
z-dir filter fwhm (in mm) :=
9.
6
x-dir maximum kernel size := 12
8
y-dir maximum kernel size := 12
8
z-dir maximum kernel size := 3
3
Normalise filter to 1 := 1
end separable gaussian filter parameters :=
END :=
"""
...
...
@@ -189,6 +189,11 @@ if __name__ == "__main__":
type
=
str
,
help
=
"
a mu map for attenuation correction in DICOM or INTERFILE format
"
,
)
parser
.
add_argument
(
"
--skip_mu_map_z_inv
"
,
action
=
"
store_true
"
,
help
=
"
per default mu maps need to be inverted in z direction for attenuation correction to work correctly - this parameter can skip this
"
,
)
parser
.
add_argument
(
"
--out
"
,
type
=
str
,
help
=
"
the filename to store the reconstruction
"
)
...
...
@@ -215,6 +220,8 @@ if __name__ == "__main__":
stir
.
Verbosity_set
(
args
.
verbosity
)
mu_map
=
load_as_interfile
(
args
.
mu_map
)
if
args
.
mu_map
else
None
if
not
args
.
skip_mu_map_z_inv
:
mu_map
=
(
mu_map
[
0
],
mu_map
[
1
][::
-
1
])
mu_map_slices
=
None
if
mu_map
is
None
else
mu_map
[
1
].
shape
[
0
]
if
args
.
recon
:
...
...
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