equalize_hist
-
skimage.exposure.equalize_hist(image, nbins=256, mask=None)
[source] -
Return image after histogram equalization.
Parameters: image : array
Image array.
nbins : int, optional
Number of bins for image histogram. Note: this argument is ignored for integer images, for which each integer is its own bin.
mask: ndarray of bools or 0s and 1s, optional
Array of same shape as
image
. Only points at which mask == True are used for the equalization, which is applied to the whole image.Returns: out : float array
Image array after histogram equalization.
Notes
This function is adapted from [R88] with the author’s permission.
References
[R88] (1, 2) http://www.janeriksolem.net/2009/06/histogram-equalization-with-python-and.html [R89] http://en.wikipedia.org/wiki/Histogram_equalization
Please login to continue.