nipype.interfaces.slicer.legacy.filtering module

Autogenerated file - DO NOT EDIT If you spot a bug, please report it on the mailing list and/or change the generator.

OtsuThresholdImageFilter

Link to code

Bases: SEMLikeCommandLine

Wrapped executable: OtsuThresholdImageFilter.

title: Otsu Threshold Image Filter

category: Legacy.Filtering

description: This filter creates a binary thresholded image that separates an image into foreground and background components. The filter calculates the optimum threshold separating those two classes so that their combined spread (intra-class variance) is minimal (see http://en.wikipedia.org/wiki/Otsu%27s_method). Then the filter applies that threshold to the input image using the itkBinaryThresholdImageFilter. The numberOfHistogram bins can be set for the Otsu Calculator. The insideValue and outsideValue can be set for the BinaryThresholdImageFilter. The filter produces a labeled volume.

The original reference is:

N.Otsu, A threshold selection method from gray level histograms, IEEE Trans.Syst.ManCybern.SMC-9,62–66 1979.

version: 0.1.0.$Revision: 19608 $(alpha)

documentation-url: http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/OtsuThresholdImageFilter

contributor: Bill Lorensen (GE)

acknowledgements: This command module was derived from Insight/Examples (copyright) Insight Software Consortium

Optional Inputs:
  • args (a string) – Additional parameters to the command. Maps to a command-line 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’) – Environment variables. (Nipype default value: {})

  • inputVolume (a pathlike object or string representing an existing file) – Input volume to be filtered. Maps to a command-line argument: %s (position: -2).

  • insideValue (an integer) – The value assigned to pixels that are inside the computed threshold. Maps to a command-line argument: --insideValue %d.

  • numberOfBins (an integer) – This is an advanced parameter. The number of bins in the histogram used to model the probability mass function of the two intensity distributions. Small numbers of bins may result in a more conservative threshold. The default should suffice for most applications. Experimentation is the only way to see the effect of varying this parameter. Maps to a command-line argument: --numberOfBins %d.

  • outputVolume (a boolean or a pathlike object or string representing a file) – Output filtered. Maps to a command-line argument: %s (position: -1).

  • outsideValue (an integer) – The value assigned to pixels that are outside the computed threshold. Maps to a command-line argument: --outsideValue %d.

Outputs:

outputVolume (a pathlike object or string representing an existing file) – Output filtered.

ResampleScalarVolume

Link to code

Bases: SEMLikeCommandLine

Wrapped executable: ResampleScalarVolume.

title: Resample Scalar Volume

category: Legacy.Filtering

description: Resampling an image is an important task in image analysis. It is especially important in the frame of image registration. This module implements image resampling through the use of itk Transforms. This module uses an Identity Transform. The resampling is controlled by the Output Spacing. “Resampling” is performed in space coordinates, not pixel/grid coordinates. It is quite important to ensure that image spacing is properly set on the images involved. The interpolator is required since the mapping from one space to the other will often require evaluation of the intensity of the image at non-grid positions. Several interpolators are available: linear, nearest neighbor, bspline and five flavors of sinc. The sinc interpolators, although more precise, are much slower than the linear and nearest neighbor interpolator. To resample label volumnes, nearest neighbor interpolation should be used exclusively.

version: 0.1.0.$Revision: 20594 $(alpha)

documentation-url: http://wiki.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/ResampleVolume

contributor: Bill Lorensen (GE)

acknowledgements: This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149.

Optional Inputs:
  • InputVolume (a pathlike object or string representing an existing file) – Input volume to be resampled. Maps to a command-line argument: %s (position: -2).

  • OutputVolume (a boolean or a pathlike object or string representing a file) – Resampled Volume. Maps to a command-line argument: %s (position: -1).

  • args (a string) – Additional parameters to the command. Maps to a command-line 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’) – Environment variables. (Nipype default value: {})

  • interpolation (‘linear’ or ‘nearestNeighbor’ or ‘bspline’ or ‘hamming’ or ‘cosine’ or ‘welch’ or ‘lanczos’ or ‘blackman’) – Sampling algorithm (linear, nearest neighbor, bspline(cubic) or windowed sinc). There are several sinc algorithms available as described in the following publication: Erik H. W. Meijering, Wiro J. Niessen, Josien P. W. Pluim, Max A. Viergever: Quantitative Comparison of Sinc-Approximating Kernels for Medical Image Interpolation. MICCAI 1999, pp. 210-217. Each window has a radius of 3;. Maps to a command-line argument: --interpolation %s.

  • spacing (a list of items which are a float) – Spacing along each dimension (0 means use input spacing). Maps to a command-line argument: --spacing %s.

Outputs:

OutputVolume (a pathlike object or string representing an existing file) – Resampled Volume.