Skip to content

DIDSR/mr-recon-eval-core

Repository files navigation

MR Recon Eval: Digital Image Quality Phantoms and Automated Evaluation Metrics for Assessing Machine Learning-Based MRI Reconstruction

Summary

This repository contains the open-source Python code for the paper titled "Evaluating Machine Learning-Based MRI Reconstruction Using Digital Image Quality Phantoms". It consists of:

  1. Digital phantom creation (digital_phantom.py): creating 3 types of phantoms in k-space: disk, resolution, low-contrast phantom
  2. Metrics evaluation (evaluation_metrics.py): geometric accuracy, intensity uniformity, percentage ghosting, sharpness, SNR, high contrast resolution, and low contrast detectability.

Disclaimer

This software and documentation (the "Software") were developed at the Food and Drug Administration (FDA) by employees of the Federal Government in the course of their official duties. Pursuant to Title 17, Section 105 of the United States Code, this work is not subject to copyright protection and is in the public domain. Permission is hereby granted, free of charge, to any person obtaining a copy of the Software, to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, or sell copies of the Software or derivatives, and to permit persons to whom the Software is furnished to do so. FDA assumes no responsibility whatsoever for use by other parties of the Software, its source code, documentation or compiled executables, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic. Further, use of this code in no way implies endorsement by the FDA or confers any advantage in regulatory decisions. Although this software can be redistributed and/or modified freely, we ask that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified.

Start Here

  1. Install python 3.11.3 or any version greater (Note: the code was tested on python 3.11.3 and 3.11.5 by the authors but maybe compatible with a lower version of python.)

  2. Clone this repository and navigate to its root directory

  3. Install the required dependencies

    pip install numpy matplotlib scikit-image scipy spyder

Demo

Run Demo in Spyder

Run spyder and then open the code "demo.py" to run the demo code.

Expected Output

geometric accuracy, maximum percentage error:  0.0004787829883421062
intensity uniformity:  94.42621651886563
percentage ghosting:  0.0014833648906810717
sharpness fwhm:  1.7792694914919003 sharpness slope:  0.2886013210608282
SNR dual:  9.686461713187088
high contrast resolution, number of resolved line:  (4, 4)
Calculating low contrast detectability measurement ...
low contrast detectability number of complete spokes:  9

**The exact numbers will be different due to random noise in each realization.

Reference

Contacts

Rongping Zeng, [email protected] Fei Tan, [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages