色彩重映射 - 匹配目标调色板使用3D网格? [英] Color Remapping - Matching target palette using a 3D grid?

查看:181
本文介绍了色彩重映射 - 匹配目标调色板使用3D网格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们说我有颜色的'富',它被保存在RGB格式。我需要重新着色'富'所以它最接近的颜色的颜色列表匹配。在飞行中这样做,我不能观看来自每种颜色的RGB值作为一个三维网格点(R = X,G = Y,B = z)和计算点'富'之间的距离VS从每个点颜色列表中?

Let's say I have color 'FOO', and it is stored in RGB format. I need to recolor 'FOO' so it matches the closest color in a list of colors. Doing this on the fly, couldn't I view the RGB values from each color as points on a 3D grid (r=x, g=y, b=z) and compute the distance between point 'FOO' vs the points from each color in the list?

最近点到'富'是更换颜色?

The closest point to 'FOO' would be the replacement color?

推荐答案

在理论上,是的。在现实中,如果你想这样做很好计算最接近的颜色是不平凡的。只是举例,群众的眼睛是更敏感的亮度变化比颜色的变化,尤其是对色彩范围的两端(即朝着极端的红色或蓝色)。

In theory, yes. In reality, computing the closest color is non-trivial if you want to do it well. Just for example, people's eyes are much more sensitive to changes in brightness than color shifts, especially toward the ends of the color range (i.e., toward extreme reds or blues).

至少如果你不介意在计算一些额外的工作,你要使用标准的色差计算(在你的情况,你会希望尽量减少色差)。需要注意的是,这些所有的(我所用反正工作)工作在CIE的L * a * b *色彩空间。在典型情况下,你将开始与RGB,您需要转换为L * A * B * 第一。

At least if you don't mind some extra work in the computation, you'll want to use one of the standard "delta E" computations (in your case, you'll want to minimize delta E). Note that these all (all I've worked with anyway) work in the CIE L*a*b* color space. In a typical case, you'll start with RGB, which you'll need to convert to L*a*b* first.

这篇关于色彩重映射 - 匹配目标调色板使用3D网格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆