ycbcr2rgbwide
説明
例
YCbCr カラー値を広色域 RGB カラー値に変換
10 ビットおよび 12 ビットの YCbCr カラー値を BT.2020 または BT.2100 色空間の広色域 RGB カラー値に変換します。
12 ビットの YCbCr カラー値を広色域 RGB カラー値に変換
12 ビットの YCbCr カラー値をワークスペースに作成します。
ycbcrlist = uint16([3760 2048 2048]);
YCbCr カラー値を広色域 RGB カラー値に変換します。
rgblist = ycbcr2rgbwide(ycbcrlist, 12);
10 ビットの YCbCr イメージを広色域 RGB イメージに変換
合成 YCbCr イメージをワークスペースに作成します。
YCBCR = reshape(uint16([64 512 512; 940 512 512]),[2 1 3]);
YCbCr イメージを広色域 RGB イメージに変換します。
RGB = ycbcr2rgbwide(YCBCR,10);
入力引数
YCbCr
— YCbCr カラー値
p 行 3 列の数値行列 | m x n x 3 の数値配列
YCbCr カラー値。次のいずれかのオプションとして指定します。
カラー値から成る p 行 3 列の数値行列 (1 行につき 1 色)
イメージを表す m x n x 3 の数値配列
データ型: uint16
BPS
— 出力イメージの各チャネルのサンプルあたりのビット数
10
| 12
出力広色域 RGB イメージの各チャネルのサンプルあたりのビット数。10
または 12
として指定します。
出力引数
RGB
— 広域 RGB 値
数値配列
広色域 RGB 値。入力 YCbCr 値と同じサイズで数値配列として返されます。
次の表に、広色域のデータ範囲 (10 ビットおよび 12 ビットの整数カラー値) を示します。範囲の最小値は黒にマッピングされ、範囲の最大値は白にマッピングされます。関数 ycbcr2rgbwide
は、サポートされているデータ範囲内の RGB 値を持つピクセルのみを有効な YCbCr 値にマッピングします。
データ型 | データ範囲全体 | 広色域 RGB のデータ範囲 |
---|---|---|
10 ビット | [0, 1023] | [64, 940] |
12 ビット | [0, 4095] | [256, 3760] |
データ型: uint16
ヒント
次の表に、BT.2020 色空間および BT.2100 色空間の YCbCr 値のデータ範囲を示します。
コンポーネント 10 ビット 12 ビット Y [64, 940]
[256, 3760]
Cb、Cr [64, 960]
[256, 3840]
参照
[1] Rec. ITU-R BT.2020-2 (10/2015). "Parameter values for ultra-high definition television systems for production and international programme exchange." International Telecommunication Union; Broadcasting service (television). https://www.itu.int/rec/R-REC-BT.2020.
[2] Rec. ITU-R BT.2100-2 (07/2018). "Image parameter values for dynamic range television for use in production and international programme exchange." International Telecommunication Union; Broadcasting service (television). https://www.itu.int/rec/R-REC-BT.2100.
拡張機能
C/C++ コード生成
MATLAB® Coder™ を使用して C および C++ コードを生成します。
ycbcr2rgbwide
では C コードの生成がサポートされています (MATLAB® Coder™ が必要)。詳細については、イメージ処理のコード生成を参照してください。
GPU 配列
Parallel Computing Toolbox™ を使用してグラフィックス処理装置 (GPU) 上で実行することにより、コードを高速化します。
バージョン履歴
R2020b で導入
参考
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)