Learn R Programming

imagerExtra (version 1.3.2)

RestoreHue: restore hue of color image

Description

restore hue of color image

Usage

RestoreHue(im, hueim)

Arguments

im

a grayscale image of class cimg

hueim

a color image of class cimg

Value

a color image of class cimg

Examples

Run this code
# NOT RUN {
g <- Grayscale(boats)
hue <- GetHue(boats)
layout(matrix(1:2, 1, 2))
plot(g, main = "Original")
RestoreHue(g, hue) %>% plot(main="Resotred")
# }

Run the code above in your browser using DataLab