2

I've been using linear rgb (no gamma correction) with rgb2lab. However I just noticed that rgb2lab is really rgb2xyz followed by xyz2lab, and that rgb2xyz actually expects sRGB. So it would seem that if I have an sRGB image with RGB in (0,255) I should pass image/255 to rgb2lab. Is that right?

Eduardo
  • 1,235
  • 16
  • 27

1 Answers1

1

You can do that no problem, but scikit-image will automatically convert the 0–255 range to 0.0–1.0. See Image data types and what they mean in our documentation for details.

Juan
  • 5,433
  • 21
  • 23