rgb_2gray: convert an RGB image to Gray

Description Usage Arguments Details Value Author(s) Examples

Description

convert an RGB image to Gray

Usage

1
rgb_2gray(RGB_image)

Arguments

RGB_image

a 3-dimensional array

Details

This function converts an RGB image to gray

Value

a matrix

Author(s)

Lampros Mouselimis

Examples

1
2
3
4
5
path = system.file("tmp_images", "1.png", package = "OpenImageR")

image = readImage(path)

gray = rgb_2gray(image)


Search within the OpenImageR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.