欢迎来到天天文库
浏览记录
ID:61972320
大小:144.00 KB
页数:29页
时间:2021-04-07
《彩色图像处理MATLAB函数简介.ppt》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、彩色图像处理函数简介1函数简介applycform-Applydevice-independentcolorspacetransformation.hsv2rgb-ConvertHSVvaluestoRGBcolorspace(MATLABToolbox).iccread-ReadICCcolorprofile.lab2double-ConvertLabcolorvaluestodouble.lab2uint16-ConvertLabcolorvaluestouint16.lab2uint8-ConvertLabcolorvaluestouin
2、t8.makecform-Createdevice-independentcolorspacetransformstructure.ntsc2rgb-ConvertNTSCvaluestoRGBcolorspace.1函数简介rgb2hsv-ConvertRGBvaluestoHSVcolorspace(MATLABToolbox).rgb2ntsc-ConvertRGBvaluestoNTSCcolorspace.rgb2ycbcr-ConvertRGBvaluestoYCBCRcolorspace.whitepoint-ReturnsXYZ
3、valuesofstandardilluminants.xyz2double-ConvertXYZcolorvaluestodouble.xyz2uint16-ConvertXYZcolorvaluestouint16.ycbcr2rgb-ConvertYCBCRvaluestoRGBcolorspace.1函数简介dither-Convertimageusingdithering.gray2ind-Convertintensityimagetoindexedimage.grayslice-Createindexedimagefrominten
4、sityimagebythresholding.graythresh-ComputeglobalimagethresholdusingOtsu'smethod.im2bw-Convertimagetobinaryimagebythresholding.im2double-Convertimagearraytodoubleprecision.1函数简介ind2gray-Convertindexedimagetointensityimage.ind2rgb-ConvertindexedimagetoRGBimage(MATLABToolbox).m
5、at2gray-Convertmatrixtointensityimage.rgb2gray-ConvertRGBimageorcolormaptograyscale.rgb2ind-ConvertRGBimagetoindexedimage.2颜色空间转换矩阵的创建与应用makecformCreateacolortransformationstructureSyntaxC=makecform(type)createsthecolortransformationstructureCthatdefinesthecolorspaceconversi
6、onspecifiedbytype.Toperformthetransformation,passthecolortransformationstructureasanargumenttotheapplycformfunction.‘type’参数‘type’参数颜色空间应用rgb=imread('peppers.png');cform=makecform('srgb2lab');lab=applycform(rgb,cform);3颜色空间转换函数举例rgb2hsvConvertRGBcolormaptoHSVcolormapcmap=rgb
7、2hsv(M)DescriptionconvertsanRGBcolormapMtoanHSVcolormapcmap.Bothcolormapsarem-by-3matrices.Theelementsofbothcolormapsareintherange0to1.ThecolumnsoftheinputmatrixMrepresentintensitiesofred,green,andblue,respectively.Thecolumnsoftheoutputmatrixcmaprepresenthue,saturation,andva
8、lue,respectively.3颜色空间转换函数举例hsv2rgbConvertHSVcolormaptoRGBcolormapM=hsv2rgb
此文档下载收益归作者所有