skimage2.exposure.equalize_hist#
- skimage2.exposure.equalize_hist(image, nbins=256, mask=None)[source]#
Return image after histogram equalization.
- Parameters:
- imagearray
Image array.
- nbinsint, optional
Number of bins for image histogram. Note: this argument is ignored for integer images, for which each integer is its own bin.
- maskndarray 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:
- outfloat array
Image array after histogram equalization.
Notes
This function is adapted from [1] with the author’s permission.
References