summaryRgb: Summarise the statistical properties of RGB colours.

Description Usage Arguments Value Examples

View source: R/cultural-analytics.r

Description

Use the summary function to analyse the red, green and blue components of colorspace library RGB values.

Usage

1
summaryRgb(rgbs)

Arguments

rgbs

colorspace library RGB values

Value

A list with summaries for the R, G and B values.

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)
summaryrgb<-summaryRgb(rgbs)

CulturalAnalytics documentation built on May 31, 2017, 3:28 a.m.

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