X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkExtractLungGenericFilter.txx;h=b76b365e12ef34dca1af9e8fc50c4e8090b5e1f9;hb=5a7da4aedae5c204bc55c187717193e5950f9a44;hp=9aa03434184c7beb355385bd8fbfe92ba6a22e14;hpb=d30d301ddbebb5f290f8d9c0104dc6448ea531e1;p=clitk.git diff --git a/segmentation/clitkExtractLungGenericFilter.txx b/segmentation/clitkExtractLungGenericFilter.txx index 9aa0343..b76b365 100644 --- a/segmentation/clitkExtractLungGenericFilter.txx +++ b/segmentation/clitkExtractLungGenericFilter.txx @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html - ======================================================================-====*/ + ===========================================================================**/ #ifndef CLITKEXTRACTLUNGSGENERICFILTER_TXX #define CLITKEXTRACTLUNGSGENERICFILTER_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); } //--------------------------------------------------------------------