ERROR get pixel data of dicom Image

750 views
Skip to first unread message

Antonella Patrizia Paredes Stefanelli

unread,
Apr 17, 2015, 3:32:02 AM4/17/15
to pyd...@googlegroups.com
Hello  i need help to  get pixel data of dicom Image.

I use this:

im = info.pixel_array

im.show()


but  not work, i have this error:


File "C:\Python27\dicom\dataset.py", line 399, in _get_pixel_array

    raise NotImplementedError("Pixel Data is compressed in a format pydicom does not yet handle. Cannot return array")


NotImplementedError: Pixel Data is compressed in a format pydicom does not yet handle. Cannot return array




I search  and found this  librery GDCM , but i can install that  for windows.


Reese Haywood

unread,
Apr 17, 2015, 4:03:54 PM4/17/15
to pyd...@googlegroups.com
I have this script to convert these images using gdcm. I am not sure where I got it or if I wrote it from scratch. You will need to update where your gdcm is installed.

If the list removes the attachment let me know.

--
You received this message because you are subscribed to the Google Groups "pydicom" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pydicom+u...@googlegroups.com.
To post to this group, send email to pyd...@googlegroups.com.
Visit this group at http://groups.google.com/group/pydicom.
For more options, visit https://groups.google.com/d/optout.



--
*********************************************************
Please direct all e-mails to
reese....@gmail.com

This is my primary e-mail account.
*********************************************************
ValidDicom2.py
Reply all
Reply to author
Forward
0 new messages