FNNDSC / FNNDSC/med2image

Getting this error while trying to convert

Open
#21 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
205
Forks
57
PR merge metrics
No merged PRs in 30d

Description

$ 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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the shown med2image command on the reported Windows and Python 3.7 environment, then compare its arguments with the usage output. The pydicom warning and the unrecognized-arguments error are the available clues; done means the conversion command is accepted and produces the requested output, or the failure is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.