plotRgbHistogram: Plot a colour histogram of an image

Description Usage Arguments Value References Examples

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 2, 2019, 5:24 p.m.