Skip to content
GitLab
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
b730f1d9
Commit
b730f1d9
authored
May 04, 2021
by
Pierre Paleo
Browse files
Use another method for halftomo-external sinogram generation
parent
dfc6fd3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
nabu/preproc/sinogram.py
View file @
b730f1d9
...
...
@@ -194,6 +194,21 @@ def convert_halftomo(sino, rotation_axis_position):
def
_convert_halftomo_right
(
sino
,
rotation_axis_position
):
"""
Converts a sinogram into a sinogram with extended FOV with the "half tomography"
setting, with a CoR outside the image support.
"""
assert
sino
.
ndim
==
2
na
,
nx
=
sino
.
shape
assert
(
na
%
2
)
==
0
assert
rotation_axis_position
>
nx
sino2
=
np
.
pad
(
sino
,
((
0
,
0
),
(
0
,
rotation_axis_position
-
nx
)),
mode
=
"reflect"
)
return
convert_halftomo
(
sino2
,
rotation_axis_position
)
def
_convert_halftomo_right_old
(
sino
,
rotation_axis_position
):
"""
Converts a sinogram into a sinogram with extended FOV with the "half tomography"
setting, with a CoR outside the image support.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment