mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-28 11:25:42 +08:00
iradon_sart: redefine projection center.
This reflects the bugfixes related to issue gh-592 implemented in gh-596.
This commit is contained in:
@@ -33,7 +33,7 @@ cpdef bilinear_ray_sum(cnp.double_t[:, :] image, cnp.double_t theta,
|
||||
"""
|
||||
theta = theta / 180. * M_PI
|
||||
cdef cnp.double_t radius = image.shape[0] // 2 - 1
|
||||
cdef cnp.double_t projection_center = image.shape[0] // 2 - 1
|
||||
cdef cnp.double_t projection_center = image.shape[0] // 2
|
||||
cdef cnp.double_t rotation_center = image.shape[0] // 2
|
||||
# (s, t) is the (x, y) system rotated by theta
|
||||
cdef cnp.double_t t = ray_position - projection_center
|
||||
@@ -118,7 +118,7 @@ cpdef bilinear_ray_update(cnp.double_t[:, :] image,
|
||||
deviation = 0.
|
||||
theta = theta / 180. * M_PI
|
||||
cdef cnp.double_t radius = image.shape[0] // 2 - 1
|
||||
cdef cnp.double_t projection_center = image.shape[0] // 2 - 1
|
||||
cdef cnp.double_t projection_center = image.shape[0] // 2
|
||||
cdef cnp.double_t rotation_center = image.shape[0] // 2
|
||||
# (s, t) is the (x, y) system rotated by theta
|
||||
cdef cnp.double_t t = ray_position - projection_center
|
||||
|
||||
Reference in New Issue
Block a user