Skip to content

Commit

Permalink
Merge pull request #133 from fsherry/function_rename
Browse files Browse the repository at this point in the history
Remove confusing `fan` suffix from `forward_projection` function
  • Loading branch information
AnderBiguri authored Oct 16, 2024
2 parents b8f0596 + aeb14fd commit 077ca32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LION/CTtools/ct_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def make_operator(geo: Geometry):
return A


def forward_projection_fan(image, geo, backend="tomosipo"):
def forward_projection(image, geo, backend="tomosipo"):
"""
Produces a noise free forward projection, given np.array image, a size (in real world units), a sinogram shape and size,
distances from source to detector DSD and distance from source to object DSO.
Expand Down
2 changes: 1 addition & 1 deletion demos/d01_ct_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
# In essence, this is the same as using the operator we defined above.

# We can use the following function
sino = ct.forward_projection_fan(phantom, geo)
sino = ct.forward_projection(phantom, geo)
# If you defined the operator as in step 3 or 4, you can also do (its the same):
sino = A(phantom)
# For noise simulation, a good approximation of CT noise is to add Poisson noise to the non-log transformed sinograms,
Expand Down

0 comments on commit 077ca32

Please sign in to comment.