Giter VIP home page Giter VIP logo

brain_mri_viewer's Introduction

Brain MRI Viewer

MRI viewer and windowing tool.

The motivation behind this project was to implement MRI preprocessing, visualization and windowing from scratch.

With this code you can:

  • Visualize the slices of each view (sagittal, coronal and axial) of your MRI NIfTi file (3 or 4 dimensions)
  • Apply windowing to the MRI by managing the window width and level

Project setup

You can clone the repository by using the command:

    $ git clone https://github.com/enriquemondragon/Brain_MRI_Viewer.git

Then, in the project's folder, you can execute the Makefile to setup the project and activate the created environment:

    $ make
    $ source venv/bin/activate

Usage

By default when loading an MRI, you will be able to visualize all three views at the same time

    python3 brain_mri_viewer.py --input [NifTi_file]

Multiview

If you want to see only 1 view at a time, yo can specify it with the view flag

    python3 brain_mri_viewer.py --input [NifTi_file] --view {sag, cor, axi}

single view

For applying windowing you can use the window flag in either cases

    python3 brain_mri_viewer.py --input [NifTi_file] --window

WIndowing


Author

Name: Enrique Mondragon Estrada

Mail: [email protected]


Sources

Documentation that was useful when writing the code and can be use for further develop


License

Brain MRI Viewer is available under the MIT license. See the LICENSE file for more info.

brain_mri_viewer's People

Contributors

enriquemondragon 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.