mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-05 09:24:40 +08:00
iradon_sart: Remove needless memoryview/ndarray conversion.
image_update is not manipulated in sart_projection_update and the conversion to memoryview will happen when it is passed to the subroutines anyway.
This commit is contained in:
@@ -192,11 +192,11 @@ def sart_projection_update(cnp.double_t[:, :] image not None,
|
||||
Array of same shape as ``image`` containing updates that should be
|
||||
added to ``image`` to improve the reconstruction estimate
|
||||
"""
|
||||
cdef cnp.double_t[:, :] image_update = np.zeros_like(image)
|
||||
cdef cnp.ndarray[cnp.double_t, ndim=2] image_update = np.zeros_like(image)
|
||||
cdef cnp.double_t ray_position
|
||||
cdef Py_ssize_t i
|
||||
for i in range(projection.shape[0]):
|
||||
ray_position = i + projection_shift
|
||||
bilinear_ray_update(image, image_update, theta, ray_position,
|
||||
projection[i])
|
||||
return np.asarray(image_update)
|
||||
return image_update
|
||||
|
||||
Reference in New Issue
Block a user