convert an RGB image to Gray

Share:

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.