From af786d2acc0bf35fdeeb211d4d435b4c815fa6f1 Mon Sep 17 00:00:00 2001 From: dsarrut Date: Thu, 26 May 2011 09:27:32 +0200 Subject: [PATCH] Add verboseFile to display the contents of all struct in the dicom file --- tools/clitkDicomRTStruct2BinaryImage.cxx | 4 +++- tools/clitkDicomRTStruct2BinaryImage.ggo | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/clitkDicomRTStruct2BinaryImage.cxx b/tools/clitkDicomRTStruct2BinaryImage.cxx index d54c47e..97eff97 100644 --- a/tools/clitkDicomRTStruct2BinaryImage.cxx +++ b/tools/clitkDicomRTStruct2BinaryImage.cxx @@ -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; diff --git a/tools/clitkDicomRTStruct2BinaryImage.ggo b/tools/clitkDicomRTStruct2BinaryImage.ggo index 5fdd741..d403f06 100644 --- a/tools/clitkDicomRTStruct2BinaryImage.ggo +++ b/tools/clitkDicomRTStruct2BinaryImage.ggo @@ -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" -- 2.47.1