FNNDSC / med2image

Converts medical images to more displayable formats, e.g. NIfTI to jpg.
MIT License
188 stars 56 forks source link

All the dcm files are converting instead of single file #23

Closed ninjakx closed 4 years ago

ninjakx commented 4 years ago

The code is converting all the dcm files. med2image -i 000002.dcm -o 000002.png

arushivyas commented 4 years ago

The code is designed such that even though any one .dcm from the directory is passed to the --inputFile argument, all the .dcm files/slices in the directory that you provided will be converted.

In order to convert a particular slice from the directory, you will have to pass the slice number that you want to convert to the --sliceToConvert argument.