- CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
This software is distributed WITHOUT ANY WARRANTY; without even
- 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
- BSD See included LICENSE.txt file
- CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
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);
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);
// 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();
+ }