Ported utils from OpenCV, used to convert single pixel from RGB to Lab.