| as.MonochromeImage.RGBImage {R.image} | R Documentation |
Converts an RGB image to a gray scale image.
## S3 method for class 'RGBImage': as.MonochromeImage(this, threshold=2^(depth(this)/3)/2, coefs=c(0.3, 0.59, 0.11), ...)
coefs |
A numeric vector of length 3 for coefficients in [0,1]. |
... |
Not used. |
The coefficients are multiplied with the red, green, and blue color components and summed in order to obtain a gray scale.
Returns a MonochromeImage object.
Henrik Bengtsson (http://www.braju.com/R/)
*as.MonochromeImage().
For more information see RGBImage.