MATLAB rgbwide2ycbcr | MATLAB YCbCr
Convert10-bitor12-bitwide-gamutRGBcolorvaluesintheBT.2020orBT.2100colorspacetotheYCbCrcolorspace.Convert10-bitBT.2020orBT.2100Wide-GamutRGBWhiteColorValuetoYCbCrCreatea10-bitwide-gamutRGBvalueforthecolorwhite.rgblist=uint16([940940940]);Convertthewide-gamutwhitecolorvaluetoaYCbCrcolorvalue.ycbcrlist=rgbwide2ycbcr(rgblist,10)ycbcrlist=1x3uint16rowvector940512512Convert12-bitBT.2020orBT.2100Wide-GamutRGBImagetoYCbCrSimulateawide-gamutRGBimage.ReadanormalRGBimageintotheworkspace,converttheimage...
Convert 10-bit or 12-bit wide-gamut RGB color values in the BT.2020 or BT.2100 color space to the YCbCr color space.
Convert 10-bit BT.2020 or BT.2100 Wide-Gamut RGB White Color Value to YCbCr
Create a 10-bit wide-gamut RGB value for the color white.
rgblist = uint16([940 940 940]);Convert the wide-gamut white color value to a YCbCr color value.
ycbcrlist = rgbwide2ycbcr(rgblist,10) ycbcrlist = 1x3 uint16 row vector 940 512 512Convert 12-bit BT.2020 or BT.2100 Wide-Gamut RGB Image to YCbCr
Simulate a wide-gamut RGB image. Read a normal RGB image into the workspace, convert the image to the XYZ color space, then convert the resulting image to the wide-gamut RGB color space.
RGBWide = imread(peppers.png); XYZ = rgb2xyz(RGBWide); RGBWide = xyz2rgbwide(XYZ,12);Convert the wide-gamut RGB image to the YCbCr color space.
YCBCR = rgbw...