// gdcmParse.cxx
-
+//-----------------------------------------------------------------------------
//This is needed when compiling in debug mode
#ifdef _MSC_VER
// 'type' : forcing value to bool 'true' or 'false' (performance warning)
#define str2num(str, typeNum) *((typeNum *)(str))
-/////////////////////////////////////////////////////////////////
+//-----------------------------------------------------------------------------
/**
* \ingroup gdcmFile
* \brief Parse pixel data from disk and *prints* the result
*
*/
bool gdcmFile::ParsePixelData(void) {
-
+// DO NOT remove the printf s.
+// The ONLY purpose of this method is to PRINT the content
FILE *fp;
if ( !(fp=Header->OpenFile()))
Header->IsDeflatedExplicitVRLittleEndianTransferSyntax() ) {
printf ("gdcmFile::ParsePixelData : non JPEG/RLE File\n");
- return 0;
+ return false;
}
int nb;
- std::string str_nb=Header->GetPubElValByNumber(0x0028,0x0100);
+ std::string str_nb=Header->GetPubEntryByNumber(0x0028,0x0100);
if (str_nb == GDCM_UNFOUND ) {
nb = 16;
} else {
ftellRes,ItemTagGr,ItemTagEl );
}
}
- return 1;
+ return true;
}
+
+//-----------------------------------------------------------------------------