Description Usage Arguments Value References Examples
This function calculates a colour histogram from a data.frame
representing the pixels of an image as generated by imageToDataFrame
.
1 | rgbImageHist(rgbDataFrame, binResolution=25)
|
rgbDataFrame |
A data.frame representing the pixels of an image as generated by |
binResolution |
How many sections to divide each dimension of colour space into. |
A colour histogram.
See: http://cns.bu.edu/~gsc/ColorHistograms.html
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])
rgbdf<-imageToDataFrame(img)
rgbhist<-rgbImageHist(rgbdf)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.