HSI和HSV色彩空间 [英] HSI and HSV color space

查看:153
本文介绍了HSI和HSV色彩空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HSI和HSV色彩空间有什么区别?我想使用HSI色彩空间,但我没有找到任何有用的HSI材料。 HSI与HSV相同吗?

What is the difference between HSI and HSV color space? I want to use HSI color space but I did not find any useful material for HSI. Is HSI the same as HSV?

推荐答案

HSI,HSV和HSL都是不同的颜色空间。 Hue计算是(据我所知)在三个模型之间相同,并使用6件分段函数来确定它,或者使用精确到1.2度以内的更简单模型,可以使用atan((sqrt(3)⋅(GB))/ 2(RGB))。在大多数情况下,这两者是可互换的,但通常HSV和HSL使用分段模型,其中HSI通常使用arctan模型。可以使用不同的方程式,但这些方程式通常会牺牲精度以实现简单或更快的计算。

HSI, HSV, and HSL are all different color spaces. Hue computation is (as far as I can find) identical between the three models, and uses a 6-piece piece-wise function to determine it, or for a simpler model that is accurate to within 1.2 degrees, atan((sqrt(3)⋅(G-B))/2(R-G-B)) can be used. For the most part, these two are interchangeable, but generally HSV and HSL use the piece-wise model, where HSI usually uses the arctan model. Different equations may be used, but these usually sacrifice precision for either simplicity or faster computation.

对于亮度/值/强度,这三个空格使用略有不同的表示。

For lightness/value/intensity, the three spaces use slightly different representations.


  • 通过简单平均RGB值来计算强度:(1/3)⋅(R + G + B)

  • 亮度平均RGB的最小值和最大值:(1/2)⋅(max(R,G,B)+ min(R,G,B))

  • 值是最简单的,是RGB最大值: max( R,G,B)

  • Intensity is computed by simply averaging the RGB values: (1/3)⋅(R+G+B).
  • Lightness averages the minimum and maximum values for RGB: (1/2)⋅(max(R,G,B) + min(R,G,B)).
  • Value is the simplest, being the value of the maximum of RGB: max(R,G,B).

在后续计算中使用时,L / V / I被缩放到0到1之间的小数。

When used in subsequent calculations, L/V/I is scaled to a decimal between 0 and 1.

饱和度是三种模型差异最大的地方。对于所有3,如果I / V / L为0,则饱和度为0(这是黑色,因此其表示是明确的),并且如果亮度最大,HSL还将饱和度设置为0(因为HSL最大亮度表示白色) )。

Saturation is where the three models differ the most. For all 3, if I/V/L is 0, then saturation is 0 (this is for black, so that its representation is unambiguous), and HSL additionally sets saturation to 0 if lightness is maximum (because for HSL maximum lightness means white).


  • HSL和HSV同时考虑RGB的最小值和最大值,取两者之间的差异: max(R,G,B) - min(R,G,B),此值有时称为色度(C)。

  • HSV则获取色度并将其除以值以获得饱和度: C / V

  • HSL将色度除以亮度表达式考虑到: C /(1-abs(2L-1))

  • HSI不使用色度,而只是服用 min(R,G,B)到账: min(R,G,B)/ I

  • HSL and HSV account for both the minimum and maximum of RGB, taking the difference between the two: max(R,G,B) - min(R,G,B), this value is sometimes referred to as chroma (C).
  • HSV then takes the chroma and divides it by the value to get the saturation: C/V.
  • HSL divides chroma by an expression taking lightness into account: C/(1-abs(2L-1)).
  • HSI doesn't use chroma, instead only taking min(R,G,B) into account: min(R,G,B)/I.
  • Wikipedia: HSL and HSV
  • Wikipedia: Hue

这篇关于HSI和HSV色彩空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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