http://www.cnblogs.com/Imageshop/archive/2013/02/02/2889897.html
实现《Color Transfer between Images》这篇论文过程中,被颜色空间之间的转换公式彻底搞懵了,这篇论文里的转换矩阵跟网络上的转换矩阵不一样。
在网上找了半天也找不到合理的解释。也不知道如何找到有关色彩空间的标准。 所以做一个记录,看一下OpenCv和维基百科英语和一些论文里的公式。希望有大神能帮忙解答。
XYZ:
OPenCV:
RGB CIE XYZ.Rec 709 with D65 white point ( CV_BGR2XYZ, CV_RGB2XYZ, CV_XYZ2BGR, CV_XYZ2RGB ):
CIE l*a*b*
OpenCV:
-
-
RGB
CIE L*a*b* (
CV_BGR2Lab, CV_RGB2Lab, CV_Lab2BGR, CV_Lab2RGB ).
-
In case of 8-bit and 16-bit images,R, G, and B are converted to the floating-point format and scaled to fit the 0 to 1 range.
where
and
This outputs, , . The values are then converted to the destination data type:
-
8-bit images
-
-
16-bit images
-
(currently not supported)
-
-
-
32-bit images
-
L, a, and b are left as is
-
-
维基百科: https://en.wikipedia.org/wiki/LMS_color_space
https://en.wikipedia.org/wiki/CIE_1931_color_space
https://en.wikipedia.org/wiki/Lab_color_space
这篇文章里做了对color space做了介绍
Colour spaces - perceptual, historical and
applicational background
http://www.brucelindbloom.com/index.html?WorkingSpaceInfo.html