rgb2grey {rimage} | R Documentation |
This function convert color imagematrix to grey imagematrix.
rgb2grey(img, coefs=c(0.30, 0.59, 0.11))
img |
target image |
coefs |
coefficients for red plane, green plane, and blue plane. |
grey imagematrix
x <- read.jpeg(system.file("data", "cat.jpg", package="rimage")) plot(rgb2grey(x))