makecform
创建颜色转换结构
语法
描述
的makecform
属性定义的与设备无万博1manbetx关的颜色空间族成员之间的转换国际委员会Éclairage(国际照明委员会,简称CIE)。makecform
对象之间的万博1manbetx转换sRGB而且CMYK颜色空间。若要执行颜色空间转换,请传递由创建的颜色转换结构makecform
作为一个参数applycform
函数。
基于两个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
)
例子
转换sRGB图像为L*a*b*
转换RGB图像为L * a * b *,假设输入图像为sRGB.
RGB = imread(“peppers.png”);Cform = makecform(“srgb2lab”);Lab = applycform(rgb,cform);
将RGB转换为XYZ
从非标准的RGB颜色配置文件转换为设备无关XYZ配置文件连接空间。注意,ICC输入概要必须包含MatTRC
价值。
InputProfile = iccread(“myRGB.icc”);C = makecform(“mattrc”, InputProfile。MatTRC,...“方向”,“前进”);
输入参数
输出参数
更多关于
参考文献
[1]国际色彩联盟。https://www.color.org.