Search found 3 matches
- Fri, 2022-10-14, 22:43
- Forum: DCMTK - General
- Topic: Can't read compressed data
- Replies: 6
- Views: 2450
Re: Can't read compressed data
Thanks for your answer ! But dcm2pnm doesn't work at all for me: dcm2pnm -d -v ~/Downloads/dcms/dcm_comp.dcm ~/Downloads/dcms/dcm_comp.jpg I: reading DICOM file: /home/robz/Downloads/dcms/dcm_comp.dcm W: DcmItem: Length of element (7fe0,0010) is not a multiple of 2 (VR=OW) I: preparing pixel data E:...
- Tue, 2022-10-11, 15:24
- Forum: DCMTK - General
- Topic: Can't read compressed data
- Replies: 6
- Views: 2450
Re: Can't read compressed data
Thank you for your answer $ dciodvfy ./dcm_comp.dcm Warning - Missing attribute or value that would be needed to build DICOMDIR - Patient ID Warning - Missing attribute or value that would be needed to build DICOMDIR - Study Date Warning - Missing attribute or value that would be needed to build DIC...
- Mon, 2022-10-10, 15:49
- Forum: DCMTK - General
- Topic: Can't read compressed data
- Replies: 6
- Views: 2450
Can't read compressed data
Hi, I have an uncompressed dicom I want to compress. I'm using this portion of code to di it: import pydicom from deid.dicom import replace_identifiers from PIL import Image from io import BytesIO from pydicom.encaps import encapsulate dcm = pydicom.read_file('example.dcm') with BytesIO() as bio: Im...