Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
//First of all copy the header field by field
// Warning :Accessor gdcmElementSet::GetEntry() should not exist
// It was commented out by Mathieu, that was a *good* idea
//First of all copy the header field by field
// Warning :Accessor gdcmElementSet::GetEntry() should not exist
// It was commented out by Mathieu, that was a *good* idea
- gdcm::File *original = new gdcm::File( originalH );
- gdcm::File *copy = new gdcm::File( copyH );
+ gdcm::FileHelper *original = new gdcm::FileHelper( originalH );
+ gdcm::FileHelper *copy = new gdcm::FileHelper( copyH );
- if (originalH->GetXSize() != copy->GetHeader()->GetXSize() ||
- originalH->GetYSize() != copy->GetHeader()->GetYSize() ||
- originalH->GetZSize() != copy->GetHeader()->GetZSize())
+ if (originalH->GetXSize() != copy->GetFile()->GetXSize() ||
+ originalH->GetYSize() != copy->GetFile()->GetYSize() ||
+ originalH->GetZSize() != copy->GetFile()->GetZSize())