sdRgb: Calculate the standard deviation of RGB colour values.

Description Usage Arguments Value Examples

Description

This function calculates the standard deviation of the hue, saturation and value of colorspace library RGB objects.

Usage

1
sdRgb(rgbs)

Arguments

rgbs

colorspace library RGB valuess.

Value

A vector with named values for the R, G and B standard deviations.

Examples

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)


Search within the CulturalAnalytics package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.