Skip to content

Commit

Permalink
add phantom graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
scottprahl committed Apr 25, 2024
1 parent 3209b49 commit ccee9c3
Show file tree
Hide file tree
Showing 6 changed files with 3,735 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ to create and executable versions the `iad` program. See

## Usage

### Inverting a single measurement on the command line

To find the optical properties
of a sample 1mm thick that has a total reflectance of 40% and a total transmission of
10% do
Expand Down Expand Up @@ -79,6 +81,32 @@ to translate the reflection and transmission measurements to optical properties

> For Windows, there are executable binaries `ad.exe` and `iad.exe` compiled using [MinGW-w64](https://mingw-w64.org/doku.php). These apps can be run using the `Command Prompt` application `cmd.exe`. These binaries are packaged in a separate `iad-win` distributions on [github](https://github.com/scottprahl/iad/releases) or [omlc](https://omlc.org/software/iad/).
### Inverting many points

Usually one wants the optical properties over an entire spectrum. A good example was
recently provide by @anishabahl. This measurement was made with a spectrophotometer
equipped with a dual beam integrating sphere. The input data looks like this

![r and t graph](phantom-with-no-slides-RTU.svg)

The option `i 8` indicates that light is incident on the sample at an angle of 8°, `-X` indicates that a sphere with dual beams was used, and `-g 0.9` indicates the default
scattering anisotropy. Note that in the PDMS file, the index off refraction of the
sample changes with every data point

```bash
iad -X -i 8 -g 0.9 phantom-with-no-slides.rxt
```

which should produce data that when plotted looks like

![calculated mua](phantom-with-no-slides-mua.svg)

and

![calculated mus](phantom-with-no-slides-mus.svg)



### Jupyter support

As of March 2024, there is now a python command-line script `iadplus` that will analyze an `.rxt` input file and graph the results. Everything is assembled into a Jupyter notebook for convenience. You may need to install some python modules to be able to use `iadplus`
Expand Down
Loading

0 comments on commit ccee9c3

Please sign in to comment.