X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkExtractLungGenericFilter.txx;h=b9a94d86aeef3b3b273ff9176786eb5ba214bc50;hb=2d9ef51e893a0b5b93d44a88594c9c76e4b61239;hp=e103310e1efe7d89c455bc28003386afd88a1dc5;hpb=573d80d0f7a17607d2ee883c21c940c0ba020282;p=clitk.git diff --git a/segmentation/clitkExtractLungGenericFilter.txx b/segmentation/clitkExtractLungGenericFilter.txx index e103310..b9a94d8 100644 --- a/segmentation/clitkExtractLungGenericFilter.txx +++ b/segmentation/clitkExtractLungGenericFilter.txx @@ -51,11 +51,11 @@ template void clitk::ExtractLungGenericFilter::SetArgsInfo(const ArgsInfoType & a) { mArgsInfo=a; - SetIOVerbose(mArgsInfo.verbose_flag); + this->SetIOVerbose(mArgsInfo.verbose_flag); if (mArgsInfo.imagetypes_flag) this->PrintAvailableImageTypes(); - if (mArgsInfo.input_given) AddInputFilename(mArgsInfo.input_arg); - if (mArgsInfo.output_given) AddOutputFilename(mArgsInfo.output_arg); - if (mArgsInfo.outputTrachea_given) AddOutputFilename(mArgsInfo.outputTrachea_arg); + if (mArgsInfo.input_given) this->AddInputFilename(mArgsInfo.input_arg); + if (mArgsInfo.output_given) this->AddOutputFilename(mArgsInfo.output_arg); + if (mArgsInfo.outputTrachea_given) this->AddOutputFilename(mArgsInfo.outputTrachea_arg); } //-------------------------------------------------------------------- @@ -89,6 +89,10 @@ SetOptionsFromArgsInfoToFilter(FilterType * f) f->SetUpperThresholdForTrachea(mArgsInfo.upperThresholdForTrachea_arg); f->SetMultiplierForTrachea(mArgsInfo.multiplierForTrachea_arg); f->SetThresholdStepSizeForTrachea(mArgsInfo.thresholdStepSizeForTrachea_arg); + f->SetTracheaSeedAlgorithm(mArgsInfo.type_arg); + f->SetNumSlices(mArgsInfo.numSlices_arg); + f->SetMaxElongation(mArgsInfo.maxElongation_arg); + f->SetSeedPreProcessingThreshold(mArgsInfo.seedPreProcessingThreshold_arg); typename FilterType::InputImageIndexType s; if (mArgsInfo.seed_given) { @@ -102,11 +106,19 @@ SetOptionsFromArgsInfoToFilter(FilterType * f) f->SetOpenCloseFlag(mArgsInfo.openclose_flag); f->SetOpenCloseRadius(mArgsInfo.opencloseRadius_arg); + f->SetAutoCrop(!mArgsInfo.noAutoCrop_flag); if (mArgsInfo.doNotFillHoles_given) f->SetFillHolesFlag(false); else f->SetFillHolesFlag(true); + + f->SetRemoveSmallLabelBeforeSeparationFlag(mArgsInfo.removeSmallLabel_flag); + + if (mArgsInfo.doNotSeparateLungs_given) + f->SetSeparateLungsFlag(false); + else + f->SetSeparateLungsFlag(true); } //--------------------------------------------------------------------