Last data update: 2014.03.03
|
R: Add colour channels to an grayscale image
add.colour | R Documentation |
Add colour channels to an grayscale image
Description
Add colour channels to an grayscale image
Usage
add.colour(im, simple = TRUE)
Arguments
im |
a grayscale image
|
simple |
if TRUE just stack three copies of the grayscale image, if FALSE treat the image as the L channel in an HSL representation. Default TRUE.
|
Value
an image of class cimg
Author(s)
Simon Barthelme
Examples
grayscale(boats) #No more colour channels
add.colour(grayscale(boats)) #Image has depth = 3 (but contains only grays)
Results
|