Kiyokawa / pydicom

Automatically exported from code.google.com/p/pydicom
0 stars 0 forks source link

pixel_array return error #132

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
when I use ds.pixel_array, it says:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\dicom\dataset.py", line 405, in _get_pixel
_array
    return self._getPixelArray()
  File "C:\Python27\lib\site-packages\dicom\dataset.py", line 390, in _getPixelA
rray
    raise NotImplementedError, "Pixel Data is compressed in a format pydicom doe
s not yet handle. Cannot return array"
NotImplementedError: Pixel Data is compressed in a format pydicom does not yet h
andle. Cannot return array

anybady can help me? Thx in advance?

Original issue reported on code.google.com by zhangyutingzyt1989 on 15 Aug 2013 at 7:46

GoogleCodeExporter commented 8 years ago
pydicom does not yet handle pixel compression schemes, so if you need to 
manipulate pixels in such dicom files using pydicom, then you should first pass 
the files through a decompression program. This could be done, for example, 
with command-line tools in dcmtk.

Original comment by darcymason@gmail.com on 15 Aug 2013 at 11:55

GoogleCodeExporter commented 8 years ago
Closing the issue as not handling compressed pixel data is standard behaviour 
in current pydicom.

Original comment by darcymason@gmail.com on 15 Sep 2013 at 10:14