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

问题描述

HSL是否比HSI和HSV优越,因为它考虑了人类的感知。
对于某些图像处理算法,他们说我可以使用这些颜色空间中的任何一个,即
,我不确定该选择哪个颜色空间。我的意思是,算法只是在乎为您提供
色相和饱和度通道,您可以选择要使用的色彩空间

Is HSL superior over HSI and HSV, because it takes human perception into account.?For some image processing algorithms they say I can use either of these color spaces,and I am not sure which one to pick. I mean, the algorithms just care that you providethem with hue and saturation channel, you can pick which color space to use

推荐答案

哪个最好,很大程度上取决于您使用它的目的。但是根据我的经验,HSL(HLS)在亮度和饱和度之间存在不幸的相互作用。

Which one is best very much depends on what you're using it for. But in my experience HSL (HLS) has an unfortunate interaction between brightness and saturation.

在此示例将图像亮度降低2。接下来是使用RGB,HLS和HSV的结果:

Here's an example of reducing image brightness by 2. The leftmost image is the original; next comes the results using RGB, HLS, and HSV:

请注意,HLS中蝴蝶边缘周围的亮度过高和饱和,尤其是底部的红色斑点。这就是我所指的饱和问题。

Notice the overly bright and saturated spots around the edge of the butterfly in HLS, particularly that red spot at the bottom. This is the saturation problem I was referring to.

此示例是使用进行转换。

This example was created in Python using the colorsys module for the conversions.

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

06-21 05:06