Program: gdcm
Module: $RCSfile: TestPrintAllDocument.cxx,v $
Language: C++
- Date: $Date: 2005/10/18 08:35:46 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2006/01/19 11:00:28 $
+ Version: $Revision: 1.12 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
filename += "/"; //doh!
filename += gdcmDataImages[i];
- gdcm::File *f= new gdcm::File( );
+ gdcm::File *f= gdcm::File::New( );
f->SetFileName( filename );
f->Load();
f->GetEntryString(0x0020,0x0037);
if ( strImageOrientationPatient != gdcm::GDCM_UNFOUND )
{
- gdcm::Orientation o;
- gdcm::OrientationType orient = o.GetOrientationType( f );
+ gdcm::Orientation *o = gdcm::Orientation::New();
+
+ gdcm::OrientationType orient = o->GetOrientationType( f );
std::cout << " ---------------------- Orientation " << orient
<< std::endl;
+ o->Delete();
}
if( f->IsReadable() )
{
std::cout << filename << " is NOT Readable"
<< std::endl << std::endl;
- delete f;
+ f->Delete();
return 1;
}
- delete f;
+ f->Delete();
i++;
}
return 0;