Skip to content

Commit

Permalink
improve readme
Browse files Browse the repository at this point in the history
  • Loading branch information
korbi committed Mar 23, 2020
1 parent 4b7d335 commit 64a4b33
Showing 1 changed file with 52 additions and 15 deletions.
67 changes: 52 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
[![Codecov](https://codecov.io/gh/korbinian90/MriResearchTools.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/korbinian90/MriResearchTools.jl)
[![Coveralls](https://coveralls.io/repos/github/korbinian90/MriResearchTools.jl/badge.svg?branch=master)](https://coveralls.io/github/korbinian90/MriResearchTools.jl?branch=master)

### Prerequisites
## Prerequisites
A Julia installation v1.x is required.

Magnitude and Phase images in NIfTI fileformat (4D images with echoes in the 4th dimension)

### Installing
## Installing
Open the Julia REPL and type

```julia
Expand All @@ -20,25 +20,62 @@ julia> ] # enter julia package manager
julia>
```

### Included Functionality
## Quick Start
Open multi-echo 4D NIfTI phase and magnitude files and perform ROMEO phase unwrapping.

ROMEO 3D/4D Phase Unwrapping
```julia
using MriResearchTools
# input images
TEs = [4,8,12]
nifti_folder = joinpath("test", "data", "small")
magfile = joinpath(nifti_folder, "Mag.nii") # Path to the magnitude image in nifti format, must be .nii or .hdr
phasefile = joinpath(nifti_folder, "Phase.nii") # Path to the phase image
# load images
mag = readmag(magfile)
phase = readphase(phasefile)
# unwrap
unwrapped = romeo(phase; mag=mag, TEs=TEs)
# save unwrapped image
outputfolder = "outputFolder"
mkpath(outputfolder)
savenii(unwrapped, "unwrapped", outputfolder, header(phase))
```

## Included Functionality

ROMEO 3D/4D Phase Unwrapping\
`romeo` `unwrap` `unwrap_individual`

Reading, writing and other functions for NIfTI files (adapted from JuliaIO/NIfTI)\
`readphase` `readmag` `niread` `savenii` `header`

Magnitude homogeneity correction ([example](https://github.com/korbinian90/Magnitude-Intensity-Correction/blob/master/Intensity%20Correction.ipynb))\
`makehomogeneous`

Simple robust masking (threshold)\
`robustmask`

Reading and writing NIfTI files (adapted from JuliaIO/NIfTI)
Combine multiple echoes\
`RSS`

Magnitude homogeneity correction ([example](https://github.com/korbinian90/Magnitude-Intensity-Correction/blob/master/Intensity%20Correction.ipynb))
Laplacian unwrapping\
`laplacianunwrap`

Simple robust masking (threshold)
Unwarping of B0 dependent shifts\
`getVSM` `thresholdforward` `unwarp`

Combine multiple echoes
Fast gaussian smoothing\
`gaussiansmooth3d`
- standard
- weighted
- with missing values

Laplacian unwrapping
Other functions
`robustrescale` `getHIP` `getsensitivity` `getscaledimage` `estimatequantile`

Unwarping of B0 dependent shifts
## License
This project is licensed under the MIT License - see the [LICENSE](https://github.com/korbinian90/MriResearchTools.jl/blob/master/LICENSE) for details

Fast gaussian smoothing
- standard
- weighted
- with missing values

TODO: Tests and Examples
## TODO
Tests, Examples and Documentation

0 comments on commit 64a4b33

Please sign in to comment.