From 577c4b178e7cf1b0a4fd92a8e5e437d71e1e6a6a Mon Sep 17 00:00:00 2001 From: delmon Date: Thu, 10 Mar 2011 16:17:56 +0000 Subject: [PATCH] Romulo: - Corrected bug in --noAutoCrop function, both in ggo file and source code --- segmentation/clitkExtractBones.ggo | 2 +- segmentation/clitkExtractPatient.ggo | 2 +- segmentation/clitkExtractPatientGenericFilter.txx | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/segmentation/clitkExtractBones.ggo b/segmentation/clitkExtractBones.ggo index d7a737c..d69f92f 100644 --- a/segmentation/clitkExtractBones.ggo +++ b/segmentation/clitkExtractBones.ggo @@ -45,4 +45,4 @@ section "Fill holes" option "doNotFillHoles" - "Do not fill holes if set" flag on option "dir" d "Directions (axes) to perform filling (defaults to 2,1,0)" int multiple no -option "noAutoCrop" - "If set : do no crop final mask to BoundingBox" flag on +option "noAutoCrop" - "If set : do no crop final mask to BoundingBox" flag off diff --git a/segmentation/clitkExtractPatient.ggo b/segmentation/clitkExtractPatient.ggo index 9aed69e..5c2861d 100644 --- a/segmentation/clitkExtractPatient.ggo +++ b/segmentation/clitkExtractPatient.ggo @@ -50,6 +50,6 @@ option "remove" - "Labels to remove" int no multiple section "Clean-up" option "openClose" - "Perform morphological opening and closing with unit radius" flag off -option "noAutoCrop" - "If set : do no crop final mask to BoundingBox" flag on +option "noAutoCrop" - "If set : do no crop final mask to BoundingBox" flag off diff --git a/segmentation/clitkExtractPatientGenericFilter.txx b/segmentation/clitkExtractPatientGenericFilter.txx index 9435288..8cde3f5 100644 --- a/segmentation/clitkExtractPatientGenericFilter.txx +++ b/segmentation/clitkExtractPatientGenericFilter.txx @@ -68,7 +68,9 @@ SetOptionsFromArgsInfoToFilter(FilterType * f) f->SetVerboseWarningFlag(!mArgsInfo.verboseWarningOff_flag); f->SetVerboseMemoryFlag(mArgsInfo.verboseMemory_flag); - f->SetAFDBFilename(mArgsInfo.afdb_arg); + if (mArgsInfo.afdb_given) + f->SetAFDBFilename(mArgsInfo.afdb_arg); + f->SetOutputPatientFilename(mArgsInfo.output_arg); f->SetUpperThreshold(mArgsInfo.upper_arg); -- 2.47.1