- * @return 0 by default. NOT USABLE file. The caller has to check.
- */
-size_t gdcmHeader::GetPixelAreaLength(void) {
-
-/*
- // If this file complies with the norm we should encounter the
- // "Image Location" tag (0x0028, 0x0200). This tag contains the
- // the group that contains the pixel data (hence the "Pixel Data"
- // is found by indirection through the "Image Location").
- // Inside the group pointed by "Image Location" the searched element
- // is conventionally the element 0x0010 (when the norm is respected).
- // When the "Image Location" is absent we default to group 0x7fe0.
-
-
- guint16 grPixel;
- guint16 numPixel;
- std::string ImageLocation = GetEntryByNumber(0x0028, 0x0200);
- if ( ImageLocation == GDCM_UNFOUND ) { // Image Location
- grPixel = 0x7fe0; // default value
- } else {
- grPixel = (guint16) atoi( ImageLocation.c_str() );
- }
- if (grPixel == 0xe07f) // sometimes group doesn't follow
- grPixel = 0x7fe0; // the supposed processor endianity. see cr172241.dcm
-
- if (grPixel != 0x7fe0)
- // This is a kludge for old dirty Philips imager.
- numPixel = 0x1010;
- else
- numPixel = 0x0010;
+ * @return Pixel Element Length, as stored in the header
+ * (NOT the memory space necessary to hold the Pixels
+ * - in case of embeded compressed image-)
+ * 0 : NOT USABLE file. The caller has to check.