nlsam.bias_correction

Module Contents

Functions

stabilization(data, m_hat, sigma, N, mask=None, clip_eta=True, return_eta=False, n_cores=-1, verbose=False)

multiprocess_stabilization(data, m_hat, mask, sigma, N, clip_eta)

Helper function for multiprocessing the stabilization part.

corrected_sigma(eta, sigma, N, mask=None)

root_finder_sigma(data, sigma, N, mask=None)

Compute the local corrected standard deviation for the adaptive nonlocal

Attributes

logger

vec_fixed_point_finder

vec_chi_to_gauss

vec_xi

vec_root_finder

nlsam.bias_correction.logger
nlsam.bias_correction.vec_fixed_point_finder
nlsam.bias_correction.vec_chi_to_gauss
nlsam.bias_correction.vec_xi
nlsam.bias_correction.vec_root_finder
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.multiprocess_stabilization(data, m_hat, mask, sigma, N, clip_eta)

Helper function for multiprocessing the stabilization part.

nlsam.bias_correction.corrected_sigma(eta, sigma, N, mask=None)
nlsam.bias_correction.root_finder_sigma(data, sigma, N, mask=None)

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

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.

output, ndarray

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