Learn R Programming

ImaginR (version 0.1.7)

OneRow: Get phenotype, HEX and HSV color code for one picture

Description

Get results in one row

Usage

OneRow(picture)

Arguments

picture

The picture uploaded by load.image()

Value

The HEX and HSV color code and the color phenotype of the pearl oyster's inner shell for one image in one row

Details

In header:

  • id : the name of your pictures

  • h : the hue of the hsv color code

  • s : the saturation of the hsv color code

  • v : the value of the hsv color code

  • hex : the hexadecimal color code

  • phenotype : returns the color phenotype of the pearl oyster's inner shell (Pinctada margaritifera)

Examples

Run this code
fpath <- system.file('extdata/image.jpg',package='ImaginR')
picture <- load.image(fpath)
OneRow(picture)

Run the code above in your browser using DataLab