Coder Social home page Coder Social logo

ntnu-mr-cancer / autoref Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 9.2 MB

Automated reference tissue normalization of T2-weighted MR images of the prostate using object recognition

Home Page: https://link.springer.com/article/10.1007%2Fs10334-020-00871-3

License: MIT License

MATLAB 100.00%
mri prostate-cancer prostate object-detection reference-tissue normalization mri-images autoref

autoref's Introduction

AutoRef

"Automated reference tissue normalization of T2-weighted MR images of the prostate using object recognition"

This is an automated method for dual-reference tissue normalization of T2-weighted MRI for the prostate.

The method was developed at the MR Cancer group at the Norwegian University of Science and Technology (NTNU) in Trondheim, Norway. https://www.ntnu.edu/isb/mr-cancer

For detailed information about this method, please read our paper: https://link.springer.com/article/10.1007%2Fs10334-020-00871-3

Note

The provided algorithm was developed for research use and was NOT meant to be used in clinic.

Python Version

Check this repository: https://github.com/MohammedSunoqrot/pyAutoRef For the Python version, you can install the package either from pip or using pip or the files in GitHub repository [https://github.com/MohammedSunoqrot/pyAutoRef]

pip

Simply type:

pip install pyAutoRef

GitHub

  • Clone the GitHub repository From command line
    git clone https://github.com/MohammedSunoqrot/pyAutoRef.git
    
  • Change directory to the clones folder (unzip if needed) and type
    pip install . 
    

How to cite AutoRef

In case of using or refering to AutoRef, please cite it as:

Sunoqrot, M.R.S., Nketiah, G.A., Selnæs, K.M., Bathen, T.F., Elschot, M. Automated reference tissue normalization of T2-weighted MR images of the prostate using object recognition. Magn Reson Mater Phy (2020). https://doi.org/10.1007/s10334-020-00871-3

How to use AutoRef

This is a MATLAB® function, the function was written and tested using MATLAB® R2019b.

To run the function you can use the AutoRef.m file and make sure to install the trained object detectors "fatDetector.mat" and "muscleDetector.mat" and the Dependency folder. In addition, you have to install the Convert3D tool as desciped in the Dependency section below.

Make sure that all of these files are in the same folder.

To use the function, you simply have to provide the full directory (string) to your DICOM foldr or MetaIO (.mha/.mhd) image as an input to the AutoRef function.

normalized = AutoRef('full_directory');

The output (normalized) is a structure that contains:

  1. normalized.Data: 3D image data (the normalized image).
  2. normalized.info: DICOM info, organized per slice.
  3. normalized.A: affine transformation matrix to transform image to the world coordinate system.
  4. normalized.R: reference image coordinate system.

Example for DICOM folders:

Let say you have a folder with the images resulted from a T2-weighted MRI scan of the prostate (Case10). To get the normalized image (Structure in MATLAB®) you have to type this:

normalized = AutoRef('C:\Data\Case10');

Example for MetaIO image:

Let say you have a the images resulted from a T2-weighted MRI scan of the prostate (Case10) in MetaIO format (3D image). To get the normalized image (Structure in MATLAB®) you have to type this:

normalized = AutoRef('C:\Data\Case10.mhd');

After that you can convert the matlab image to the format you find suitable for your work. For example you can conver the normalized image to a MetaIO image.

StrDatax = elxIm3dToStrDatax(normalized);
Filename = 'C:\Data\Case10_Normalized.mhd';
elxStrDataxToMetaIOFile(StrDatax, FilenameNorm, 0);

Dependency

This function depend on the followings, which you should make sure that you have correctly installed them on your computer:

  1. Convert3D tool from ITK by ITK-SNAP http://www.itksnap.org
  1. elastix toolbox (4.3<=version<=4.7): by: Image Sciences Institute, University Medical Center Utrecht, The Netherlands.
  1. ElastixFromMatlab (a MATLAB® wrapper around elastix) by: CNRS,France and Riverside Research, USA https://sourcesup.renater.fr/www/elxfrommatlab/
  • It is included in the Dependency folder, so no need to download it.
  • In case of you had to redownload the elastix toolbox as mentioned above, make sure to change the paths in "elxTestDefaultConfiguration.m" script.
  1. loadImage3 by: Dr. Mattijs Elschot from the MR center at the Norwegian University of Science and Technology (NTNU), Trondheim, Norway. Dr. Elschot allowed the function useage and upload.

A function to read the DICOM images and sort them in a structure similar to that generated by ElastixFromMatlab.

  • It is included in the Dependency folder, so no need to download it.

Contact us

Feel free to contact us: [email protected]

autoref's People

Contributors

mohammedsunoqrot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.