nlsam.bias_correction

Module Contents

Functions

stabilization(data, m_hat, sigma, N[, mask, clip_eta, ...])

root_finder_sigma(data, sigma, N[, mask, verbose, n_cores])

Compute the local corrected standard deviation for the adaptive nonlocal

Attributes

logger

nlsam.bias_correction.logger
nlsam.bias_correction.stabilization(data, m_hat, sigma, N, mask=None, clip_eta=True, return_eta=False, n_cores=-1, verbose=False)
nlsam.bias_correction.root_finder_sigma(data, sigma, N, mask=None, verbose=False, n_cores=-1)

Compute the local corrected standard deviation for the adaptive nonlocal means according to the correction factor xi.

Input

datandarray

Signal intensity

sigmandarray

Noise magnitude standard deviation

Nndarray or double

Number of coils of the acquisition (N=1 for Rician noise)

maskndarray, optional

Compute only the corrected sigma value inside the mask.

verbosebool, optional

displays a progress bar if True

n_coresint, optional

number of cores to use for parallel processing

returns:

Corrected sigma value, where sigma_gaussian = sigma / sqrt(xi)

rtype:

output, ndarray