A Ruby wrapper for the dcm2nii DICOM to NIFTI file conversion utility
Add this line to your application's Gemfile:
gem 'dcm2nii-ruby'
And then execute:
$ bundle
Or install it yourself as:
$ gem install dcm2nii-ruby
dn = Dcm2nii::Runner.new(input_directory,{options hash})
eg:
dn = Dcm2nii::Runner.new('/Users/simonmd/code/rubycamppus/input/samples/dicom',{reorient_crop:false, reorient:false}) # creates an instance of the DCM2NII runner
dn.command # runs the utility
resulting_file = dn.get_nii # Returns the generated nifti file
- 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