- "1", 0x0028, 0x0002, // Samples per pixel 1 or 3
- "MONOCHROME2", 0x0028, 0x0004, // photochromatic interpretation
-
-// Date and time
-
- date, 0x0008, 0x0012, // Instance Creation Date
- time, 0x0008, 0x0013, // Instance Creation Time
- date, 0x0008, 0x0020, // Study Date
- date, 0x0008, 0x0022, // Acquisition Date
- date, 0x0008, 0x0023, // Content Date
- time, 0x0008, 0x0030, // Study Time
- "CT", 0x0008, 0x0060, // Modality
- "GDCM", 0x0010, 0x0010, // Patient's Name
- "GDCMID", 0x0010, 0x0020, // Patient ID
- "1", 0x0020, 0x0010, // StudyID
- "1", 0x0020, 0x0011, // SeriesNumber
- "1.0", 0x0018, 0x0050, // slice Thickness
- "1.0", 0x0018, 0x0088, // space between slices
- "1.0\\1.0", 0x0028, 0x0030, // pixelSpacing
- "64", 0x0028, 0x0010, // nbRows
- "64", 0x0028, 0x0011, // nbCols
- "16", 0x0028, 0x0100, // BitsAllocated 8 or 16
- "12", 0x0028, 0x0101, // BitsStored 8 or 12
- "11", 0x0028, 0x0102, // HighBit 7 or 11
- "0", 0x0028, 0x0103, // Pixel Representation 0(unsigned) or 1(signed)
- "1000.0", 0x0028, 0x1051, // Window Width
- "500.0", 0x0028, 0x1050, // Window Center
+ "1", 0x0028, 0x0002, // Samples per pixel 1 or 3
+ "MONOCHROME2",0x0028, 0x0004, // photochromatic interpretation
+
+// Date and timeG
+
+ date.c_str(), 0x0008, 0x0012, // Instance Creation Date
+ time.c_str(), 0x0008, 0x0013, // Instance Creation Time
+ date.c_str(), 0x0008, 0x0020, // Study Date
+ date.c_str(), 0x0008, 0x0022, // Acquisition Date
+ date.c_str(), 0x0008, 0x0023, // Content Date
+ time.c_str(), 0x0008, 0x0030, // Study Time
+ "CT", 0x0008, 0x0060, // Modality
+ "GDCM", 0x0010, 0x0010, // Patient's Name
+ "GDCMID", 0x0010, 0x0020, // Patient ID
+ "1", 0x0020, 0x0010, // StudyID
+ "1", 0x0020, 0x0011, // SeriesNumber
+ "1.0", 0x0018, 0x0050, // slice Thickness
+ "1.0", 0x0018, 0x0088, // space between slices
+ "1.0\\1.0", 0x0028, 0x0030, // pixelSpacing
+ "64", 0x0028, 0x0010, // nbRows
+ "64", 0x0028, 0x0011, // nbCols
+ "16", 0x0028, 0x0100, // BitsAllocated 8 or 16
+ "12", 0x0028, 0x0101, // BitsStored 8 or 12
+ "11", 0x0028, 0x0102, // HighBit 7 or 11
+ "0", 0x0028, 0x0103, // Pixel Representation 0(unsigned) or 1(signed)
+ "1000.0", 0x0028, 0x1051, // Window Width
+ "500.0", 0x0028, 0x1050, // Window Center