Learn R Programming

CVD (version 1.0.2)

Color.Vision.c2g: 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

References

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

Examples

Run this code
## Not run: 
# fname<-paste(system.file(package='CVD'),'/extdata/fruits.png',sep='')
# Color.Vision.c2g(fname, 'fruits.c2g.png')
# ## End(Not run)

Run the code above in your browser using DataLab