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
6d61e5d4
Commit
6d61e5d4
authored
2 years ago
by
Tamino Huxohl
Browse files
Options
Downloads
Patches
Plain Diff
revice documentation of random_search module
parent
45f43f46
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/filter.py
+19
-7
19 additions, 7 deletions
mu_map/recon/filter.py
with
19 additions
and
7 deletions
mu_map/recon/filter.py
+
19
−
7
View file @
6d61e5d4
"""
Implementation of post-filters for STIR reconstruction.
"""
from
mu_map.file.interfile
import
Interfile
,
InterfileKeys
"""
...
...
@@ -19,17 +22,20 @@ end separable gaussian filter parameters :=
class
GaussianFilter
:
"""
Class handling a
Gaussian post-filter
in a
reconstruction.
A
Gaussian post-filter
for
reconstruction.
"""
def
__init__
(
self
,
projection
:
Interfile
,
width_scale
:
int
=
1.0
):
"""
Initialize a Gaussian post-filter for the reconstruction of a projection.
:param projection: the projection for which the filter is created
:param width_scale: the width of the filter in each dimension is this scale
times the spacing defined in the projection
:returns: an object which can add this filter to reconstruction parameters
Parameters
----------
projection: Interfile
the projection for which the filter is created
width_scale: int, optional
the width of the filter in each dimension which is this scale
times the spacing defined in the projection
"""
header
,
_
=
projection
...
...
@@ -50,8 +56,14 @@ class GaussianFilter:
"""
Inter this filter into a string of OSEM parameters for STIR.
:param osem_params: the params in which this filter is inserted
:return: the params with inserted filter
Parameters
----------
osem_params: str
the params in which this filter is inserted
Returns
str
the params with inserted filter
"""
lines
=
self
.
params
.
strip
().
split
(
"
\n
"
)
lines
=
list
(
map
(
lambda
line
:
"
"
+
line
,
lines
))
...
...
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