Description Usage Arguments Value Examples
This function calculates the standard deviation of the hue, saturation and value of colorspace library RGB objects.
1 | sdRgb(rgbs)
|
rgbs |
colorspace library RGB valuess. |
A vector with named values for the R, G and B standard deviations.
1 2 3 4 5 6 7 | library(CulturalAnalytics)
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)
sdrgb<-sdRgb(rgbs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.