Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting this error while trying to convert #21

Open
nevilpaul opened this issue Jul 22, 2019 · 3 comments
Open

Getting this error while trying to convert #21

nevilpaul opened this issue Jul 22, 2019 · 3 comments

Comments

@nevilpaul
Copy link

$ med2image -i �c0001s0004t01.nii -o input.jpg -s m
C:\users\nevil\appdata\local\programs\python\python37-32\lib\site-packages\dicom_init_.py:53: UserWarning:
This code is using an older version of pydicom, which is no longer
maintained as of Jan 2017. You can access the new pydicom features and API
by installing pydicom from PyPI.
See 'Transitioning to pydicom 1.x' section at pydicom.readthedocs.org
for more information.

warnings.warn(msg)
usage: med2image [-h] [-i INPUTFILE] [-o OUTPUTFILESTEM] [-d OUTPUTDIR]
[-t OUTPUTFILETYPE] [-s SLICETOCONVERT] [-f FRAMETOCONVERT]
[--printElapsedTime] [-r] [--showSlices] [--func FUNC] [-x]
[-y] [-v]
med2image: error: unrecognized arguments: \x96c0001s0004t01.niiinput.jpg

@yacine074
Copy link

You should change your nifti file path, just move the nifti file to another file

@arushivyas
Copy link
Contributor

Hi,
You should be passing an absolute path to the "-i" or in this case, make sure that your current working directory is the one which contains your give NIfTI volume.

For more details please refer to the: [-i|--inputFile] and [-I|--inputDir] CLI arguments in the "Command Line Arguments" section at the end of the README.rst file.

@arushivyas
Copy link
Contributor

arushivyas commented Jun 29, 2020

Please go through the new and updated README.rst file and follow the instructions to run med2image on a UNIX system.

We are now also providing a Docker container called pl-med2img

Follow this link for detailed instructions: https://github.com/FNNDSC/pl-med2img

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants