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
- ======================================================================-====*/
+ ===========================================================================**/
#include "clitkImageCommon.h"
f->IntermediateSpacingFlagOn();
f->SetIntermediateSpacing(mArgsInfo.spacing_arg);
}
+ else {
+ f->IntermediateSpacingFlagOff();
+ }
f->SetFuzzyThreshold(mArgsInfo.threshold_arg);
f->SetRemoveObjectFlag(!mArgsInfo.doNotRemoveObject_flag);
f->SetAutoCropFlag(!mArgsInfo.noAutoCrop_flag);
f->SetCombineWithOrFlag(mArgsInfo.combineWithOr_flag);
f->SetInverseOrientationFlag(mArgsInfo.inverse_flag);
+
}
//--------------------------------------------------------------------
// Set options only for SliceBySliceRelativePositionFilter
filter->SetDirection(mArgsInfo.direction_arg);
- filter->SetUniqueConnectedComponentBySlice(mArgsInfo.uniqueCCL_flag);
+ filter->SetUniqueConnectedComponentBySliceFlag(mArgsInfo.uniqueCCL_flag);
+ if (mArgsInfo.uniqueObjectCCL_flag) {
+ filter->UseTheLargestObjectCCLFlagOn();
+ }
+ else {
+ filter->UseTheLargestObjectCCLFlagOff();
+ }
// Go !
filter->Update();