Focus Chart

This page illustrates the focus_chart method in the Julia package ImagePhantoms.

This page comes from a single Julia file: 08-focus.jl.

You can access the source code for such Julia documentation using the 'Edit on GitHub' link in the top right. You can view the corresponding notebook in nbviewer here: 08-focus.ipynb, or open it in binder here: 08-focus.ipynb.

Setup

Packages needed here.

using ImagePhantoms: focus_chart, phantom
using MIRTjim: jim

Focus chart phantom image

One of the shapes in ImagePhantoms is an equilateral triangle, and by scaling and translating this shape one can define a focus chart phantom.

ob = focus_chart( ; nspoke = 56, value = 4)
x = range(-1,1,2^9) * 1.1
y = x
image = phantom(ob).(x, y')
jim(x, y, image; title = "Focus chart phantom")
Example block output

This page was generated using Literate.jl.