Main Content

XYZ2RGBWIDE

转换CIE 1931 xyz颜色值为宽gamut rgb颜色值

    Description

    例子

    RGB= xyz2rgbwide(XYZ,,,,BPSconverts the specified CIE 1931 XYZ color values to wide-gamut RGB values in the BT.2020 or BT.2100 color space.BPSspecifies the number of bits required to represent each channel of the output RGB values.

    RGB= xyz2rgbwide(XYZ,,,,BPS,,,,名称,价值specifies options using one or more name-value pair arguments.

    Examples

    全部折叠

    将XYZ颜色值转换为BT.2020/BT.2100颜色空间中的10位或12位宽Gamut RGB值。

    Convert XYZ Color into 10-bit BT.2020 RGB Value

    Create an XYZ value.

    Xyzvalue = [0.25 0.40 0.10];

    将XYZ值转换为10位BT.2020 RGB值。

    rgbvalue = xyz2rgbwide(xyzvalue,10)
    rgbvalue =1x3 UINT16行矢量504 670 289

    Convert XYZ Color into 12-bit BT.2100 RGB Value

    Create an XYZ value.

    Xyzvalue = [0.25 0.40 0.10];

    将XYZ值转换为12位BT.2100 RGB值。

    rgbvalue = xyz2rgbwide(xyzvalue,12,'色彩空间',,,,'BT.2100'
    rgbvalue =1x3 UINT16行矢量2015 2681 1155

    Convert XYZ Color into 10-bit BT.2100 RGB Value Using HLG

    Create an XYZ value.

    Xyzvalue = [0.25 0.40 0.10];

    使用混合日志伽马(HLG)传输函数将XYZ值转换为10位BT.2100 RGB值。

    rgbvalue = xyz2rgbwide(xyzvalue,12,'色彩空间',,,,'BT.2100',,,,'LinearizationFCN',,,,'HLG'
    rgbvalue =1x3 UINT16行矢量2875 3285 1989

    输入参数

    全部折叠

    CIE 1931 XYZ颜色空间中的颜色值,指定为以下一个:

    • p-by-3颜色值的数字矩阵(每行一种颜色)

    • m-by-n-by-3 numeric array representing an image

    • m-by-n-by-3-by-F数字阵列representing a stack of images

    数据类型:单身的|双倍的

    Bits per sample for each channel of the output wide-gamut RGB image, specified as10or12

    名称值参数

    Specify optional pairs of arguments asname1 = value1,...,namen = valuen, 在哪里姓名是参数名称和Valueis the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    在R2021a之前,请使用逗号分隔每个名称和值,并附上姓名用引号。

    Example:RGB = XYZ2RGBWIDE([0.25 0.40 0.10],12,'Colorspace','bt.2100')

    输出RGB值的颜色空间,指定为逗号分隔对'ColorSpace'和价值'BT.2020'or'BT.2100'

    数据类型:char|细绳

    参考白点,指定为逗号分隔对“怀特点”以及表中列出的1 x-3向量或CIE标准照明剂之一。

    Value 白点
    '一种'

    CIE标准照明a,[1.0985,1.0000,0.3558]。Simulates typical, domestic, tungsten-filament lighting with correlated color temperature of 2856 K.

    'C' CIE标准照明c,[0.9807, 1.0000, 1.1822]。Simulates average or north sky daylight with correlated color temperature of 6774 K. Deprecated by CIE.
    'e' Equal-energy radiator,[1.000, 1.000, 1.000]。作为理论参考。
    'D50' CIE标准照明D50,[0.9642,1.0000,0.8251]。Simulates warm daylight at sunrise or sunset with correlated color temperature of 5003 K. Also known as地平线光

    'd55'

    CIE标准照明D55,[0.9568,1.0000,0.9214]。使用相关的色温为5500 k,模拟中午或下午的日光。

    'd65' CIE standard illuminant D65,[0.9504, 1.0000, 1.0888]。与6504 K相关的色温相关的色温,模拟中午日光。
    “国际” ICC配置文件中使用的配置文件连接空间(PC)。近似[0.9642,1.000,0.8249]使用定点,签名的32位数字,其中有16个分数位。实际价值:[31595,32768,27030]/32768

    数据类型:单身的|双倍的|int8|int16|int32|INT64|UINT8|uint16|UINT32|Uint64|char|细绳

    Transfer function for transformation, specified as the text string'LinearizationFCN'and either of the following values:

    Value Description
    'PQ' 感知量化
    'HLG' 混合日志伽玛

    数据类型:char|细绳

    输出参数

    全部折叠

    输出RGB颜色值,返回为数字阵列,其大小与XYZ输入值。该表显示了10和12位数据的宽蓝色颜色值的数据范围。每个范围内的最小值为黑色,每个范围图中的最大值为白色。

    Data Type 完整的数据范围 宽木马RGB的数据范围
    10位 [0,1023] [64,940]
    12位 [0, 4095] [256, 3760]

    数据类型:uint16

    References

    [1]rec。ITU-R BT.2020-2(10/2015)。“生产和国际计划交换的超高定义电视系统的参数值。”International Telecommunication Union; Broadcasting service (television)https://www.itu.int/rec/R-REC-BT.2020

    [2]rec。ITU-R BT.2100-2(07/2018)。“用于生产和国际计划交换的动态范围电视的图像参数值。”International Telecommunication Union; Broadcasting service (television)https://www.itu.int/rec/r-rec-bt.2100

    [3]rec。ITU-R BT.2390-7(07/2019)。“生产和国际计划交流的高动态电视。”International Telecommunication Union; Broadcasting service (television)https://www.itu.int/pub/r-rep-bt.2390

    版本历史记录

    在R2020b中引入

    也可以看看

    ||