Description Usage Arguments Value See Also Examples
The contrast map of an image (0 to 1).
1 | getContrast(rgbArray)
|
rgbArray |
RGB array (W x H x 3) where the third dimension contains R, G and B channels, values varying from 0 to 1. |
a numeric matrix (W x H) giving the contrast for each pixel of the image.
getDarkness
, getBrightness
and getHazeFactor
1 2 3 4 5 6 7 8 9 10 | library(jpeg)
img <- readJPEG(system.file("img", "Rlogo.jpg", package="jpeg"))
c <- getContrast(img)
par(mfrow=c(2,1), mar = c(0.5, 1, 0.5, 1))
plotRGBArray(img)
plotRGBArray(c)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.