From 334c1f1be0ecba3567a52225ee973d69e906c721 Mon Sep 17 00:00:00 2001 From: jpr Date: Fri, 17 Mar 2006 14:33:54 +0000 Subject: [PATCH] Fix some comments --- Example/Anonymize.cxx | 11 ++++++++--- Example/CMakeLists.txt | 1 + Example/PhilipsToBrucker2.cxx | 6 +++--- Example/ReWrite.cxx | 6 +++--- Testing/TestAllPrint.cxx | 6 +++--- Testing/TestFileAccessors.cxx | 13 ++++++++----- 6 files changed, 26 insertions(+), 17 deletions(-) diff --git a/Example/Anonymize.cxx b/Example/Anonymize.cxx index 1229c107..8a2cf32c 100644 --- a/Example/Anonymize.cxx +++ b/Example/Anonymize.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: Anonymize.cxx,v $ Language: C++ - Date: $Date: 2006/03/01 09:51:56 $ - Version: $Revision: 1.10 $ + Date: $Date: 2006/03/17 14:36:37 $ + Version: $Revision: 1.11 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -24,13 +24,18 @@ #include + +/// \todo : AnonymizeDirectory +/// That should split the images : Patient/Study/Serie +/// and keeps coherent the StudyInstanceUID, SeriesInstanceUID +/// (Now, a new one is generated fore each image :-( ) int main(int argc, char *argv[]) { START_USAGE(usage) " \n Anonymize :\n ", " Anonymize a full gdcm-readable Dicom image ", " Warning : probably segfaults if pixels are not gdcm readable. ", - " Use AnonymizeNoLoad instead. ", + " Use AnonymizeNoLoad instead. ", " usage: Anonymize filein=inputFileName fileout=anonymizedFileName[debug] ", " debug : user wants to run the program in 'debug mode' ", FINISH_USAGE diff --git a/Example/CMakeLists.txt b/Example/CMakeLists.txt index bc720d75..cc442cd8 100644 --- a/Example/CMakeLists.txt +++ b/Example/CMakeLists.txt @@ -32,6 +32,7 @@ SET(EXAMPLE_SOURCES PhilipsToBrucker2 MagnetomVisionToBrucker ReWrite + ReWriteExtended RawToDicom TestValidate #BatchUncompress diff --git a/Example/PhilipsToBrucker2.cxx b/Example/PhilipsToBrucker2.cxx index efe6be15..0fded6d0 100755 --- a/Example/PhilipsToBrucker2.cxx +++ b/Example/PhilipsToBrucker2.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PhilipsToBrucker2.cxx,v $ Language: C++ - Date: $Date: 2006/03/02 17:12:19 $ - Version: $Revision: 1.19 $ + Date: $Date: 2006/03/17 14:36:37 $ + Version: $Revision: 1.20 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -50,7 +50,7 @@ int main(int argc, char *argv[]) " - orders the gdcm-readable found Files according to their ", " (0x0010, 0x0010) Patient's Name ", " (0x0020, 0x000e) Series Instance UID ", - " (0x0020, 0x0032)PhilipsToBrucker2. Image Position (Patient) ", + " (0x0020, 0x0032)PhilipsToBrucker2. Image Position (Patient) ", " (0x0018, 0x1060) Trigger Time ", " (0x0018, 0x1312) In-pl)ane Phase Encoding Direction ", " - fills a single level (*) Directory with *all* the files, ", diff --git a/Example/ReWrite.cxx b/Example/ReWrite.cxx index 188b0b34..6d500d98 100644 --- a/Example/ReWrite.cxx +++ b/Example/ReWrite.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: ReWrite.cxx,v $ Language: C++ - Date: $Date: 2006/03/01 09:51:56 $ - Version: $Revision: 1.18 $ + Date: $Date: 2006/03/17 14:36:37 $ + Version: $Revision: 1.19 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -30,7 +30,7 @@ int main(int argc, char *argv[]) " Re write a full gdcm-readable Dicom image ", " (usefull when the file header is not very straight). ", " ", - " usage: ReWrite filein=inputFileName fileout=anonymizedFileName ", + " usage: ReWrite filein=inputFileName fileout=outputFileName ", " [mode=write mode] [noshadow] [noseq][debug] ", " ", " mode = a (ACR), x (Explicit VR Dicom), r (RAW : only pixels) ", diff --git a/Testing/TestAllPrint.cxx b/Testing/TestAllPrint.cxx index 9635bad8..31916f12 100644 --- a/Testing/TestAllPrint.cxx +++ b/Testing/TestAllPrint.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestAllPrint.cxx,v $ Language: C++ - Date: $Date: 2005/10/21 14:51:36 $ - Version: $Revision: 1.6 $ + Date: $Date: 2006/03/17 14:33:54 $ + Version: $Revision: 1.7 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -48,7 +48,7 @@ int TestAllPrint(int, char *[]) filename += gdcmDataImages[i]; gdcm::File file; - file.SetLoadMode( gdcm::LD_NOSEQ ); + //file.SetLoadMode( gdcm::LD_NOSEQ | gdcm::LD_NOSHADOWSEQ ); file.SetFileName( filename ); if( !file.Load() ) return 1; diff --git a/Testing/TestFileAccessors.cxx b/Testing/TestFileAccessors.cxx index 6e321a25..36117b86 100644 --- a/Testing/TestFileAccessors.cxx +++ b/Testing/TestFileAccessors.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestFileAccessors.cxx,v $ Language: C++ - Date: $Date: 2005/11/28 11:54:46 $ - Version: $Revision: 1.7 $ + Date: $Date: 2006/03/17 14:33:54 $ + Version: $Revision: 1.8 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -59,9 +59,12 @@ int TestFileAccessors(int, char *[]) while( gdcmDataImages[i] != 0 ) { - if (gdcmDataImages[i] == "00191113.dcm" ) - gdcm::Debug::DebugOn(); - else + // Keep the comment to be able to track a bug on a given image + // for all the OS. + + // if (gdcmDataImages[i] == "00191113.dcm" ) + // gdcm::Debug::DebugOn(); + // else gdcm::Debug::DebugOff(); std::string filename = GDCM_DATA_ROOT; -- 2.45.1