## Not run:
# samplePics <- c('fruits', 'pastel_color', 'sample1', 'TurnColorsGrayImage1', 'TurnColorsGrayImage2')
# for (pics in samplePics)
# {
# fname<-paste(system.file(package='CVD'),'/extdata/fruits.png',sep='')
# g1<-decolorize(fname)
# png::writePNG(g1$tones, paste(pics, '.decolorize.png',sep=''))
# }
# ## End(Not run)
Run the code above in your browser using DataLab