]> Creatis software - clitk.git/commitdiff
Add verboseFile to display the contents of all struct in the dicom file
authordsarrut <david.sarrut@gmail.com>
Thu, 26 May 2011 07:27:32 +0000 (09:27 +0200)
committerdsarrut <david.sarrut@gmail.com>
Thu, 26 May 2011 07:27:32 +0000 (09:27 +0200)
tools/clitkDicomRTStruct2BinaryImage.cxx
tools/clitkDicomRTStruct2BinaryImage.ggo

index d54c47e408d75d068a0a9089a1f5fe9961d48a8c..97eff971d4fb4b26f923d1a56357cc1424cbceb4 100644 (file)
@@ -30,7 +30,9 @@ int main(int argc, char * argv[]) {
   // Read and display information
   clitk::DicomRT_StructureSet::Pointer s = clitk::DicomRT_StructureSet::New();
   s->Read(args_info.input_arg);
-  // s->Print(std::cout);
+  if (args_info.verboseFile_flag) {
+    s->Print(std::cout);
+  }
   
   // New filter to convert to binary image
   clitk::DicomRT_ROI_ConvertToImageFilter filter;
index 5fdd7414c5f16dfa81e58bf925bfec6711dc2b06..d403f069524b7b112ceb67d19bb7b3eaad718f0a 100644 (file)
@@ -4,6 +4,7 @@ version "Convert DICOM RT Structure Set (contours) to binary image"
 
 option "config"                 - "Config file"                     string     no
 option "verbose"         v "Verbose"                        flag       off
+option "verboseFile"     - "Verbose file content"            flag      off
 option "input"          i "Input Dicom file"                string     yes
 option "image"          j "Used to read image info (spacing, origin)"    string        yes
 option "roi"            r "ROI to binarize (if -1 = all roi)"            int    no default="-1"