ZhaJiMan / ZhaJiMan.github.io

7 stars 1 forks source link

post/chromaticity_diagram/ #17

Open utterances-bot opened 11 months ago

utterances-bot commented 11 months ago

搞颜色系列:绘制 CIE 1931 色度图 - 炸鸡人博客

A minimal Hugo theme with nice theme color.

https://zhajiman.github.io/post/chromaticity_diagram/

yuhao commented 11 months ago

色域出界的处理即所谓的 Gamut Mapping 的问题,参考https://graphics.stanford.edu/courses/cs178/applets/gamutmapping.html. ICC 定义了若干 Rendering Intent,每一种 Rendering Intent 有相应的 mapping 算法。一般来说最常用的办法是保持颜色之间的相互差异。

ZhaJiMan commented 11 months ago

谢谢老师介绍。不过这个页面里保持颜色相互差异的 Perceptual 方法,让所有颜色的饱和度变得好低,感觉有点阴沉啊😂

yuhao commented 11 months ago

你说的是那个 flash app 的实现?color-science library 的实现应该是最准确的。

On Sun, Oct 22, 2023 at 9:14 PM ZhaJiMan @.***> wrote:

谢谢老师介绍。不过这个页面里保持颜色相互差异的 Perceptual 方法,让所有颜色的饱和度变得好低,感觉有点阴沉啊😂

— Reply to this email directly, view it on GitHub https://github.com/ZhaJiMan/ZhaJiMan.github.io/issues/17#issuecomment-1774324975, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHRSQM5MERGVONEAPNR2DDYAXHKBAVCNFSM6AAAAAA6LJONQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZUGMZDIOJXGU . You are receiving this because you commented.Message ID: @.***>

-- Typed on a mobile phone. Please excuse brevity.

ZhaJiMan commented 11 months ago

是说那个页面的方法

The intent here is to bring out-of-gamut colors back into gamut, while minimizing changes in the relationships between different colors. We've interpreted this as projecting all colors proportionately towards the neutral point until every color lies within gamut.

让色度图上所有点维持相对位置不变,向白点移动,刚好使得没有点在三角形色域外。这个方法让 flash app 里图片的饱和度变低了很多。color-science 里相关的功能我自己再看看,不用麻烦老师了。