layer_image_rgb_to_grayscale: Layer RGB to Grayscale

Description Usage Arguments See Also Examples

Description

Converts an image in RGB to the Grayscale.

Usage

1

Arguments

object

Model or layer object

name

An optional name string for the layer. Should be unique in a model (do not reuse the same name twice). It will be autogenerated if it isn't provided.

See Also

Other image: layer_image_resize

Examples

1
2
3
4
5
6
7
## Not run: 
library(keras)
library(kextra)
rgb_images <- layer_input(c(200, 200, 3))
gs_images <- layer_rgb_to_grayscale(rgb_images)

## End(Not run)

dfalbel/kextra documentation built on May 13, 2019, 3 a.m.