From: jpr Date: Mon, 12 Jun 2006 14:24:41 +0000 (+0000) Subject: Fix misstyping X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=e77125a7ac9f39977a827a94dfc7cf262f0078a8;p=gdcm.git Fix misstyping --- diff --git a/Doc/Website/HowToUseGdcm.html b/Doc/Website/HowToUseGdcm.html index 71f15d5b..be143c87 100755 --- a/Doc/Website/HowToUseGdcm.html +++ b/Doc/Website/HowToUseGdcm.html @@ -55,7 +55,7 @@ Have a look at gdcm/Dicts/dicomV3.dic for the whole list of Elements 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*) @@ -481,33 +481,33 @@ you just have to process as follow : // --> 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