Learn R Programming

CRImage (version 1.20.0)

convertRGBToLAB: Converts RGB to LAB color space.

Description

Conversion of Color spaces.

Usage

convertRGBToLAB(imgT)

Arguments

imgT
The RGB image.

Value

The image in LAB color space.

Details

Color space conversion

Examples

Run this code
f= system.file("extdata", "exImg.jpg", package="CRImage")
img=readImage(f)
#conversion to LAB color space
imgLAB=convertRGBToLAB(img)

Run the code above in your browser using DataLab