sdHsv: Calculate the standard deviation of HSV colour values

Description Usage Arguments Value Examples

View source: R/cultural-analytics.r

Description

This function calculates the standard deviation of the hue, saturation and value of colorspace library HSV objects.

Usage

1
sdHsv(hsvs)

Arguments

hsvs

colorspace library HSV values.

Value

A vector with named values for the H, S and V standard deviations.

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])
rgbs<-imageToRgb(img)
hsvs<-rgbToHsv(rgbs)
sdhsv<-sdHsv(hsvs)

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

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