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
- 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
void clitk::ExtractLungGenericFilter<ArgsInfoType>::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);
}
//--------------------------------------------------------------------
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) {
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);
}
//--------------------------------------------------------------------