plotRgbHistogram: Plot a colour histogram of an image

Description Usage Arguments Value References Examples

View source: R/cultural-analytics.r

Description

This function plots an RGB histogram on the current graphics device.

Usage

1
plotRgbHistogram(colourHist)

Arguments

colourHist

A colour histogram created by calling rgbImageHist() .

Value

None

References

See: http://cns.bu.edu/~gsc/ColorHistograms.html

Examples

1
2
3
4
5
6
7
8
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])
rgbdf<-imageToDataFrame(img)
rgbhist<-rgbImageHist(rgbdf)
plotRgbHistogram(rgbhist)

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