skimage 0.17.2

ParametersRaisesReturnsWarns
match_histograms(image, reference, multichannel=False)

The adjustment is applied separately for each channel.

Parameters

image : ndarray

Input image. Can be gray-scale or in color.

reference : ndarray

Image to match histogram of. Must have the same number of channels as image.

multichannel : bool, optional

Apply the matching separately for each channel.

Raises

ValueError

Thrown when the number of channels in the input image and the reference differ.

Returns

matched : ndarray

Transformed input image.

Adjust an image so that its cumulative histogram matches that of another.

Warns

Deprecated:
versionadded

This function is deprecated and will be removed in scikit-image 0.18. Please use match_histograms from exposure module instead.

See Also

skimage.exposure.match_histograms

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/transform/histogram_matching.py#5
type: <class 'function'>
Commit: