Python script for converting dentist volume data to better documented formats
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
dentistdataconv.py

README.md

dentistdataconv

dentistdataconv.py is a simple Python script that converts volumetric dentist data to better documented volume formats: nrrd, MetaImage (mhd), and nifti (nii).

Dependencies

Besides Python, the script's only dependency is numpy. For nifti (.nii) output one also needs pynifti.

Usage

The -h options shows how to use it:

Usage: dentistdataconv.py [options] inputdirectory outputbasename

Options:
  -h, --help       show this help message and exit
  -n, --nhdr       write nrrd header (nhdr)
  -m, --metaimage  write metaimage header (mhd)
  -i, --nifti      write nifti file (nii)
  -r, --raw        write raw data to file (used by header files)

For example, the following command,

./dentistdataconv.py -n -m -r /path/to/datadirectory myvolume

will produce three files: myvolume.nrrd myvolume.mhd myvolume.raw

License

See LICENSE.