Description Usage Arguments Value Examples
This function calculates the ranges for the components of an RGB colorspace library objects and returns them as named values in a list.
1 | rangeRgb(rgbs)
|
rgbs |
colorspace library RGB values. |
A list with the range for the R, G and B values under those names.
1 2 3 4 5 6 | library(jpeg)
imgdir<-paste(system.file(package = "CulturalAnalytics"), "images", sep = "/")
imgs<-paste(imgdir, dir(path = imgdir, pattern = ".jpg"), sep = "/")
img<-readJPEG(imgs[1])
rgbs<-imageToRgb(img)
rgbrange<-rangeRgb(rgbs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.