この規格 プレビューページの目次
※一部、英文及び仏文を自動翻訳した日本語訳を使用しています。
序章
このドキュメントでは、ISO/IEC 18477-3 準拠のファイルの拡張機能を指定します。これは、画像に関連付けられた連続またはバイナリの不透明情報の非可逆または可逆ストレージの機能を追加します。このような追加のチャネルは、一般にアルファ チャネルとして知られています。これらのチャネルは、画像コンテンツを同じ物理メディア上の他のコンテンツと合成するために使用されます。 0 のアルファ値は最大の透明度 (および不透明度なし) をエンコードし、最大のサンプル値は最大の不透明度 (および透明度なし) を表します。さらに、画像コンテンツ自体にアルファ値を事前に乗算するか、事前に乗算して背景色 M でシェーディングすることができます。このプロセスにより、元の画像 A は次のように定義される画像 A' に置き換えられます。
| A' = α*A | 前掛け用 |
| A' = α*A+(1−α)*M | 事前乗算とシェーディング用 |
また、JPEG XT コードストリームでは、A の代わりに A' がエンコードされます。次に、再構成は次のように実行されます。A が特定の空間位置にある ISO/IEC 18477-3 ファイルに含まれる画像のサンプル値を表す場合、B は画像がレンダリングされる背景のサンプル値であり、M はマット カラーと α はアルファ チャネルのデコードされた値であり、同じ位置にある A と B から構成されるイメージ C のサンプル値は次のように与えられます。
| C = α *A +(1−α)*B | 事前乗算されていないコンテンツの場合。 |
| C = A +(1−α)*B | あらかじめ乗算されたコンテンツ用。 |
| C = A +(1−α)*(BM) | 陰影除去を使用して事前に乗算されたコンテンツ用。 |
A' の乗算済みでシェーディングされたバージョンをカラー M でエンコードすると、アルファ チャネルのサポートがないレガシー デコーダーでも、カラー M の背景に合成された外観で画像をデコードおよび表示できます。同時に、新しい JPEG XT 準拠デコーダーは、A, B, および M から画像 C を計算することにより、任意の背景に画像を合成できます。
この文書は、損失の有無にかかわらず、各空間位置の α の値をバイナリ決定、つまり α = 0 または α = 1 として、8 ~ 16 ビットの解像度を持つ整数の連続スケールでエンコードする機能を提供します。または、16 ビット精度の 0 ~ 1 の浮動小数点数として。 ISO/IEC 18477 標準ファミリの他の部分のコーディング テクノロジを使用してエンコードを行います。不透明度情報の再構築には、他の部分で既に定義されている以外の新しいテクノロジは必要ありません。
このドキュメントは、ISO/IEC 18477 ファミリーの他の部分と自由に組み合わせることができます。つまり、上記の式のサンプル値 A は、8 ビットの符号なし整数、つまり ISO/IEC 18477-1 で表される最大 16 のいずれかです。 -ISO/IEC 18477-6 のエンコードを使用したビット整数、または ISO/IEC 18477-7 でエンコードされた浮動小数点値。画像コンテンツ A は、ISO/IEC 18477-8 を使用して損失なくエンコードすることもできます。ただし、入力画像 A と B から最終的な出力画像 C を作成するための合成手順自体は標準化されていません。
このドキュメントで定義されているコード ストリームの構文は、Rec. ITU-T T.81 と完全に下位互換性があります。 ISO/IEC 10918-1 および ISO/IEC 18477 ファミリーの規格。ここで定義された拡張子を認識しないデコーダは、画像の完全に不透明なバージョンを再構築し、アルファ チャネルのコンテンツを破棄します。
Introduction
This document specifies an extension for ISO/IEC 18477-3 compliant files that adds capabilities for lossy or lossless storage of continuous or binary opacity information associated to the image; such additional channels are commonly known as alpha channels. These channels are used for compositing the image content with other content on the same physical media. An alpha value of 0 encodes maximal transparency (and no opacity), while the maximal sample value represents maximal opacity (and no transparency). Additionally, the image content itself may be premultiplied with the alpha value or premultiplied and shaded with a background colour M, a process by which the original image A is replaced by the image A’ defined as
| A’ = α*A | for pre-multiplication |
| A’ = α*A+(1−α)*M | for pre-multiplication and shading |
And A’ is encoded instead of A in the JPEG XT codestream. Reconstruction is then performed as follows: If A denotes the sample value of the image contained in the ISO/IEC 18477-3 file at a specific spatial location, B is the sample value of the background on which the image should be rendered, M is the matte colour and α is the decoded value of the alpha channel, then the sample value of the image C composed from A and B on the same position is given by:
| C = α *A +(1−α)*B | for non-premultiplied content; |
| C = A +(1−α)*B | for premultiplied content; |
| C = A +(1−α)*(B-M) | for premultiplied content with shade removal. |
Encoding a premultiplied and shaded version of A’ with colour M enables legacy decoders that lack alpha channel support to still decode and display the image with the appearance that it is composited on a background with colour M. At the same time, new JPEG XT compliant decoders can composite the image on any background by calculating image C from A, B and M.
This document provides facilities to encode the value of α for each spatial location, with or without loss, either as a binary decision, i.e. α = 0 or α = 1, on a continuous scale of integers with a resolution between 8 and 16 bits, or as floating point number between 0 and 1 with 16-bit precision. It uses coding technology from other parts of the ISO/IEC 18477 family of standards for its encoding, and no new technology besides that already defined in other parts is required for the reconstruction of the opacity information.
This document can be freely combined with other parts of the ISO/IEC 18477 family, i.e. the sample values A in the above formulae might be either 8-bit unsigned integers, i.e. represented by ISO/IEC 18477-1, up to 16-bit integers using the encoding of ISO/IEC 18477-6 or floating point values encoded by ISO/IEC 18477-7. The image content A may also be encoded without loss, using ISO/IEC 18477-8. However, the compositing step itself to create the final output image C from the input images A and B is not standardized.
The syntax of the codestream defined in this document is fully backward compatible to Rec. ITU-T T.81 | ISO/IEC 10918-1 and the ISO/IEC 18477 family of standards. Decoders unaware of the extensions defined here will reconstruct a fully opaque version of the image and discard the alpha channel content.