RGB_to_Lab | R Documentation |
Conversion of RGB to Lab colour type
RGB_to_Lab(input_data)
input_data |
a 3-dimensional array (RGB image) where the third dimension is equal to 3 |
Meaning: RGB (Red-Green-Blue) to LAB (Lightness, A-colour-dimension, B-colour-dimension) colour conversion
https://www.epfl.ch/labs/ivrl/research/snic-superpixels/
library(OpenImageR)
set.seed(1)
array_3d = array(sample(1:255, 675, replace = TRUE), c(15, 15, 3))
res = RGB_to_Lab(array_3d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.