RGBToLAB

open fun RGBToLAB(@IntRange(from = 0, to = 255) r: Int, @IntRange(from = 0, to = 255) g: Int, @IntRange(from = 0, to = 255) b: Int, outLab: @NonNull Array<Double>)(source)

Convert RGB components to its CIE Lab representative components.

  • outLab[0] is L [0, 100]
  • outLab[1] is a [-128, 127)
  • outLab[2] is b [-128, 127)

Parameters

r

red component value [0, 255]

g

green component value [0, 255]

b

blue component value [0, 255]

outLab

3-element array which holds the resulting LAB components