split the header and pixel in DICOM Images

63 views
Skip to first unread message

علاء الدين محمد العكايله

unread,
Jul 9, 2021, 12:02:38 PM7/9/21
to pydicom

How can we split the header and pixel information separately from the medical (DICOM) images

Darcy Mason

unread,
Jul 9, 2021, 12:30:22 PM7/9/21
to pydicom

Not sure what you mean, but all DICOM information is contained in data elements - tag and value.  The pixel data is available in a pydicom dataset `ds` using `ds.pixel_array` (as a numpy array) or `ds.PixelData` (raw bytes).

You could delete the pixel data if you don't need it, by using `del ds.PixelData`.
Reply all
Reply to author
Forward
0 new messages