RGB_to_Lab: Conversion of RGB to Lab colour type

Description Usage Arguments Details References Examples

View source: R/superpixels.R

Description

Conversion of RGB to Lab colour type

Usage

1
RGB_to_Lab(input_data)

Arguments

input_data

a 3-dimensional array (RGB image)

Details

Meaning: RGB (Red-Green-Blue) to LAB (Lightness, A-colour-dimension, B-colour-dimension) colour conversion

References

https://www.epfl.ch/labs/ivrl/research/snic-superpixels/

Examples

1
2
3
4
5
6
library(OpenImageR)

set.seed(1)
array_3d = array(sample(1:255, 675, replace = TRUE), c(15, 15, 3))

res = RGB_to_Lab(array_3d)

OpenImageR documentation built on Sept. 10, 2021, 5:08 p.m.