option "orientation" r "L R A P I S (LeftRightAntPostInfSup)" string no multiple default="L"
option "angle1" a "Angle 1 (deg)" double no default="0"
option "angle2" b "Angle 2 (deg)" double no default="0"
-option "spacing" s "Resample before (faster)" double no
+option "spacing" s "Resample before (faster) (-1 if not resampling" double default = "-1" no
option "threshold" t "Fuzzy threshold" double no default="0.6"
option "inverse" n "Not flag : inverse of the orientation" flag off
option "doNotRemoveObject" - "if flag is on, do not remove the object" flag off
option "sliceBySlice" - "Slice by slice relative position" flag off
option "direction" d "If SbS, indicate the slice direction" int no default="2"
option "uniqueCCL" u "Keep only one CC in each slice" flag off
+option "uniqueObjectCCL" - "Keep only one CC in each object slice" flag off
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();