Git Product home page Git Product logo

vascular_data's Introduction

vascular_data

This repository contains code to generate the data used to train the SimVascular Machine Learning 2D segmentation neural networks.

The code processes data from the Vascular Model Repository (VMR) into files that are easy to read using Python. In particular, for each case in the VMR, and for each vessel pathline for that case, the code loops over all path points where a user has segmented the vessel lumen and extracts a cross-sectional reslice image of the vessel at that location, along with the segmented lumen contour points. The code also extracts cross-sectional reslice images from the ground-truth cardiovascular model (represented as an image volume with binary pixel values).

Running the code

This code relies on the VMR being stored in a particular folder structure. The original data used can be found in /home/SHARED/vascular_data on the Marsden Lab Skalak file server.

All cases should be stored in separate folders under one main folder. The main folder should have the path indicated by CASES_PREFIX in the config file /config/case.yaml in this repository.

The locations of the image volume files, ground-truth binary image volume files, path files and group folders should then be indicated in .txt files. An example of this can be found in /cases in this repository.

Once these files have been set up, the data can be generated by running

python generate_cases.py
python process_data.py

Finally note that a copy of the processed data is stored at /home/SHARED/ML on the Marsden Lab Skalak filer server.

vascular_data's People

Contributors

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