X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Example%2FPrintHeader.cxx;h=68b09261ebb3e710191d970cba064e86cb6179b0;hb=a150a376b47fc0894b57d18a59e970b2b9f2889f;hp=516048e5e1c8bc7572fae9f81cf1af9da2f1636a;hpb=e5e7b1bd7ee84e8f9dc7da5d1d42b598fac68399;p=gdcm.git diff --git a/Example/PrintHeader.cxx b/Example/PrintHeader.cxx index 516048e5..68b09261 100644 --- a/Example/PrintHeader.cxx +++ b/Example/PrintHeader.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PrintHeader.cxx,v $ Language: C++ - Date: $Date: 2004/11/25 10:24:33 $ - Version: $Revision: 1.10 $ + Date: $Date: 2004/12/03 20:16:55 $ + 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 @@ -15,8 +15,8 @@ PURPOSE. See the above copyright notices for more information. =========================================================================*/ +#include "gdcmHeader.h" #include -#include "gdcm.h" int main(int argc, char* argv[]) { @@ -37,8 +37,7 @@ int main(int argc, char* argv[]) fileName += "/test.acr"; } - gdcm::File *f1 = new gdcm::File( fileName.c_str() ); - gdcm::Header *e1 = f1->GetHeader(); + gdcm::Header *e1 = new gdcm::Header( fileName.c_str() ); if (argc > 2) { @@ -61,19 +60,6 @@ int main(int argc, char* argv[]) std::string transferSyntaxName = e1->GetTransfertSyntaxName(); std::cout << " TransferSyntaxName= [" << transferSyntaxName << "]" << std::endl; - if ( transferSyntaxName != "Implicit VR - Little Endian" - && transferSyntaxName != "Explicit VR - Little Endian" - && transferSyntaxName != "Deflated Explicit VR - Little Endian" - && transferSyntaxName != "Explicit VR - Big Endian" - && transferSyntaxName != "Uncompressed ACR-NEMA" ) - { - std::cout << std::endl << "===========================================" - << std::endl; - f1->GetPixelConverter()->Print(); - std::cout << std::endl << "===========================================" - << std::endl; - } - if(e1->IsReadable()) std::cout <