suever / pydicom-experimental

pydicom test
0 stars 1 forks source link

pixel_array return error #132

Closed suever closed 9 years ago

suever commented 9 years ago

From zhangyutingzyt1989 on August 15, 2013 03:46:02

when I use ds.pixel_array, it says:

Traceback (most recent call last): File "", line 1, in 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: http://code.google.com/p/pydicom/issues/detail?id=132

suever commented 9 years ago

From darcymason@gmail.com on August 15, 2013 04:55:16

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.

suever commented 9 years ago

From darcymason@gmail.com on September 15, 2013 15:14:51

Closing the issue as not handling compressed pixel data is standard behaviour in current pydicom.

Status: WontFix