interfaces.niftyseg.lesions¶
FillLesions¶
Wraps the executable command seg_FillLesions
.
Interface for executable seg_FillLesions from NiftySeg platform.
Fill all the masked lesions with WM intensity average.
Examples¶
>>> from nipype.interfaces import niftyseg
>>> node = niftyseg.FillLesions()
>>> node.inputs.in_file = 'im1.nii'
>>> node.inputs.lesion_mask = 'im2.nii'
>>> node.cmdline
'seg_FillLesions -i im1.nii -l im2.nii -o im1_lesions_filled.nii.gz'
Inputs:
[Mandatory]
in_file: (an existing file name)
Input image to fill lesions
argument: ``-i %s``, position: 1
lesion_mask: (an existing file name)
Lesion mask
argument: ``-l %s``, position: 2
[Optional]
out_file: (a file name)
The output filename of the fill lesions results
argument: ``-o %s``, position: 3
in_dilation: (an integer (int or long))
Dilate the mask <int> times (in voxels, by default 0)
argument: ``-dil %d``
match: (a float)
Percentage of minimum number of voxels between patches <float> (by
default 0.5).
argument: ``-match %f``
search: (a float)
Minimum percentage of valid voxels in target patch <float> (by
default 0).
argument: ``-search %f``
smooth: (a float)
Smoothing by <float> (in minimal 6-neighbourhood voxels (by default
0.1)).
argument: ``-smo %f``
size: (an integer (int or long))
Search regions size respect biggest patch size (by default 4).
argument: ``-size %d``
cwf: (a float)
Patch cardinality weighting factor (by default 2).
argument: ``-cwf %f``
bin_mask: (a file name)
Give a binary mask with the valid search areas.
argument: ``-mask %s``
other: (a boolean)
Guizard et al. (FIN 2015) method, it doesn't include the
multiresolution/hierarchical inpainting part, this part needs to be
done with some external software such as reg_tools and reg_resample
from NiftyReg. By default it uses the method presented in Prados et
al. (Neuroimage 2016).
argument: ``-other``
use_2d: (a boolean)
Uses 2D patches in the Z axis, by default 3D.
argument: ``-2D``
debug: (a boolean)
Save all intermidium files (by default OFF).
argument: ``-debug``
out_datatype: (a string)
Set output <datatype> (char, short, int, uchar, ushort, uint, float,
double).
argument: ``-odt %s``
verbose: (a boolean)
Verbose (by default OFF).
argument: ``-v``
args: (a unicode string)
Additional parameters to the command
argument: ``%s``
environ: (a dictionary with keys which are a bytes or None or a value
of class 'str' and with values which are a bytes or None or a
value of class 'str', nipype default value: {})
Environment variables
Outputs:
out_file: (a file name)
Output segmentation