Dcm2nii::Ruby
A Ruby wrapper for the dcm2nii DICOM to NIFTI file conversion utility
Installation
Add this line to your application's Gemfile:
gem 'dcm2nii-ruby'
And then execute:
$ bundle
Or install it yourself as:
$ gem install dcm2nii-ruby
Usage
dn = Dcm2nii::Runner.new(input_directory,hash)
eg:
dn = Dcm2nii::Runner.new('/Users/simonmd/code/rubycamppus/input/samples/dicom',reorient:false) # creates an instance of the DCM2NII runner
dn.command # runs the utility
resulting_file = dn.get_nii # Returns the generated nifti file
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request