三种常用颜色模型的比较研究

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

371RGB284Vol.28No.420074JournalofHunanUniversityofScienceandEngineeringApr.2007RGBYCrCbHSVRGBYCrCbRGBHSV[1]RGBXYZLABLUVYIQYUVYCrCbHSVHISTSL[2]RGB''VYULUX[3]H-SV-V[4]RGBYCrCbHSVRGBYCrCbHSV2.1RGBRGB630nm530nm450nm1RGBRGBRGB200701121975C(λ)=(BGR,,)=RR+GG+BBRGB01.02.2YCrCbYCrCbYCrCbYCrCbCrCbRGB=0.299R+0.587G+0.114BYCrCbJPEG2.3HSVHSVHSVHSVRGBRGBHSV2382HSV2H0360S01V01RGBRGB[5]3.1RGBYCrCb⎥⎥⎥⎦⎤⎢⎢⎢⎣⎡+⎥⎥⎥⎦⎤⎢⎢⎢⎣⎡⋅⎥⎥⎥⎦⎤⎢⎢⎢⎣⎡−−−−=⎥⎥⎥⎦⎤⎢⎢⎢⎣⎡5.05.005.03313.01687.00813.04187.05.0114.0587.0299.0BGRCbCrY⎥⎥⎥⎦⎤⎢⎢⎢⎣⎡−−⋅⎥⎥⎥⎦⎤⎢⎢⎢⎣⎡−−=⎥⎥⎥⎦⎤⎢⎢⎢⎣⎡5.05.0772.101344.0714.010402.11CbCrYBGR3.2RGBHSV3.2.1RGBHSVmax=max(R,G,B)min=min(R,G,B)ifR=max,H=(G-B)/(max-min)ifG=max,H=2+(B-R)/(max-min)ifB=max,H=4+(R-G)/(max-min)H=H*60ifH0,H=H+360V=max(R,G,B)S=(max-min)/max3.2.2HSVRGBifS=0R=G=B=Velse{H/=60i=INTEGER(H)f=H-ia=V*(1-S)b=V*(1-s*f)c=V*(1-S*(1-f))switch(i)case0:R=V;G=c;B=a;case1:R=b;G=v;B=a;case2:R=a;G=v;B=c;case3:R=a;G=b;B=v;case4:R=c;G=a;B=v;case5:R=v;G=a;B=b;}RGBYCrCbHSVRGBYCrCbRGBHSV[1][]DonaldHearn,M.PaulineBaker..()[M].:,2005:568-569.[2]AdrianFord,AlanRoberts.ColourSpaceConversions(TechnicalReport)[M].London:WestminsterUniversity,1998.[3],.[J].,2000,23(2):158-165.[4],..,2004,20(2):101-107.[5].[M].:,2001:116-118.AComparisonStudyofThreeCurrentColorModelJIANGYa-jun(DepartmentofComputerandInformationScience,HunanUniversityofScienceandEngineering,Yongzhou425100,China)Abstract:threecurrentcolormodelssuchasRGB,YCrCbandHSVaresimplydiscussed.Then,thispapershowsthemutualconversionalgorithmbetweenRGBandYCrCb,RGBandHSV.Becausenoneofcolormodelscanexplainallthecolorproblems,weoftenadoptsomecolormodelormodelconversiontoexplainsomecolorfeatherintheSpecificapplication.Keywords:Colormodel;primarycolor;brightness;saturation

1 / 2
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功