X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestMakeDicomDir.cxx;h=861b755348c1ed16ece531dc2009f6afc66c9bde;hb=223e9fe80278019fef96c2b926c4df6fcacd4d3b;hp=f3acdbd2fe62f9422a950b2b416b0abe1a5ce527;hpb=54fadb4c545adbec700c83306407a8fb75c9e844;p=gdcm.git diff --git a/Testing/TestMakeDicomDir.cxx b/Testing/TestMakeDicomDir.cxx index f3acdbd2..861b7553 100644 --- a/Testing/TestMakeDicomDir.cxx +++ b/Testing/TestMakeDicomDir.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestMakeDicomDir.cxx,v $ Language: C++ - Date: $Date: 2005/04/14 14:27:57 $ - Version: $Revision: 1.2 $ + Date: $Date: 2005/06/02 09:37:50 $ + Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -58,17 +58,20 @@ int TestMakeDicomDir(int argc, char *argv[]) { dirName = GDCM_DATA_ROOT; } - + gdcm::DicomDir *dcmdir; - // we ask for Directory parsing - // Old style (still available) : + // Old style (still available) + // + // true : we ask for Directory parsing // dcmdir = new gdcm::DicomDir(dirName, true); // new style (user is allowed no to load Sequences an/or Shadow Groups) dcmdir = new gdcm::DicomDir( ); dcmdir->SetParseDir(true); - dcmdir->SetLoadMode(NO_SEQ | NO_SHADOW); + // dcmdir->SetLoadMode(NO_SEQ | NO_SHADOW); + // some images have a wrong length for element 0x0000 of private groups + dcmdir->SetLoadMode(NO_SEQ); dcmdir->Load(dirName); dcmdir->SetStartMethod(StartMethod, (void *) NULL); @@ -110,7 +113,6 @@ int TestMakeDicomDir(int argc, char *argv[]) } std::cout<