Byte by Byte reading DICOM image
Moderator: Moderator Team
-
- Posts: 3
- Joined: Wed, 2010-05-19, 14:00
Byte by Byte reading DICOM image
How to read a DICOM image data byte by byte using DCMTK and write it to a raw file? As the header length in DICOM Image is variable, how to know the offset for the image date in a DICOM Image so as to read the image data byte by byte.
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
If you want to access certain data elements (like Pixel Data), you have to parse the whole file/dataset (at least up to the desired element).
Btw, what is the background of your question?
Btw, what is the background of your question?
If "DICOM image data" refers to pixel data, you could simply use dcmdump with option --write-pixel (+W).How to read a DICOM image data byte by byte using DCMTK and write it to a raw file?
-
- Posts: 3
- Joined: Wed, 2010-05-19, 14:00
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
Who is online
Users browsing this forum: Google [Bot] and 1 guest