All other questions regarding DCMTK
Moderator: Moderator Team
vladihan
Posts: 2 Joined: Mon, 2005-04-11, 14:43
#1
Post
by vladihan » Mon, 2005-04-11, 15:02
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!
vladihan
Posts: 2 Joined: Mon, 2005-04-11, 14:43
#3
Post
by vladihan » Mon, 2005-04-11, 16:34
I have DIB and want to create DICOM file from DIB
Jörg Riesmeier
ICSMED DICOM Services
Posts: 2217 Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany
#4
Post
by Jörg Riesmeier » Mon, 2005-04-11, 16:36
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.
Users browsing this forum: Bing [Bot] , Google [Bot] and 1 guest