Skip to content

Commit 0321223

Browse files
committed
add(docs): structure and features in docs
1 parent 4295c00 commit 0321223

File tree

10 files changed

+44
-19
lines changed

10 files changed

+44
-19
lines changed

docs/make.jl

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,22 @@ makedocs(;
1212
prettyurls=get(ENV, "CI", "false") == "true",
1313
canonical="https://kunzaatko.github.io/TransferFunctions.jl",
1414
edit_link="trunk",
15-
assets=String[],
15+
assets=String[]
1616
),
1717
pages=[
1818
"Home" => "index.md",
19-
],
19+
"Theory" => "pages/01_theory.md",
20+
"General Interface" => "pages/02_interface.md",
21+
"Transfer Functions" => [
22+
"Transfer Function Models" => "pages/03_model_tfs.md",
23+
"Transfer Functions Measurements" => "pages/04_measured_tfs.md"],
24+
"References" => [
25+
"API Reference" => "pages/05_apireference.md",
26+
"Bibliography References" => "pages/06_references.md"
27+
]]
2028
)
2129

2230
deploydocs(;
2331
repo="github.com/kunzaatko/TransferFunctions.jl",
24-
devbranch="trunk",
32+
devbranch="trunk"
2533
)

docs/src/index.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
```@meta
22
CurrentModule = TransferFunctions
33
```
4+
# TransferFunctions.jl
45

5-
# TransferFunctions
6+
_Transfer functions for optical systems_
67

7-
Documentation for [TransferFunctions](https://github.com/kunzaatko/TransferFunctions.jl).
8+
## Package Features
89

9-
```@index
10-
```
10+
!!! note
11+
If you want to know more about the model of image formation in optical systems (cameras, microscopes, etc.) see
12+
[theory](@ref "Theory Overview") section.
13+
14+
- Generate OTF, PSF, MTF or PTF from a model or measured data
15+
- Convert between OTF and PSF for models and measurements
16+
- Models of transfer functions (OTF and PSF)
17+
- Define a transfer function from its Zernicke coefficients <!-- TODO: -->
18+
- Estimate the Zernicke coefficients for a measured transfer function <!-- TODO: -->
1119

12-
```@autodocs
13-
Modules = [TransferFunctions]
14-
```

docs/src/pages/01_theory.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Theory Overview
2+
3+
!!! note
4+
All of the models assume *incoherent illumination* sources (i.e. where the radiation from the source has inocoherent frequency light). This is an approximation for most optical setups, but one that is used almost universally (e.g. in fluorescence microscopy).
5+
6+
<!-- TODO: -->

docs/src/pages/02_interface.md

Whitespace-only changes.

docs/src/pages/03_model_tfs.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```@meta
2+
CurrentModule = TransferFunctions
3+
```
4+
# Models
5+
- [`IdealOTFwithCurvature`](@ref)
6+
- [`BornWolf`](@ref)
7+
- [`GibsonLanni`](@ref)

docs/src/pages/04_measured_tfs.md

Whitespace-only changes.

docs/src/pages/05_apireference.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```@autodocs
2+
Modules = [TransferFunctions]
3+
Order = [:function, :type]
4+
```

docs/src/pages/06_references.md

Whitespace-only changes.

src/TransferFunctions.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
@doc raw"""
2-
This module implements diffraction transfer function models that are widely used in microscopy. The base type for any transfer function is `TransferFunction` and further disambiguates to [`MeasuredTransferFunction`](@ref) and [`ModelTransferFunction`](@ref).
3-
4-
!!! warning
5-
All of the models assume *incoherent illumination* sources (i.e. where the radiation from the source is inocoherent). This is an approximation for most optical setups, but one that is used almost universally (e.g. in fluorescence microscopy).
6-
"""
71
module TransferFunctions
82
using SimpleTraits
93
using Unitful

src/otf.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ end
1313
Generate an otf for the given transfer function with the size `wh` (size of `img`) and with a pixel distance of `Δxy`
1414
1515
!!! note
16-
The pixel size/distance (`Δxy`) is only required for a [model transfer function](@ref ModelTransferFunction). If it
17-
is not provided for a `MeasuredTransferFunction`, then the pixel distance from the measurement is used.
16+
The pixel size/distance (`Δxy`) is required for a [model transfer function](@ref ModelTransferFunction) and optional
17+
for a [`MeasuredTransferFunction`](@ref).
1818
1919
# Arguments
2020
* `tf::TransferFunction`: transfer function model/measure to generate the OTF for
2121
* `wh::Tuple{Integer, Integer}` or `wh::Integer`: (width, height) of the generated OTF. `wh` ↦ `(wh, wh)` if `wh isa Integer`.
2222
* `Δxy::Tuple{Length, Length}` or `Δxy::Length`: Separation of pixels in the ``x`` and ``y`` dimensions of the generated
23-
OTF image. `Δxy` ↦ `(Δxy, Δxy)` if `Δxy isa Length`.
23+
OTF image. `Δxy` ↦ `(Δxy, Δxy)` if `Δxy isa Length`. (default: pixel distance from the measurement for a
24+
[`MeasuredTransferFunction`](@ref))
2425
* `δ::Tuple = (0,0)`: shift of the OTF in the image plane in pixels. This is useful for some algorithms, e.g. in
2526
structured illumination microscopy reconstruction algorithms.
2627
"""

0 commit comments

Comments
 (0)