为何HSV到RGB算法的工作方式是这样? [英] Why does the HSV-to-RGB algorithm work the way it does?

查看:105
本文介绍了为何HSV到RGB算法的工作方式是这样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看了一下从HSV 转换为RGB 维基百科的文章,但我不T理解。为什么每一种情况下的选择的方式是,为什么他们是有序的那样,如果订单的问题?

I have read the Wikipedia article about converting from HSV to RGB, but I don't understand. Why is each case option the way it is, and why they are ordered like that, if the order matters?

推荐答案

维基百科概括了pretty的防弹的编码方法,所以我会认为你感到困惑的执行的逻辑。你困惑这个,对吧?

Wikipedia outlines a pretty bulletproof approach to coding it, so I'll assume you're confused about the implementation's logic. You're confused about this, correct?

如果你看一下与其相邻的形象,你就会明白为什么:

If you look at the image adjacent to it, you will see why:

每个信道的功能是一个分段函数由五个线性段。这些案件占了每个分布,上面的图片中即阴影区域的每个范围。

Each channel's function is a piecewise function consisting of five linear segments. The cases account for each range of each distribution, namely the shaded regions of the above picture.

这篇关于为何HSV到RGB算法的工作方式是这样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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