rgb2grey: Convert color imagematrix to grey imagematrix

Description Usage Arguments Value Examples

View source: R/imagematrix.R

Description

This function convert color imagematrix to grey imagematrix.

Usage

1
rgb2grey(img, coefs=c(0.30, 0.59, 0.11))

Arguments

img

target image

coefs

coefficients for red plane, green plane, and blue plane.

Value

grey imagematrix

Examples

1
2
3
4
5
## Not run: 
  x <- read.jpeg(system.file("extdata", "Rlogo.jpg", package="ripa"))
  plot(rgb2grey(x))
  
## End(Not run)

ripa documentation built on May 29, 2017, 5:39 p.m.

Related to rgb2grey in ripa...