as.MonochromeImage.RGBImage {R.image}R Documentation

Converts an RGB image to a gray scale image

Description

Converts an RGB image to a gray scale image.

Usage

## S3 method for class 'RGBImage':
as.MonochromeImage(this, threshold=2^(depth(this)/3)/2, coefs=c(0.3, 0.59, 0.11), ...)

Arguments

coefs A numeric vector of length 3 for coefficients in [0,1].
... Not used.

Details

The coefficients are multiplied with the red, green, and blue color components and summed in order to obtain a gray scale.

Value

Returns a MonochromeImage object.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

*as.MonochromeImage(). For more information see RGBImage.


[Package R.image version 0.2.3 Index]