颜色的三要素:色调,饱和度,和亮度 HSI/HSV
来源:互联网 发布:域名dns劫持检测 编辑:程序博客网 时间:2024/04/29 19:24
- 1
- 颜色的三要素:色调,饱和度,和亮度。
- The3 colour directories: hue,saturation, and brightness.
- danci.911cha.com
在同时使用色调、饱和度和亮度值的组合的情况下这些区域中的每一个是可定义的。
Each of theseregions is definableusing a combinationof hue,saturation andluminance valuessimultaneously.
Provided by gtcom
您可以更改色调、饱和度、亮度、透明度、流动性比例和其他许多方面。
You can change color hue,saturation, lightness, opacity,fluidity scale,and many moreaspects.
www.ibm.com
背景视频包括像素,每个像素表示色调、饱和度和亮度(hsl)的值。
The background video is comprisedof pixels,each of whichrepresents a valueof hue,saturation andluminance ( hsl).
Provided by gtcom
一个这种颜色空间的示例是对使用者更有直观意义的hsl(色调、饱和度、亮度)空间。
An example of one such color space is the hsl ( h ue,saturation, luminance) space,which is moreintuitively meaningful tothe user.
Provided by gtcom
本文提出了一种基于色调、饱和度和亮度联合概率分布的彩色图象分割方法。
In this paper, we propose a new color image segmentationmethod, whichbases on unionprobability density ofhue, lightand saturation.
dict.cnki.net
本文在快速HSI(色调、饱和度和亮度)变换空间基础上,采用了一种利用移动网格与动态窗口技术相结合的算法进行目标识别,达到了预期的效果。
Based on rapid HSI transformspace, a target identification algorithmis adopted,which combined amobile grid anddynamic window technology.
www.fabiao.net
对归为非纹理类的图象,探讨了一种基于色调、饱和度和亮度联合概率分布的彩色图象分割方法。
To non-texture images, a new color image segmentation method isproposed in thischapter, whichbased on unionprobability density ofhue, lightand saturation.
dict.cnki.net
将图像的RGB值转换成色调、饱和度和亮度值,并将色调和饱和度结合产生融合图像,以消除地表、天空等背景的影响。
The color image was translatedfrom RGB systemto HSI system,and the hue,lightness andsaturation imageswere acquired.In order toeliminate the influenceof background ofsoil and sky,the hue andsaturation data wascombined and producedfusion image.
dict.cnki.net
由于RGB空间仅利用亮度信息而较少利用颜色信息,并且该空间三分量高度相关,与人类视觉倾向于用色调、饱和度和亮度共同描述彩色物体不一致,不适合于边缘检测任务。
RGB color space using onlythe brightness informationand less useof color information,and the spacethree components arehighly correlated,human vision prefersto use hue,saturation andbrightness to describe the colorobject is inconsistent,not suitable foredge detection task.
www.fabiao.net
本文通过在HSI空间对色调和饱和度进行合理划分,并对图像间色调、饱和度和亮度进行匹配、加权求和,给出了根据局部累积直方图计算图片间相似值的一种具体算法。
Through experiment,we provide aconcrete colorimage retrieval algorithm,which divides thehue and saturationin HSI colorspace, usesmatching algorithm totwo pictures andcalculates similar amount.
dict.cnki.net
本文介绍一种适用于PAL制式电视终端的模拟式实时装置。该装置能按色调、饱和度与亮度对彩色图象进行分解显示,并对显示背景作适当的处理。
A real time analogue apparatusis presented,which can besuitable for terminalsof PAL televisionsystem and cansegment-display color imageswith appropriate backgroundby hue,saturation andbrightness.
dict.cnki.net
本文提出了系统的评价思路和方案,从整体外观表现(颜色的多少、分布特征、均匀程度),到颜色的三要素(色调、饱和度、亮度),并结合成因进行讨论。
A systemic way is suggestedfor appraisement,from the appearanceto the 3elements of color,i.e. from theamount, distributing,uniformity to thetone, saturation, brightness, and include thecausing of color.
dict.cnki.net
图形和背景除了色调不同外,饱和度和亮度也应有区别。如果可能,应尽量避免在彩色背景上运用彩色文本。
Objects and background should varyin brightnessor saturation,in addition tohue, and color texton color backgroundsshould also beavoided when possible.
Provided by gtcom
而当亮度和饱和度都大于各自的阈值时,颜色由其色调和饱和度来代表,而忽略不同亮度的影响。
Otherwise coloris represented byits hue and saturation,thus the influenceof intensityis ignored.
dict.cnki.net
为研究四诊客观化,采用数码采集,并用计算机图像软件PHOTOSHOP60分别计算爪掌的RGB数值,然后换算成色调(H)、饱和度(S)、亮度(V)值,对爪色进行分析。
To objectify the Chinese medicaldiagnosis, theRGB values ofhind paws werecalculated by Photoshop6.0 and convertedinto hue,saturation andluminance, and contrasted withpaw color.
dict.cnki.net
结果表明:碎膜样品的色调主要集中在绿色,其中3号样品的饱和度、亮度最高,但其色调偏黄;
The result shows that thecolor toneof the brokenfilms mainly focuseson green.The saturationand brightnessof sample No.3 is thehighest, butits color toneis somewhat yellow.
dict.cnki.net
色调和饱和度的投影直方图反映了颜色的空间分布,而亮度的投影直方图则体现了图像的形状。
The projectivehistograms of hueand saturationdiscribe the colordistribution in space,and the projectivehistogram of intensityreflects the shapeof the image.
dict.cnki.net
这对于给定的色调将具有对要包括在颜色空间的子集中的饱和度和亮度的范围进行加宽的效果。
This would have the effect,for a givenhue, of widening theranges of saturationand luminancethat are tobe included inthe subset ofthe color space.
Provided by gtcom
通过对球体彩色图像的亮度、色调和饱和度的分布特征的分析发现,球体图像颜色失真主要跟颜色的亮度分量有关,而与色调和饱和度分量关系不大。
After analyzingthe distribution characteristicsof brightness,hue andsaturation ofball images,it was foundthat the imagecolor distortion wasonly related tobrightness, but hue and saturation of images.
dict.cnki.net
openCv RGB到HSV空间的学习
版权声明:本文为博主原创文章,未经博主允许不得转载。
这次我主要说说颜色空间,包括三个方面:RGB颜色空间,HSV颜色空间以及颜色空间的转换
RGB颜色空间介绍:
1:RGB颜色空间简介
三基色原理:大多数的颜色可以通过红、绿、蓝<数学中基的概念>三色按照不同的比例合成产生,同样绝大多数单色光也可以分解成红绿蓝三种色光
红绿蓝三基色按照不同的比例相加合成混色称为相加混色。其中一些混色的规律有:
红色+绿色 = 黄色
绿色+蓝色 = 青色
红色+蓝色 = 品红
红色+绿色+蓝色 = 白色
红色+青色 = 白色
绿色+品红 = 白色
蓝色+黄色 = 白色
2:互补光的定义:
当两种光按照适当比例混合得到白光时,称这两种光为互补光。所以上述的混色规律我们可以得到青色、黄色、品红分别是红色、蓝色、绿色的补色。
3:亮度的定义:
单色光的亮度强度各不相同,根据人的感受是:绿光最高,红光次之,蓝光最弱,假设得到的白光的强度为100%。如果用Y表示景物的亮度,则通常有:
Y= 0.299R + 0.587G + 0.114B
因为红﹑绿﹑蓝三基色能够合成自然界所有的色彩,因此在电子设备和软件中,经常使用红绿蓝三基色合成五颜六色的图像。用以上的相加混色所表示的颜色模式成为RGB模式
注意:
1:CvLoadImage(“”,0)所得到的图像即为灰度单通道图像,所对应的像素即为Y;而与split函数得到的单通道图像R,G,B不一样,但其亮度显示也是按照下图的直线来显示的<即为RGB空间的直线>
2:三通道图像也可能是灰度图像,当三通道值相等时,所对应的三通道图像就是灰度图像<可以通过以下程序画出来>。即RGB space空间中(0,0,0)和(1,1,1)两线上所有点就是灰度图像—>三通道图不一定是彩色的,彩色图一定是三通道的。
3:单通道图像亮度显示也是通过下图来显示的
得到上图的代码为:
- #include <iostream>
- #include "cv.h"
- #include "highgui.h"
- #include "cxcore.h"
- using namespace std;
- int main()
- {
- IplImage *dst = cvCreateImage(cvSize(255, 255), 8, 3);
- for(int y = dst->height - 1; y >= 0; y--)
- {
- cvSet2D(dst, y, dst->height - y - 1, cvScalar(255-y, 255-y, 255-y));
- }
- cvNamedWindow("show");
- cvShowImage("show", dst);
- cvWaitKey(0);
- cvReleaseImage(&dst);
- cvDestroyWindow("show");
- return 0;
- }
HSV颜色空间
H:色调 0°对应红色, 120°对应绿色, 240°对应蓝色---对应不同的颜色 取值范围0~360度
S:饱和度 比若说:红色的纯度,越白纯度越低,取值范围0~1
V:亮度 比如你穿了一件红色衣服 在白天亮度较高(0~255之间)傍晚或者黄昏就比较低(0~255之间),即多少的光照上去反射出来被看见,取值范围0~255
如图:
颜色空间的转换
用到的核心函数有: cvConvertScale, cvSplit, cvMerge, cvCvtColor
需要注意的是:由于加载进来图像是uchar,最多只能是255,而opencv正常程序的结构显示H色调都会小于等于180<因为程序知道表示不了360,直接全部缩小到180>,而H色调的取值范围0~360,因此我们需要将图像转换成float类型,而cvConvertScale 可以实现放大缩小偏移同时可以做类型转换;之后我们可以将hsv各通道转换到0~255之间,使用到的函数仍然是cvConvertScale 。最后需要注意的一点是:CvShowImage显示的图像都会被当做RGB颜色空间的图像来处理.
下面给出这之间范围变化的代码:
1:没有考虑H(色调)范围的代码,此时H的范围只能在0~180之间。
代码:
- #include <iostream>
- #include "cv.h"
- #include "highgui.h"
- #include "cxcore.h"
- using namespace std;
- int main()
- {
- IplImage *src = cvLoadImage("F:\\tongtong.jpg", 1);
- IplImage *hsv_img = cvCreateImage(cvGetSize(src), 8 , 3);
- IplImage *h_img = cvCreateImage(cvGetSize(src), 8, 1);
- IplImage *s_img = cvCreateImage(cvGetSize(src), 8, 1);
- IplImage *v_img = cvCreateImage(cvGetSize(src), 8, 1);
- cvCvtColor(src, hsv_img, CV_BGR2HSV);
- cvSplit(hsv_img, h_img, s_img, v_img, NULL);
- for(int y = 0; y < hsv_img->height; y++){
- for(int x = 0; x < hsv_img->width; x++)
- {
- cout << cvGetReal2D(h_img, y, x) << " ";
- }
- cout << endl;
- }
- cvNamedWindow("src", 0);
- cvShowImage("src", hsv_img);
- cvWaitKey(0);
- cvReleaseImage(&src);
- cvDestroyWindow("src");
- return 0;
- }
2:将色调H的取值范围转换到0~360之间
- #include <iostream>
- #include "cv.h"
- #include "highgui.h"
- #include "cxcore.h"
- using namespace std;
- int main()
- {
- IplImage *src = cvLoadImage("F:\\tongtong.jpg", 1);
- IplImage *src_float = cvCreateImage(cvGetSize(src),IPL_DEPTH_32F, 3);
- <span style="color: rgb(255, 0, 0);">cvConvertScale(src, src_float, 1.0, 0.0);
- IplImage *hsv_img = cvCreateImage(cvGetSize(src), IPL_DEPTH_32F , 3);
- IplImage *h_img = cvCreateImage(cvGetSize(src), IPL_DEPTH_32F, 1);
- IplImage *s_img = cvCreateImage(cvGetSize(src), IPL_DEPTH_32F, 1);
- IplImage *v_img = cvCreateImage(cvGetSize(src), IPL_DEPTH_32F, 1);
- </span>
- cvCvtColor(src_float, hsv_img, CV_BGR2HSV);
- cvSplit(hsv_img, h_img, s_img, v_img, NULL);
- for(int y = 0; y < hsv_img->height; y++){
- for(int x = 0; x < hsv_img->width; x++)
- {
- cout << cvGetReal2D(h_img, y, x) << " ";
- }
- cout << endl;
- }
- cvNamedWindow("src", 0);
- cvShowImage("src", hsv_img);
- cvWaitKey(0);
- cvReleaseImage(&src);
- cvDestroyWindow("src");
- return 0;
- }
3:将H,S,V的范围转化到0~255之间
- #include <iostream>
- #include "cv.h"
- #include "highgui.h"
- #include "cxcore.h"
- using namespace std;
- int main()
- {
- IplImage *src = cvLoadImage("F:\\tongtong.jpg", 1);
- IplImage *src_float = cvCreateImage(cvGetSize(src),IPL_DEPTH_32F, 3);
- cvConvertScale(src, src_float, 1.0, 0.0);
- IplImage *hsv_img = cvCreateImage(cvGetSize(src), IPL_DEPTH_32F , 3);
- IplImage *h_img = cvCreateImage(cvGetSize(src), IPL_DEPTH_32F, 1);
- IplImage *s_img = cvCreateImage(cvGetSize(src), IPL_DEPTH_32F, 1);
- IplImage *v_img = cvCreateImage(cvGetSize(src), IPL_DEPTH_32F, 1);
- <span style="color: rgb(255, 0, 0);">
- IplImage *h = cvCreateImage(cvGetSize(src), 8, 1);
- IplImage *s = cvCreateImage(cvGetSize(src), 8, 1);
- IplImage *v = cvCreateImage(cvGetSize(src), 8, 1);
- cvCvtColor(src_float, hsv_img, CV_BGR2HSV);
- cvSplit(hsv_img, h_img, s_img, v_img, NULL);
- cvConvertScale(h_img, h, (1.0/360)*255, 0.0);
- cvConvertScale(s_img, s, 255.0, 0.0); // 因为S的取值范围为0~1
- cvConvertScale(v_img, v, 1.0, 0.0);</span>
- for(int y = 0; y < hsv_img->height; y++){
- for(int x = 0; x < hsv_img->width; x++)
- {
- if(cvGetReal2D(h, y, x) > 200)cout << cvGetReal2D(h, y, x) << " ";
- }
- cout << endl;
- }
- cvNamedWindow("src", 0);
- cvShowImage("src", hsv_img);
- cvWaitKey(0);
- cvReleaseImage(&src);
- cvDestroyWindow("src");
- return 0;
- }
- 颜色的三要素:色调,饱和度,和亮度 HSI/HSV
- 颜色的三要素:色调,饱和度,和亮度。
- 色调、亮度和饱和度
- 色调、饱和度和亮度 HSL
- 初学颜色矩阵(修改图像的色调,饱和度,亮度)
- 颜色HSL(色调,饱和度,亮度)
- 颜色HSL(色调,饱和度,亮度)
- 修改图片的色调,饱和度,亮度
- 颜色空间RGB与 色调、饱和度、亮度(ESL)转换的完整C语言算法
- HSL(色调,饱和度,亮度)
- HSL 色调饱和度亮度关系
- 色调,饱和度,亮度如何计算
- 色调,饱和度,亮度如何计算
- 色调,饱和度,亮度如何计算
- 图像处理中色调、亮度、饱和度的定义
- 图像处理中色调、亮度、饱和度的定义
- 图像处理中色调、亮度、饱和度的定义
- 谈论 图形图象--色调,饱和度,亮度
- swift支持多线程操作数据库类库-CoreDataManager
- 颜色的三要素:色调,饱和度,和亮度。
- python之scipy
- Java虚拟机(四):Class文件结构及字节码指令
- test
- 颜色的三要素:色调,饱和度,和亮度 HSI/HSV
- react-native遇到的坑,及解决方法
- SpringMVC-轻松上手
- 3-内核对象
- struts2和springmvc比较1
- 第4章 数据访问层
- python之sklearn
- boot loader能全部用C程序编写吗
- 手机建站的几大必备要素