Off-resonance CorrecTion OPen soUrce Software (OCTOPUS)
Off-resonance CorrecTion OPen soUrce Software (OCTOPUS) - Published in JOSS (2021)
Science Score: 95.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 6 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
1 of 4 committers (25.0%) from academic institutions -
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords from Contributors
Scientific Fields
Repository
Off-resonance Correction OPen soUrce Software
Basic Info
Statistics
- Stars: 18
- Watchers: 3
- Forks: 5
- Open Issues: 2
- Releases: 1
Metadata Files
README.md
OCTOPUS: Off-resonance CorrecTion OPen-soUrce Software
OCTOPUS is an open-source tool that provides off-resonance correction methods for Magnetic Resonance (MR) images. In particular, the implemented techniques are Conjugate Phase Reconstruction (CPR)[1], frequency-segmented CPR [2] and Multi-Frequency Interpolation (MFI) [3].
Off-resonance is a type of MR image artifact. It originates as an accumulation of phase from off-resonant spins along the read-out direction due to field inhomogeneities, tissue susceptibilities and chemical shift among other possible sources [4]. Long read-out k-space trajectories are therefore more prone to this artifact and its consequences on the image. The image effects are tipycally blurring and/or geometrical distortion, and consequently, quality deterioration [5].
OCTOPUS leverages existing techniques and outputs artifact-corrected or mitigated image reconstruction given the raw data from the scanner, k-space trajectory and field map. It is targeted to MR scientists, researchers, engineers and students who work with off-resonance-prone trajectories, such as spirals.
To learn more about the used methods and their implementation visit the API docs.
Installation
- Install Python (>=Python 3.6)
- Create and activate a virtual environment (optional but recommended)
- Copy and paste this command in your terminal
pip install MR-OCTOPUS
Otherwise, skip the installation! Run OCTOPUS in your browser instead.
Quick start
The Examples folder contains scripts and data to run off-resonance correction on numerical simulations and phantom images for different k-space trajectories and field maps.
After the installation is completed, download the example data. Now you can run two types of demos. More information about these and other experiments can be found in the Wiki page.
1. Numerical simulations
numsim_cartesian.py and numsim_spiral.py run a forward model on a 192x192 Shepp-Logan phantom image. They simulate the off-resonance effect of a cartesian and spiral k-space trajectory, respectively, given a simulated field map.
With OCTOPUS.fieldmap.simulate you can experiment the effect of the type of field map and its frequency range on the output corrupted image.
The corrupted image is then corrected using CPR, fs-CPR and MFI and the results are displayed.
2. In vitro experiment
If you want to use OCTOPUS to correct real data, you can use ORC_main.py as a template.
1. Fill the settings.ini file with the paths for your inputs and outputs. NOTE: the default settings are configured to run the script using the sample data provided.
2. Input your field of view (FOV), gradient raster time (dt), and echo time (TE).
python
FOV = # meters
dt = # seconds
TE = # seconds
3. Check that the dimensions of your inputs agree.
rawdata dims = ktraj dims
5. Specify the number of frequency segments for the fs-CPR and MFI methods
python
Lx = # L=Lmin * Lx
6. Run the script.
The program will display an image panel with the original image and the corrected versions.
3. Command line implementation - NEW!
Now you can easily run OCTOPUS using commands on your terminal. After installation, type:
python
OCTOPUS_cli path/to/container/folder rawdata_file kspace_trajectory_file field_map_file correction_method
For more information about the command line implemetation and its required arguments, type:
python
OCTOPUS_cli -h
For more information about how to structure your data, visit the API docs.
Skip the installation! - OCTOPUS in your browser
There's no need to go through the installation process. Using this template you can now run off-resonance correction in your browser!
As a demo, you can use the example data provided for the in vitro experiment.
Contributing and Community guidelines
OCTOPUS adheres to a code of conduct adapted from the Contributor Covenant code of conduct.
Contributing guidelines can be found here.
References
- Maeda, A., Sano, K. and Yokoyama, T. (1988), Reconstruction by weighted correlation for MRI with time-varying gradients. IEEE Transactions on Medical Imaging, 7(1): 26-31. doi: 10.1109/42.3926
- Noll, D. C., Pauly, J. M., Meyer, C. H., Nishimura, D. G. and Macovskj, A. (1992), Deblurring for non‐2D fourier transform magnetic resonance imaging. Magn. Reson. Med., 25: 319-333. doi:10.1002/mrm.1910250210
- Man, L., Pauly, J. M. and Macovski, A. (1997), Multifrequency interpolation for fast off‐resonance correction. Magn. Reson. Med., 37: 785-792. doi:10.1002/mrm.1910370523
- Noll, D. C., Meyer, C. H., Pauly, J. M., Nishimura, D. G. and Macovski, A. (1991), A homogeneity correction method for magnetic resonance imaging with time-varying gradients. IEEE Transactions on Medical Imaging, 10(4): 629-637. doi: 10.1109/42.108599
- Schomberg, H. (1999), Off-resonance correction of MR images. IEEE Transactions on Medical Imaging, 18( 6): 481-495. doi: 10.1109/42.781014
Owner
- Name: iMR Framework
- Login: imr-framework
- Kind: user
- Location: New York
- Repositories: 12
- Profile: https://github.com/imr-framework
JOSS Publication
Off-resonance CorrecTion OPen soUrce Software (OCTOPUS)
Authors
Department of Biomedical Engineering, Columbia University in the City of New York, USA, Columbia Magnetic Resonance Research Center, Columbia University in the City of New York, USA
Tags
MRI off-resonance correctionGitHub Events
Total
- Issues event: 1
- Watch event: 2
- Fork event: 1
Last Year
- Issues event: 1
- Watch event: 2
- Fork event: 1
Committers
Last synced: 5 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Marina Manso Jimeno | m****6@g****m | 113 |
| iMR Framework | 3****k | 6 |
| Sairam Geethanath | 3****h | 2 |
| Daniel S. Katz | d****z@i****g | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 7
- Total pull requests: 3
- Average time to close issues: 26 days
- Average time to close pull requests: 2 minutes
- Total issue authors: 2
- Total pull request authors: 3
- Average comments per issue: 2.43
- Average comments per pull request: 0.33
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 1
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- emilljungberg (6)
- NCastro-FAU (1)
Pull Request Authors
- dependabot[bot] (1)
- Mmj94 (1)
- danielskatz (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 38 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 9
- Total maintainers: 1
pypi.org: mr-octopus
Off-resonance correction of MR images
- Homepage: https://github.com/imr-framework/OCTOPUS
- Documentation: https://mr-octopus.readthedocs.io/
- License: License :: OSI Approved :: GNU Affero General Public License v3
-
Latest release: 0.2.7
published about 5 years ago
Rankings
Maintainers (1)
Dependencies
- matplotlib >=3.1.3
- nibabel >=3.0.2
- numpy >=1.18.1
- opencv-python >=4.1.2.30
- pydicom >=2.0.0
- pynufft ==2019.2.3
- scikit-image >=0.16.2
- scipy ==1.4.1