X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkExtractLungGenericFilter.txx;h=b76b365e12ef34dca1af9e8fc50c4e8090b5e1f9;hb=a3398f04a3b80b28f577ac3f0678f36f2f80ec75;hp=e103310e1efe7d89c455bc28003386afd88a1dc5;hpb=765020625fbc092d283e221e36c83e60a1844cb7;p=clitk.git diff --git a/segmentation/clitkExtractLungGenericFilter.txx b/segmentation/clitkExtractLungGenericFilter.txx index e103310..b76b365 100644 --- a/segmentation/clitkExtractLungGenericFilter.txx +++ b/segmentation/clitkExtractLungGenericFilter.txx @@ -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,17 @@ 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); + + if (mArgsInfo.doNotSeparateLungs_given) + f->SetSeparateLungsFlag(false); + else + f->SetSeparateLungsFlag(true); } //--------------------------------------------------------------------