X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkExtractAirwaysTreeInfoGenericFilter.txx;h=a19aa8ff5b72e49ca971cb160424b89a0f79341a;hb=d91a03193e84e5a74aeeb8bda9686c48108890c6;hp=3f802fc5fe2ac1a4ee31844f9524e9ce22dc5753;hpb=4fd095bff2ac4dde50817d37522d2360e7b7e6c2;p=clitk.git diff --git a/segmentation/clitkExtractAirwaysTreeInfoGenericFilter.txx b/segmentation/clitkExtractAirwaysTreeInfoGenericFilter.txx index 3f802fc..a19aa8f 100644 --- a/segmentation/clitkExtractAirwaysTreeInfoGenericFilter.txx +++ b/segmentation/clitkExtractAirwaysTreeInfoGenericFilter.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 CLITKEXTRACTAIRWAYTREEINFOSGENERICFILTER_TXX #define CLITKEXTRACTAIRWAYTREEINFOSGENERICFILTER_TXX @@ -59,6 +59,22 @@ void clitk::ExtractAirwaysTreeInfoGenericFilter::SetArgsInfo(const //-------------------------------------------------------------------- +//-------------------------------------------------------------------- +template +template +void clitk::ExtractAirwaysTreeInfoGenericFilter:: +SetOptionsFromArgsInfoToFilter(FilterType * f) +{ + f->SetVerboseOptionFlag(mArgsInfo.verboseOption_flag); + f->SetVerboseStepFlag(mArgsInfo.verboseStep_flag); + f->SetWriteStepFlag(mArgsInfo.writeStep_flag); + f->SetVerboseWarningFlag(!mArgsInfo.verboseWarningOff_flag); + if (mArgsInfo.afdb_given) + f->SetAFDBFilename(mArgsInfo.afdb_arg); +} +//-------------------------------------------------------------------- + + //-------------------------------------------------------------------- // Update with the number of dimensions and the pixeltype //-------------------------------------------------------------------- @@ -77,8 +93,8 @@ void clitk::ExtractAirwaysTreeInfoGenericFilter::UpdateWithInputIm this->SetFilterBase(filter); // Set global Options - filter->SetArgsInfo(mArgsInfo); filter->SetInput(input); + SetOptionsFromArgsInfoToFilter(filter); // Go ! filter->Update();