Giter Site home page Giter Site logo

rtx2mnc_py's Introduction

rtx2mnc_py

Converts an Dicom RTX struct to minc

Authors

Rigshospitalet

Installation (under /opt/bin/rtx2mnc_py):

git clone https://github.com/claesnl/rtx2mnc_py.git
ln -s $HOME/rtx2mnc_py/rtx2mnc.py /opt/bin/rtx2mnc_py

Usage:

rtx2mnc_py < VOLUME.mnc > < RTx > < out_label.mnc > [ --verbose ] [ --visualize ]
      	   < VOLUME.mnc > is the file which the RTx was defined on.
      	   < RTx > is the RT struct in DICOM format.
      	   < out_label.mnc > is the resulting MINC file with the contours in the RT file set to 1. 
                             If more than one struct, out_label will be suffixed by a running number.
      	   --verbose turns on additional information
      	   --visualize shows individual slices for debugging

Requires/Dependencies:

  • MINC tools
  • pyminc
  • DCMTK
  • pydicom
  • opencv2-python
  • numpy

Installation of dependencies:

MINC tools:

git clone --recursive https://github.com/BIC-MNI/minc-toolkit-v2.git minc-toolkit-v2
cd minc-toolkit-v2 && mkdir build && cd build
ccmake .. -DMT_BUILD_SHARED_LIBS:BOOL=ON
make && sudo make install

pyminc:

git clone https://github.com/Mouse-Imaging-Centre/pyminc.git
cd pyminc
python setup.py install

DCMTK:

git clone https://github.com/commontk/DCMTK.git
cd DCMTK
./configure
make all
sudo make install-all

Python tools:

pip install pydicom opencv-python numpy

Version changes:

  • 1.0.0 :: 2018-03-08 :: Added basic functionality working for one or more RT-files
  • 1.0.1 :: 2018-03-08 :: Added RT-name in MNC header

rtx2mnc_py's People

Contributors

claesnl avatar

Watchers

 avatar James Cloos 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.