Description Usage Arguments Details Value Author(s) See Also Examples
Equalize the image histogram to a specified range and number of levels.
1 |
x |
an |
range |
numeric vector of length 2, the output range of the equalized histogram |
levels |
number of grayscale levels (Grayscale images) or intensity levels of each channel (Color images) |
Histogram equalization is an adaptive image contrast adjustment method. It flattens the image histogram by performing linearization of the cumulative distribution function of pixel intensities.
Individual channels of Color
images and frames of image stacks are equalized separately.
An Image
object or an array, containing the transformed version
of x
.
Andrzej Oles, andrzej.oles@embl.de, 2014
1 2 3 4 5 6 7 8 9 10 11 | x = readImage(system.file('images', 'cells.tif', package='EBImage'))
hist(x)
y = equalize(x)
hist(y)
display(y, title='Equalized Grayscale Image')
x = readImage(system.file('images', 'sample-color.png', package='EBImage'))
hist(x)
y = equalize(x)
hist(y)
display(y, title='Equalized Grayscale Image')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.