Skip to content

Commit

Permalink
Refine docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffFessler committed Dec 19, 2022
1 parent 410a1b3 commit daecffe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/lit/examples/07-fdk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,25 +71,35 @@ oversample = 3
true_image = phantom(axes(ig)..., ob, oversample)
jim(axes(ig), true_image, "True 3D Shepp-Logan phantom image"; clim)

# Define the system geometry:
# Define the system geometry
# (for some explanation use `?CtGeom`):
p = (ns = 130, ds = 0.3cm, nt = 80, dt = 0.4cm, na = 50, dsd = 200cm, dod = 40cm)
cg = CtFanArc( ; p...)

# Examine the geometry to verify the FOV:
# Examine the geometry to verify the FOV
# (this is more interesting when interacting via other Plot backends):
ct_geom_plot3(cg, ig)

#
prompt()


# CBCT projections
# using `Sinogram.rays` and `ImagePhantoms.radon`:
proj_arc = radon(rays(cg), ob)
jim(cg.s, cg.t, proj_arc ;
title="Shepp-Logan projections (arc)", xlabel="s", ylabel="t")


#=
There is no "inverse crime" here
because we compute the projection views
using the analytical phantom geometry,
but then reconstruct
on a discrete grid.
## Image reconstruction via FBP / FDK
We start with a "plan",
which would save work if we were reconstructing many images.
For illustration we include `Hamming` window.
Expand Down
4 changes: 4 additions & 0 deletions src/geom/type3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export CtPar, CtFanArc, CtFanFlat
Abstract type for representing ray geometries
for 3D CT imaging.
The projection view coordinates are `(s,t)`
where `s` denotes the transaxial sampling
and `t` denotes the axial direction (along `z`).
# Common fields
* `ns` size of each projection view
Expand Down

4 comments on commit daecffe

@JeffFessler
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator() register

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: Changing package repo URL not allowed, please submit a pull request with the URL change to the target registry and retry.

@JeffFessler
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator() register

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/74404

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.0 -m "<description of version>" daecffe4157959af43b7acafef7e481cb5878d39
git push origin v0.2.0

Please sign in to comment.