- if ( gdcm::DataEntry *de = dynamic_cast<gdcm::DataEntry *>(d) )
- {
- if( !de->IsValueCountValid() )
- {
- std::cerr << "Element: " << de->GetKey() <<
- " (" << de->GetName() << ") " <<
- "Contains a wrong VM: " << de->GetValueCount()
- << " should be: " << de->GetVM() << std::endl;;
- }
+ if ( !(de->GetGroup() % 2) ) // Don't check shadow elements. Righ now,
+ // Private Dictionnary are not dealt with
+ {
+ // We know OB and OW VM is always 1, whatever the actual
+ // found value is.
+
+ if (de->GetVR() != "OB" && de->GetVR() != "OW" )
+ if( !de->IsValueCountValid() )
+ {
+ std::cerr << "Element: " << de->GetKey() <<
+ " (" << de->GetName() << ") " <<
+ "Contains a wrong VM: " << de->GetValueCount()
+ << " should be: " << de->GetVM() << std::endl;;
+ }