Giter VIP home page Giter VIP logo

hemoflow's Introduction

🩸Hemoflow

GitHub repo size

Visualize velocity image series from a phase contrast magnetic resonance imaging study as a three-dimensional vector field.

Setup

Clone the repository

git clone https://github.com/lewinkoon/hemoflow

Change into the project directory

cd hemoflow

Create a virtual environment inside the directory

python -m venv .venv

Activate the previously created virtual environment

.venv\Scripts\activate # on Windows
source .venv/bin/activate # on Unix or MacOS

Install poetry dependency manager

python -m pip install poetry

Install the required dependencies for the project

poetry install

Import dicom files

Create the required file directories

hemoflow init

The four directories correspond with the following image series:

  • FH - Feet to head flow images.
  • AP - Anterior to posterior flow images.
  • RL - Right to left flow images.

Copy your dicom image series to files/ directory.

files/
β”œβ”€β”€β”€FH
β”‚   β”œβ”€β”€β”€IM1.DCM
β”‚   β”œβ”€β”€β”€IM2.DCM
β”‚   β”œβ”€β”€β”€...
β”‚   └───IMX.DCM
β”œβ”€β”€β”€AP
β”‚   β”œβ”€β”€β”€IM1.DCM
β”‚   β”œβ”€β”€β”€IM2.DCM
β”‚   β”œβ”€β”€β”€...
β”‚   └───IMX.DCM
└───RL
    β”œβ”€β”€β”€IM1.DCM
    β”œβ”€β”€β”€IM2.DCM
    β”œβ”€β”€β”€...
    └───IMX.DCM

Run the script

Finally, build volumetric the velocity field from dicom files.

hemoflow build

Data files in .csv format will be created for each timestep in output/ folder.

output/
β”œβ”€β”€β”€data.csv.0
β”œβ”€β”€β”€data.csv.26
β”œβ”€β”€β”€...
└───data.csv.603

Each dataframe will have cordinates and velocity components for each axis.

Important

Velocity components are meant to be in cm/s.

License

This project is licensed under the MIT License. See license.txt file for details.

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.