plotColourCloud: Plot a colour histogram as a colour cloud.

Description Usage Arguments Value References Examples

Description

Function to plot a “colour cloud” spatial representation of an RGB colour histogram of an image.

Usage

1
plotColourCloud(hist, title = "", radius = 0.005, dotSize = 1)

Arguments

hist

A colour histogram generated by rgbImageHistogram() .

title

The main title of the plot.

radius

The jitter radius of dots in the cloud.

dotSize

The size of each dot in the colour cloud.

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)
plotColourCloud(rgbhist)

CulturalAnalytics documentation built on May 2, 2019, 5:24 p.m.