DA : The 'Value Representation' : DA for Date, US for Unsigned Short, ...
Have a look at gdcm/Dicts/dicomVR.dic for the set of possible values
-
+
[Series Date] : The 'official' English name of the Element
(When *you* have to deal with a given Element, its meaning should be clear for
*you*)
// --> Set the mandatory fields
// Set the image size
- str.str("");
- str << sizeX;
- file->InsertEntryString(str.c_str(),0x0028,0x0011,"US"); // Columns
str.str("");
str << sizeY;
- file->InsertEntryString(str.c_str(),0x0028,0x0011,"US"); // Columns
+ file->InsertEntryString(str.str(),0x0028,0x0010,"US"); // Rows
+ str.str("");
+ str << sizeX;
+ file->InsertEntryString(str.str(),0x0028,0x0011,"US"); // Columns
str.str("");
str << sizeZ;
- file->InsertEntryString(str.c_str(),0x0028,0x0008, "IS"); // Nbr of Frames
+ file->InsertEntryString(str.str(),0x0028,0x0008, "IS"); // Nbr of Frames
// Set the pixel type
str.str("");
str << componentSize; //8, 16, 32
- file->InsertEntryString(str.c_str(),0x0028,0x0100,"US"); // Bits Allocated
+ file->InsertEntryString(str.str(),0x0028,0x0100,"US"); // Bits Allocated
str.str("");
str << componentUse; // may be 12 or 16 if componentSize =16
- file->InsertEntryString(str.c_str(),0x0028,0x0101,"US"); // Bits Stored
+ file->InsertEntryString(str.str(),0x0028,0x0101,"US"); // Bits Stored
str.str("");
str << componentSize - 1 ;
- file->InsertEntryString(str.c_str(),0x0028,0x0102,"US"); // High Bit
+ file->InsertEntryString(str.str(),0x0028,0x0102,"US"); // High Bit
// Set the pixel representation // 0/1
str.str("");
str << img.sign;
- file->InsertEntryString(str.c_str(),0x0028,0x0103, "US"); // Pixel Representation
+ file->InsertEntryString(str.str(),0x0028,0x0103, "US"); // Pixel Representation
// Set the samples per pixel // 1:Grey level, 3:RGB
str.str("");
str << components;
- file->InsertEntryString(str.c_str(),0x0028,0x0002, "US"); // Samples per Pixel
+ file->InsertEntryString(str.str(),0x0028,0x0002, "US"); // Samples per Pixel
//--> Set Optional fields
//(patient name, patient ID, modality, or what you want