Giter Club home page Giter Club logo

brain_mri_model's Introduction

brain_mri_model

This repository aims to perform Brain MRI segmentation, independently of image resolution or modality.

requirements

run segmentation

The script to run is called BrainSegmentation.m

All the parameters and file paths to be changed are at the top of this script.

Nevertheless there are some naming conventions that you need to respect. Indeed the script expects several folders containing different things.

  • Mandatory folders (replace # by numbers):

main_folder/test_images/test_brain#.nii.gz

main_folder/test_first_labels/test_brain#_labels.nii.gz

main_folder/test_labels/test_brain#_labels.nii.gz

main_folder/training_labels/training_brain#_labels.nii.gz

main_folder/classesTable.txt (if you run the label fusion with synthetic images)

  • Optional folders/ files

main_folder/training_images/training_brain#.nii.gz (if you run label fusion with real images)

files requirement

  • All the above-mentionned folders have to be under the same directory (called main_folder in this example)

  • classTable.txt consists of two simple columns (without names). Labels are on the left and corresponding classes on the right separated by few white spaces.

  • the images/labels contained in test_images, test_first_labels and test_labels must be aligned, meaning also the raw volumes when you open them with matlab

  • the images/labels contained in training_images and training_labels must also be aligned (when runnoing label fusion with real images)

Parallel label fusion

SingleBrainSegmentation.m is a function that will allow you to run simultaneously several brain segmentation (on a cluster for example).

The pararemeters to change are also placed at the top of that function, but you still need to provide the individual name of the test image along with its first_labels and labels.

The same architecture described in the run segmentation section must be applied.

brain_mri_model's People

Contributors

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