Commit b730f1d9 authored by Pierre Paleo's avatar Pierre Paleo
Browse files

Use another method for halftomo-external sinogram generation

parent dfc6fd3e
......@@ -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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment