X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestAllReadCompareDicom.cxx;h=fdd84ee3423b5545ddd9ba498a0bbdf1f1012f6f;hb=0781a9e66447711d801a92da7c812f62ada4c077;hp=57c4af37ba0ac968c05592562a51b9e58ab8cac7;hpb=28aef021533b60c4d22d2253ba72a358cab8bd23;p=gdcm.git diff --git a/Testing/TestAllReadCompareDicom.cxx b/Testing/TestAllReadCompareDicom.cxx index 57c4af37..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/25 15:56:31 $ - Version: $Revision: 1.56 $ + 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,9 +676,9 @@ gdcm::Debug::WarningOn(); return 1; } -if (gdcmDataImages[i] == "D_CLUNIE_CT2_RLE.dcm") - gdcm::Debug::DebugOn(); // track pb on BigEndian Proc -else +//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):