nipype.interfaces.semtools.filtering.denoising module

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

UnbiasedNonLocalMeans

Link to code

Bases: SEMLikeCommandLine

Wrapped executable: UnbiasedNonLocalMeans.

title: Unbiased NLM for MRI

category: Filtering.Denoising

description: This module implements a fast version of the popular Non-Local Means filter for image denoising. This algorithm filters each pixel as a weighted average of its neighbors in a large vicinity. The weights are computed based on the similarity of each neighbor with the voxel to be denoised.

In the original formulation a patch with a certain radius is centered in each of the voxels, and the Mean Squared Error between each pair of corresponding voxels is computed. In this implementation, only the mean value and gradient components are compared. This, together with an efficient memory management, can attain a speed-up of nearly 20x. Besides, the filtering is more accurate than the original with poor SNR. This code is intended for its use with MRI (or any other Rician-distributed modality): the second order moment is estimated, then we subtract twice the squared power of noise, and finally we take the square root of the result to remove the Rician bias. The original implementation of the NLM filter may be found in: A. Buades, B. Coll, J. Morel, “A review of image denoising algorithms, with a new one”, Multiscale Modelling and Simulation 4(2): 490-530. 2005. The correction of the Rician bias is described in the following reference (among others): S. Aja-Fernandez, K. Krissian, “An unbiased Non-Local Means scheme for DWI filtering”, in: Proceedings of the MICCAI Workshop on Computational Diffusion MRI, 2008, pp. 277-284. The whole description of this version may be found in the following paper (please, cite it if you are willing to use this software): A. Tristan-Vega, V. Garcia Perez, S. Aja-Fenandez, and C.-F. Westin, “Efficient and Robust Nonlocal Means Denoising of MR Data Based on Salient Features Matching”, Computer Methods and Programs in Biomedicine. (Accepted for publication) 2011.

version: 0.0.1.$Revision: 1 $(beta)

documentation-url: http://www.slicer.org/slicerWiki/index.php/Modules:UnbiasedNonLocalMeans-Documentation-3.6

contributor: Antonio Tristan Vega, Veronica Garcia-Perez, Santiago Aja-Fernandez, Carl-Fredrik Westin

acknowledgements: Supported by grant number FMECD-2010/71131616E from the Spanish Ministry of Education/Fulbright Committee

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: {})

  • hp (a float) – This parameter is related to noise; the larger the parameter, the more aggressive the filtering. Should be near 1, and only values between 0.8 and 1.2 are allowed. Maps to a command-line argument: --hp %f.

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

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

  • ps (a float) – To accelerate computations, preselection is used: if the normalized difference is above this threshold, the voxel will be discarded (non used for average). Maps to a command-line argument: --ps %f.

  • rc (a list of items which are an integer) – Similarity between blocks is computed as the difference between mean values and gradients. These parameters are computed fitting a hyperplane with LS inside a neighborhood of this size. Maps to a command-line argument: --rc %s.

  • rs (a list of items which are an integer) – The algorithm search for similar voxels in a neighborhood of this radius (radii larger than 5,5,5 are very slow, and the results can be only marginally better. Small radii may fail to effectively remove the noise). Maps to a command-line argument: --rs %s.

  • sigma (a float) – The root power of noise (sigma) in the complex Gaussian process the Rician comes from. If it is underestimated, the algorithm fails to remove the noise. If it is overestimated, over-blurring is likely to occur. Maps to a command-line argument: --sigma %f.

Outputs:

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