imgRGB2Grey {biOps} | R Documentation |
This function convert color imagedata to grey imagedata.
imgRGB2Grey(x, coefs=c(0.30, 0.59, 0.11))
x |
The image |
coefs |
The coefficients for red, green and blue bands |
grey imagedata
## Not run: x <- readJpeg(system.file("samples", "violet.jpg", package="biOps")) plot(imgRGB2Grey(x)) ## End(Not run)