tryGrayScale: try to convert from color model to grayscale model for raster...

Description Usage Arguments Value Examples

View source: R/tryGrayScale.R

Description

try to convert from color model to grayscale model for raster images

Usage

1
tryGrayScale(image01, nameFileImag)

Arguments

image01

: object of class 'cimg'

nameFileImag

: string (file name)

Value

object grayscale image (spectrum == 1)

Examples

1
2
3
image01 <- imager::cimg(array(1,c(10,10,5,3)))
nameFileImag <- "Image.bmp"
tryGrayScale(image01, nameFileImag)

DanGit01/ToImagen documentation built on May 29, 2019, 1:51 a.m.