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

Remove unused function

parent f26f3901
Pipeline #46268 passed with stage
in 6 minutes and 15 seconds
......@@ -208,33 +208,6 @@ def _convert_halftomo_right(sino, 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.
"""
assert sino.ndim == 2
assert (sino.shape[0] % 2) == 0
assert rotation_axis_position > sino.shape[1]
na, nx = sino.shape
na2 = na // 2
r = rotation_axis_position
d = r - nx
res = np.zeros((na2, 2 * r), dtype="f")
sino1 = sino[:na2, :]
sino2 = sino[na2:, ::-1]
w = np.linspace(0, 1, d, endpoint=True) # has to be adapted when the sample actually goes beyond this point
res[:, :nx] = sino1[:, :]
res[:, nx:nx+d] = sino1[:, -d:][:, ::-1] * (1 - w)
res[:, nx+d:nx+2*d] = sino2[:, :d][:, ::-1] * w
res[:, nx+2*d:] = sino2[:, :]
return res
class SinoNormalization(SinoProcessing):
"""
A class for sinogram normalization utilities.
......
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