X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkExtractLungGenericFilter.txx;h=01455c84c3ba65d77ecb811da8e8a8afa442e029;hb=aa424793243b9b210a0d009f5cb8031db985549a;hp=b40dc28fc49de81bd0a4784fba74158b7dd333f6;hpb=9e9bff2490b1ebdfb57c8e1bf4e359a51b12b77c;p=clitk.git diff --git a/segmentation/clitkExtractLungGenericFilter.txx b/segmentation/clitkExtractLungGenericFilter.txx index b40dc28..01455c8 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,11 +89,15 @@ 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; + typename FilterType::InputImagePointType s; if (mArgsInfo.seed_given) { ConvertOptionMacro(mArgsInfo.seed, s, 3, false); - f->AddSeed(s); + f->AddSeed(s); } f->SetMinimalComponentSize(mArgsInfo.minSize_arg); @@ -109,6 +113,8 @@ SetOptionsFromArgsInfoToFilter(FilterType * f) else f->SetFillHolesFlag(true); + f->SetRemoveSmallLabelBeforeSeparationFlag(mArgsInfo.removeSmallLabel_flag); + if (mArgsInfo.doNotSeparateLungs_given) f->SetSeparateLungsFlag(false); else