创建颜色变换结构
的makecform
函数支持与设备无关万博1manbetx的颜色空间族成员之间的转换国际委员会Éclairage(国际照明委员会,简称CIE)。makecform
也支持转换万博1manbetx和从sRGB和CMYK颜色空间。要执行颜色空间转换,通过颜色转换结构创建makecform
作为一个论点applycform
函数。
C = makecform(类型)
C = makecform(类型、WhitePoint的WP)
C = makecform(类型、AdaptedWhitePoint的WP)
C = makecform(“适应”、“WhiteStart”,WPS, WhiteEnd,热电制冷,AdaptModel,模型)
C = makecform(“srgb2cmyk”、“RenderingIntent”,意图)
C = makecform(“cmyk2srgb”、“RenderingIntent”,意图)
C = makecform (icc, src_profile dest_profile)
C = makecform (icc, src_profile、dest_profile SourceRenderingIntent, src_intent, DestRenderingIntent, dest_intent)
C = makecform(‘方向’,‘mattrc’,mattrc方向)
C = makecform (mattrc,侧面,“方向”,方向)
C = makecform (mattrc,侧面,“方向”,方向,RenderingIntent, trc_intent)
C = makecform (graytrc,侧面,“方向”,方向)
C = makecform (graytrc,侧面,“方向”,方向,RenderingIntent, trc_intent)
C = makecform (clut,侧面,LUTtype)
C = makecform(“命名”,形象,空间)
创建基于两个ICC配置文件的颜色转换,C
= makecform(“刑事法庭”,src_profile
,dest_profile
)src_profile
和dest_profile
.
创建基于两个ICC颜色配置文件的颜色转换,C
= makecform(“刑事法庭”,src_profile
,dest_profile
“SourceRenderingIntent”,src_intent
“DestRenderingIntent”,dest_intent
)src_profile
和dest_profile
,指定源和目标概要文件的呈现意图。
添加指定呈现意图的选项。C
= makecform(“mattrc”,配置文件
“方向”,方向
“RenderingIntent”,trc_intent
)
添加指定呈现意图的选项。C
= makecform(“graytrc”,配置文件
“方向”,方向
“RenderingIntent”,trc_intent
)
将RGB图像转换为L * a * b *,假设输入图像为sRGB.
rgb = imread (“peppers.png”);cform = makecform (“srgb2lab”);实验室= applycform (rgb, cform);
从一个非标准的RGB颜色配置文件转换到设备独立XYZ配置文件连接空间。请注意,ICC输入配置文件必须包括MatTRC
价值。
InputProfile = iccread (“myRGB.icc”);C = makecform (“mattrc”, InputProfile。MatTRC,...“方向”,“前进”);
applycform
|iccread
|iccwrite
|isicc
|lab2rgb
|lab2xyz
|rgb2lab
|rgb2xyz
|whitepoint
|xyz2lab
|xyz2rgb