Color.Vision.c2g {CVD} | R Documentation |
Decolorize an image using the c2g algorithm
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
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
## Not run:
fname<-paste(system.file(package='CVD'),'/extdata/fruits.png',sep='')
Color.Vision.c2g(fname, 'fruits.c2g.png')
## End(Not run)
[Package CVD version 1.0.2 Index]