Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tomotools
Nabu
Commits
7b086822
Commit
7b086822
authored
Jan 06, 2022
by
Pierre Paleo
Browse files
Add docstring to SinoNormalization
parent
06f31c93
Changes
1
Hide whitespace changes
Inline
Side-by-side
nabu/reconstruction/sinogram.py
View file @
7b086822
...
...
@@ -287,6 +287,12 @@ class SinoNormalization:
- chebyshev: Each sinogram line is estimated by a Chebyshev polynomial
of degree 2. This estimation is then subtracted from the sinogram.
Default is "chebyshev"
sinos_shape: tuple, optional
Shape of the sinogram or sinogram stack.
Either this parameter or 'radios_shape' has to be provided.
radios_shape: tuple, optional
Shape of the projections or projections stack.
Either this parameter or 'sinos_shape' has to be provided.
"""
self
.
_get_shapes
(
sinos_shape
,
radios_shape
)
self
.
_set_kind
(
kind
)
...
...
@@ -299,6 +305,9 @@ class SinoNormalization:
check_supported
(
kind
,
self
.
kinds
,
"sinogram normalization kind"
)
self
.
normalization_kind
=
kind
#
# Chebyshev normalization
#
def
_normalize_chebyshev_2D
(
self
,
sino
):
output
=
sino
# inplace
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment