rgb_2gray: convert an RGB image to Gray

Description Usage Arguments Details Value Author(s) Examples

View source: R/RcppExports.R

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)

OpenImageR documentation built on Nov. 17, 2017, 5:42 a.m.