Writing DIB to Dicom

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
vladihan
Posts: 2
Joined: Mon, 2005-04-11, 14:43

Writing DIB to Dicom

#1 Post by vladihan »

Hi,

i try to write out the Windows DIB using

Code: Select all

dataset->putAndInsertUint8Array(DCM_PixelData, data, dataLength);
The problem is, every row of DIB need to be aligned to DWORD. dcmtk seems to ignore it, it calculate the size of pixel data by means of Columns*Rows.

Please help!

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »


vladihan
Posts: 2
Joined: Mon, 2005-04-11, 14:43

#3 Post by vladihan »

I have DIB and want to create DICOM file from DIB

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#4 Post by Jörg Riesmeier »

Ok, I got it. But then you need to extract the "pure" pixel data from the DIB (i.e. without padding). Please note that DICOM pixel data has nothing to do with Windows DIBs. See part 5 of the DICOM standard for details.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest