+1-1-1-3) Get the value of a single Dicom DataElement
+
+1-1-1-3-1) as a std::string
+
+- some DataEntries are 'human readable' (those whose VR is AE, DA, DS, PN, SH, TM)
+ Get their value using group number-element number :
+ std::string patientName = f->GetEntryString(0x0010,0x0010);
+
+- Some DataEntries are stored with their own binary representation, but maybe you feel like
+ to get them in a 'human readable' form (those whose VR is FL, FD, SL, SS, UL, US)
+ Get their value using group number-element number :
+ std::string rowNumber =f->GetEntryString(0x0028, 0x0010);// nb of Rows
+
+ (of course, the very often used DataEntries have their own accessors :
+ e.g. GetXsize, GetYSize, GetSpacing, GetImageOrientationPatient, GetImagePositionPatient,
+ GetRescaleSlope, GetRescaleIntercept, GetNumberOfScalarComponents, etc -see gdcmFile.h-)
+
+
+1-1-1-3-3) as a void* pointer
+- Some DataEntries are stored with their own binary representation, and you want to get them 'as they are'.
+ You will have to cast them, according to the knowledge you have about them.
+ LutRedData = (uint8_t*)f->GetEntryBinArea( 0x0028, 0x1201 );
+
+1-1-1-4) Get the value(s) of a Dicom Sequence
+
+Actually, a 'Dicom Sequence' is composed of a list a 'Sequence Items',
+each Sequence Item is a set of DataElement (that can be a Sequence Element, recursively).
+You have to get the Sequence element, to get its number of Sequence items, to iterate on each one.
+e.g.:
+
+SeqEntry *seqEntry = f->GetSeqEntry(0x3006,0x0020); //Structure Set ROI sequence
+unsigned int n = seqEntry->GetNumberOfSQItems(); // useless : just to see !
+currentItem = seqEntry->GetFirstSQItem(); // Get the first ROI
+while (currentItem != NULL) {
+ std::string roiName = currentItem->GetEntryString(0x3006,0x0026); //ROI name
+ std::string roiDescr = currentItem->GetEntryString(0x3006,0x0028); //ROI description
+ ...
+ // do what you want with the current ROI
+ currentItem = seqEntry->GetNextSQItem(); // Get the next ROI
+}
+
+