Convert DICOM files such as magnetic resonance and computer tomography images, fluoroscopy and ultrasound images to a video file.
- ImageMagick
- ffmpeg
To install on macOS with homebrew:
git clone https://github.com/andreoss/dicom; cd dicom; brew install imagemagick; brew install ffmpeg
You need to specify an input directory, which is walked recursively.
If --weigth
and --height
not specified, maximal available values for both will be used.
Frame rate can be specified by --rate
.
$ ./dicom --input ~/DICOM/ --overwrite --output ~/result.mp4 --rate 6 --width 600 --height 400