Skip to content

Commit d8231b9

Browse files
committed
ENH: Add new command line for BRAINSABC tool
A new featue set has been added to improve the quality of segmentations from the BRAINSABC tool. purePlugsThreshold = If this threshold value is greater than zero, only pure samples are used to compute the distributions in EM classification, and only pure samples are used for KNN training. The default value is set to 0, that means not using pure plugs. However, a value of 0.2 is suggested if you want to activate using pure plugs option. numberOfSubSamplesInEachPlugArea -- How many samples in each plug area to create.
1 parent d410fbb commit d8231b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nipype/interfaces/semtools/segmentation/specialized.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ class BRAINSABCInputSpec(CommandLineInputSpec):
319319
filterMethod = traits.Enum("None", "CurvatureFlow", "GradientAnisotropicDiffusion", "Median", desc="Filter method for preprocessing of registration", argstr="--filterMethod %s")
320320
maxBiasDegree = traits.Int(desc="Maximum bias degree", argstr="--maxBiasDegree %d")
321321
useKNN = traits.Bool(desc="Use the KNN stage of estimating posteriors.", argstr="--useKNN ")
322+
purePlugsThreshold = traits.Float(desc="If this threshold value is greater than zero, only pure samples are used to compute the distributions in EM classification, and only pure samples are used for KNN training. The default value is set to 0, that means not using pure plugs. However, a value of 0.2 is suggested if you want to activate using pure plugs option.", argstr="--purePlugsThreshold %f")
323+
numberOfSubSamplesInEachPlugArea = InputMultiPath(traits.Int, desc="Number of continous index samples taken at each direction of lattice space for each plug volume.", sep=",", argstr="--numberOfSubSamplesInEachPlugArea %s")
322324
atlasWarpingOff = traits.Bool(desc="Deformable registration of atlas to subject", argstr="--atlasWarpingOff ")
323325
gridSize = InputMultiPath(traits.Int, desc="Grid size for atlas warping with BSplines", sep=",", argstr="--gridSize %s")
324326
defaultSuffix = traits.Str(argstr="--defaultSuffix %s")

0 commit comments

Comments
 (0)