X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestAllReadCompareDicom.cxx;h=fdd84ee3423b5545ddd9ba498a0bbdf1f1012f6f;hb=80dc5ecf0d3915f6c2a5505a540ff14957e07cc5;hp=1e911cfe043d332cd6b00f0adac7ff4631e0bc58;hpb=3c7d2963044d7d8ab3ede001748451ae7e5bf246;p=gdcm.git diff --git a/Testing/TestAllReadCompareDicom.cxx b/Testing/TestAllReadCompareDicom.cxx index 1e911cfe..fdd84ee3 100644 --- a/Testing/TestAllReadCompareDicom.cxx +++ b/Testing/TestAllReadCompareDicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestAllReadCompareDicom.cxx,v $ Language: C++ - Date: $Date: 2005/11/15 11:43:22 $ - Version: $Revision: 1.55 $ + Date: $Date: 2005/11/28 16:29:13 $ + Version: $Revision: 1.58 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -282,15 +282,17 @@ bool TestFile::ReadFileData(std::ifstream *fp) if( !Data ) return(false); - // Read data + // Read data Note : .tst images are *always* created + // on little endian processor ! fp->read((char *)Data,GetDataSize()); // Track BigEndian troubles std::cout << " ScalarSize : " << GetScalarSize() - << " SwapCode:" << GetSwapCode() + << " IsCurrentProcessorBigEndian:" + << gdcm::Util::IsCurrentProcessorBigEndian() << std::endl; - //if (GetScalarSize() == 1 || GetSwapCode() == 1234) + //if (GetScalarSize() == 1 || GetSwapCode() == 1234) if (GetScalarSize() == 1 || !gdcm::Util::IsCurrentProcessorBigEndian() ) { return true; @@ -674,6 +676,11 @@ gdcm::Debug::WarningOn(); return 1; } +//if (gdcmDataImages[i] == "D_CLUNIE_CT2_RLE.dcm") +// gdcm::Debug::DebugOn(); // track pb on BigEndian Proc +//else + gdcm::Debug::DebugOff(); + ////// Step 1 (see above description): std::string filename = GDCM_DATA_ROOT; filename += "/";