GithubHelp home page GithubHelp logo

cernymichal / mri3d Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 579 KB

DICOM volume processor with GUI

Home Page: https://media.githubusercontent.com/media/cernymichal/mri3d/master/cernym65.pdf

Python 64.53% Jupyter Notebook 22.33% TeX 13.14%

mri3d's Introduction

MRI3D

is and application for processing DICOM volume images into more standard 3D formats for further usage. Currently implemented are:

  • TIFF - volume is saved as stack of images into a single file
  • MagicaVoxel VOX - the volume should be normalized first, so that voxels represent actual cubes

The loaded volume can also be munipulated with:

  • Rotation around axis by 90 degrees
  • Upsampling twice
  • Downsampling twice
  • Resampling along one axis to normalize physical voxel size

Interpolation is done trilinearly

*All of these operations can take some time, especially resampling, even though it's multithreaded and compiled.

Installation

  • Python 3.9.13

Preferably use a virtual environment

python -m venv .venv
./.venv/Scripts/activate

Install dependencies

pip install -r requirements.txt --use-pep517

Running

py mri3d

samples contains some demo datasets

Testing

pytest

Fixing DICOM files

Convert potentially non-standard files to complient ones (../fixed/)

find . -type d -exec mkdir -p -- ../fixed/{}
find -type f | xargs -L 1 -d '\n' -P 12 -I '{}' dcmconv --replace-wrong-delim --ignore-parse-errors "{}" "../fixed/{}"

Generate DICOMDIR file for images in DICOM

dcmmkdir --recurse -Pdv --invent DICOM/

mri3d's People

Contributors

cernymichal avatar

Watchers

 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.