skimage 0.17.2

ParametersReturns
_compute_color_lut(bins, sigma, max_value, *, dtype=<class 'float'>)

Parameters

bins : int

Number of discrete values for Gaussian weights of color filtering. A larger value results in improved accuracy.

sigma : float

Standard deviation for grayvalue/color distance (radiometric similarity). A larger value results in averaging of pixels with larger radiometric differences. Note, that the image will be converted using the img_as_float function and thus the standard deviation is in respect to the range [0, 1] . If the value is None the standard deviation of the image will be used.

max_value : float

Maximum value of the input image.

dtype : data type object, optional (default : float)

The type and size of the data to be returned.

Returns

color_lut : ndarray

Lookup table for the color distance sigma.

Helping function. Define a lookup table containing Gaussian filter values using the color distance sigma.

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#34
type: <class 'function'>
Commit: