X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestTS.cxx;h=7b3c457c5a253236dd3e61ba52f9905095bcebee;hb=998942248b883bf900e3b6918d4ff13aa8084aaf;hp=b2f57f82405f3e78ed0befd398e198fbeeb8d666;hpb=31c63a6cb25b49a119e0132201c051ade2e17704;p=gdcm.git diff --git a/Testing/TestTS.cxx b/Testing/TestTS.cxx index b2f57f82..7b3c457c 100644 --- a/Testing/TestTS.cxx +++ b/Testing/TestTS.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestTS.cxx,v $ Language: C++ - Date: $Date: 2005/01/11 16:44:42 $ - Version: $Revision: 1.6 $ + Date: $Date: 2005/02/02 10:05:26 $ + Version: $Revision: 1.9 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,6 +16,7 @@ =========================================================================*/ #include "gdcmTS.h" +#include "gdcmGlobal.h" int TestTS(int , char *[]) { @@ -45,7 +46,8 @@ int TestTS(int , char *[]) std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.4.55" ) << std::endl; // JPEG Lossless, Non-Hierarchical (Process 14) std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.4.57" ) << std::endl; - // JPEG Lossless, Hierarchical, First-Order Prediction (Process 14, [Selection Value 1]) + // JPEG Lossless, Hierarchical, First-Order Prediction (Process 14, + // [Selection Value 1]) std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.4.70" ) << std::endl; // JPEG 2000 Lossless std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.4.90" ) << std::endl; @@ -60,14 +62,16 @@ int TestTS(int , char *[]) std::cout << "Test TS:" << std::endl; std::cout << ts.IsJPEGLossless( "1.2.840.10008.1.2.4.55") << std::endl; //if ( key == "1.2.840.10008.1.2.4.55" -// || key == "1.2.840.10008.1.2.4.57" -// || key == "1.2.840.10008.1.2.4.70" ) +// || key == "1.2.840.10008.1.2.4.57" +// || key == "1.2.840.10008.1.2.4.70" ) std::cout << ts.IsRLELossless( "1.2.840.10008.1.2.5") << std::endl; std::cout << ts.IsJPEGLossless( "1.2.840.10008.1.2.5") << std::endl; std::cout << ts.IsJPEG2000( "1.2.840.10008.1.2.5") << std::endl; std::cout << ts.IsJPEG( "1.2.840.10008.1.2.5") << std::endl; - std::cout << ts.IsEncapsulate( "1.2.840.10008.1.2.5") << std::endl; - std::cout << ts.GetSpecialTransferSyntax( ts.GetSpecialTransferSyntax( "1.2.840.10008.1.2.5")) << std::endl; + std::cout << ts.GetSpecialTransferSyntax( + ts.GetSpecialTransferSyntax( "1.2.840.10008.1.2.5")) << std::endl; + std::cout << gdcm::Global::GetTS()->IsRLELossless( "1.2.840.10008.1.2.5" ) + << std::endl; return ts.GetValue( "" ) != gdcm::GDCM_UNFOUND; }