skimage 0.17.2

NotesParametersReturns
equalize_adapthist(image, kernel_size=None, clip_limit=0.01, nbins=256)

An algorithm for local contrast enhancement, that uses histograms computed over different tile regions of the image. Local details can therefore be enhanced even in regions that are darker or lighter than most of the image.

Notes

versionchanged

The values returned by this function are slightly shifted upwards because of an internal change in rounding behavior.

Parameters

image : (N1, ...,NN[, C]) ndarray

Input image.

kernel_size: int or array_like, optional :

Defines the shape of contextual regions used in the algorithm. If iterable is passed, it must have the same number of elements as image.ndim (without color channel). If integer, it is broadcasted to each :None:None:`image` dimension. By default, kernel_size is 1/8 of image height by 1/8 of its width.

clip_limit : float, optional

Clipping limit, normalized between 0 and 1 (higher values give more contrast).

nbins : int, optional

Number of gray bins for histogram ("data range").

Returns

out : (N1, ...,NN[, C]) ndarray

Equalized image with float64 dtype.

Contrast Limited Adaptive Histogram Equalization (CLAHE).

See Also

equalize_hist
rescale_intensity

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/exposure/_adapthist.py#26
type: <class 'function'>
Commit: