Color.Vision.c2g: Decolorize an image using the c2g algorithm

Description Usage Arguments Value Author(s) References Examples

View source: R/CVD.R

Description

Color.Vision.c2g decolorizes an image using the c2g algorithm from Martin Faust (2008). RGBtoHSL converts from RGB to HSL, used by Color.Vision.c2g

Usage

1
Color.Vision.c2g(fileIN=NULL, fileOUT=NULL, CorrectBrightness=FALSE)

Arguments

fileIN

PNG input file

fileOUT

PNG output file

CorrectBrightness

automatic brightness correction

Value

none

Author(s)

Jose Gama

References

Martin Faust 2008 http://www.e56.de/c2g.php

Examples

1
2
3
4
5
## Not run: 
fname<-paste(system.file(package='CVD'),'/extdata/fruits.png',sep='')
Color.Vision.c2g(fname, 'fruits.c2g.png')

## End(Not run)

Example output

Grey values: min 0 , mean 1.111735 , max 1.996078

CVD documentation built on May 2, 2019, 1:58 p.m.

Related to Color.Vision.c2g in CVD...