imgRGB2Grey: Convert color imagedata to grey imagedata

Description Usage Arguments Value Examples

Description

This function convert color imagedata to grey imagedata.

Usage

1
imgRGB2Grey(x, coefs=c(0.30, 0.59, 0.11))

Arguments

x

The image

coefs

The coefficients for red, green and blue bands

Value

grey imagedata

Examples

1
2
3
4
5
	## Not run: 
		x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
		plot(imgRGB2Grey(x))
	
## End(Not run)

matiasb/biOps documentation built on May 21, 2019, 12:55 p.m.