skimage 0.17.2

ParametersReturns
_wavelet_threshold(image, wavelet, method=None, threshold=None, sigma=None, mode='soft', wavelet_levels=None)

Parameters

image : ndarray (2d or 3d) of ints, uints or floats

Input data to be denoised. :None:None:`image` can be of any numeric type, but it is cast into an ndarray of floats for the computation of the denoised image.

wavelet : string

The type of wavelet to perform. Can be any of the options pywt.wavelist outputs. For example, this may be any of {db1, db2, db3, db4, haar} .

method : {'BayesShrink', 'VisuShrink'}, optional

Thresholding method to be used. The currently supported methods are "BayesShrink" and "VisuShrink" . If it is set to None, a user-specified threshold must be supplied instead.

threshold : float, optional

The thresholding value to apply during wavelet coefficient thresholding. The default value (None) uses the selected method to estimate appropriate threshold(s) for noise removal.

sigma : float, optional

The standard deviation of the noise. The noise is estimated when sigma is None (the default) by the method in .

mode : {'soft', 'hard'}, optional

An optional argument to choose the type of denoising performed. It noted that choosing soft thresholding given additive noise finds the best approximation of the original image.

wavelet_levels : int or None, optional

The number of wavelet decomposition levels to use. The default is three less than the maximum number of possible decomposition levels (see Notes below).

Returns

out : ndarray

Denoised image.

Perform wavelet thresholding.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /skimage/restoration/_denoise.py#531
type: <class 'function'>
Commit: