Re: [fluka-discuss]: Problem with DICOM files

From: paola sala <paola.sala_at_cern.ch>
Date: Mon, 30 Dec 2013 08:22:01 +0100

Hello,
The problem is with the compression of the input file.

Dicomimport in Flair uses the pydicom package. As noted on the main
page of pydicom it does not decode compressed pixel data. A work-around
is to first uncompress the images using another toolkit. For example,
dcmtk has command line tools for this. (e.g.
http://support.dcmtk.org/docs/dcmdjpeg.html)
Hope it helps
Paola


On 12/27/2013 08:55 PM, krystian.szymczak87_at_gmail.com wrote:
> Hello,
>
> I have problem with DICOM files. After I import them and switch to
> Voxel tab computer stuck on scaning slices windows. In flair output
> I’ve got this
>
> Fri Dec 27 19:46:50 2013 flair V1.2-4
> Traceback (most recent call last):
> File "/usr/local/flair/tkFlair.py", line 1173, in __call__
> return self.func(*args)
> File "/usr/local/flair/DicomFrame.py", line 844, in
> updateVoxelInformation
> if not self.dicom._scanSlice(os.path.join(path,fn)):
> File "usr/local/flair/Dicom.py", line 310, in _scanSlice
> for row in dataset.pixel_array:
> File
> "/usr/lib/python2.7/site-packages/pydicom-0.9.8-py2.7.egg/dicom/dataset.py",line
> 394, in pixel_array
> return self._get_pixel_array()
> File
> "/usr/lib/python2.7/site-packages/pydicom-0.9.8-py2.7.egg/dicom/dataset.py",
> line 376, in _get_pixel_array
> raise NotImplementedError("Pixel Data is compressed in a format
> pydicom does not yet handle. Cannot return array")
> NotImplementedError: Puxel Data is compressed in a format pydicom does
> not yet handle. Cannor return array
>
>
> Anyone can help me with that problem?
>
> Best Regards,
> Krystian
>
Received on Mon Dec 30 2013 - 10:25:51 CET

This archive was generated by hypermail 2.3.0 : Mon Dec 30 2013 - 10:25:52 CET