JP2017060093A - Color gamut converter, color gamut conversion method and color gamut conversion program - Google Patents

Color gamut converter, color gamut conversion method and color gamut conversion program Download PDF

Info

Publication number
JP2017060093A
JP2017060093A JP2015185200A JP2015185200A JP2017060093A JP 2017060093 A JP2017060093 A JP 2017060093A JP 2015185200 A JP2015185200 A JP 2015185200A JP 2015185200 A JP2015185200 A JP 2015185200A JP 2017060093 A JP2017060093 A JP 2017060093A
Authority
JP
Japan
Prior art keywords
color gamut
saturation
chromaticity
pixel
hue
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2015185200A
Other languages
Japanese (ja)
Other versions
JP6604109B2 (en
Inventor
山田 邦男
Kunio Yamada
邦男 山田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JVCKenwood Corp
Original Assignee
JVCKenwood Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by JVCKenwood Corp filed Critical JVCKenwood Corp
Priority to JP2015185200A priority Critical patent/JP6604109B2/en
Publication of JP2017060093A publication Critical patent/JP2017060093A/en
Application granted granted Critical
Publication of JP6604109B2 publication Critical patent/JP6604109B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a color gamut converter, a color gamut conversion method and a color gamut conversion program that are capable of solving a problem that it has been difficult to accurately display color information in a display system having a different color gamut.SOLUTION: A color space converter 12 calculates luminosity and chromaticity on a pixel basis for a wide color gamut image. A hue/saturation calculator 14 calculates saturation and hue from the chromaticity on a pixel basis for the wide color gamut image. A narrow color gamut color system luminosity, saturation and hue calculator 10 calculates luminosity, saturation and hue of a point on the outer periphery of a narrow color gamut to generate the saturation of the narrow color gamut as a function of luminosity and hue. A saturation comparator 16 refers to the function to acquire the saturation in the narrow color gamut corresponding to the luminosity and hue of pixels of the wide color gamut image, and determines a saturation ratio by dividing the saturation of the pixel of the wide color gamut image by the corresponding saturation in the narrow color gamut. A saturation enlargement magnification determining unit 18 determines a saturation enlargement magnification on the basis of the saturation ratio. A chromaticity divider 20 divides the chromaticity of the pixel of the wide color gamut image by the saturation enlargement magnification. A color space inverse transformer 22 generates an output image of the narrow color gamut from the chromaticity divided by the luminosity and saturation enlargement magnification of the input image of the wide color gamut.SELECTED DRAWING: Figure 5

Description

本発明は、映像の色空間の色域を変換する色域変換技術に関する。   The present invention relates to a color gamut conversion technique for converting a color gamut of a color space of an image.

従来の一般的な映像システムは、国際標準規格であるBT.709(sRGB(standard RGB))規格の色の表示を行う前提で設計されている。これに対し、昨今の機器の性能の向上のため、色の表現範囲(以下「色域」と呼ぶ)が拡大する傾向にある。例えば、発光色の色純度の高いLEDをバックライトとして用いた液晶パネルを用いた液晶表示装置やレーザー光源を用いたプロジェクタなどは従来と比較して、かなり広い色域を有している。   A conventional general video system is an international standard BT. 709 (sRGB (standard RGB)) standard color display. On the other hand, the color expression range (hereinafter referred to as “color gamut”) tends to expand in order to improve the performance of recent devices. For example, a liquid crystal display device using a liquid crystal panel using LEDs with high emission color purity as a backlight, a projector using a laser light source, and the like have a considerably wide color gamut.

一方、この状況を受けて、規格面から広色域に対応したAdobeRGB(商標)のような色空間も提唱され使用されている。さらにスーパーハイビジョンの規格であるBT.2020ではさらに大きな色域を有する表色系が設定されている。   On the other hand, in response to this situation, a color space such as AdobeRGB (trademark) corresponding to a wide color gamut is proposed and used. In addition, BT. In 2020, a color system having a larger color gamut is set.

色域が異なるシステム間のカラーデータの変換方法として、特許文献1及び特許文献2には広い色域で取得されている信号を狭い色域で表示する方法が記載されている。また、色域を広げる方法として、本発明者による特許文献3に記載された方法がある。   As a method for converting color data between systems having different color gamuts, Patent Literature 1 and Patent Literature 2 describe a method of displaying a signal acquired in a wide color gamut in a narrow color gamut. Further, as a method for expanding the color gamut, there is a method described in Patent Document 3 by the present inventor.

特開2000−165692号公報JP 2000-165692 A 特開2002−359748号公報JP 2002-359748 A 特開2014-93617号公報JP 2014-93617 A

広色域で制作された画像を狭色域の表示系でそのまま表示すると、表色系の基準となる原色の彩度が狭色域のそれらより高いため、表示される画像は相対的に彩度の低いくすんだ色合いの見え方になってしまう。一方、特許文献1及び特許文献2に記載された方法のように広色域で制作された画像を狭色域の表示系に適合させる方法では、色情報の多くを棄却してしまうことになる。特許文献3に記載の方法は、狭色域から広色域への変換を行うものであるが、もともとの映像が広色域の情報を有するものではないため、全体の彩度を向上させることは可能であるが、現実のシーンの色情報を正しく再現することはできない。   If an image produced with a wide color gamut is displayed as it is on a display system with a narrow color gamut, the saturation of the primary colors used as the standard for the color system is higher than those with a narrow color gamut, so the displayed image is relatively chroma. It looks like a dull hue with a low degree. On the other hand, in a method for adapting an image produced in a wide color gamut to a display system in a narrow color gamut, as in the methods described in Patent Document 1 and Patent Document 2, much of the color information is rejected. . Although the method described in Patent Document 3 performs conversion from a narrow color gamut to a wide color gamut, since the original video does not have information on the wide color gamut, the overall saturation is improved. Although it is possible, the color information of the actual scene cannot be reproduced correctly.

本発明はこうした状況に鑑みてなされたものであり、その目的は、色空間の色域の異なる表示系でも映像の色情報を正確に表示可能な互換性を確保した色域変換技術を提供することにある。   The present invention has been made in view of such circumstances, and an object of the present invention is to provide a color gamut conversion technology that ensures compatibility so that color information of video can be accurately displayed even in display systems having different color gamuts. There is.

上記課題を解決するために、本発明のある態様の色域変換装置は、第一の色域の表示系用の入力映像を第二の色域の表示系用の出力映像に変換する色域変換装置であって、第一の色域の入力映像について画素単位に明度及び色度を算出する色空間変換部と、前記第一の色域の入力映像について画素単位に前記色度から彩度と色相を計算する入力映像色相・彩度計算部と、第二の色域の外周上の点の明度と彩度と色相を計算して、前記第二の色域の彩度を明度及び色相に対する関数として生成する第二の色域表色系明度・彩度・色相計算部と、前記関数を参照して、前記第一の色域の入力映像の画素の明度及び色相に対応する前記第二の色域における彩度を取得し、前記第一の色域の入力映像の画素の彩度を前記第二の色域における対応する彩度で除算した彩度比を求める彩度比較部と、前記彩度比にもとづいて彩度拡大倍率を決定する彩度拡大倍率決定部と、前記第一の色域の入力映像の画素の前記色度を前記彩度拡大倍率で除算する色度除算部と、前記第一の色域の入力映像の前記明度及び前記彩度拡大倍率で除算された前記色度から構成される第二の色域の出力映像を前記彩度拡大倍率とともに出力する出力部とを含む。   In order to solve the above-described problem, a color gamut conversion device according to an aspect of the present invention includes a color gamut that converts an input video for a display system of a first color gamut into an output video for a display system of a second color gamut. A color space conversion unit that calculates brightness and chromaticity in pixel units for an input video image in a first color gamut; and a saturation from the chromaticity in pixel units for the input video image in the first color gamut. And the input video hue / saturation calculation unit for calculating the hue, the brightness, saturation, and hue of the point on the outer periphery of the second gamut, and the saturation of the second gamut to the brightness and hue. A second color gamut color system lightness / saturation / hue calculation unit that is generated as a function for the first color gamut and the second corresponding to the lightness and hue of an input video pixel in the first color gamut Obtaining the saturation in the second color gamut, and calculating the saturation of the input image pixel in the first color gamut in the second color gamut. A saturation comparison unit for obtaining a saturation ratio divided by the above, a saturation enlargement magnification determination unit for determining a saturation enlargement magnification based on the saturation ratio, and the color of the pixel of the input image in the first color gamut A chromaticity division unit that divides the degree by the saturation magnification, and a second gamut composed of the chromaticity divided by the brightness and the saturation magnification of the input video of the first gamut And an output unit for outputting the output video together with the saturation enlargement magnification.

本発明の別の態様もまた、色域変換装置である。この装置は、第二の色域の表示系用の入力映像を第一の色域の表示系用の出力映像に変換する色域変換装置であって、第二の色域の入力映像について画素単位に明度及び色度を算出する色空間変換部と、第二の色域の入力映像の画素毎の彩度拡大倍率を取得し、第二の色域の入力映像の画素の前記色度に前記彩度拡大倍率を乗算する色度乗算部と、第二の色域の入力映像の前記明度及び前記彩度拡大倍率を乗算された前記色度から構成される第一の色域の出力映像を出力する出力部とを含む。   Another embodiment of the present invention is also a color gamut conversion device. This device is a color gamut conversion device that converts an input video for a display system of the second color gamut into an output video for a display system of the first color gamut, and the pixel for the input video of the second color gamut A color space conversion unit that calculates brightness and chromaticity in units, and obtains a saturation enlargement magnification for each pixel of the input video in the second color gamut, and obtains the chromaticity of the pixel of the input video in the second color gamut. A chromaticity multiplication unit that multiplies the saturation expansion magnification, and an output image of the first color gamut composed of the chromaticity multiplied by the lightness and the saturation expansion magnification of the input image of the second color gamut. And an output unit for outputting.

本発明のさらに別の態様は、色域変換方法である。この方法は、第一の色域の表示系用の入力映像を第二の色域の表示系用の出力映像に変換する色域変換方法であって、第一の色域の入力映像について画素単位に明度及び色度を算出するステップと、前記第一の色域の入力映像について画素単位に前記色度から彩度と色相を計算するステップと、第二の色域の外周上の点の明度と彩度と色相を計算して、前記第二の色域の彩度を明度及び色相に対する関数として生成するステップと、前記関数を参照して、前記第一の色域の入力映像の画素の明度及び色相に対応する前記第二の色域における彩度を取得し、前記第一の色域の入力映像の画素の彩度を前記第二の色域における対応する彩度で除算した彩度比を求めるステップと、前記彩度比にもとづいて彩度拡大倍率を決定するステップと、前記第一の色域の入力映像の画素の前記色度を前記彩度拡大倍率で除算するステップと、前記第一の色域の入力映像の前記明度及び前記彩度拡大倍率で除算された前記色度から構成される第二の色域の出力映像を前記彩度拡大倍率とともに出力するステップとを含む。   Yet another embodiment of the present invention is a color gamut conversion method. This method is a color gamut conversion method for converting an input video for a display system of a first color gamut into an output video for a display system of a second color gamut, and the pixel for the input video of the first color gamut Calculating brightness and chromaticity in units; calculating saturation and hue from the chromaticity in pixel units for an input image in the first gamut; and calculating points on the outer periphery of the second gamut. Calculating brightness, saturation, and hue, and generating saturation of the second color gamut as a function with respect to brightness and hue; and referring to the function, an input video pixel of the first color gamut A saturation obtained by obtaining the saturation in the second color gamut corresponding to the lightness and hue of the image and dividing the saturation of the input video pixel of the first color gamut by the corresponding saturation in the second color gamut. Determining a saturation ratio; determining a saturation magnification based on the saturation ratio; and Dividing the chromaticity of the pixels of the input video in one color gamut by the saturation magnification, and the chromaticity divided by the lightness and the saturation magnification of the input video in the first color gamut. And outputting an output image of the second color gamut constituted by the saturation enlargement magnification.

本発明のさらに別の態様は、色域変換方法である。この方法は、第二の色域の表示系用の入力映像を第一の色域の表示系用の出力映像に変換する色域変換方法であって、第二の色域の入力映像について画素単位に明度及び色度を算出するステップと、第二の色域の入力映像の画素毎の彩度拡大倍率を取得し、第二の色域の入力映像の画素の前記色度に前記彩度拡大倍率を乗算するステップと、第二の色域の入力映像の前記明度及び前記彩度拡大倍率を乗算された前記色度から構成される第一の色域の出力映像を出力するステップとを含む。   Yet another embodiment of the present invention is a color gamut conversion method. This method is a color gamut conversion method for converting an input video for a display system of the second color gamut into an output video for a display system of the first color gamut, and the pixel is input to the input video of the second color gamut. Calculating brightness and chromaticity in units, obtaining a saturation expansion factor for each pixel of the input video in the second color gamut, and calculating the saturation to the chromaticity of the pixels of the input video in the second color gamut Multiplying an enlargement magnification; and outputting an output image of a first color gamut composed of the chromaticity multiplied by the lightness and the saturation enlargement magnification of an input image of a second color gamut. Including.

なお、以上の構成要素の任意の組合せ、本発明の表現を方法、装置、システム、記録媒体、コンピュータプログラムなどの間で変換したものもまた、本発明の態様として有効である。   It should be noted that any combination of the above-described constituent elements and a conversion of the expression of the present invention between a method, an apparatus, a system, a recording medium, a computer program, etc. are also effective as an aspect of the present invention.

本発明によれば、色空間の色域の異なる表示系でも映像の色情報を正確に表示することができる。   According to the present invention, it is possible to accurately display color information of a video even in a display system having a different color gamut.

本実施の形態に係る映像符号化装置の構成図である。It is a block diagram of the video coding apparatus which concerns on this Embodiment. 本実施の形態に係る映像復号化装置の構成図である。It is a block diagram of the video decoding apparatus which concerns on this Embodiment. 図1の映像符号化装置による動画符号化処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the moving image encoding process by the video encoding apparatus of FIG. 図2の映像復号化装置による動画復号化処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the moving image decoding process by the video decoding apparatus of FIG. 図1の狭色域信号・彩度拡大倍率分離処理部の構成図である。FIG. 2 is a configuration diagram of a narrow color gamut signal / saturation expansion magnification separation processing unit in FIG. 1. 図2の広色域回復処理部の構成図である。FIG. 3 is a configuration diagram of a wide color gamut recovery processing unit in FIG. 2. 図5の狭色域信号・彩度拡大倍率分離処理部による分離処理の手順を示すフローチャートである。6 is a flowchart showing a procedure of separation processing performed by a narrow color gamut signal / saturation expansion magnification separation processing unit of FIG. 図6の広色域回復処理部による回復処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the recovery process by the wide color gamut recovery process part of FIG.

図1は、本実施の形態に係る映像符号化装置100の構成図である。図3は、図1の映像符号化装置100による動画符号化処理の手順を示すフローチャートである。以下、これらの図を参照しながら、映像符号化装置100の構成と動作を説明する。   FIG. 1 is a configuration diagram of a video encoding apparatus 100 according to the present embodiment. FIG. 3 is a flowchart showing the procedure of the moving image encoding process by the video encoding device 100 of FIG. Hereinafter, the configuration and operation of the video encoding device 100 will be described with reference to these drawings.

狭色域信号・彩度拡大倍率分離処理部110は、広色域RGB映像信号を受け取り、入力された広色域RGB画像を狭色域RGB画像と彩度拡大倍率αとに分離した形式に変換する処理を行う(S10)。この変換処理の詳細については後述する。   The narrow color gamut signal / saturation enlargement magnification separation processing unit 110 receives a wide color gamut RGB video signal and separates the input wide color gamut RGB image into a narrow color gamut RGB image and a saturation enlargement magnification α. Conversion processing is performed (S10). Details of this conversion processing will be described later.

狭色域信号・彩度拡大倍率分離処理部110は、変換後の狭色域RGB信号をMPEGなどの動画符号化方式で符号化するためにRGB−YPbPr変換部120に供給し、彩度拡大倍率αを彩度拡大倍率符号化部140に供給する。   The narrow color gamut signal / saturation expansion magnification separation processing unit 110 supplies the converted narrow color gamut RGB signal to the RGB-YPbPr conversion unit 120 in order to encode the moving image encoding method such as MPEG. The magnification α is supplied to the saturation enlargement magnification encoding unit 140.

RGB−YPbPr変換部120は、入力された画像のRGBをY色差に変換する(S12)。この変換は一般的な色空間変換マトリクスによるものであり、色差信号の間引きなども含まれる。RGB−YPbPr変換部120は変換後のYPbPr信号を映像信号符号化部130に供給する。   The RGB-YPbPr conversion unit 120 converts RGB of the input image into Y color difference (S12). This conversion is based on a general color space conversion matrix and includes thinning out of color difference signals. The RGB-YPbPr conversion unit 120 supplies the converted YPbPr signal to the video signal encoding unit 130.

映像信号符号化部130はYPbPr信号を動画符号化し、符号化された画像データをビットストリーム統合部150に与える(S14)。MPEG方式であれば離散コサイン変換(DCT)および動き予測・動き補償の技術が利用される。   The video signal encoding unit 130 encodes the YPbPr signal as a moving image, and provides the encoded image data to the bitstream integration unit 150 (S14). In the MPEG system, discrete cosine transform (DCT) and motion prediction / compensation techniques are used.

彩度拡大倍率符号化部140は、彩度拡大倍率αを動画符号化し、符号化されたアルファデータをビットストリーム統合部150に与える(S16)。ここではMPEG4で議論された多値形状符号化(gray scale shape coding)で用いられるアルファチャネルを有する符号化を想定し、彩度拡大倍率αをアルファチャネルに格納して、動画符号化する。   The saturation enlargement magnification encoding unit 140 performs moving image encoding on the saturation enlargement magnification α, and supplies the encoded alpha data to the bitstream integration unit 150 (S16). Here, encoding with an alpha channel used in the multi-level shape coding (gray scale shape coding) discussed in MPEG4 is assumed, and the saturation enlargement factor α is stored in the alpha channel to encode a moving image.

ビットストリーム統合部150は、符号化された狭色域画像データと符号化された彩度拡大倍率とを統合し、ビットストリームとして出力する(S18)。これは前述のようにアルファチャネルを有する符号化方式の場合はその方式を用いてビットストリームに統合される。   The bit stream integration unit 150 integrates the encoded narrow color gamut image data and the encoded saturation enlargement ratio, and outputs the result as a bit stream (S18). In the case of an encoding method having an alpha channel as described above, this is integrated into a bit stream using the method.

図2は、本実施の形態に係る映像復号化装置200の構成図である。図4は、図2の映像復号化装置200による動画復号化処理の手順を示すフローチャートである。以下、図2の機能構成図と図4のフローチャートを参照しながら、映像復号化装置200の構成と動作を説明する。   FIG. 2 is a configuration diagram of the video decoding apparatus 200 according to the present embodiment. FIG. 4 is a flowchart showing the procedure of the moving picture decoding process performed by the video decoding apparatus 200 shown in FIG. Hereinafter, the configuration and operation of the video decoding apparatus 200 will be described with reference to the functional configuration diagram of FIG. 2 and the flowchart of FIG. 4.

ビットストリーム分離部210は、映像符号化装置100により符号化されたビットストリームを受け取り、入力されたビットストリームを狭色域RGB信号のデータと、彩度拡大倍率αのデータとに分離する(S20)。ビットストリーム分離部210は、狭色域RGB信号のデータを映像信号復号化部220に供給し、彩度拡大倍率αのデータを彩度拡大倍率復号化部230に供給する。   The bit stream separation unit 210 receives the bit stream encoded by the video encoding device 100, and separates the input bit stream into narrow color gamut RGB signal data and saturation enlargement factor α data (S20). ). The bit stream separation unit 210 supplies the data of the narrow color gamut RGB signal to the video signal decoding unit 220 and supplies the data of the saturation enlargement factor α to the saturation enlargement factor decoding unit 230.

映像信号復号化部220は、狭色域RGB信号のデータを復号化し、復号化された狭色域RGB信号のデータをYPbPr−RGB変換部240と高域成分評価部250に供給する(S22)。彩度拡大倍率復号化部230は、彩度拡大倍率αのデータを復号化し、復号化された彩度拡大倍率αのデータを高域成分評価部250に供給する(S26)。   The video signal decoding unit 220 decodes the data of the narrow color gamut RGB signal, and supplies the decoded data of the narrow color gamut RGB signal to the YPbPr-RGB conversion unit 240 and the high frequency component evaluation unit 250 (S22). . The saturation expansion factor decoding unit 230 decodes the data of the saturation expansion factor α, and supplies the decoded data of the saturation expansion factor α to the high frequency component evaluation unit 250 (S26).

YPbPr−RGB変換部240は、復号化された狭色域RGB信号のデータ(YPbPr信号)をYPbPrからRGBに変換し、狭色域RGB信号を復元する(S24)。この変換は一般的な色空間変換マトリクスによるものであり、色差信号の補間なども含まれる。YPbPr−RGB変換部240は、復元された狭色域RGB信号をそのまま出力する一方、復元された狭色域RGB信号を広色域回復処理部260に供給する。   The YPbPr-RGB conversion unit 240 converts the data of the decoded narrow color gamut RGB signal (YPbPr signal) from YPbPr to RGB, and restores the narrow color gamut RGB signal (S24). This conversion is based on a general color space conversion matrix, and includes interpolation of color difference signals. The YPbPr-RGB converter 240 outputs the restored narrow color gamut RGB signal as it is, and supplies the restored narrow color gamut RGB signal to the wide color gamut recovery processing unit 260.

高域成分評価部250は、復号化された狭色域RGB信号についてのデータ(YPbPr信号)と復号化された彩度拡大倍率αのデータを受け取り、狭色域RGB信号についてのデータ(YPbPr信号)の輝度Yについて高域成分の有無を判定する(S28)。この判定は対象画素の輝度Yと隣接8画素の輝度の差の絶対値の総和を閾値と比較することにより行う。たとえば、8ビットで色を表現する場合、上記の差の絶対値の総和が30程度以上の場合、高域成分ありと判定する。輝度Yに高域成分ありの場合(S28のY)、色域拡大処理が行なわれないように彩度拡大倍率α=1と設定する(S30)。輝度Yに高域成分なしの場合(S28のN)、色域拡大処理が行なうために復号化された彩度拡大倍率αのデータを使用する(S32)。この場合、アルファチャネルの画素値を、後述のように、A=α*140−100とした場合はα=(A+100)/140とする。   The high frequency component evaluation unit 250 receives the data (YPbPr signal) regarding the decoded narrow color gamut RGB signal and the data of the decoded saturation enlargement factor α, and the data (YPbPr signal) regarding the narrow color gamut RGB signal. The presence or absence of a high-frequency component is determined for the luminance Y of () (S28). This determination is performed by comparing the sum of absolute values of the difference between the luminance Y of the target pixel and the luminance of the adjacent eight pixels with a threshold value. For example, when expressing a color with 8 bits, if the sum of the absolute values of the differences is about 30 or more, it is determined that there is a high frequency component. If the luminance Y has a high frequency component (Y in S28), the saturation magnification α = 1 is set so that the color gamut expansion processing is not performed (S30). When there is no high frequency component in the luminance Y (N in S28), the data of the saturation enlargement factor α decoded for performing the color gamut expansion processing is used (S32). In this case, the alpha channel pixel value is set to α = (A + 100) / 140 when A = α * 140−100, as will be described later.

広色域回復処理部260は、YPbPr−RGB変換部240から復元された狭色域RGB信号を受け取り、高域成分評価部250から高域成分の有無に応じて設定された彩度拡大倍率αを受け取り、彩度拡大倍率αに基づいて狭色域RGB信号を広色域に変換して広色域RGB信号を復元する処理を行う(S34)。この広色域回復処理の詳細については後述する。   The wide color gamut recovery processing unit 260 receives the narrow color gamut RGB signal restored from the YPbPr-RGB conversion unit 240, and the saturation expansion magnification α set according to the presence or absence of the high frequency component from the high frequency component evaluation unit 250. And a process of restoring the wide color gamut RGB signal by converting the narrow color gamut RGB signal into a wide color gamut based on the saturation magnification α (S34). Details of the wide color gamut recovery processing will be described later.

ここで画像に高域成分ありの場合に色域拡大処理は行なわない理由を説明する。アルファチャネルに格納されたデータは、一般的な映像信号と比較して、特に輪郭部などにおいて、周辺画素やフレーム間の相関性が低い場合が多く、一般的な映像信号と同程度のレートで符号化を行った場合、ブロックノイズ、モスキートノイズ、エイリアシングなどが発生する確率が高い。このように高域成分のために品質が劣化した信号に対して色域拡大処理を行うとエラーが目立つ可能性が高いため、高域成分が含まれる画素に対しては色域拡大処理を抑制するようにした。   Here, the reason why the color gamut expansion processing is not performed when the image has a high frequency component will be described. The data stored in the alpha channel is often less correlated with surrounding pixels and frames, especially at contours, compared to general video signals, and at the same rate as general video signals. When encoding is performed, there is a high probability that block noise, mosquito noise, aliasing, and the like will occur. In this way, if color gamut expansion processing is performed on a signal whose quality has deteriorated due to high-frequency components, there is a high possibility that errors will be noticeable. I tried to do it.

図5は、図1の狭色域信号・彩度拡大倍率分離処理部110の構成図である。図7は、図5の狭色域信号・彩度拡大倍率分離処理部110による分離処理の手順を示すフローチャートである。以下、これらの図を参照しながら、狭色域信号・彩度拡大倍率分離処理部110の構成と動作を説明する。   FIG. 5 is a configuration diagram of the narrow color gamut signal / saturation expansion magnification separation processing unit 110 of FIG. FIG. 7 is a flowchart showing the procedure of the separation process performed by the narrow color gamut signal / saturation expansion magnification separation processing unit 110 shown in FIG. The configuration and operation of the narrow color gamut signal / saturation expansion magnification separation processing unit 110 will be described below with reference to these drawings.

狭色域表色系明度・彩度・色相計算部10は、予め0〜100に明度L*について、狭色域の外周の明度・彩度・色相を計算して、狭色域の外周の彩度を、明度及び色相に対する関数として生成する処理を行う(S40)。この関数は狭色域の外周の彩度を明度及び色相に対応づけたルックアップテーブル(LUT)として構成することができる。具体的には以下のように計算する。   The narrow color gamut color system lightness / saturation / hue calculation unit 10 calculates the lightness / saturation / hue of the outer periphery of the narrow color gamut for the lightness L * from 0 to 100 in advance, A process of generating saturation as a function of lightness and hue is performed (S40). This function can be configured as a look-up table (LUT) in which the saturation at the outer periphery of the narrow color gamut is associated with the lightness and hue. Specifically, it is calculated as follows.

狭色域側すなわちここではBT.709のCIE xy色度図上のR点(0.640,0.330)、G点(0.300,0.600)、B点(0.150,0.060)の色域の3角形の各辺につき、まず直線の方程式を求め、さらに例えば1000分割程度の分割を行い、各点のxy座標について色度a*、b*を導出し、色相hを求める。Yについては後述の式(14),(17)で導出して、他は下記式(1),(2),(3),(5)〜(8)により計算する。
z=1−x−y …(1)
X=x*y/Y …(2)
Z=z*y/Y…(3)
L*=116f(Y/Yn)−16 …(4)
a*=500[f(X/Xn)−f(Y/Yn)] …(5)
b*=200[f(Y/Yn)−f(Z/Zn)] …(6)
f(t)=t^(1/3) (t>(6/29)^3=0.008856の場合) …(7)
f(t)=[(29/3)^3t+16]/116 (その他の場合) …(8)
但しD65光源下ではXn=95.045,Yn=100,Zn=108.892
Narrow color gamut side, that is, BT. 709 CIE xy chromaticity diagram R point (0.640, 0.330), G point (0.300, 0.600), B point (0.150, 0.060) color gamut triangle First, an equation of a straight line is obtained for each side, and further, for example, about 1000 divisions are performed, and chromaticity a * and b * are derived for the xy coordinates of each point to obtain a hue h. Y is derived by the following equations (14) and (17), and the others are calculated by the following equations (1), (2), (3), (5) to (8).
z = 1-xy (1)
X = x * y / Y (2)
Z = z * y / Y (3)
L * = 116f (Y / Yn) -16 (4)
a * = 500 [f (X / Xn) -f (Y / Yn)] (5)
b * = 200 [f (Y / Yn) -f (Z / Zn)] (6)
f (t) = t ^ (1/3) (when t> (6/29) ^ 3 = 0.008856) (7)
f (t) = [(29/3) ^ 3t + 16] / 116 (other cases) (8)
However, under a D65 light source, Xn = 95.045, Yn = 100, Zn = 108.892

上で求めた1000点程度のデータについて、
h’=atan(b*/a*) …(9)
により位相すなわち色相h’を計算しこれを度数換算したものを色相hとして、色相hが最も整数に近い場合の明度L*、色度a*、b*を配列に組み込む。全辺を一周することで、明度0〜100・色相0°〜360°の明度L*、色度a*、b*のルックアップテーブルが得られる。なお、ここでatanは逆タンジェントを意味する。
About the data of about 1000 points obtained above,
h ′ = atan (b * / a *) (9)
The phase, that is, the hue h ′ is calculated by the above, and the frequency converted from this is set as the hue h, and the lightness L * and chromaticity a * and b * when the hue h is closest to an integer are incorporated into the array. A look-up table of lightness L *, lightness a * and b * with lightness of 0 to 100 and hue of 0 ° to 360 ° is obtained by making a round on all sides. Here, atan means an inverse tangent.

色空間変換部12は、広色域RGB映像の入力を受け付ける(S42)。たとえばBT.2020色域相当の広色域RGB映像が入力される。色空間変換部12は、入力されたRGB色空間の映像をL*a*b*色空間の映像に変換して、各画素の明度及び色度を算出する。色空間変換部12は、RGB−リニアRGB変換部、リニアRGB−CIE XYZ変換部、及びCIE XYZ−L*a*b*変換部を含み、RGBからリニアRGBへ、リニアRGBからCIE XYZへ、CIE XYZからL*a*b*へ、広色域RGB映像の色空間を変換する。以下、ラスタースキャンで画素単位に処理が行われるものとする。   The color space conversion unit 12 receives an input of a wide color gamut RGB video (S42). For example, BT. A wide color gamut RGB image corresponding to the 2020 color gamut is input. The color space conversion unit 12 converts the input RGB color space image into an L * a * b * color space image, and calculates the brightness and chromaticity of each pixel. The color space conversion unit 12 includes an RGB-linear RGB conversion unit, a linear RGB-CIE XYZ conversion unit, and a CIE XYZ-L * a * b * conversion unit, from RGB to linear RGB, from linear RGB to CIE XYZ, The color space of the wide color gamut RGB image is converted from CIE XYZ to L * a * b *. Hereinafter, it is assumed that processing is performed in pixel units by raster scanning.

RGB−リニアRGB変換部は、一般的な正規化と逆ガンマ変換により、入力映像に対してRGBからリニアRGBへ色空間を変換する(S44)。   The RGB-linear RGB conversion unit converts the color space from RGB to linear RGB for the input image by general normalization and inverse gamma conversion (S44).

リニアRGB−CIE XYZ変換部は、たとえばD65光源下のBT.2020の場合、次式の変換が行われる(S46)。
X=100*(0.6370*R+0.1446*G+0.1689*B) …(10)
Y=100*(0.2627*R+0.6780*G+0.0593*B) …(11)
Z=100*(0.0000*R+0.0281*G+1.0610*B) …(12)
The linear RGB-CIE XYZ conversion unit is, for example, a BT. In the case of 2020, the following expression is converted (S46).
X = 100 * (0.6370 * R + 0.1446 * G + 0.1689 * B) (10)
Y = 100 * (0.2627 * R + 0.6780 * G + 0.0593 * B) (11)
Z = 100 * (0.0000 * R + 0.0281 * G + 1.0610 * B) (12)

CIE XYZ−L*a*b*変換部は、前述の式(4)〜(8)を用いて明度L*、色度a*、b*を計算する(S48)。   The CIE XYZ-L * a * b * conversion unit calculates lightness L *, chromaticity a *, and b * using the above-described equations (4) to (8) (S48).

色相・彩度計算部14は、色空間変換部12により最終的に導出された色度a*、b*から度数換算された色相hと彩度C*を計算する(S50)。色相hは前述の式(9)により計算し度数換算して求める。彩度C*は次式のように色度a*、b*を成分とするベクトルの長さによって計算される。
C*=sqrt(a*^2+b*^2) …(13)
The hue / saturation calculation unit 14 calculates the hue h and the saturation C * converted in frequency from the chromaticity a * and b * finally derived by the color space conversion unit 12 (S50). The hue h is calculated by the above formula (9) and converted into a frequency. Saturation C * is calculated by the length of a vector having chromaticity a * and b * as components as shown in the following equation.
C * = sqrt (a * ^ 2 + b * ^ 2) (13)

彩度比較部16は、上で求めた映像信号の画素の彩度に対して、狭色域表色系明度・彩度・色相計算部10により生成されたLUT上で映像信号の画素と明度・色相を同じくする彩度を取得し(S52)、映像信号の画素の彩度CaとLUT上の彩度Cbとを比較する(S54)。   The saturation comparison unit 16 uses the pixel and brightness of the video signal on the LUT generated by the narrow color gamut color system lightness / saturation / hue calculation unit 10 for the saturation of the pixel of the video signal obtained above. The saturation having the same hue is acquired (S52), and the saturation Ca of the pixel of the video signal is compared with the saturation Cb on the LUT (S54).

彩度拡大倍率決定部18は、以下のように、映像信号の彩度CaがLUTの彩度Cbより大きい場合、彩度拡大倍率αを映像信号の彩度CaとLUTの彩度Cbの比とし(S56)、その他の場合はα=1とする(S58)。
if(Ca>Cb) α=Ca/Cb;
else α=1.0;
When the saturation Ca of the video signal is larger than the saturation Cb of the LUT as described below, the saturation enlargement magnification determination unit 18 sets the saturation enlargement factor α to the ratio of the saturation Ca of the video signal to the saturation Cb of the LUT. (S56), otherwise α = 1 (S58).
if (Ca> Cb) α = Ca / Cb;
else α = 1.0;

彩度拡大倍率決定部18は、このようにして決定された彩度拡大倍率αを出力するとともに、彩度拡大倍率αを色度除算部20に供給する。   The saturation enlargement magnification determination unit 18 outputs the saturation enlargement magnification α determined in this way and supplies the saturation enlargement magnification α to the chromaticity division unit 20.

彩度拡大倍率決定部18がこのように彩度拡大倍率αを決定することの意義を説明する。Ca>Cbの場合は入力された映像信号の色域は狭色域を超えることから、後述のように色域の縮小処理を行い、そうでない場合は入力された映像信号が狭色域内の信号レベルであることから、色域の縮小処理をすることなくそのまま利用する。彩度拡大倍率αのデータは狭色域表色系がBT.709、広色域表色系がBT.2020の場合、一般的に2.4程度が上限であり、また下限は拡大を行わない1.0であることから、A=α*140−100の値を32ビットのビットマップにおいて8ビットのアルファチャネルに格納すればよい。   The significance of the saturation enlargement magnification determining unit 18 determining the saturation enlargement magnification α in this way will be described. When Ca> Cb, the color gamut of the input video signal exceeds the narrow color gamut, so the color gamut reduction processing is performed as described later. Otherwise, the input video signal is a signal within the narrow color gamut. Since it is a level, it is used as it is without reducing the color gamut. Narrow color gamut color system is BT. 709, the wide color gamut color system is BT. In the case of 2020, the upper limit is generally about 2.4, and the lower limit is 1.0 with no expansion, so the value of A = α * 140-100 is set to 8 bits in a 32-bit bitmap. Store in the alpha channel.

色度除算部20は、色度a*及びb*を彩度拡大倍率αで除算することにより、入力映像の色域を縮小する(S60)。   The chromaticity division unit 20 reduces the color gamut of the input video by dividing the chromaticity a * and b * by the saturation enlargement magnification α (S60).

色空間逆変換部22は、色度除算部20により彩度拡大倍率αに応じて色域の縮小処理がなされた映像に対して、色空間変換部12の色空間の変換とは逆の変換を施すことで、狭色域RGB映像を生成して出力する。色空間逆変換部22は、L*a*b*色空間の映像を元のRGB色空間の映像に逆変換する。色空間変換部12は、L*a*b*−CIE XYZ変換部、CIE XYZ−リニアRGB変換部、及びリニアRGB−RGB変換部を含み、L*a*b*からCIE XYZへ、CIE XYZからリニアRGBへ、リニアRGBからRGBへ、色域の縮小処理がなされた映像の色空間を変換する。   The color space inverse conversion unit 22 performs a conversion opposite to the color space conversion performed by the color space conversion unit 12 on the video that has been subjected to the color gamut reduction processing by the chromaticity division unit 20 according to the saturation enlargement magnification α. To generate and output a narrow color gamut RGB image. The color space inverse conversion unit 22 inversely converts an image in the L * a * b * color space into an image in the original RGB color space. The color space conversion unit 12 includes an L * a * b * -CIE XYZ conversion unit, a CIE XYZ-linear RGB conversion unit, and a linear RGB-RGB conversion unit, and from L * a * b * to CIE XYZ, CIE XYZ The color space of the video that has undergone the color gamut reduction processing is converted from linear RGB to linear RGB and from linear RGB to RGB.

L*a*b*−CIE XYZ変換部は、式(14)〜(19)により、L*a*b*からCIE XYZ変換へ色空間を変換する(S62)。
Y=fy^3*Yn (fy>6/29),Y=(3/29)^3(116fy−16)Yn (fy<6/29) …(14)
X=fx^3*Xn (fx>6/29),X=(3/29)^3(116fx−16)Xn (fx<6/29) …(15)
Z=fz^3*Zn (fz>6/29),Z=(3/29)^3(116fz−16)Zn (fz<6/29) …(16)
fy=(L*+16)/116 …(17)
fx=fy+(a*/500) …(18)
fz=fy−(b*/200) …(19)
但しD65光源下ではXn=95.045,Yn=100,Zn=108.892
The L * a * b * -CIE XYZ conversion unit converts the color space from L * a * b * to CIE XYZ conversion according to the equations (14) to (19) (S62).
Y = fy ^ 3 * Yn (fy> 6/29), Y = (3/29) ^ 3 (116fy-16) Yn (fy <6/29) (14)
X = fx ^ 3 * Xn (fx> 6/29), X = (3/29) ^ 3 (116fx-16) Xn (fx <6/29) (15)
Z = fz ^ 3 * Zn (fz> 6/29), Z = (3/29) ^ 3 (116fz-16) Zn (fz <6/29) (16)
fy = (L * + 16) / 116 (17)
fx = fy + (a * / 500) (18)
fz = fy− (b * / 200) (19)
However, under a D65 light source, Xn = 95.045, Yn = 100, Zn = 108.892

CIE XYZ−リニアRGB変換部は、たとえばD65光源下のBT.709の信号として出力する場合、以下の式によりCIE XYZからリニアRGBへ色空間を変換する(S64)。
R=0.01*(3.2410*X−1.5374*Y−0.4986*Z) …(20)
G=0.01*(−0.9692*X+1.8760*Y+0.0416*Z) …(21)
B=0.01*(0.0556*X−0.2040*Y+1.0570*Z) …(22)
The CIE XYZ-linear RGB conversion unit is, for example, a BT. When outputting as a signal 709, the color space is converted from CIE XYZ to linear RGB by the following equation (S64).
R = 0.01 * (3.2410 * X-1.5374 * Y-0.4986 * Z) (20)
G = 0.01 * (− 0.9692 * X + 1.8760 * Y + 0.0416 * Z) (21)
B = 0.01 * (0.0556 * X−0.2040 * Y + 1.0570 * Z) (22)

リニアRGB−RGB変換部は、一般的なガンマ変換と定数倍(例えば8ビットであれば255倍)により、リニアRGBからRGBへ色空間を変換する(S66)。   The linear RGB-RGB conversion unit converts the color space from linear RGB to RGB by general gamma conversion and constant multiplication (for example, 255 times for 8 bits) (S66).

狭色域信号・彩度拡大倍率分離処理部110は、色空間逆変換部22により色空間が逆変換された信号を狭色域RGB映像として出力するとともに、縮小処理に用いられた彩度拡大倍率αを出力する(S68)。   The narrow color gamut signal / saturation expansion magnification separation processing unit 110 outputs a signal in which the color space is inversely converted by the color space inverse conversion unit 22 as a narrow color gamut RGB image, and the saturation expansion used for the reduction process. The magnification α is output (S68).

図6は、図2の広色域回復処理部260の構成図である。図8は、図6の広色域回復処理部260による回復処理の手順を示すフローチャートである。以下、これらの図を参照しながら、広色域回復処理部260の構成と動作を説明する。   FIG. 6 is a block diagram of the wide color gamut recovery processing unit 260 of FIG. FIG. 8 is a flowchart showing the procedure of the recovery process by the wide color gamut recovery processing unit 260 of FIG. Hereinafter, the configuration and operation of the wide color gamut recovery processing unit 260 will be described with reference to these drawings.

色空間変換部30は、狭色域RGB映像の入力を受け付ける(S70)。映像符号化装置100により作成された信号が入力されるため、ここではBT.709色域相当の映像が入力される。色空間変換部30は、RGB−リニアRGB変換部、リニアRGB−CIE XYZ変換部、及びCIE XYZ−L*a*b*変換部を含み、RGBからリニアRGBへ、リニアRGBからCIE XYZへ、CIE XYZからL*a*b*へ、狭色域RGB映像の色空間を変換する。以下ラスタースキャンで画素単位に処理が行われるものとする。   The color space conversion unit 30 receives an input of a narrow color gamut RGB video (S70). Since the signal generated by the video encoding apparatus 100 is input, the BT. An image corresponding to the 709 color gamut is input. The color space conversion unit 30 includes an RGB-linear RGB conversion unit, a linear RGB-CIE XYZ conversion unit, and a CIE XYZ-L * a * b * conversion unit, from RGB to linear RGB, from linear RGB to CIE XYZ, The color space of the narrow color gamut RGB image is converted from CIE XYZ to L * a * b *. Hereinafter, it is assumed that processing is performed in pixel units by raster scanning.

色度乗算部32は、彩度拡大倍率αの入力を受け付ける(S72)。映像符号化装置100による符号化方式の仕様に従い、ここでは32ビットのビットマップのアルファチャネルのデータAが入力され、(A+100)/140により求めた結果を彩度拡大倍率αとする。   The chromaticity multiplication unit 32 receives an input of the saturation enlargement magnification α (S72). In accordance with the specification of the encoding method by the video encoding apparatus 100, alpha channel data A of a 32-bit bitmap is input here, and the result obtained by (A + 100) / 140 is defined as a saturation enlargement factor α.

RGB−リニアRGB変換部は、一般的な正規化と逆ガンマ変換により、入力映像に対してRGBからリニアRGBへ色空間を変換する(S74)。   The RGB-linear RGB conversion unit converts the color space from RGB to linear RGB for the input image by general normalization and inverse gamma conversion (S74).

リニアRGB−CIE XYZ変換部は、たとえばD65光源下のBT.709の場合、次式の変換が行われる(S76)。
X=100*(0.4124*R+0.3576*G+0.1805*B) …(23)
Y=100*(0.2126*R+0.7152*G+0.0722*B) …(24)
Z=100*(0.0193*R+0.1192*G+0.9505*B) …(25)
The linear RGB-CIE XYZ conversion unit is, for example, a BT. In the case of 709, the following expression is converted (S76).
X = 100 * (0.4124 * R + 0.3576 * G + 0.1805 * B) (23)
Y = 100 * (0.2126 * R + 0.7152 * G + 0.0722 * B) (24)
Z = 100 * (0.0193 * R + 0.1192 * G + 0.9505 * B) (25)

CIE XYZ−L*a*b*変換部は、前述の式(4)〜(8)を用いて明度L*、色度a*、b*を計算する(S78)。   The CIE XYZ-L * a * b * conversion unit calculates lightness L *, chromaticity a *, and b * using the above-described equations (4) to (8) (S78).

色度乗算部32は、色空間変換部30により最終的に導出された色度a*及びb*に彩度拡大倍率αを乗算することにより、入力映像の色域の拡大を行う(S80)。   The chromaticity multiplication unit 32 multiplies the color gamut of the input video by multiplying the chromaticity a * and b * finally derived by the color space conversion unit 30 by the saturation expansion magnification α (S80). .

色空間逆変換部34は、色空間変換部30により彩度拡大倍率αに応じて色域の拡大処理がなされた映像に対して、色空間変換部30の色空間の変換とは逆の変換を施すことで、広色域RGB映像を生成して出力する。色空間逆変換部34は、L*a*b*−CIE XYZ変換部、CIE XYZ−リニアRGB変換部、及びリニアRGB−RGB変換部を含み、L*a*b*からCIE XYZへ、CIE XYZからリニアRGBへ、リニアRGBからRGBへ、色域の拡大処理がなされた映像の色空間を変換する。   The color space inverse conversion unit 34 performs a conversion opposite to the color space conversion performed by the color space conversion unit 30 on the image that has been subjected to the color gamut expansion processing by the color space conversion unit 30 in accordance with the saturation expansion magnification α. To generate and output a wide color gamut RGB image. The color space inverse conversion unit 34 includes an L * a * b * -CIE XYZ conversion unit, a CIE XYZ-linear RGB conversion unit, and a linear RGB-RGB conversion unit. From the L * a * b * to the CIE XYZ, the CIE The color space of an image that has undergone color gamut expansion processing is converted from XYZ to linear RGB and from linear RGB to RGB.

L*a*b*−CIE XYZ変換部は、式(14)〜(19)により、L*a*b*からCIE XYZ変換へ色空間を変換する(S82)。   The L * a * b * -CIE XYZ conversion unit converts the color space from L * a * b * to CIE XYZ conversion according to the equations (14) to (19) (S82).

CIE XYZ−リニアRGB変換部は、たとえばD65光源下のBT.2020の信号として出力する場合、以下の式によりCIE XYZからリニアRGBへ色空間を変換する(S84)。
R=0.01*(1.7167*X−0.3557*Y−0.2534*Z) …(26)
G=0.01*(−0.6667*X+1.6165*Y+0.0158*Z) …(27)
B=0.01*(0.0176*X−0.0428*Y+0.9421*Z) …(28)
The CIE XYZ-linear RGB conversion unit is, for example, a BT. When outputting as a 2020 signal, the color space is converted from CIE XYZ to linear RGB by the following equation (S84).
R = 0.01 * (1.7167 * X-0.3557 * Y-0.2534 * Z) (26)
G = 0.01 * (− 0.6667 * X + 1.6165 * Y + 0.0158 * Z) (27)
B = 0.01 * (0.0176 * X-0.0428 * Y + 0.9421 * Z) (28)

リニアRGB−RGB変換部は、一般的なガンマ変換と定数倍(例えば8ビットであれば255倍)により、リニアRGBからRGBへ色空間を変換する(S86)。   The linear RGB-RGB conversion unit converts the color space from linear RGB to RGB by general gamma conversion and constant multiplication (for example, 255 times for 8 bits) (S86).

広色域回復処理部260は、色空間逆変換部34により色空間が逆変換された信号を広色域RGB映像として出力する(S88)。   The wide color gamut recovery processing unit 260 outputs the signal whose color space is inversely converted by the color space inverse conversion unit 34 as a wide color gamut RGB image (S88).

以上説明したように、本実施の形態によれば、広色域映像信号を狭色域映像及び彩度拡大倍率の信号形式に変換することにより、狭色域表示系において広色域映像信号の色情報を包含した狭色域映像を出力することで狭色域表示系との互換性を実現することができる。またこの信号形式の映像ファイルを用いれば、広色域表示系においては、狭色域映像の色度に彩度拡大倍率を乗算することにより広色域映像に戻すことができ、本来の色情報を再現することができる。   As described above, according to the present embodiment, by converting a wide color gamut video signal into a signal format of a narrow color gamut video and a saturation magnification factor, By outputting a narrow color gamut image including color information, compatibility with a narrow color gamut display system can be realized. In addition, if a video file of this signal format is used, in a wide color gamut display system, it is possible to return to a wide color gamut image by multiplying the chromaticity of the narrow color gamut image by the saturation enlargement magnification. Can be reproduced.

また、復号化処理において、色度に乗算する彩度拡大倍率を映像信号の高域に応じて制御することにより符号化エラーを回避しつつ広色域映像信号を再現することができる。   Further, in the decoding process, a wide color gamut video signal can be reproduced while avoiding an encoding error by controlling the saturation enlargement magnification by which the chromaticity is multiplied according to the high frequency of the video signal.

以上、本発明を実施の形態をもとに説明した。実施の形態は例示であり、それらの各構成要素や各処理プロセスの組合せにいろいろな変形例が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解されるところである。   The present invention has been described based on the embodiments. The embodiments are exemplifications, and it will be understood by those skilled in the art that various modifications can be made to combinations of the respective constituent elements and processing processes, and such modifications are within the scope of the present invention. .

上記の説明では彩度拡大倍率αをアルファチャネルに格納したが、彩度拡大倍率αを映像信号の下位ビットに格納してもよい。たとえば、48ビットTiff(RGBの各色が16ビット)に従うフレーム画像を連続させることでBT.2020規格の動画を伝送する場合、RGBの画像情報はそれぞれ規格上、各色12ビットが上限であるから、各色下位4ビットずつ合計12ビットの余裕がある。このうち8ビット分を彩度拡大倍率αの格納に使用すれば、高精細多ビット動画像において下位ビットに彩度拡大倍率αを格納して映像を伝送することができる。あるいは、別の方法として、彩度拡大倍率αを映像とは別のファイルに格納し補助情報として提供してもよい。   In the above description, the saturation enlargement factor α is stored in the alpha channel. However, the saturation enlargement factor α may be stored in the lower bits of the video signal. For example, a frame image according to 48-bit Tiff (each color of RGB is 16 bits) is continued to make BT. When transmitting a 2020 standard moving image, the RGB image information has an upper limit of 12 bits for each color according to the standard, so there is a total of 12 bits for each lower 4 bits of each color. If 8 bits are used for storing the saturation enlargement magnification α, it is possible to transmit the video with the saturation enlargement magnification α stored in the lower bits in a high-definition multi-bit moving image. Alternatively, as another method, the saturation enlargement factor α may be stored in a file separate from the video and provided as auxiliary information.

上記の説明では、広色域から狭色域へ変換する場合を説明したが、色域の変換は、必ずしも色域の面積の広い方から狭い方への変換に限られない。第1の色域から第2の色域に変換する際に色域の縮小・拡大処理を要する状況であれば、本実施の形態は、任意の色域変換に適用することができる。   In the above description, the case of converting from the wide color gamut to the narrow color gamut has been described. However, the color gamut conversion is not necessarily limited to the conversion from the wide color gamut area to the narrow color gamut. The present embodiment can be applied to arbitrary color gamut conversion as long as the color gamut reduction / enlargement processing is required when converting from the first color gamut to the second color gamut.

なお、実施の形態で説明した各装置の機能構成はハードウェア資源とソフトウェア資源の協働、又はハードウェア資源のみにより実現できる。ハードウェア資源としてプロセッサ、ROM、RAM、その他のLSIを利用できる。ソフトウェア資源としてオペレーティングシステム、アプリケーション等のプログラムを利用できる。   It should be noted that the functional configuration of each device described in the embodiments can be realized by cooperation of hardware resources and software resources, or only by hardware resources. Processors, ROM, RAM, and other LSIs can be used as hardware resources. Programs such as operating systems and applications can be used as software resources.

10 狭色域表色系明度・彩度・色相計算部、 12 色空間変換部、 14 色相・彩度計算部、 16 彩度比較部、 18 彩度拡大倍率決定部、 20 色度除算部、 22 色空間逆変換部、 30 色空間変換部、 32 色度乗算部、 34 色空間逆変換部、 100 映像符号化装置、 110 狭色域信号・彩度拡大倍率分離処理部、 120 RGB−YPbPr変換部、 130 映像信号符号化部、 140 彩度拡大倍率符号化部、 150 ビットストリーム統合部、 200 映像復号化装置、 210 ビットストリーム分離部、 220 映像信号復号化部、 230 彩度拡大倍率復号化部、 240 YPbPr−RGB変換部、 250 高域成分評価部、 260 広色域回復処理部。   10 Narrow Color Gamut Color System Lightness / Saturation / Hue Calculation Unit, 12 Color Space Conversion Unit, 14 Hue / Saturation Calculation Unit, 16 Saturation Comparison Unit, 18 Saturation Expansion Ratio Determination Unit, 20 Chromaticity Division Unit, 22 color space inverse transform unit, 30 color space transform unit, 32 chromaticity multiplication unit, 34 color space inverse transform unit, 100 video encoding device, 110 narrow color gamut signal / saturation expansion magnification separation processing unit, 120 RGB-YPbPr Conversion unit, 130 video signal encoding unit, 140 saturation expansion rate encoding unit, 150 bitstream integration unit, 200 video decoding device, 210 bitstream separation unit, 220 video signal decoding unit, 230 saturation expansion rate decoding Conversion unit, 240 YPbPr-RGB conversion unit, 250 high-frequency component evaluation unit, 260 wide color gamut recovery processing unit.

Claims (7)

第一の色域の表示系用の入力映像を第二の色域の表示系用の出力映像に変換する色域変換装置であって、
第一の色域の入力映像について画素単位に明度及び色度を算出する色空間変換部と、
前記第一の色域の入力映像について画素単位に前記色度から彩度と色相を計算する入力映像色相・彩度計算部と、
第二の色域の外周上の点の明度と彩度と色相を計算して、前記第二の色域の彩度を明度及び色相に対する関数として生成する第二の色域表色系明度・彩度・色相計算部と、
前記関数を参照して、前記第一の色域の入力映像の画素の明度及び色相に対応する前記第二の色域における彩度を取得し、前記第一の色域の入力映像の画素の彩度を前記第二の色域における対応する彩度で除算した彩度比を求める彩度比較部と、
前記彩度比にもとづいて彩度拡大倍率を決定する彩度拡大倍率決定部と、
前記第一の色域の入力映像の画素の前記色度を前記彩度拡大倍率で除算する色度除算部と、
前記第一の色域の入力映像の前記明度及び前記彩度拡大倍率で除算された前記色度から構成される第二の色域の出力映像を前記彩度拡大倍率とともに出力する出力部とを含むことを特徴とする色域変換装置。
A color gamut conversion device that converts an input video for a display system of a first color gamut into an output video for a display system of a second color gamut,
A color space conversion unit that calculates brightness and chromaticity in pixel units for an input video in the first color gamut;
An input video hue / saturation calculation unit for calculating saturation and hue from the chromaticity for each input pixel of the first color gamut;
Calculating the brightness, saturation, and hue of a point on the outer periphery of the second gamut, and generating the saturation of the second gamut as a function of the brightness and hue; Saturation / hue calculation section,
With reference to the function, the saturation of the second color gamut corresponding to the brightness and hue of the input video pixel of the first color gamut is obtained, and the input video pixel of the first color gamut is obtained. A saturation comparison unit for obtaining a saturation ratio obtained by dividing the saturation by the corresponding saturation in the second color gamut;
A saturation magnification determination unit that determines a saturation magnification based on the saturation ratio;
A chromaticity division unit that divides the chromaticity of a pixel of the input video in the first color gamut by the saturation magnification;
An output unit that outputs an output image of the second color gamut composed of the chromaticity divided by the lightness and the saturation expansion magnification of the input image of the first color gamut together with the saturation expansion magnification; A color gamut conversion device comprising:
前記彩度拡大倍率決定部は、前記彩度比が1より大きい場合、前記彩度拡大倍率を前記彩度比とし、それ以外の場合、前記彩度拡大倍率を1とすることを特徴とする請求項1に記載の色域変換装置。   The saturation enlargement ratio determination unit sets the saturation enlargement ratio as the saturation ratio when the saturation ratio is greater than 1, and sets the saturation enlargement ratio as 1 in other cases. The color gamut conversion device according to claim 1. 第二の色域の表示系用の入力映像を第一の色域の表示系用の出力映像に変換する色域変換装置であって、
第二の色域の入力映像について画素単位に明度及び色度を算出する色空間変換部と、
第二の色域の入力映像の画素毎の彩度拡大倍率を取得し、第二の色域の入力映像の画素の前記色度に前記彩度拡大倍率を乗算する色度乗算部と、
第二の色域の入力映像の前記明度及び前記彩度拡大倍率を乗算された前記色度から構成される第一の色域の出力映像を出力する出力部とを含むことを特徴とする色域変換装置。
A color gamut conversion device that converts an input video for a display system of a second color gamut into an output video for a display system of a first color gamut,
A color space conversion unit that calculates brightness and chromaticity in units of pixels for the input image in the second color gamut;
A chromaticity multiplication unit that obtains a saturation enlargement magnification for each pixel of the input video in the second color gamut and multiplies the chromaticity of the pixel of the input video in the second color gamut by the saturation enlargement magnification;
An output unit that outputs an output image of the first color gamut composed of the chromaticity multiplied by the lightness and the saturation magnification of the input image of the second color gamut. Area converter.
第一の色域の表示系用の入力映像を第二の色域の表示系用の出力映像に変換する色域変換方法であって、
第一の色域の入力映像について画素単位に明度及び色度を算出するステップと、
前記第一の色域の入力映像について画素単位に前記色度から彩度と色相を計算するステップと、
第二の色域の外周上の点の明度と彩度と色相を計算して、前記第二の色域の彩度を明度及び色相に対する関数として生成するステップと、
前記関数を参照して、前記第一の色域の入力映像の画素の明度及び色相に対応する前記第二の色域における彩度を取得し、前記第一の色域の入力映像の画素の彩度を前記第二の色域における対応する彩度で除算した彩度比を求めるステップと、
前記彩度比にもとづいて彩度拡大倍率を決定するステップと、
前記第一の色域の入力映像の画素の前記色度を前記彩度拡大倍率で除算するステップと、
前記第一の色域の入力映像の前記明度及び前記彩度拡大倍率で除算された前記色度から構成される第二の色域の出力映像を前記彩度拡大倍率とともに出力するステップとを含むことを特徴とする色域変換方法。
A color gamut conversion method for converting an input video for a display system of a first color gamut into an output video for a display system of a second color gamut,
Calculating brightness and chromaticity in pixel units for an input video in the first color gamut;
Calculating saturation and hue from the chromaticity for each input pixel of the first color gamut;
Calculating brightness, saturation, and hue of a point on the outer periphery of the second gamut, and generating saturation of the second gamut as a function of brightness and hue;
With reference to the function, the saturation of the second color gamut corresponding to the brightness and hue of the input video pixel of the first color gamut is obtained, and the input video pixel of the first color gamut is obtained. Obtaining a saturation ratio by dividing the saturation by the corresponding saturation in the second color gamut;
Determining a saturation magnification based on the saturation ratio;
Dividing the chromaticity of pixels of the input video in the first color gamut by the saturation magnification factor;
Outputting the output image of the second color gamut composed of the chromaticity divided by the lightness and the saturation enlargement magnification of the input image of the first color gamut together with the saturation enlargement magnification. A color gamut conversion method characterized by that.
第一の色域の表示系用の入力映像を第二の色域の表示系用の出力映像に変換する色域変換プログラムであって、
第一の色域の入力映像について画素単位に明度及び色度を算出するステップと、
前記第一の色域の入力映像について画素単位に前記色度から彩度と色相を計算するステップと、
第二の色域の外周上の点の明度と彩度と色相を計算して、前記第二の色域の彩度を明度及び色相に対する関数として生成するステップと、
前記関数を参照して、前記第一の色域の入力映像の画素の明度及び色相に対応する前記第二の色域における彩度を取得し、前記第一の色域の入力映像の画素の彩度を前記第二の色域における対応する彩度で除算した彩度比を求めるステップと、
前記彩度比にもとづいて彩度拡大倍率を決定するステップと、
前記第一の色域の入力映像の画素の前記色度を前記彩度拡大倍率で除算するステップと、
前記第一の色域の入力映像の前記明度及び前記彩度拡大倍率で除算された前記色度から構成される第二の色域の出力映像を前記彩度拡大倍率とともに出力するステップとをコンピュータに実行させることを特徴とする色域変換プログラム。
A color gamut conversion program for converting an input video for a display system of a first color gamut into an output video for a display system of a second color gamut,
Calculating brightness and chromaticity in pixel units for an input video in the first color gamut;
Calculating saturation and hue from the chromaticity for each input pixel of the first color gamut;
Calculating brightness, saturation, and hue of a point on the outer periphery of the second gamut, and generating saturation of the second gamut as a function of brightness and hue;
With reference to the function, the saturation of the second color gamut corresponding to the brightness and hue of the input video pixel of the first color gamut is obtained, and the input video pixel of the first color gamut is obtained. Obtaining a saturation ratio by dividing the saturation by the corresponding saturation in the second color gamut;
Determining a saturation magnification based on the saturation ratio;
Dividing the chromaticity of pixels of the input video in the first color gamut by the saturation magnification factor;
Outputting the output image of the second color gamut composed of the chromaticity divided by the lightness and the saturation magnification of the input image of the first color gamut together with the saturation magnification. A color gamut conversion program that is executed by a computer.
第二の色域の表示系用の入力映像を第一の色域の表示系用の出力映像に変換する色域変換方法であって、
第二の色域の入力映像について画素単位に明度及び色度を算出するステップと、
第二の色域の入力映像の画素毎の彩度拡大倍率を取得し、第二の色域の入力映像の画素の前記色度に前記彩度拡大倍率を乗算するステップと、
第二の色域の入力映像の前記明度及び前記彩度拡大倍率を乗算された前記色度から構成される第一の色域の出力映像を出力するステップとを含むことを特徴とする色域変換方法。
A color gamut conversion method for converting an input video for a display system of a second color gamut into an output video for a display system of a first color gamut,
Calculating brightness and chromaticity in pixel units for the input video in the second color gamut;
Obtaining a saturation enlargement factor for each pixel of the input image in the second color gamut, and multiplying the saturation enlargement factor by the chromaticity of the pixel of the input image in the second color gamut;
And a step of outputting an output image of the first color gamut composed of the chromaticity multiplied by the lightness and the saturation magnification of the input image of the second color gamut. Conversion method.
第二の色域の表示系用の入力映像を第一の色域の表示系用の出力映像に変換する色域変換プログラムであって、
第二の色域の入力映像について画素単位に明度及び色度を算出するステップと、
第二の色域の入力映像の画素毎の彩度拡大倍率を取得し、第二の色域の入力映像の画素の前記色度に前記彩度拡大倍率を乗算するステップと、
第二の色域の入力映像の前記明度及び前記彩度拡大倍率を乗算された前記色度から構成される第一の色域の出力映像を出力するステップとをコンピュータに実行させることを特徴とする色域変換プログラム。
A color gamut conversion program for converting an input video for a display system of a second color gamut into an output video for a display system of a first color gamut,
Calculating brightness and chromaticity in pixel units for the input video in the second color gamut;
Obtaining a saturation enlargement factor for each pixel of the input image in the second color gamut, and multiplying the saturation enlargement factor by the chromaticity of the pixel of the input image in the second color gamut;
Outputting a first color gamut output video composed of the chromaticity multiplied by the brightness and the saturation magnification of the input video of the second color gamut. Color gamut conversion program.
JP2015185200A 2015-09-18 2015-09-18 Color gamut conversion apparatus, color gamut conversion method, and color gamut conversion program Active JP6604109B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015185200A JP6604109B2 (en) 2015-09-18 2015-09-18 Color gamut conversion apparatus, color gamut conversion method, and color gamut conversion program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015185200A JP6604109B2 (en) 2015-09-18 2015-09-18 Color gamut conversion apparatus, color gamut conversion method, and color gamut conversion program

Publications (2)

Publication Number Publication Date
JP2017060093A true JP2017060093A (en) 2017-03-23
JP6604109B2 JP6604109B2 (en) 2019-11-13

Family

ID=58390897

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015185200A Active JP6604109B2 (en) 2015-09-18 2015-09-18 Color gamut conversion apparatus, color gamut conversion method, and color gamut conversion program

Country Status (1)

Country Link
JP (1) JP6604109B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019087403A1 (en) * 2017-11-06 2019-05-09 Eizo株式会社 Image processing device, image processing method, and image processing program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003069840A (en) * 2001-08-22 2003-03-07 Dainippon Printing Co Ltd Method for converting color
JP2014093617A (en) * 2012-11-02 2014-05-19 Jvc Kenwood Corp Color video signal processing device, processing method, and processing program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003069840A (en) * 2001-08-22 2003-03-07 Dainippon Printing Co Ltd Method for converting color
JP2014093617A (en) * 2012-11-02 2014-05-19 Jvc Kenwood Corp Color video signal processing device, processing method, and processing program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019087403A1 (en) * 2017-11-06 2019-05-09 Eizo株式会社 Image processing device, image processing method, and image processing program
KR20200053591A (en) * 2017-11-06 2020-05-18 에이조 가부시키가이샤 Image processing apparatus, image processing method and recording medium recording image processing program
US11363245B2 (en) 2017-11-06 2022-06-14 Eizo Corporation Image processing device, image processing method, and image processing program
KR102521889B1 (en) * 2017-11-06 2023-04-13 에이조 가부시키가이샤 Image processing device, image processing method and recording medium recording image processing program

Also Published As

Publication number Publication date
JP6604109B2 (en) 2019-11-13

Similar Documents

Publication Publication Date Title
US11589074B2 (en) Color volume transforms in coding of high dynamic range and wide color gamut sequences
US10397536B2 (en) Pixel pre-processing and encoding
JP6181259B2 (en) Adaptive reconstruction for hierarchical coding of enhanced dynamic range signals.
RU2740034C1 (en) Linear encoder for image / video processing
KR100782818B1 (en) Method and system for luminance preserving color conversion from YUV to RGB
JP2018525905A (en) System for encoding high dynamic range and wide color gamut sequences
KR20180043807A (en) High dynamic range adaptive operations in video decoders
JP2018525883A (en) Method and device for encoding and decoding color pictures
US11115691B2 (en) Custom data indicating nominal range of samples of media content
US20080267495A1 (en) Image compressing method and image compressing apparatus
US10313676B2 (en) Method and device for dynamically monitoring the encoding of a digital multidimensional signal
US10742986B2 (en) High dynamic range color conversion correction
US8971408B2 (en) Piecewise cross color channel predictor
JP6604109B2 (en) Color gamut conversion apparatus, color gamut conversion method, and color gamut conversion program
JP6531591B2 (en) Video coding apparatus, video coding method, video coding program, video decoding apparatus, video decoding method, and video decoding program
KR20100035906A (en) Device and method for color gamut mapping in rgb color space
US20230368344A1 (en) Color transformation for hdr video with a coding-efficiency constraint
US10715772B2 (en) High dynamic range color conversion correction

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180629

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190306

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190312

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190510

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190917

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190930

R150 Certificate of patent or registration of utility model

Ref document number: 6604109

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150