- // we ask for Directory parsing
- gdcm::DicomDir *dcmdir = new gdcm::DicomDir(dirName, true);
+ // new style (user is allowed no to load Sequences an/or Shadow Groups)
+ dcmdir = new gdcm::DicomDir( );
+
+ // dcmdir->SetLoadMode(gdcm::LD_NOSEQ | gdcm::LD_NOSHADOW);
+ // some images have a wrong length for element 0x0000 of private groups
+ dcmdir->SetLoadMode(gdcm::LD_NOSEQ);
+ dcmdir->SetDirectoryName(dirName);
+ dcmdir->Load( );