April 2020
Intermediate to advanced
438 pages
12h 2m
English
The rgb2lab() function from the scikit-image color module was used to convert an image from RGB into the Lab color space.
The modified image in the Lab color space was converted back into RGB using the lab2rgb() function from the scikit-image color module.
Since the color channels are separated in the a and b channels and in terms of intensity in the L channel by setting the color channel values to zero, we can obtain the grayscale image from a colored image in the Lab space.
The brightness of the input color image was changed by changing only the L channel values in the Lab space (unlike in the RGB color space where all the channel values need to be changed); there is no need to touch the color channels.
Read now
Unlock full access