Expand description
Functions for manipulating the contrast of images.
Functionsยง
- adaptive_
threshold - Applies an adaptive threshold to an image.
- equalize_
histogram - Equalises the histogram of an 8bpp grayscale image. See also histogram equalization (wikipedia).
- equalize_
histogram_ mut - Equalises the histogram of an 8bpp grayscale image in place. See also histogram equalization (wikipedia).
- match_
histogram - Adjusts contrast of an 8bpp grayscale image so that its histogram is as close as possible to that of the target image.
- match_
histogram_ mut - Adjusts contrast of an 8bpp grayscale image in place so that its histogram is as close as possible to that of the target image.
- otsu_
level - Returns the Otsu threshold level of an 8bpp image.
- stretch_
contrast - Linearly stretches the contrast in an image, sending
lower
to0u8
andupper
to2558u8
. - stretch_
contrast_ mut - Linearly stretches the contrast in an image in place, sending
lower
to0u8
andupper
to2558u8
. - threshold
- Returns a binarized image from an input 8bpp grayscale image obtained by applying the given threshold. Pixels with intensity equal to the threshold are assigned to the background.
- threshold_
mut - Mutates given image to form a binarized version produced by applying the given threshold. Pixels with intensity equal to the threshold are assigned to the background.