Learn R Programming

imager (version 0.14)

grayscale: Convert an RGB image to grayscale

Description

This function converts from RGB to grayscale by first converting to HSL and keeping only the L channel

Usage

grayscale(im)

Arguments

im
an RGB image

Value

  • a grayscale image (spectrum == 1)