imgRGB2Grey {biOps}R Documentation

Convert color imagedata to grey imagedata

Description

This function convert color imagedata to grey imagedata.

Usage

imgRGB2Grey(x, coefs=c(0.30, 0.59, 0.11))

Arguments

x The image
coefs The coefficients for red, green and blue bands

Value

grey imagedata

Examples

        ## Not run: 
                x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
                plot(imgRGB2Grey(x))
        
## End(Not run)

[Package biOps version 0.2.1 Index]