20060619-Hue shifts near the L*=0 axis
2014-05-09 23:03
288 查看
原文:http://blogs.mathworks.com/steve/2006/06/19/hue-shifts-near-the-l0-axis/
Let's explore this idea using the L*a*b* color space. L* is lightness, while a* and b* represent red-green and yellow-blue color differences, respectively. Colors for which a* and b* equal zero are neutral, or gray.
First let's look at a pair of reds that have the same luminance, and are separated by a distance of 20 in the a*-b* plane.
Now let's try the same thing with colors that are the same distance apart, but which are located close to the neutral axis.
Let's explore this idea using the L*a*b* color space. L* is lightness, while a* and b* represent red-green and yellow-blue color differences, respectively. Colors for which a* and b* equal zero are neutral, or gray.
First let's look at a pair of reds that have the same luminance, and are separated by a distance of 20 in the a*-b* plane.
L = 85; a = 70; b = 0; lab1 = [L a b]; lab2 = [L a+20 b];Now convert these colors to sRGB space and display each as a single-pixel image.
cform = makecform('lab2srgb'); rgb1 = applycform(lab1, cform); rgb2 = applycform(lab2, cform); subplot(1,2,1) imshow(reshape(rgb1,1,1,3)) title('L*a*b* = [85 70 0]') subplot(1,2,2) imshow(reshape(rgb2,1,1,3)) title('L*a*b* = [85 90 0]') set(gcf, 'Color', 'w')These colors are visibly different, but they have the same basic hue.
Now let's try the same thing with colors that are the same distance apart, but which are located close to the neutral axis.
lab3 = [85 10 0]; lab4 = [85 -10 0]; rgb3 = applycform(lab3, cform); rgb4 = applycform(lab4, cform); subplot(1,2,1) imshow(reshape(rgb3,1,1,3)) title('L*a*b* = [85 10 0]') subplot(1,2,2) imshow(reshape(rgb4,1,1,3)) title('L*a*b* = [85 -10 0]') set(gcf, 'Color', 'w')These colors have a distinctively different hue - one is pink and the other is green. The moral of the story is that "small" changes in a*-b* are more likely to produce dramatic hue shifts for colors close to the L*=0 axis.
相关文章推荐
- URAL1991 The battle near the swamp
- ThinkPHP2.0读取MSSQL提示Incorrect syntax near the keyword 'AS'的解决方法
- Using the Axis TCP Monitor (tcpmon)
- Axis 2 – org.apache.axis2.AxisFault: The given SOAPAction … does not match an operation.
- MySQL server version for the right syntax to use near 'info where info.stu_id = 1' at line 1
- MySQL server version for the right syntax to use near '-1.stu stu0_' at line 1
- check the manual that corresponds to your MySQL server version for the right syntax to use near 'oiw
- 英语练习18 Is it near the post office
- The near side of the pie.
- Hue : the open source Apache Hadoop UI
- 插入mysql语句报错:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
- (校赛)URAL 1991 The battle near the swamp
- The Brain vs Deep Learning Part I: Computational Complexity — Or Why the Singularity Is Nowhere Near
- dbvis MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=DEFAULT' at lin
- filter in the new axis?
- org.apache.axis2.AxisFault: The AXIS engine could not find a target service to invoke! targetServic
- ValueError: all the input array dimensions except for the concatenation axis must match exactly
- URAL-1991 The battle near the swamp 水题
- Where is the near bank?
- check the manual that corresponds to your MySQL server version for the right syntax to use near