Git Product home page Git Product logo

mri_analysis's Introduction

MRI_analysis

How to analyze the DICOM files from a MRI scan. I had access to a set of MRI scan data, and I wanted to output them to a 3D file to view the innards of the human body. I couldn't get the online tutorials(from instructables and sculpteo- both in the References section) working word-for-word, so I will document my steps here. (though it is extremely unlikely that I will once again be analyzing a MRI scan data.)

my environment

1. Convert DICOM to NIFTI

get the latest version of MRIcron/NPM/dcm2nii. Open the app dcm2niigui, and select File > DICOM to NIFTI. Navigate to the directory with the data(in my case it was the directories named SE000000~SE000017), and click open. It should convert the files into something with .nii.gz extension.

2. analyze and output to 3d file

must have XQuartz to run, and must execute

$ export FREESURFER_HOME=/Applications/freesurfer
$ source $FREESURFER_HOME/SetUpFreeSurfer.sh

in the terminal(or write it to ~/.profile) to run the app.

use FreeSurfer

run $ recon-all -s output -all -notal-check -i <???.nii.gz> -sd <~/output_directory> -cw256

Change the stuff inside < > to your configuration. It takes time. (The app told me to add options -cw256 and -notal-check to process them properly, but I don't really know what they are for.)

3. convert to STL

$ mris_convert <??.pial> <??.stl>

error

FAQ- FreeSurfer

Q. Help! I got this error message: "mri_watershed error: GLOBAL region of the brain empty!" - what should I do?

A: Run this:
recon-all -skullstrip -no-wsgcaatlas -s <subjid>

If that goes through without error, you can finish processing your data by running:
recon-all -autorecon2 -autorecon3 -s <subjid>

References

mri_analysis's People

Contributors

yasu31 avatar

Watchers

 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.