您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 信息化管理 > 三种常用颜色模型的比较研究
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
本文标题:三种常用颜色模型的比较研究
链接地址:https://www.777doc.com/doc-5020497 .html