JP2014204347A - Image encoding method, image decoding method, image encoding device, image decoding device, program therefor and recording medium with program recorded thereon - Google Patents

Image encoding method, image decoding method, image encoding device, image decoding device, program therefor and recording medium with program recorded thereon Download PDF

Info

Publication number
JP2014204347A
JP2014204347A JP2013080008A JP2013080008A JP2014204347A JP 2014204347 A JP2014204347 A JP 2014204347A JP 2013080008 A JP2013080008 A JP 2013080008A JP 2013080008 A JP2013080008 A JP 2013080008A JP 2014204347 A JP2014204347 A JP 2014204347A
Authority
JP
Japan
Prior art keywords
color space
space conversion
matrix
inverse
eigenvalue
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
JP2013080008A
Other languages
Japanese (ja)
Other versions
JP6030989B2 (en
Inventor
翔平 松尾
Shohei Matsuo
翔平 松尾
誠明 松村
Masaaki Matsumura
誠明 松村
誠之 高村
Masayuki Takamura
誠之 高村
藤井 寛
Hiroshi Fujii
寛 藤井
清水 淳
Atsushi Shimizu
淳 清水
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2013080008A priority Critical patent/JP6030989B2/en
Publication of JP2014204347A publication Critical patent/JP2014204347A/en
Application granted granted Critical
Publication of JP6030989B2 publication Critical patent/JP6030989B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image encoding method and an image decoding method capable of improving encoding efficiency and accelerating encoding processing and decoding processing by adaptively applying color space conversion while utilizing a parameter being encoded or a parameter obtained in the color space conversion.SOLUTION: A color space conversion matrix for performing color space conversion is calculated from a decoded reference signal and in accordance with a result of determining whether to execute color space conversion on the basis of a magnitude relation of a predetermined threshold value and an intrinsic value which can be obtained in the matrix calculation, image encoding is implemented by executing the color space conversion based on a calculation result of the color space conversion matrix. An inverse color space conversion matrix for implementing inverse color space conversion is calculated from a decoded reference signal and in accordance with a result of determining whether to execute the inverse color space conversion on the basis of a magnitude relation of a predetermined threshold value and an intrinsic value which can be obtained in the matrix calculation, image decoding is implemented by executing the inverse color space conversion based on a calculation result of the inverse color space conversion matrix.

Description

本発明は、画像信号の符号化及び復号に関し、特に色空間変換を用いて画像信号を符号化または復号する技術に関する。   The present invention relates to encoding and decoding of an image signal, and more particularly to a technique for encoding or decoding an image signal using color space conversion.

動画像(映像、あるいは単に画像とも称する)の国際標準圧縮方式H.264/AVCおよび現在策定中の次世代高能率映像符号化HEVC(High Efficiency Video Coding)では、膨大な動画像の情報を効率よく圧縮するために、予測と変換という2種類の処理が施される。予測に関しては、インター符号化(フレーム間予測符号化、画面間符号化とも呼ぶ)とイントラ符号化(フレーム内予測符号化、画面内符号化とも呼ぶ)の2種類に分けられる。フレーム間予測符号化は、動画像内の時間方向の相関を利用して情報圧縮を図る手法である。動き補償を用いたフレーム間予測がその代表例である。   International standard compression method for moving images (also referred to as images or simply images). In H.264 / AVC and the next generation high efficiency video coding HEVC (High Efficiency Video Coding) currently being developed, two types of processing, prediction and conversion, are performed in order to efficiently compress a large amount of moving picture information. . The prediction is divided into two types: inter coding (also referred to as inter-frame prediction coding and inter-screen coding) and intra coding (also referred to as intra-frame prediction coding and intra-screen coding). Inter-frame predictive coding is a method for compressing information by using temporal correlation in a moving image. A typical example is inter-frame prediction using motion compensation.

一方、フレーム内予測符号化は、例えばH.264/AVCに採用されているような、符号化対象ブロックの周辺にある復号済み画素を用いて予測信号を生成する手法、すなわちフレーム内の相関を用いて情報圧縮を図る手法である。変換に関しては、静止画の国際標準圧縮方式であるJPEG及び動画像の国際標準圧縮方式MPEG−2では、離散コサイン変換(Discrete Cosine Transform:DCT)と呼ばれる手法が採用されている。JPEGの後継規格であるJPEG2000では、離散ウェーブレット変換(Discrete Wavelet Transform:DWT)と呼ばれる手法が採用されている。前記フレーム間及びフレーム内で予測を行った後、その予測残差信号(予測誤差信号とも呼ぶ)は前記変換及び量子化を経て、最終的にエントロピー符号化によって2値信号(ビットストリーム)となる。   On the other hand, intra-frame predictive encoding is, for example, H.264. H.264 / AVC is a technique for generating a prediction signal using decoded pixels around a block to be encoded, that is, a technique for compressing information using correlation within a frame. Regarding the conversion, a method called Discrete Cosine Transform (DCT) is adopted in JPEG, which is an international standard compression system for still images, and MPEG-2, which is an international standard compression system for moving images. JPEG2000, which is a successor to JPEG, employs a technique called discrete wavelet transform (DWT). After prediction between the frames and within the frame, the prediction residual signal (also referred to as a prediction error signal) undergoes the transformation and quantization, and finally becomes a binary signal (bit stream) by entropy coding. .

HEVCでは、符号化ユニット(Coding Unit:CU)と呼ばれるブロックの単位で符号化が行われ、その最大の単位はLargest Coding Unit(LCU)と呼ばれており、HEVCの参照ソフトウェア(HEVC test Model:HM)では通常64×64のサイズが設定されている。64×64のLCUは、四分木ベースで最小単位として8×8のCUまで分割される。各CUは予測ユニット(Prediction Unit:PU)と呼ばれる予測を実施するブロック、及び変換ユニット(Transform Unit:TU)と呼ばれる変換を実施するブロックに分割される。これらPUとTUは、CU内で独立に定義される。PUとTUは、CUと同様に基本的には四分木ベースで分割されるが、正方形以外の分割を適用するツールも存在する。PUの非正方形分割を許容するツールをAsymmetric Motion Partition(AMP)と呼び、TUの非正方形分割を許容するツールをNon-Square Quadtree Transform(NSQT)と呼ぶ。なお、後者のNSQTに関しては、2013年1月に発行された最終国際規格案(Final Draft International Standard:FDIS)には採用されておらず、2014年春に発行される見込みであるHEVC ver.1には採用されていない。AMPはHEVC ver.1に採用されている。   In HEVC, encoding is performed in units of blocks called coding units (Coding Units: CU), and the maximum unit is called Large Coding Unit (LCU), and HEVC reference software (HEVC test Model: In HM), a size of 64 × 64 is usually set. The 64 × 64 LCU is divided into 8 × 8 CUs as a minimum unit on a quadtree basis. Each CU is divided into a block that performs prediction called a prediction unit (PU) and a block that performs transformation called a transform unit (TU). These PU and TU are defined independently in the CU. PUs and TUs are basically divided on a quadtree basis like CUs, but there are tools that apply divisions other than squares. A tool that allows non-square partitioning of PU is called Asymmetric Motion Partition (AMP), and a tool that allows non-square partitioning of TU is called Non-Square Quadtree Transform (NSQT). The latter NSQT is not adopted in the Final Draft International Standard (FDIS) issued in January 2013, and is expected to be issued in the spring of 2014. 1 is not adopted. AMP is HEVC ver. 1 is adopted.

図22は、これらHEVCにおける各処理ユニットの定義を示す図である。H.264/AVCではマクロブロック(Macro Block:MB)と呼ばれる16×16ブロックで符号化が行われていたが、HEVCではそのサイズが例えば64×64ブロックのように、より大きいブロック単位で符号化が行われる特徴がある。前述のような、より大きいサイズでの符号化、予測、変換の処理は、特に高解像度での符号化効率改善に大きく寄与している。   FIG. 22 is a diagram showing the definition of each processing unit in the HEVC. H. In H.264 / AVC, encoding is performed in 16 × 16 blocks called macro blocks (MB), but in HEVC, encoding is performed in units of larger blocks such as 64 × 64 blocks. There are features to be performed. Encoding, prediction, and conversion processing at a larger size as described above greatly contributes to improvement of encoding efficiency particularly at high resolution.

HEVC ver.1は三種類のプロファイルから構成され、それぞれMain Profile、Main 10 Profile(10ビットの入力信号用)、Main Still Picture Profile(静止画用)となる。各プロファイルの入力画像信号はYUV4:2:0の色フォーマット(以下、4:2:0と称する)のみとなっている。4:2:0とは、輝度成分に対して色差成分のサンプリングが水平方向と垂直方向にそれぞれ半分に間引かれているフォーマットを示す。4:2:0以外にはYUV4:4:4フォーマット(輝度信号と色差信号のサンプリングが同じフォーマット、以下、4:4:4)やYUV4:2:2フォーマット(輝度信号に対して色差信号のサンプリングを水平方向のみ半分に間引くフォーマット、以下4:2:2と称する)があり、これらはプロフェッショナル向け映像編集や放送局の素材伝送に用いられる。色空間としては先に示したYUVフォーマット以外に、RGBフォーマットも存在する。RGBフォーマットはデジタルカメラや各種ディスプレイの出力などの映像再現において、幅広く利用されている。   HEVC ver. Reference numeral 1 is composed of three types of profiles, which are Main Profile, Main 10 Profile (for 10-bit input signal), and Main Still Picture Profile (for still image), respectively. The input image signal of each profile has only a YUV 4: 2: 0 color format (hereinafter referred to as 4: 2: 0). 4: 2: 0 indicates a format in which the sampling of the color difference component is thinned out in half in the horizontal direction and the vertical direction with respect to the luminance component. Other than 4: 2: 0, YUV4: 4: 4 format (format with same sampling of luminance signal and chrominance signal, hereinafter 4: 4: 4) and YUV4: 2: 2 format (chrominance signal with respect to luminance signal) There is a format in which sampling is thinned in half only in the horizontal direction (hereinafter referred to as 4: 2: 2), and these are used for professional video editing and broadcasting station material transmission. As a color space, there is an RGB format in addition to the YUV format described above. The RGB format is widely used in video reproduction such as output from digital cameras and various displays.

4:4:4と4:2:2、そしてRGB4:4:4データ(以下、RGB4:4:4と称する)にも対応するために、HEVC ver.2の標準化がver.1と並行して進められている。2014年1月に最終規格修正案(Final Draft AMendement:FDAM)が発行されるように、HEVC ver.1の約1年遅れで標準化が進められている。   In order to support 4: 4: 4, 4: 2: 2, and RGB4: 4: 4 data (hereinafter referred to as RGB4: 4: 4), HEVC ver. 2 standardization is ver. Progressed in parallel with 1. In order to issue a final draft amendment (FDAM) in January 2014, HEVC ver. Standardization is progressing about 1 year later.

HEVC ver.2の標準化に関して、特に色差信号の圧縮について高能率な符号化ツールが提案されている。例えば、CUないしはPU単位で予測後の残差信号に対して、復号済みの信号から色空間変換行列を導出し、色空間変換を行った後、その色空間変換後信号を符号化器に入力し、復号器で復号された色空間変換復号信号に対して逆色空間変換を施し、元の色空間に戻して出力する方式が提案されている。   HEVC ver. Regarding the standardization of No. 2, a highly efficient coding tool has been proposed particularly for compression of color difference signals. For example, for a residual signal after prediction in units of CU or PU, a color space conversion matrix is derived from the decoded signal, color space conversion is performed, and the color space converted signal is input to the encoder. Then, a method has been proposed in which inverse color space conversion is performed on the color space conversion decoded signal decoded by the decoder, and the signal is returned to the original color space and output.

この他にも、色差用のインループフィルタの改良方式やロスレス圧縮用のイントラ予測改良方式など、様々な符号化ツールが提案されている状況である。   In addition to this, various coding tools such as an improved in-loop filter for color difference and an improved intra prediction for lossless compression have been proposed.

Benjamin Bross, Woo-Jin Han, Jens-Rainer Ohm, Gary J. Sullivan, Ye-Kui Wang, Thomas Wiegand, “High efficiency video coding (HEVC) text specification draft 10 (for FDIS & Consent)”, JCTVC-L1003_v20.doc, Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11, pp.149-162, January 2013Benjamin Bross, Woo-Jin Han, Jens-Rainer Ohm, Gary J. Sullivan, Ye-Kui Wang, Thomas Wiegand, “High efficiency video coding (HEVC) text specification draft 10 (for FDIS & Consent)”, JCTVC-L1003_v20. doc, Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11, pp.149-162, January 2013 Kei Kawamura, Tomonobu Yoshino, and Sei Naito, “AHG7: In-loop color-space transformation of residual signals for range extensions”, JCTVC-L0371.doc, Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11, January 2013Kei Kawamura, Tomonobu Yoshino, and Sei Naito, “AHG7: In-loop color-space transformation of residual signals for range extensions”, JCTVC-L0371.doc, Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11, January 2013

ところで、非特許文献2に記載されているループ内での残差信号に対する色空間変換では、色空間変換を施す際に、予測残差エネルギーが0になる場合を除いて、特に制約を設けず、必ず色空間変換を適用していた。CUないしはPUなどのブロックによっては、色空間変換を適用しない方が符号化効率の観点から良い場合も存在する。そのような場合でも必ず色空間変換を適用するため、符号化効率の劣化を招く可能性もある。実際に、非特許文献2の実験データでは、一部の画像にて符号化効率の劣化が発生している。劣化が起きる画像では、特に色差成分で大きい劣化が発生している。   By the way, in the color space conversion for the residual signal in the loop described in Non-Patent Document 2, there is no particular restriction except when the prediction residual energy becomes 0 when performing the color space conversion. Always applied color space conversion. Depending on the block such as CU or PU, there is a case where it is better not to apply the color space conversion from the viewpoint of coding efficiency. Even in such a case, since the color space conversion is always applied, there is a possibility that the encoding efficiency is deteriorated. Actually, in the experimental data of Non-Patent Document 2, the encoding efficiency is degraded in some images. In an image in which deterioration occurs, large deterioration occurs particularly in the color difference component.

本発明は、このような事情に鑑みてなされたもので、色空間変換の適用を適応的にすることにより、符号化効率を改善することができる画像符号化方法、画像復号方法、画像符号化装置、画像復号装置、それらのプログラム並びにプログラムを記録した記録媒体を提供することを目的とする。   The present invention has been made in view of such circumstances, and an image encoding method, an image decoding method, and an image encoding that can improve encoding efficiency by adapting application of color space conversion. An object of the present invention is to provide a device, an image decoding device, a program thereof, and a recording medium on which the program is recorded.

本発明は、色空間変換を適用して画像を符号化する画像符号化装置が行う画像符号化方法であって、復号済み参照信号から前記色空間変換を行うための色空間変換マトリクスを計算するマトリクス計算ステップと、前記色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得ステップと、所定の閾値と前記固有値との大小関係に基づき、前記色空間変換を実行するか否かを判定する判定ステップと、前記判定の結果に応じて、前記色空間変換マトリクスの計算結果に基づく前記色空間変換を実行する色空間変換実行ステップとを有することを特徴とする。   The present invention is an image encoding method performed by an image encoding apparatus that encodes an image by applying color space conversion, and calculates a color space conversion matrix for performing the color space conversion from a decoded reference signal. A matrix calculation step, an eigenvalue acquisition step of acquiring an eigenvalue obtained in the process of calculating the color space conversion matrix, and whether or not to execute the color space conversion based on a magnitude relationship between a predetermined threshold and the eigenvalue A determination step for determining; and a color space conversion execution step for executing the color space conversion based on the calculation result of the color space conversion matrix according to the determination result.

本発明は、前記固有値取得ステップでは、複数の成分の固有値を取得し、前記判定ステップでは、前記複数の固有値の重み付き和を計算して、その重み付き和と所定の閾値との大小関係に基づいて、前記色空間変換を実行するか否かの判定を行うことを特徴とする。   According to the present invention, in the eigenvalue acquisition step, eigenvalues of a plurality of components are acquired, and in the determination step, a weighted sum of the plurality of eigenvalues is calculated, and the magnitude relationship between the weighted sum and a predetermined threshold is calculated. Based on this, it is determined whether or not to execute the color space conversion.

本発明は、前記固有値取得ステップでは、複数の成分の固有値を取得し、前記判定ステップでは、各成分に対応する固有値とその固有値に対応する所定の閾値との大小関係に基づき、前記色空間変換を実行するか否かの判定を行うことを特徴とする。   According to the present invention, in the eigenvalue acquisition step, eigenvalues of a plurality of components are acquired, and in the determination step, the color space conversion is performed based on a magnitude relationship between an eigenvalue corresponding to each component and a predetermined threshold corresponding to the eigenvalue. It is characterized by determining whether to execute.

本発明は、色空間変換を適用して画像を符号化する画像符号化装置が行う画像符号化方法であって、復号済み参照信号から前記色空間変換を行うための色空間変換マトリクスを計算するマトリクス計算ステップと、前記色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算ステップと、所定の閾値と前記距離との大小関係に基づき、前記色空間変換を実行するか否かを判定する判定ステップと、前記判定の結果に応じて、前記色空間変換マトリクスの計算結果に基づく前記色空間変換を実行する色空間変換実行ステップとを有することを特徴とする。   The present invention is an image encoding method performed by an image encoding apparatus that encodes an image by applying color space conversion, and calculates a color space conversion matrix for performing the color space conversion from a decoded reference signal. A matrix calculation step, a distance calculation step for calculating a distance between the color space conversion matrix and a predetermined reference matrix, and whether or not to execute the color space conversion based on a magnitude relationship between a predetermined threshold and the distance. A determination step for determining; and a color space conversion execution step for executing the color space conversion based on the calculation result of the color space conversion matrix according to the determination result.

本発明は、色空間変換を適用して画像を符号化する画像符号化装置が行う画像符号化方法であって、復号済み参照信号から前記色空間変換を行うための色空間変換マトリクスを計算するマトリクス計算ステップと、前記色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得ステップと、前記色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算ステップと、前記固有値と、前記距離と、所定の閾値を用いて前記色空間変換を実行するか否かを判定する判定ステップと、前記判定の結果に応じて、前記色空間変換マトリクスの計算結果に基づく前記色空間変換を実行する色空間変換実行ステップとを有することを特徴とする。   The present invention is an image encoding method performed by an image encoding apparatus that encodes an image by applying color space conversion, and calculates a color space conversion matrix for performing the color space conversion from a decoded reference signal. A matrix calculation step, an eigenvalue acquisition step of acquiring an eigenvalue obtained in the process of calculating the color space conversion matrix, a distance calculation step of calculating a distance between the color space conversion matrix and a predetermined reference matrix, and the eigenvalue A determination step for determining whether or not to execute the color space conversion using the distance and a predetermined threshold; and the color space conversion based on a calculation result of the color space conversion matrix according to the determination result And a color space conversion executing step for executing.

本発明は、所定の閾値を符号化して伝送することを特徴とする。   The present invention is characterized in that a predetermined threshold is encoded and transmitted.

本発明は、逆色空間変換を適用して符号化データを復号する画像復号装置が行う画像復号方法であって、復号済み参照信号から前記逆色空間変換を行うための逆色空間変換マトリクスを計算するマトリクス計算ステップと、前記逆色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得ステップと、所定の閾値と前記固有値との大小関係に基づき、前記逆色空間変換を実行するか否かを判定する判定ステップと、前記判定の結果に応じて、前記逆色空間変換マトリクスの計算結果に基づく前記逆色空間変換を実行する逆色空間変換実行ステップとを有することを特徴とする。   The present invention is an image decoding method performed by an image decoding apparatus that decodes encoded data by applying an inverse color space conversion, wherein an inverse color space conversion matrix for performing the inverse color space conversion from a decoded reference signal is provided. The inverse color space conversion is executed based on a matrix calculation step for calculating, an eigenvalue acquisition step for acquiring an eigenvalue obtained in the process of calculating the inverse color space conversion matrix, and a magnitude relationship between a predetermined threshold and the eigenvalue. A determination step of determining whether or not and a reverse color space conversion execution step of executing the reverse color space conversion based on the calculation result of the reverse color space conversion matrix according to the determination result To do.

本発明は、前記固有値取得ステップでは、複数の成分の固有値を取得し、前記判定ステップでは、前記複数の固有値の重み付き和を計算して、その重み付き和と所定の閾値との大小関係に基づいて、前記逆色空間変換を実行するか否かの判定を行うことを特徴とする。   According to the present invention, in the eigenvalue acquisition step, eigenvalues of a plurality of components are acquired, and in the determination step, a weighted sum of the plurality of eigenvalues is calculated, and the magnitude relationship between the weighted sum and a predetermined threshold is calculated. Based on this, it is determined whether or not to perform the inverse color space conversion.

本発明は、前記固有値取得ステップでは、複数の成分の固有値を取得し、前記判定ステップでは、各成分に対応する固有値とその固有値に対応する所定の閾値との大小関係に基づき、前記逆色空間変換を実行するか否かの判定を行うことを特徴とする。   According to the present invention, in the eigenvalue acquisition step, eigenvalues of a plurality of components are acquired, and in the determination step, the inverse color space is based on a magnitude relationship between an eigenvalue corresponding to each component and a predetermined threshold corresponding to the eigenvalue. It is characterized by determining whether or not to execute conversion.

本発明は、逆色空間変換を適用して符号化データを復号する画像復号装置が行う画像復号方法であって、復号済み参照信号から前記逆色空間変換を行うための逆色空間変換マトリクスを計算するマトリクス計算ステップと、前記逆色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算ステップと、所定の閾値と前記距離との大小関係に基づき、前記逆色空間変換を実行するか否かを判定する判定ステップと、前記判定の結果に応じて、前記逆色空間変換マトリクスの計算結果に基づく前記逆色空間変換を実行する逆色空間変換実行ステップとを有することを特徴とする。   The present invention is an image decoding method performed by an image decoding apparatus that decodes encoded data by applying an inverse color space conversion, wherein an inverse color space conversion matrix for performing the inverse color space conversion from a decoded reference signal is provided. The inverse color space conversion is executed based on a matrix calculation step for calculating, a distance calculation step for calculating a distance between the inverse color space conversion matrix and a predetermined reference matrix, and a magnitude relationship between a predetermined threshold and the distance. A determination step of determining whether or not and a reverse color space conversion execution step of executing the reverse color space conversion based on the calculation result of the reverse color space conversion matrix according to the determination result To do.

本発明は、逆色空間変換を適用して符号化データを復号する画像復号装置が行う画像復号方法であって、復号済み参照信号から前記逆色空間変換を行うための逆色空間変換マトリクスを計算するマトリクス計算ステップと、前記逆色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得ステップと、前記逆色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算ステップと、前記固有値と、前記距離と、所定の閾値を用いて前記逆色空間変換を実行するか否かを判定する判定ステップと、前記判定の結果に応じて、前記逆色空間変換マトリクスの計算結果に基づく前記逆色空間変換を実行する逆色空間変換実行ステップとを有することを特徴とする。   The present invention is an image decoding method performed by an image decoding apparatus that decodes encoded data by applying an inverse color space conversion, wherein an inverse color space conversion matrix for performing the inverse color space conversion from a decoded reference signal is provided. A matrix calculation step for calculating, an eigenvalue acquisition step for acquiring an eigenvalue obtained in the process of calculating the inverse color space conversion matrix, and a distance calculation step for calculating a distance between the inverse color space conversion matrix and a predetermined reference matrix; A determination step of determining whether to perform the inverse color space conversion using the eigenvalue, the distance, and a predetermined threshold; and a calculation result of the inverse color space conversion matrix according to the determination result And a reverse color space conversion execution step for executing the reverse color space conversion based on the above.

本発明は、所定の閾値をビットストリームから復号して設定することを特徴とする。   The present invention is characterized in that a predetermined threshold value is set by decoding from a bit stream.

本発明は、色空間変換を適用して画像を符号化する画像符号化装置であって、復号済み参照信号から前記色空間変換を行うための色空間変換マトリクスを計算するマトリクス計算手段と、前記色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得手段と、所定の閾値と前記固有値との大小関係に基づき、前記色空間変換を実行するか否かを判定する判定手段と、前記判定の結果に応じて、前記色空間変換マトリクスの計算結果に基づく前記色空間変換を実行する色空間変換実行手段とを備えることを特徴とする。   The present invention is an image encoding device that encodes an image by applying color space conversion, matrix calculation means for calculating a color space conversion matrix for performing the color space conversion from a decoded reference signal, and Eigenvalue acquisition means for acquiring eigenvalues obtained in the process of calculating a color space conversion matrix, and determination means for determining whether or not to execute the color space conversion based on a magnitude relationship between a predetermined threshold value and the eigenvalues; And color space conversion executing means for executing the color space conversion based on the calculation result of the color space conversion matrix according to the result of the determination.

本発明は、前記固有値取得手段は、複数の成分の固有値を取得し、前記判定手段は、前記複数の固有値の重み付き和を計算して、その重み付き和と所定の閾値との大小関係に基づいて、前記色空間変換を実行するか否かの判定を行うことを特徴とする。   In the present invention, the eigenvalue acquisition unit acquires eigenvalues of a plurality of components, and the determination unit calculates a weighted sum of the plurality of eigenvalues, and determines a magnitude relationship between the weighted sum and a predetermined threshold value. Based on this, it is determined whether or not to execute the color space conversion.

本発明は、前記固有値取得手段は、複数の成分の固有値を取得し、前記判定手段は、各成分に対応する固有値とその固有値に対応する所定の閾値との大小関係に基づき、前記色空間変換を実行するか否かの判定を行うことを特徴とする。   In the present invention, the eigenvalue acquisition unit acquires eigenvalues of a plurality of components, and the determination unit performs the color space conversion based on a magnitude relationship between an eigenvalue corresponding to each component and a predetermined threshold corresponding to the eigenvalue. It is characterized by determining whether to execute.

本発明は、色空間変換を適用して画像を符号化する画像符号化装置であって、復号済み参照信号から前記色空間変換を行うための色空間変換マトリクスを計算するマトリクス計算手段と、前記色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算手段と、所定の閾値と前記距離との大小関係に基づき、前記色空間変換を実行するか否かを判定する判定手段と、前記判定の結果に応じて、前記色空間変換マトリクスの計算結果に基づく前記色空間変換を実行する色空間変換実行手段とを備えることを特徴とする。   The present invention is an image encoding device that encodes an image by applying color space conversion, matrix calculation means for calculating a color space conversion matrix for performing the color space conversion from a decoded reference signal, and Distance calculating means for calculating the distance between the color space conversion matrix and a predetermined reference matrix; and determining means for determining whether or not to execute the color space conversion based on a magnitude relationship between a predetermined threshold and the distance; And color space conversion executing means for executing the color space conversion based on the calculation result of the color space conversion matrix according to the result of the determination.

本発明は、色空間変換を適用して画像を符号化する画像符号化装置であって、復号済み参照信号から前記色空間変換を行うための色空間変換マトリクスを計算するマトリクス計算手段と、前記色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得手段と、前記色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算手段と、前記固有値と、前記距離と、所定の閾値を用いて前記色空間変換を実行するか否かを判定する判定手段と、前記判定の結果に応じて、前記色空間変換マトリクスの計算結果に基づく前記色空間変換を実行する色空間変換実行手段とを備えることを特徴とする。   The present invention is an image encoding device that encodes an image by applying color space conversion, matrix calculation means for calculating a color space conversion matrix for performing the color space conversion from a decoded reference signal, and Eigenvalue acquisition means for acquiring eigenvalues obtained in the process of calculating the color space conversion matrix, distance calculation means for calculating a distance between the color space conversion matrix and a predetermined reference matrix, the eigenvalue, the distance, and a predetermined distance Determination means for determining whether or not to execute the color space conversion using a threshold value of the color space, and color space conversion for executing the color space conversion based on the calculation result of the color space conversion matrix according to the determination result Execution means.

本発明は、所定の閾値を符号化して伝送することを特徴とする。   The present invention is characterized in that a predetermined threshold is encoded and transmitted.

本発明は、逆色空間変換を適用して符号化データを復号する画像復号装置であって、復号済み参照信号から前記逆色空間変換を行うための逆色空間変換マトリクスを計算するマトリクス計算手段と、前記逆色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得手段と、所定の閾値と前記固有値との大小関係に基づき、前記逆色空間変換を実行するか否かを判定する判定手段と、前記判定の結果に応じて、前記逆色空間変換マトリクスの計算結果に基づく前記逆色空間変換を実行する逆色空間変換実行手段とを備えることを特徴とする。   The present invention is an image decoding apparatus for decoding encoded data by applying inverse color space conversion, and matrix calculation means for calculating an inverse color space conversion matrix for performing the inverse color space conversion from a decoded reference signal And eigenvalue acquisition means for acquiring eigenvalues obtained in the process of calculating the inverse color space conversion matrix, and determining whether or not to perform the inverse color space conversion based on a magnitude relationship between a predetermined threshold and the eigenvalue And a reverse color space conversion executing means for executing the reverse color space conversion based on the calculation result of the reverse color space conversion matrix according to the determination result.

本発明は、前記固有値取得手段は、複数の成分の固有値を取得し、前記判定手段は、前記複数の固有値の重み付き和を計算して、その重み付き和と所定の閾値との大小関係に基づいて、前記逆色空間変換を実行するか否かの判定を行うことを特徴とする。   In the present invention, the eigenvalue acquisition unit acquires eigenvalues of a plurality of components, and the determination unit calculates a weighted sum of the plurality of eigenvalues, and determines a magnitude relationship between the weighted sum and a predetermined threshold value. Based on this, it is determined whether or not to perform the inverse color space conversion.

本発明は、前記固有値取得手段は、複数の成分の固有値を取得し、前記判定手段は、各成分に対応する固有値とその固有値に対応する所定の閾値との大小関係に基づき、前記逆色空間変換を実行するか否かの判定を行うことを特徴とする。   In the present invention, the eigenvalue acquisition unit acquires eigenvalues of a plurality of components, and the determination unit determines the inverse color space based on a magnitude relationship between an eigenvalue corresponding to each component and a predetermined threshold corresponding to the eigenvalue. It is characterized by determining whether or not to execute conversion.

本発明は、逆色空間変換を適用して符号化データを復号する画像復号装置であって、復号済み参照信号から前記逆色空間変換を行うための逆色空間変換マトリクスを計算するマトリクス計算手段と、前記逆色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算手段と、所定の閾値と前記距離との大小関係に基づき、前記逆色空間変換を実行するか否かを判定する判定手段と、前記判定の結果に応じて、前記逆色空間変換マトリクスの計算結果に基づく前記逆色空間変換を実行する逆色空間変換実行手段とを備えることを特徴とする。   The present invention is an image decoding apparatus for decoding encoded data by applying inverse color space conversion, and matrix calculation means for calculating an inverse color space conversion matrix for performing the inverse color space conversion from a decoded reference signal And a distance calculating means for calculating a distance between the inverse color space conversion matrix and a predetermined reference matrix, and determining whether to execute the inverse color space conversion based on a magnitude relationship between a predetermined threshold and the distance And a reverse color space conversion executing means for executing the reverse color space conversion based on the calculation result of the reverse color space conversion matrix according to the determination result.

本発明は、逆色空間変換を適用して符号化データを復号する画像復号装置であって、復号済み参照信号から前記逆色空間変換を行うための逆色空間変換マトリクスを計算するマトリクス計算手段と、前記逆色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得手段と、前記逆色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算手段と、前記固有値と、前記距離と、所定の閾値を用いて前記逆色空間変換を実行するか否かを判定する判定手段と、前記判定の結果に応じて、前記逆色空間変換マトリクスの計算結果に基づく前記逆色空間変換を実行する逆色空間変換実行手段とを備えることを特徴とする。   The present invention is an image decoding apparatus for decoding encoded data by applying inverse color space conversion, and matrix calculation means for calculating an inverse color space conversion matrix for performing the inverse color space conversion from a decoded reference signal Eigenvalue acquisition means for acquiring eigenvalues obtained in the process of calculating the inverse color space conversion matrix, distance calculation means for calculating a distance between the inverse color space conversion matrix and a predetermined reference matrix, and the eigenvalues; A determination unit configured to determine whether to perform the reverse color space conversion using the distance and a predetermined threshold; and the reverse color based on the calculation result of the reverse color space conversion matrix according to the determination result. Inverse color space conversion executing means for executing space conversion is provided.

本発明は、所定の閾値をビットストリームから復号して設定することを特徴とする。   The present invention is characterized in that a predetermined threshold value is set by decoding from a bit stream.

本発明は、コンピュータに、前記画像符号化方法を実行させるための画像符号化プログラムである。   The present invention is an image encoding program for causing a computer to execute the image encoding method.

本発明は、コンピュータに、前記画像復号方法を実行させるための画像復号プログラムである。   The present invention is an image decoding program for causing a computer to execute the image decoding method.

本発明は、前記画像符号化プログラムを記録したコンピュータ読み取り可能な記録媒体である。   The present invention is a computer-readable recording medium on which the image encoding program is recorded.

本発明は、前記画像復号プログラムを記録したコンピュータ読み取り可能な記録媒体である。   The present invention is a computer-readable recording medium on which the image decoding program is recorded.

この発明によれば、色空間変換を用いる符号化および復号において、符号化中のパラメータないしは色空間変換処理において得られるパラメータを利用して、色空間変換を利用すべきか否かの判定を行い、適応的に色空間変換を行うことで符号化効率の改善および処理の高速化を実現できるという効果が得られる。   According to the present invention, in encoding and decoding using color space conversion, it is determined whether to use color space conversion by using a parameter being encoded or a parameter obtained in color space conversion processing. By performing color space conversion adaptively, it is possible to achieve the effect of improving the coding efficiency and speeding up the processing.

本発明の第1の実施形態における画像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image coding apparatus in the 1st Embodiment of this invention. 本発明の第1の実施形態における画像復号装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image decoding apparatus in the 1st Embodiment of this invention. 図1に示す色空間変換処理部104の構成例を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration example of a color space conversion processing unit 104 illustrated in FIG. 1. 図3に示す色空間変換処理部104が行う色空間変換処理の動作を示すフローチャートである。4 is a flowchart illustrating an operation of color space conversion processing performed by a color space conversion processing unit 104 illustrated in FIG. 3. 図1に示す逆色空間変換処理部109及び図2に示す逆色空間変換処理部206の構成例を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration example of an inverse color space conversion processing unit 109 illustrated in FIG. 1 and an inverse color space conversion processing unit 206 illustrated in FIG. 2. 図5に示す逆色空間変換処理部109が行う逆色空間変換処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the reverse color space conversion process which the reverse color space conversion process part 109 shown in FIG. 5 performs. 第2の実施形態における色空間変換処理部104’の構成を示すブロック図である。It is a block diagram which shows the structure of the color space conversion process part 104 'in 2nd Embodiment. 色空間変換の実施有無に関する判定処理を示す説明図である。It is explanatory drawing which shows the determination process regarding the presence or absence of color space conversion implementation. 図7に示す色空間変換処理部104’が行う色空間変換処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the color space conversion process which the color space conversion process part 104 'shown in FIG. 7 performs. 第2の実施形態における逆色空間変換処理部109’及び逆色空間変換処理部206’の構成例を示すブロック図である。It is a block diagram which shows the structural example of the reverse color space conversion process part 109 'and reverse color space conversion process part 206' in 2nd Embodiment. 図10に示す逆色空間変換処理部109’が行う逆色空間変換処理の動作を示すフローチャートである。11 is a flowchart illustrating an operation of a reverse color space conversion process performed by a reverse color space conversion processing unit 109 ′ illustrated in FIG. 10. 第3の実施形態における色空間変換処理部104’’の構成を示すブロック図である。It is a block diagram which shows the structure of the color space conversion process part 104 '' in 3rd Embodiment. 図12に示す色空間変換処理部104’’が行う色空間変換処理の動作を示すフローチャートである。13 is a flowchart illustrating an operation of color space conversion processing performed by a color space conversion processing unit 104 ″ illustrated in FIG. 第3の実施形態における逆色空間変換処理部109’’及び逆色空間変換処理部206’’の構成例を示すブロック図である。FIG. 10 is a block diagram illustrating a configuration example of an inverse color space conversion processing unit 109 ″ and an inverse color space conversion processing unit 206 ″ according to a third embodiment. 図14に示す逆色空間変換処理部109’’が行う逆色空間変換処理の動作を示すフローチャートである。15 is a flowchart showing an operation of a reverse color space conversion process performed by a reverse color space conversion processing unit 109 '' shown in FIG. 第4の実施形態における色空間変換処理部104’’’の構成を示すブロック図である。It is a block diagram which shows the structure of the color space conversion process part 104 "'in 4th Embodiment. 図16に示す色空間変換処理部104’’’が行う色空間変換処理の動作を示すフローチャートである。FIG. 17 is a flowchart illustrating an operation of color space conversion processing performed by a color space conversion processing unit 104 ″ ″ illustrated in FIG. 16. 第4の実施形態における逆色空間変換処理部109’’’及び逆色空間変換処理部206’’’の構成例を示すブロック図である。It is a block diagram which shows the structural example of the reverse color space conversion process part 109 "" and reverse color space conversion process part 206 "" in 4th Embodiment. 図18に示す逆色空間変換処理部109’’’が行う逆色空間変換処理の動作を示すフローチャートである。FIG. 19 is a flowchart illustrating an operation of a reverse color space conversion process performed by a reverse color space conversion processing unit 109 ″ ″ illustrated in FIG. 18. コンピュータとソフトウエアプログラムとによって動画像符号化装置を構成する場合のハードウェア構成を示す図である。It is a figure which shows the hardware constitutions in the case of comprising a moving image encoder by a computer and a software program. コンピュータとソフトウエアプログラムとによって動画像復号装置を構成する場合のハードウェア構成を示す図である。It is a figure which shows the hardware constitutions in the case of comprising a moving image decoding apparatus with a computer and a software program. HEVCにおける各処理ユニットの定義を示す図である。It is a figure which shows the definition of each processing unit in HEVC.

<第1の実施形態>
以下、図面を参照して、本発明の第1の実施形態による画像符号化装置及び画像復号装置を説明する。図1は、同実施形態における画像符号化装置の構成を示すブロック図である。画像符号化装置100は、符号化対象の入力映像信号を入力し、入力映像信号の各フレームを複数のブロックに分割してブロックごとに符号化し、符号化結果のビットストリームを符号化ストリームとして出力する。なお、画像とは、静止画像、動画像、映像を含むものである。
<First Embodiment>
Hereinafter, an image encoding device and an image decoding device according to a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a configuration of an image encoding device according to the embodiment. The image encoding device 100 receives an input video signal to be encoded, divides each frame of the input video signal into a plurality of blocks, encodes each block, and outputs a bit stream of the encoding result as an encoded stream To do. The image includes a still image, a moving image, and a video.

画像符号化装置100は、図1に示すように、イントラ予測処理部101、インター予測処理部102、予測残差信号生成部103、色空間変換処理部104、直交変換処理部105、量子化処理部106、逆量子化処理部107、逆直交変換処理部108、逆色空間変換処理部109、復号信号生成部110、フレームメモリ111、ループ内フィルタ処理部112、フレームバッファ113、インター予測情報格納部114、イントラ予測情報格納部115、色空間変換マトリクス計算部116、及びエントロピー符号化処理部117を備えている。   As illustrated in FIG. 1, the image encoding device 100 includes an intra prediction processing unit 101, an inter prediction processing unit 102, a prediction residual signal generation unit 103, a color space conversion processing unit 104, an orthogonal transformation processing unit 105, and a quantization process. Unit 106, inverse quantization processing unit 107, inverse orthogonal transform processing unit 108, inverse color space transform processing unit 109, decoded signal generation unit 110, frame memory 111, in-loop filter processing unit 112, frame buffer 113, inter prediction information storage Section 114, intra prediction information storage section 115, color space conversion matrix calculation section 116, and entropy encoding processing section 117.

図1に示す画像符号化装置100においては、色空間変換処理部104及び逆色空間変換処理部109が特徴的な構成である。他の各機能部は、H.264/AVC及びHEVCなどのエンコーダとして用いられている一般的な画像符号化装置が備える機能部と同等である。なお、ループ内フィルタ処理部112は、HEVCに採用されているデブロッキングフィルタ(Deblocking Filter:DF)とサンプルアダプティブオフセット(Sample Adaptive Offset:SAO)といった複数のループ内フィルタ処理を包含してもよい。HEVCの策定中に提案されていたアダプティブループフィルタ(Adaptive Loop Filter:ALF)と呼ばれる符号化ノイズを除去するループ内フィルタもこのループ内フィルタ処理部112に含めてもよい。   In the image encoding device 100 shown in FIG. 1, a color space conversion processing unit 104 and an inverse color space conversion processing unit 109 are characteristic configurations. The other functional units are H.264. It is equivalent to a functional unit included in a general image encoding device used as an encoder such as H.264 / AVC and HEVC. Note that the in-loop filter processing unit 112 may include a plurality of in-loop filter processes such as a deblocking filter (DF) and a sample adaptive offset (SAO) employed in HEVC. An in-loop filter called adaptive loop filter (ALF), which is proposed during HEVC formulation, for removing coding noise may be included in the in-loop filter processing unit 112.

イントラ予測処理部101は、フレームメモリ111から出力される復号信号に基づき、予測信号を生成する。また、イントラ予測処理部101は、復号信号と入力映像信号に基づき、コスト計算を行って予測モードなどを含むイントラ予測情報を生成し、生成したイントラ予測情報をイントラ予測情報格納部115に記憶させて格納する。インター予測処理部102は、入力映像信号と、フレームバッファ113から出力される参照画像(ループ内フィルタ後の復号信号)とを入力する。インター予測処理部102は、入力映像信号と参照画像とに基づいて、動きベクトルを決定し、予測信号を生成する。また、インター予測処理部102は、得られた動きベクトルを含むインター予測情報を生成し、生成したインター予測情報をインター予測情報格納部114に記憶させて格納する。   The intra prediction processing unit 101 generates a prediction signal based on the decoded signal output from the frame memory 111. Also, the intra prediction processing unit 101 performs cost calculation based on the decoded signal and the input video signal, generates intra prediction information including a prediction mode, and stores the generated intra prediction information in the intra prediction information storage unit 115. Store. The inter prediction processing unit 102 receives the input video signal and the reference image (decoded signal after the in-loop filter) output from the frame buffer 113. The inter prediction processing unit 102 determines a motion vector based on the input video signal and the reference image, and generates a prediction signal. Also, the inter prediction processing unit 102 generates inter prediction information including the obtained motion vector, and stores the generated inter prediction information in the inter prediction information storage unit 114 for storage.

予測残差信号生成部103は、入力映像信号と、イントラ予測処理部101あるいはインター予測処理部102から出力される予測信号との差分を算出する。予測残差信号生成部103は、算出した差分を予測残差信号として色空間変換処理部104に出力する。色空間変換処理部104は、予測残差信号生成部103から入力された予測残差信号に対して、色空間変換マトリクス計算部116で得られた色空間変換マトリクスを用いて色空間変換を実施する。色空間変換処理部104は、色空間変換後係数値を直交変換処理部105に出力する。   The prediction residual signal generation unit 103 calculates a difference between the input video signal and a prediction signal output from the intra prediction processing unit 101 or the inter prediction processing unit 102. The prediction residual signal generation unit 103 outputs the calculated difference to the color space conversion processing unit 104 as a prediction residual signal. The color space conversion processing unit 104 performs color space conversion on the prediction residual signal input from the prediction residual signal generation unit 103 using the color space conversion matrix obtained by the color space conversion matrix calculation unit 116. To do. The color space conversion processing unit 104 outputs the coefficient value after color space conversion to the orthogonal transformation processing unit 105.

直交変換処理部105は、色空間変換処理部104から入力した色空間変換後係数値に対してDCT等の直交変換を行う。DCTに限らず、H.264/AVCやHEVCで用いられている整数変換でもよい。直交変換処理部105は、直交変換により得られた直交変換係数値を量子化処理部106に出力する。量子化処理部106は、直交変換処理部105から入力した直交変換係数値を量子化し、量子化係数値を逆量子化処理部107とエントロピー符号化処理部117とに出力する。   The orthogonal transformation processing unit 105 performs orthogonal transformation such as DCT on the coefficient value after color space transformation input from the color space transformation processing unit 104. Not only DCT but also H.264. The integer conversion used in H.264 / AVC and HEVC may be used. The orthogonal transform processing unit 105 outputs the orthogonal transform coefficient value obtained by the orthogonal transform to the quantization processing unit 106. The quantization processing unit 106 quantizes the orthogonal transformation coefficient value input from the orthogonal transformation processing unit 105 and outputs the quantization coefficient value to the inverse quantization processing unit 107 and the entropy coding processing unit 117.

逆量子化処理部107は、量子化処理部106から入力した量子化係数値を逆量子化して逆直交変換処理部108に出力する。逆直交変換処理部108は、逆量子化処理部107から入力した量子化係数値を逆直交変換する。逆直交変換処理部108は、逆直交変換により得られた復号色空間変換後係数値を逆色空間変換処理部109に出力する。   The inverse quantization processing unit 107 performs inverse quantization on the quantization coefficient value input from the quantization processing unit 106 and outputs the result to the inverse orthogonal transform processing unit 108. The inverse orthogonal transform processing unit 108 performs inverse orthogonal transform on the quantization coefficient value input from the inverse quantization processing unit 107. The inverse orthogonal transform processing unit 108 outputs the decoded color space post-conversion coefficient value obtained by the inverse orthogonal transform to the inverse color space conversion processing unit 109.

逆色空間変換処理部109は、逆直交変換処理部108から入力した復号色空間変換後係数値と、色空間変換マトリクス計算部116から得られる逆色空間変換マトリクスとを入力して、逆色空間変換を実施する。逆色空間変換により得られる予測残差復号信号を復号信号生成部110に出力する。復号信号生成部110は、逆色空間変換処理部109から入力した予測残差復号信号と、イントラ予測処理部101あるいはインター予測処理部102が出力する予測信号とを加算する。復号信号生成部110は、加算結果を復号信号としてフレームメモリ111に記憶する。この復号信号は、イントラ予測処理部101あるいはインター予測処理部102において参照画像として用いる。   The inverse color space conversion processing unit 109 inputs the decoded color space post-conversion coefficient value input from the inverse orthogonal conversion processing unit 108 and the inverse color space conversion matrix obtained from the color space conversion matrix calculation unit 116, Perform spatial transformation. The prediction residual decoded signal obtained by the inverse color space conversion is output to the decoded signal generation unit 110. The decoded signal generation unit 110 adds the prediction residual decoded signal input from the inverse color space conversion processing unit 109 and the prediction signal output from the intra prediction processing unit 101 or the inter prediction processing unit 102. The decoded signal generation unit 110 stores the addition result in the frame memory 111 as a decoded signal. This decoded signal is used as a reference image in the intra prediction processing unit 101 or the inter prediction processing unit 102.

フレームメモリ111は、復号信号生成部110が生成し出力した復号信号を記憶する。記憶した復号信号をループ内フィルタ処理部112へ出力する。同様に、色空間変換に必要となる色空間変換マトリクスを生成するためにループ内フィルタ後復号信号を色空間変換マトリクス計算部116へ出力する。ループ内フィルタ処理部112は、フレームメモリ111に記憶されている復号信号を読み出し、読み出した復号信号に対してループ内フィルタ処理を行う。例えば、DFないしはSAO、その両者を実施する。別途ALFなどの他のループ内フィルタを施してもよい。ループ内フィルタ後復号信号をフレームバッファ113へ出力する。   The frame memory 111 stores the decoded signal generated and output by the decoded signal generation unit 110. The stored decoded signal is output to the in-loop filter processing unit 112. Similarly, in-loop filtered decoded signals are output to the color space conversion matrix calculator 116 in order to generate a color space conversion matrix necessary for color space conversion. The in-loop filter processing unit 112 reads the decoded signal stored in the frame memory 111 and performs an in-loop filter process on the read decoded signal. For example, DF and / or SAO are implemented. Another in-loop filter such as ALF may be separately applied. The decoded signal after in-loop filtering is output to the frame buffer 113.

フレームバッファ113は、ループ内フィルタ後復号信号を参照画像としてインター予測処理部102に出力する。同様に、色空間変換に必要となる色空間変換マトリクスを生成するためにループ内フィルタ後復号信号を色空間変換マトリクス計算部116へ出力する。インター予測情報格納部114は、インター予測処理部102が生成したインター予測情報を記憶する。イントラ予測情報格納部115は、イントラ予測処理部101が生成したイントラ予測情報を記憶する。それぞれ記憶した予測情報をエントロピー符号化処理部117へ出力する。   The frame buffer 113 outputs the intra-loop filtered decoded signal to the inter prediction processing unit 102 as a reference image. Similarly, in-loop filtered decoded signals are output to the color space conversion matrix calculator 116 in order to generate a color space conversion matrix necessary for color space conversion. The inter prediction information storage unit 114 stores the inter prediction information generated by the inter prediction processing unit 102. The intra prediction information storage unit 115 stores the intra prediction information generated by the intra prediction processing unit 101. The stored prediction information is output to the entropy encoding processing unit 117.

色空間変換マトリクス計算部116は、イントラ予測時についてはフレームメモリ111から復号信号を入力し、インター予測時にはフレームバッファ113から復号信号を入力し、得られた復号信号から主成分分析を実施して、色空間変換に必要な色空間変換マトリクスを計算する。逆色空間変換マトリクスは色空間変換マトリクスと転置行列の関係である。得られた色空間変換マトリクス及び逆色空間変換マトリクスを色空間変換処理部104及び逆色空間変換処理部109へそれぞれ出力する。   The color space conversion matrix calculation unit 116 inputs a decoded signal from the frame memory 111 at the time of intra prediction, inputs a decoded signal from the frame buffer 113 at the time of inter prediction, and performs principal component analysis from the obtained decoded signal. The color space conversion matrix necessary for the color space conversion is calculated. The inverse color space conversion matrix is a relationship between a color space conversion matrix and a transposed matrix. The obtained color space conversion matrix and reverse color space conversion matrix are output to the color space conversion processing unit 104 and the reverse color space conversion processing unit 109, respectively.

エントロピー符号化処理部117は、量子化処理部106から出力される量子化係数値と、インター予測情報格納部114に格納されているインター予測情報と、イントラ予測情報格納部115に格納されているイントラ予測情報とをエントロピー符号化し、符号化ストリームとして出力する。画像符号化装置100は、前述の各機能部を備えることにより、入力映像信号の各フレームを複数のブロックに分割し、色空間変換を伴ったブロックベースの予測符号化を行い、入力映像信号を符号化して得られた符号化ストリームを出力する。   The entropy encoding processing unit 117 stores the quantization coefficient value output from the quantization processing unit 106, the inter prediction information stored in the inter prediction information storage unit 114, and the intra prediction information storage unit 115. The intra prediction information is entropy encoded and output as an encoded stream. The image encoding apparatus 100 includes the above-described functional units, thereby dividing each frame of the input video signal into a plurality of blocks, performing block-based predictive encoding with color space conversion, and converting the input video signal to An encoded stream obtained by encoding is output.

図2は、第1の実施形態における画像復号装置200の構成を示すブロック図である。画像復号装置200は、図1に示した画像符号化装置100などにより符号化されて出力される符号化ストリームを入力し、符号化ストリームを復号することにより復号画像である復号映像信号を出力する。   FIG. 2 is a block diagram illustrating a configuration of the image decoding device 200 according to the first embodiment. The image decoding apparatus 200 receives an encoded stream that is encoded and output by the image encoding apparatus 100 shown in FIG. 1, and outputs a decoded video signal that is a decoded image by decoding the encoded stream. .

画像復号装置200は、図2に示すように、エントロピー復号処理部201、イントラ予測処理部202、インター予測処理部203、逆量子化処理部204、逆直交変換処理部205、逆色空間変換処理部206、復号信号生成部207、フレームメモリ208、ループ内フィルタ処理部209、フレームバッファ210、インター予測情報格納部211、イントラ予測情報格納部212、及び色空間変換マトリクス計算部213を備えている。   As shown in FIG. 2, the image decoding apparatus 200 includes an entropy decoding processing unit 201, an intra prediction processing unit 202, an inter prediction processing unit 203, an inverse quantization processing unit 204, an inverse orthogonal transform processing unit 205, an inverse color space conversion process. Unit 206, decoded signal generation unit 207, frame memory 208, in-loop filter processing unit 209, frame buffer 210, inter prediction information storage unit 211, intra prediction information storage unit 212, and color space conversion matrix calculation unit 213. .

図2に示す画像復号装置200においては、逆色空間変換処理部206が特徴的な構成である。他の各機能部は、H.264/AVC及びHEVCなどのデコーダとして用いられる一般的な画像復号装置が備える構成と同等である。   In the image decoding apparatus 200 shown in FIG. 2, the inverse color space conversion processing unit 206 has a characteristic configuration. The other functional units are H.264. The configuration is the same as that of a general image decoding device used as a decoder such as H.264 / AVC and HEVC.

エントロピー復号処理部201は、符号化ストリームを入力し、入力した符号化ストリームから復号対象ブロックの量子化係数値をエントロピー復号するとともに、イントラ予測に関するイントラ予測情報及びインター予測に関するインター予測情報をエントロピー復号する。また、エントロピー復号処理部201は、量子化係数値を逆量子化処理部204に出力し、インター予測情報をインター予測情報格納部211に記憶させて格納し、イントラ予測情報をイントラ予測情報格納部212に記憶させて格納する。イントラ予測処理部202は、フレームメモリ208に記憶される復号信号を参照画像として読み出す。また、イントラ予測処理部202は、イントラ予測情報格納部212からイントラ予測情報を読み出す。そして、イントラ予測処理部202は、読み出した参照画像と、読み出したイントラ予測情報とに基づいて、予測信号を生成する。   The entropy decoding processing unit 201 receives an encoded stream, entropy-decodes the quantization coefficient value of the decoding target block from the input encoded stream, and entropy-decodes intra prediction information related to intra prediction and inter prediction information related to inter prediction. To do. Also, the entropy decoding processing unit 201 outputs the quantized coefficient value to the inverse quantization processing unit 204, stores the inter prediction information in the inter prediction information storage unit 211, and stores the intra prediction information in the intra prediction information storage unit. The data is stored in 212. The intra prediction processing unit 202 reads the decoded signal stored in the frame memory 208 as a reference image. Further, the intra prediction processing unit 202 reads the intra prediction information from the intra prediction information storage unit 212. Then, the intra prediction processing unit 202 generates a prediction signal based on the read reference image and the read intra prediction information.

インター予測処理部203は、インター予測情報格納部211からインター予測情報を読み出す。そして、インター予測処理部203は、インター予測情報と、フレームバッファ210から入力した参照画像とに基づいて、予測信号を生成する。逆量子化処理部204は、エントロピー復号処理部201から入力した量子化係数値を逆量子化して復号直交変換係数値を算出し、得られた復号直交変換係数値を逆直交変換処理部205に出力する。   The inter prediction processing unit 203 reads inter prediction information from the inter prediction information storage unit 211. Then, the inter prediction processing unit 203 generates a prediction signal based on the inter prediction information and the reference image input from the frame buffer 210. The inverse quantization processing unit 204 inversely quantizes the quantized coefficient value input from the entropy decoding processing unit 201 to calculate a decoded orthogonal transform coefficient value, and the obtained decoded orthogonal transform coefficient value is sent to the inverse orthogonal transform processing unit 205. Output.

逆直交変換処理部205は、逆量子化処理部204から入力した復号直交変換係数値に逆直交変換を施し、復号色空間変換後係数値を算出し、算出した復号色空間変換後係数値を逆色空間変換処理部206に出力する。逆色空間変換処理部206は、逆直交変換処理部205から入力した復号色空間変換後係数値に対して、色空間変換マトリクス計算部213から得られる逆色空間変換マトリクスを用いて逆色空間変換を施す。それにより得られる予測残差復号信号を復号信号生成部207に出力する。   The inverse orthogonal transform processing unit 205 performs inverse orthogonal transform on the decoded orthogonal transform coefficient value input from the inverse quantization processing unit 204, calculates a decoded color space converted coefficient value, and calculates the calculated decoded color space converted coefficient value. The result is output to the inverse color space conversion processing unit 206. The inverse color space conversion processing unit 206 uses the inverse color space conversion matrix obtained from the color space conversion matrix calculation unit 213 for the decoded color space post-conversion coefficient value input from the inverse orthogonal transformation processing unit 205, and the inverse color space. Apply conversion. The prediction residual decoded signal obtained thereby is output to decoded signal generation section 207.

復号信号生成部207は、逆色空間変換処理部206から入力した予測残差復号信号と、イントラ予測処理部202あるいはインター予測処理部203が出力する予測信号とを加算する。そして、復号信号生成部207は、加算結果を復号対象ブロックの復号信号としてフレームメモリ208に記憶させて格納する。フレームメモリ208は、復号信号生成部207が算出した復号信号を記憶する。   The decoded signal generation unit 207 adds the prediction residual decoded signal input from the inverse color space conversion processing unit 206 and the prediction signal output from the intra prediction processing unit 202 or the inter prediction processing unit 203. Then, the decoded signal generation unit 207 stores the addition result in the frame memory 208 as a decoded signal of the decoding target block and stores it. The frame memory 208 stores the decoded signal calculated by the decoded signal generation unit 207.

ループ内フィルタ処理部209は、フレームメモリ208から復号信号を読み出し、読み出した復号信号により示される画像に対して符号化歪みを低減するフィルタ処理を行う。例えば、DFないしはSAO、その両者を実施する。別途ALFなどの他のループ内フィルタを施してもよい。ループ内フィルタ処理部209は、フィルタ処理後の画像を復号映像信号として出力する。また、ループ内フィルタ処理部209は、フィルタ処理後の画像を参照画像として利用するために、フレームバッファ210に出力する。   The in-loop filter processing unit 209 reads the decoded signal from the frame memory 208 and performs a filter process for reducing the coding distortion on the image indicated by the read decoded signal. For example, DF and / or SAO are implemented. Another in-loop filter such as ALF may be separately applied. The in-loop filter processing unit 209 outputs the filtered image as a decoded video signal. Further, the in-loop filter processing unit 209 outputs the filtered image to the frame buffer 210 in order to use it as a reference image.

インター予測情報格納部211は、エントロピー復号処理部201が復号したインター予測情報を格納する。イントラ予測情報格納部212は、エントロピー復号処理部201が復号したイントラ予測情報を格納する。色空間変換マトリクス計算部213は、イントラ予測時についてはフレームメモリ208から復号信号を入力し、インター予測時にはフレームバッファ210から復号信号を入力し、得られた復号信号から主成分分析を実施して、色空間変換に必要な色空間変換マトリクスを計算する。逆色空間変換マトリクスは色空間変換マトリクスと転置行列の関係である。得られた逆色空間変換マトリクスを逆色空間変換処理部206へ出力する。   The inter prediction information storage unit 211 stores the inter prediction information decoded by the entropy decoding processing unit 201. The intra prediction information storage unit 212 stores the intra prediction information decoded by the entropy decoding processing unit 201. The color space conversion matrix calculation unit 213 inputs a decoded signal from the frame memory 208 at the time of intra prediction, inputs a decoded signal from the frame buffer 210 at the time of inter prediction, and performs principal component analysis from the obtained decoded signal. The color space conversion matrix necessary for the color space conversion is calculated. The inverse color space conversion matrix is a relationship between a color space conversion matrix and a transposed matrix. The obtained inverse color space conversion matrix is output to the inverse color space conversion processing unit 206.

画像復号装置200は、前述の構成を備えることにより、色空間変換を用いてブロックベースの予測符号化により符号化された映像の符号化ストリームを入力し、入力された符号化ストリームから映像を復号して、復号映像信号を出力する。   With the above-described configuration, the image decoding apparatus 200 receives an encoded video stream encoded by block-based predictive encoding using color space conversion, and decodes the video from the input encoded stream. Then, the decoded video signal is output.

次に、図3を参照して、図1に示す色空間変換処理部104の詳細な構成を説明する。図3は図1に示す色空間変換処理部104の構成を示すブロック図である。色空間変換処理部104は、図3に示すように、予測残差信号記憶部301、色空間変換マトリクス記憶部302、色空間変換実行部303、固有値記憶部304、色空間変換実行判定部305及び閾値設定部306を備えている。ここで、図3においては、固有値記憶部304と、色空間変換実行判定部305と、閾値設定部306が特徴的な構成である。   Next, the detailed configuration of the color space conversion processing unit 104 shown in FIG. 1 will be described with reference to FIG. FIG. 3 is a block diagram showing a configuration of the color space conversion processing unit 104 shown in FIG. As shown in FIG. 3, the color space conversion processing unit 104 includes a prediction residual signal storage unit 301, a color space conversion matrix storage unit 302, a color space conversion execution unit 303, an eigenvalue storage unit 304, and a color space conversion execution determination unit 305. And a threshold value setting unit 306. Here, in FIG. 3, the eigenvalue storage unit 304, the color space conversion execution determination unit 305, and the threshold setting unit 306 are characteristic configurations.

予測残差信号記憶部301は、処理対象となるブロックの予測残差信号を入力して記憶する。また、色空間変換マトリクス記憶部302は、復号信号から求まる色空間変換マトリクスを入力して記憶する。固有値記憶部304は、色空間変換マトリクスを算出するための主成分分析の過程で計算される固有値を、色空間変換マトリクス計算部116より入力して記憶する。   The prediction residual signal storage unit 301 inputs and stores the prediction residual signal of the block to be processed. Further, the color space conversion matrix storage unit 302 receives and stores a color space conversion matrix obtained from the decoded signal. The eigenvalue storage unit 304 receives and stores eigenvalues calculated in the process of principal component analysis for calculating a color space conversion matrix from the color space conversion matrix calculation unit 116.

色空間変換実行判定部305は、固有値記憶部304から読み出される固有値情報と、閾値設定部306から設定された閾値とを用いて、色空間変換の実施有無を判定する。例えば、第一主成分となる固有値(一番大きな値を示す固有値)が設定された閾値以上であれば、極端な色空間変換が行われないと判断できるため、色空間変換を実施すると判断する。閾値よりも小さい場合、色空間変換を実施しないと判断する。それら実施するか否かの情報を色空間変換実施情報と定義して、色空間変換実行部303へ出力する。第一主成分の固有値と閾値を比較する場合を示したが、例えば、第一主成分と第二主成分の二種類の固有値を固有値記憶部304から取得して、それぞれに対応する閾値を閾値設定部306から取得して、第一主成分と第二主成分の両方が同時にそれぞれの閾値以上となった場合に、色空間変換を実施するという構成にしてもよい。   The color space conversion execution determination unit 305 uses the eigenvalue information read from the eigenvalue storage unit 304 and the threshold set by the threshold setting unit 306 to determine whether or not to perform color space conversion. For example, if the eigenvalue that is the first principal component (the eigenvalue that indicates the largest value) is equal to or greater than the set threshold, it can be determined that extreme color space conversion is not performed, and therefore it is determined that color space conversion is to be performed. . If it is smaller than the threshold value, it is determined that the color space conversion is not performed. Information regarding whether or not to implement these is defined as color space conversion execution information, and is output to the color space conversion execution unit 303. Although the case where the eigenvalue of the first principal component is compared with the threshold value is shown, for example, two types of eigenvalues of the first principal component and the second principal component are acquired from the eigenvalue storage unit 304, and the threshold value corresponding to each is obtained as the threshold value. A configuration may be adopted in which color space conversion is performed when both the first principal component and the second principal component are simultaneously equal to or greater than the respective threshold values, acquired from the setting unit 306.

閾値設定部306は、予め定められたテーブルなどから閾値を読み込み、その閾値を色空間変換実行判定部305に対して設定する。閾値は固有値の取り得る範囲から、0から1の範囲となるが、内部の構造に応じて、例えば0から4096の整数値になるように表現される場合(0が固有値0を示し、4096が固有値1を示すような場合)は、それに応じた値を設定するようにしてもよい。仮に閾値を0.5とした場合、設定する閾値を2048とすればよい。そのような置き換えを実施する閾値変換処理部を閾値設定部306と色空間変換実行判定部305の間に設けてもよい。なお、閾値は符号化して復号側に伝送する構成をとってもよい。符号化して伝送する場合は、閾値符号化部を別途用意し、閾値設定部306から出力される閾値をエントロピー符号化する。シーケンス単位、GOP(Group of Pictures)単位、スライス単位、フレーム単位、ブロック単位などで切り替えることも可能であり、切り替える場合は前記単位で閾値を符号化して伝送する必要がある。細かい粒度で伝送すると閾値情報の符号量(オーバーヘッド)が増加するが、その分より適応的な色空間変換の実施が制御できるため、符号化効率向上や処理高速化が実現できる。   The threshold setting unit 306 reads a threshold from a predetermined table or the like, and sets the threshold to the color space conversion execution determination unit 305. The threshold value is in the range of 0 to 1 from the range that the eigenvalue can take, but is expressed as an integer value of 0 to 4096, for example, depending on the internal structure (0 indicates the eigenvalue 0, and 4096 is In the case where eigenvalue 1 is indicated), a value corresponding thereto may be set. If the threshold value is set to 0.5, the threshold value to be set may be set to 2048. A threshold conversion processing unit that performs such replacement may be provided between the threshold setting unit 306 and the color space conversion execution determination unit 305. The threshold value may be encoded and transmitted to the decoding side. In the case of encoding and transmitting, a threshold encoding unit is separately prepared, and the threshold output from the threshold setting unit 306 is entropy encoded. Switching can be performed in sequence units, GOP (Group of Pictures) units, slice units, frame units, block units, and the like. When switching, it is necessary to encode and transmit threshold values in the units. If transmission is performed with a fine granularity, the code amount (overhead) of threshold information increases. However, since adaptive color space conversion can be controlled accordingly, it is possible to improve coding efficiency and speed up processing.

色空間変換実行部303は、予測残差信号記憶部301から出力される予測残差信号と、色空間変換マトリクス記憶部302から出力される色空間変換マトリクスと、色空間変換実行判定部305から出力される色空間変換実施情報を用いて、色空間変換を実施する。色空間変換実施情報が色空間変換を実施すると示していれば、色空間変換を実施する。色空間変換実施情報が色空間変換を実施しないと示していれば、色空間変換を実施しない。   The color space conversion execution unit 303 includes a prediction residual signal output from the prediction residual signal storage unit 301, a color space conversion matrix output from the color space conversion matrix storage unit 302, and a color space conversion execution determination unit 305. Color space conversion is performed using the output color space conversion execution information. If the color space conversion execution information indicates that color space conversion is to be performed, color space conversion is performed. If the color space conversion execution information indicates that the color space conversion is not performed, the color space conversion is not performed.

以上のように、色空間変換処理部104は、予測残差信号記憶部301、色空間変換マトリクス記憶部302、色空間変換実行部303、固有値記憶部304、色空間変換実行判定部305及び閾値設定部306により、固有値と閾値の大小判定を行うことで適応的な色空間変換処理を実施して、色空間変換後係数値を出力する。   As described above, the color space conversion processing unit 104 includes the prediction residual signal storage unit 301, the color space conversion matrix storage unit 302, the color space conversion execution unit 303, the eigenvalue storage unit 304, the color space conversion execution determination unit 305, and the threshold value. The setting unit 306 performs adaptive color space conversion processing by determining the magnitude of the eigenvalue and the threshold value, and outputs a coefficient value after color space conversion.

次に、図4を参照して、図3に示す色空間変換処理部104の処理動作を説明する。図4は、図3に示す色空間変換処理部104が行う色空間変換処理の動作を示すフローチャートである。まず、予測残差信号記憶部301は、処理対象となるブロックの予測残差信号を予測残差信号生成部103から入力し、記憶する。そして、色空間変換を行うために色空間変換実行部303に出力する(ステップS1)。続いて、色空間変換マトリクス記憶部302は、色空間変換マトリクス計算部116が出力する色空間変換マトリクスを入力して記憶する。そして、色空間変換を実行するために必要なので、色空間変換実行部303に出力する(ステップS2)。   Next, the processing operation of the color space conversion processing unit 104 shown in FIG. 3 will be described with reference to FIG. FIG. 4 is a flowchart showing the operation of the color space conversion process performed by the color space conversion processing unit 104 shown in FIG. First, the prediction residual signal storage unit 301 inputs the prediction residual signal of the block to be processed from the prediction residual signal generation unit 103 and stores it. Then, in order to perform color space conversion, the data is output to the color space conversion execution unit 303 (step S1). Subsequently, the color space conversion matrix storage unit 302 inputs and stores the color space conversion matrix output from the color space conversion matrix calculation unit 116. Then, since it is necessary to execute the color space conversion, it is output to the color space conversion execution unit 303 (step S2).

次に、固有値記憶部304は、色空間変換マトリクス計算部116が色空間変換マトリクスを計算する際に得られる固有値を入力し、記憶する。そして、色空間変換の実行を判断するために、固有値情報を色空間変換実行判定部305へ出力する。また、閾値設定部306は色空間変換の実行を判断するための閾値情報を、予め定められたテーブルから入力して色空間変換実行判定部305へ出力する(ステップS3)。次に、色空間変換実行判定部305は、固有値記憶部304から読み出した固有値情報と、閾値設定部306が設定した閾値を入力として、それらの値の大小関係に基づいて、色空間判定実行の有無を判定して、その判定結果の情報を色空間変換実施情報として色空間変換実行部303へ出力する(ステップS4)。   Next, the eigenvalue storage unit 304 inputs and stores eigenvalues obtained when the color space conversion matrix calculation unit 116 calculates the color space conversion matrix. Then, the eigenvalue information is output to the color space conversion execution determination unit 305 in order to determine execution of the color space conversion. Further, the threshold setting unit 306 inputs threshold information for determining execution of color space conversion from a predetermined table and outputs it to the color space conversion execution determining unit 305 (step S3). Next, the color space conversion execution determination unit 305 receives the eigenvalue information read from the eigenvalue storage unit 304 and the threshold value set by the threshold value setting unit 306, and performs color space determination execution based on the magnitude relationship between these values. The presence / absence is determined, and information on the determination result is output to the color space conversion execution unit 303 as color space conversion execution information (step S4).

次に、色空間変換実行部303は、予測残差信号記憶部301から読み出した予測残差信号と、色空間変換マトリクス記憶部302から読み出した色空間変換マトリクスと、色空間変換実行判定部305が出力する色空間変換実施情報とを入力として、色空間変換実施情報に基づいて色空間実行判定結果の判断を行う(ステップS5)。この判定の結果、色空間変換を実行すると判断された場合は色空間変換を実行する(ステップS6)。一方、実行しないと判断された場合は、色空間変換を実行せず、予測残差信号をそのまま出力する。   Next, the color space conversion execution unit 303 reads the prediction residual signal read from the prediction residual signal storage unit 301, the color space conversion matrix read from the color space conversion matrix storage unit 302, and the color space conversion execution determination unit 305. The color space conversion execution information output by the user is input, and the color space execution determination result is determined based on the color space conversion execution information (step S5). If it is determined that the color space conversion is to be executed as a result of this determination, the color space conversion is executed (step S6). On the other hand, if it is determined not to execute, the color space conversion is not executed and the prediction residual signal is output as it is.

次に、図5を参照して、図1に示す逆色空間変換処理部109及び図2に示す逆色空間変換処理部206の構成を説明する。図5は図1に示す逆色空間変換処理部109及び図2に示す逆色空間変換処理部206の構成例を示すブロック図である。逆色空間変換処理部109と逆色空間変換処理部206とは共通する処理を行い、同じ構成を備えているので、逆色空間変換処理としては、逆色空間変換処理部109の処理を説明し、逆色空間変換処理部206の説明を省略する。   Next, the configuration of the reverse color space conversion processing unit 109 shown in FIG. 1 and the reverse color space conversion processing unit 206 shown in FIG. 2 will be described with reference to FIG. FIG. 5 is a block diagram illustrating a configuration example of the reverse color space conversion processing unit 109 illustrated in FIG. 1 and the reverse color space conversion processing unit 206 illustrated in FIG. Since the reverse color space conversion processing unit 109 and the reverse color space conversion processing unit 206 perform common processing and have the same configuration, the reverse color space conversion processing unit 109 will be described as reverse color space conversion processing. The description of the inverse color space conversion processing unit 206 is omitted.

逆色空間変換処理部109は、図5に示すように、復号色空間変換後係数値記憶部401、逆色空間変換マトリクス記憶部402、逆色空間変換実行部403、固有値記憶部404、逆色空間変換実行判定部405及び閾値設定部406を備えている。ここで、図5においては、固有値記憶部404と、逆色空間変換実行判定部405と、閾値設定部406が特徴的な構成である。   As shown in FIG. 5, the inverse color space conversion processing unit 109 includes a decoded color space converted coefficient value storage unit 401, an inverse color space conversion matrix storage unit 402, an inverse color space conversion execution unit 403, an eigenvalue storage unit 404, an inverse A color space conversion execution determination unit 405 and a threshold setting unit 406 are provided. Here, in FIG. 5, the eigenvalue storage unit 404, the inverse color space conversion execution determination unit 405, and the threshold setting unit 406 are characteristic configurations.

復号色空間変換後係数値記憶部401は、処理対象となるブロックの復号された色空間変換後係数値を入力して記憶する。また、逆色空間変換マトリクス記憶部402は、復号済みの信号から求まる逆色空間変換マトリクスを入力して記憶する。固有値記憶部404は、逆色空間変換マトリクスを算出するための主成分分析の過程で計算される固有値を、色空間変換マトリクス計算部116より入力して記憶する。   The decoded color space converted coefficient value storage unit 401 inputs and stores the decoded color space converted coefficient value of the block to be processed. Further, the inverse color space conversion matrix storage unit 402 inputs and stores an inverse color space conversion matrix obtained from the decoded signal. The eigenvalue storage unit 404 receives and stores eigenvalues calculated in the process of principal component analysis for calculating the inverse color space conversion matrix from the color space conversion matrix calculation unit 116.

逆色空間変換実行判定部405は、固有値記憶部404から読み出される固有値情報と、閾値設定部406から設定される閾値とを用いて、逆色空間変換の実施有無を判定する。例えば、第一主成分となる固有値(一番大きな値を示す固有値)が設定された閾値以上であれば、極端な逆色空間変換が行われないと判断し、逆色空間変換を実施すると判断する。閾値よりも小さい場合、逆色空間変換を実施しないと判断する。それら実施するか否かの情報を逆色空間変換実施情報と定義して、逆色空間変換実行部403へ出力する。第一主成分の固有値と閾値を比較する場合を示したが、例えば、第一主成分と第二主成分の二種類の固有値を固有値記憶部404から取得して、それぞれに対応する閾値を閾値設定部406から取得して、第一主成分と第二主成分の両方が同時にそれぞれの閾値以上となった場合に、逆色空間変換を実施するという構成にしてもよい。   The reverse color space conversion execution determination unit 405 determines whether or not reverse color space conversion is performed using the eigenvalue information read from the eigenvalue storage unit 404 and the threshold value set from the threshold value setting unit 406. For example, if the eigenvalue that is the first principal component (the eigenvalue that indicates the largest value) is equal to or greater than the set threshold value, it is determined that extreme inverse color space conversion is not performed, and it is determined that inverse color space conversion is performed. To do. If it is smaller than the threshold value, it is determined that reverse color space conversion is not performed. Information regarding whether or not to perform these operations is defined as reverse color space conversion execution information, and is output to the reverse color space conversion execution unit 403. Although the case where the eigenvalue of the first principal component is compared with the threshold value is shown, for example, two types of eigenvalues of the first principal component and the second principal component are acquired from the eigenvalue storage unit 404, and the threshold value corresponding to each is obtained as the threshold value. A configuration may be adopted in which reverse color space conversion is performed when both the first principal component and the second principal component are simultaneously equal to or greater than the respective threshold values, acquired from the setting unit 406.

閾値設定部406は、予め定められたテーブルなどから閾値を読み込み、その閾値を逆色空間変換実行判定部405に対して設定する。閾値は固有値の取り得る範囲から、0から1の範囲となるが、内部の構造に応じて、例えば0から4096の整数値になるように表現される場合(0が固有値0を示し、4096が固有値1を示すような場合)は、それに応じた値を設定するようにしてもよい。仮に閾値を0.5とした場合、設定する閾値を2048とすればよい。そのような置き換えを実施する閾値変換処理部を閾値設定部406と色空間変換実行判定部405の間に設けてもよい。なお、閾値は符号化側で伝送する構成をとった場合、閾値復号部を別途用意し、エントロピー復号された閾値を閾値設定部406に設定する。シーケンス単位、GOP単位、スライス単位、フレーム単位、ブロック単位などで切り替える場合、符号化側に合わせて、前記単位で閾値を復号する必要がある。   The threshold setting unit 406 reads a threshold from a predetermined table or the like, and sets the threshold to the inverse color space conversion execution determination unit 405. The threshold value is in the range of 0 to 1 from the range that the eigenvalue can take, but is expressed as an integer value of 0 to 4096, for example, depending on the internal structure (0 indicates the eigenvalue 0, and 4096 is In the case where eigenvalue 1 is indicated), a value corresponding thereto may be set. If the threshold value is set to 0.5, the threshold value to be set may be set to 2048. A threshold conversion processing unit that performs such replacement may be provided between the threshold setting unit 406 and the color space conversion execution determination unit 405. When the threshold is configured to be transmitted on the encoding side, a threshold decoding unit is separately prepared, and the entropy decoded threshold is set in the threshold setting unit 406. When switching by sequence unit, GOP unit, slice unit, frame unit, block unit, etc., it is necessary to decode the threshold value in the unit according to the encoding side.

逆色空間変換実行部403は、復号色空間変換後係数値記憶部401から出力される復号された色空間変換後係数値と、逆色空間変換マトリクス記憶部402から出力される逆色空間変換マトリクスと、逆色空間変換実行判定部405から出力される逆色空間変換実施情報を用いて、逆色空間変換を実施する。逆色空間変換実施情報が逆色空間変換を実施すると示していれば、逆色空間変換を実施する。逆色空間変換実施情報が逆色空間変換を実施しないと示していれば、逆色空間変換を実施しない。   The inverse color space conversion execution unit 403 includes the decoded color space converted coefficient value output from the decoded color space converted coefficient value storage unit 401 and the inverse color space conversion output from the inverse color space conversion matrix storage unit 402. Reverse color space conversion is performed using the matrix and reverse color space conversion execution information output from the reverse color space conversion execution determination unit 405. If the reverse color space conversion execution information indicates that reverse color space conversion is to be performed, reverse color space conversion is performed. If the reverse color space conversion execution information indicates that reverse color space conversion is not performed, reverse color space conversion is not performed.

以上のように、逆色空間変換処理部109は、復号色空間変換後係数値記憶部401、逆色空間変換マトリクス記憶部402、逆色空間変換実行部403、固有値記憶部404、逆色空間変換実行判定部405及び閾値設定部406により、固有値と閾値の大小判定を行うことで適応的な逆色空間変換処理を実施して、予測残差復号信号を出力する。   As described above, the inverse color space conversion processing unit 109 includes the decoded color space post-conversion coefficient value storage unit 401, the inverse color space conversion matrix storage unit 402, the inverse color space conversion execution unit 403, the eigenvalue storage unit 404, the inverse color space. The conversion execution determination unit 405 and the threshold setting unit 406 perform an adaptive inverse color space conversion process by determining the magnitude of the eigenvalue and the threshold, and output a prediction residual decoded signal.

次に、図6を参照して、図5に示す逆色空間変換処理部109の処理動作を説明する。図6は、図5に示す逆色空間変換処理部109が行う逆色空間変換処理の動作を示すフローチャートである。復号色空間変換後係数値記憶部401は、処理対象となるブロックの復号された色空間変換後係数値を入力し、記憶する。そして逆色空間変換をするために復号色空間変換後係数値を逆色空間変換実行部403に出力する(ステップS11)。   Next, the processing operation of the inverse color space conversion processing unit 109 shown in FIG. 5 will be described with reference to FIG. FIG. 6 is a flowchart showing the operation of the reverse color space conversion process performed by the reverse color space conversion processing unit 109 shown in FIG. The decoded color space converted coefficient value storage unit 401 inputs and stores the decoded color space converted coefficient value of the block to be processed. Then, in order to perform inverse color space conversion, the coefficient value after the decoded color space conversion is output to the inverse color space conversion execution unit 403 (step S11).

次に、逆色空間変換マトリクス記憶部402は、色空間変換マトリクス計算部116が出力する逆色空間変換マトリクスを入力して記憶する。そして、逆色空間変換を実行するために必要なので、逆色空間変換実行部403に出力する(ステップS12)。次に、固有値記憶部404は、色空間変換マトリクス計算部116が逆色空間変換マトリクスを計算する際に得られる固有値を入力し、記憶する。実際には色空間変換マトリクスと逆色空間変換マトリクスは転置行列の関係となる。逆色空間変換の実行を判断するために、固有値情報を逆色空間変換実行判定部405へ出力する。また、閾値設定部406は逆色空間変換の実行を判断するための閾値情報を、予め定められたテーブルから入力して逆色空間変換実行判定部405へ出力する(ステップS13)。   Next, the inverse color space conversion matrix storage unit 402 receives and stores the inverse color space conversion matrix output from the color space conversion matrix calculation unit 116. Then, since it is necessary for executing the reverse color space conversion, it is output to the reverse color space conversion execution unit 403 (step S12). Next, the eigenvalue storage unit 404 receives and stores eigenvalues obtained when the color space conversion matrix calculation unit 116 calculates the inverse color space conversion matrix. Actually, the color space conversion matrix and the inverse color space conversion matrix have a transposed matrix relationship. In order to determine execution of the reverse color space conversion, the eigenvalue information is output to the reverse color space conversion execution determination unit 405. Further, the threshold setting unit 406 inputs threshold information for determining execution of the reverse color space conversion from a predetermined table and outputs the threshold information to the reverse color space conversion execution determination unit 405 (step S13).

次に、逆色空間変換実行判定部405は、固有値記憶部404が出力する固有値情報と、閾値設定部406が出力する閾値を入力として、それらの値の大小関係に基づいて、逆色空間判定実行の有無を判定して、その判定結果の情報を逆色空間変換実施情報として逆色空間変換実行部403へ出力する(ステップS14)。   Next, the inverse color space conversion execution determination unit 405 receives the eigenvalue information output from the eigenvalue storage unit 404 and the threshold value output from the threshold setting unit 406 as input, and determines the inverse color space determination based on the magnitude relationship between these values. The presence / absence of execution is determined, and the information of the determination result is output to the reverse color space conversion execution unit 403 as reverse color space conversion execution information (step S14).

次に、逆色空間変換実行部403は、復号色空間変換後係数値記憶部401が出力する復号された色空間変換後係数値と、逆色空間変換マトリクス記憶部402が出力する逆色空間変換マトリクスと、逆色空間変換実行判定部405が出力する逆色空間変換実施情報とを入力として、逆色空間変換実施情報に基づいて逆色空間実行判定結果を判断し(ステップS15)、逆色空間変換を実行すると判断された場合は逆色空間変換を実行する(ステップS16)。実行しないと判断された場合は、逆色空間変換を実行せず、予測残差復号信号として、そのまま出力する。   Next, the inverse color space conversion execution unit 403 outputs the decoded color space converted coefficient value output from the decoded color space converted coefficient value storage unit 401 and the inverse color space output from the inverse color space conversion matrix storage unit 402. Using the conversion matrix and the reverse color space conversion execution information output by the reverse color space conversion execution determination unit 405 as input, the reverse color space execution determination result is determined based on the reverse color space conversion execution information (step S15). If it is determined that color space conversion is to be executed, reverse color space conversion is executed (step S16). If it is determined not to execute, the inverse color space conversion is not executed and the prediction residual decoded signal is output as it is.

以上説明したように、色空間変換処理部104及び逆色空間変換処理部109は、色空間変換マトリクスを生成する際に得られる固有値情報を用いて、色空間変換をするか否かの判断を実施して、ブロック単位で適応的な色空間変換処理が可能となる。設定する閾値によっては、色空間変換に係る処理を大幅に省くことも可能になり、高速化が期待できる。また、符号化効率劣化を招く不要な変換も省くことができ、符号化効率の向上にも貢献できる。   As described above, the color space conversion processing unit 104 and the inverse color space conversion processing unit 109 determine whether or not to perform color space conversion using the eigenvalue information obtained when generating the color space conversion matrix. As a result, an adaptive color space conversion process can be performed in units of blocks. Depending on the threshold value to be set, it is possible to greatly omit the processing related to color space conversion, and an increase in speed can be expected. In addition, unnecessary conversion that causes deterioration in encoding efficiency can be omitted, which can contribute to improvement in encoding efficiency.

<第2の実施形態>
次に、本発明の第2の実施形態による画像符号化装置及び画像復号装置を説明する。第2の実施形態は、図3に示す色空間変換処理部104の構成と、図5に示す逆色空間変換処理部109、206のみが異なる。そのため、ここでは色空間変換処理部104’と逆色空間変換処理部109’のみの構成を説明する。なお、逆色空間変換処理部209’は逆色空間変換処理部109’と共通のため、説明を省略する。
<Second Embodiment>
Next, an image encoding device and an image decoding device according to the second embodiment of the present invention will be described. The second embodiment differs from the configuration of the color space conversion processing unit 104 shown in FIG. 3 only in the inverse color space conversion processing units 109 and 206 shown in FIG. Therefore, only the configuration of the color space conversion processing unit 104 ′ and the inverse color space conversion processing unit 109 ′ will be described here. Note that the reverse color space conversion processing unit 209 ′ is common to the reverse color space conversion processing unit 109 ′, and thus description thereof is omitted.

図7は、色空間変換処理部104’の構成を示すブロック図である。色空間変換処理部104’は、図7に示すように予測残差信号記憶部501、色空間変換マトリクス記憶部502、色空間変換実行部503、基準マトリクス設定部504、色空間変換実行判定部505及び閾値設定部506を備えている。   FIG. 7 is a block diagram showing the configuration of the color space conversion processing unit 104 '. As shown in FIG. 7, the color space conversion processing unit 104 ′ includes a prediction residual signal storage unit 501, a color space conversion matrix storage unit 502, a color space conversion execution unit 503, a reference matrix setting unit 504, and a color space conversion execution determination unit. 505 and a threshold setting unit 506 are provided.

予測残差信号記憶部501、色空間変換マトリクス記憶部502及び色空間変換実行部503は、それぞれ図3に示す予測残差信号記憶部301、色空間変換マトリクス記憶部302及び色空間変換実行部303と同じ構成である。   The prediction residual signal storage unit 501, the color space conversion matrix storage unit 502, and the color space conversion execution unit 503 are respectively the prediction residual signal storage unit 301, the color space conversion matrix storage unit 302, and the color space conversion execution unit illustrated in FIG. This is the same configuration as 303.

色空間変換実行判定部505は、色空間変換マトリクス記憶部502から読み出される色空間変換マトリクスの情報と、基準マトリクス設定部504から設定される基準マトリクスの情報と、閾値設定部506から設定される閾値とを用いて、色空間変換の実施有無を判定する。例えば、図8に示すようにYUVフォーマットにおいては、入力された色空間変換マトリクスと基準マトリクスとの距離を計算し、閾値設定部506から入力される閾値を比較し、距離が閾値以下の場合、基準マトリクスに近いと判断して色空間変換を実施すると判定する。また、距離が閾値よりも大きい場合、基準マトリクスから離れていると判断して、色空間変換を実施しないと判定する。図8は、色空間変換の実施有無に関する判定処理を示す説明図である。   The color space conversion execution determination unit 505 is set from the color space conversion matrix information read from the color space conversion matrix storage unit 502, the reference matrix information set from the reference matrix setting unit 504, and the threshold setting unit 506. Whether or not color space conversion is performed is determined using the threshold. For example, as shown in FIG. 8, in the YUV format, the distance between the input color space conversion matrix and the reference matrix is calculated, and the threshold value input from the threshold value setting unit 506 is compared. It is determined that color space conversion is performed by determining that the matrix is close to the reference matrix. If the distance is larger than the threshold value, it is determined that the distance from the reference matrix is determined, and it is determined that the color space conversion is not performed. FIG. 8 is an explanatory diagram illustrating a determination process regarding whether or not color space conversion is performed.

基準マトリクス設定部504は、入力画像のフォーマット(RGBフォーマットかYUVフォーマットか)に応じて、フォーマットごとに予め定められた基準マトリクスを色空間変換実行判定部505に対して出力する。閾値設定部506は、予め定められたテーブルから閾値情報を入力及び設定を行い、その閾値情報を色空間変換実行判定部505へ出力する。   The reference matrix setting unit 504 outputs a reference matrix predetermined for each format to the color space conversion execution determination unit 505 according to the format of the input image (RGB format or YUV format). The threshold setting unit 506 inputs and sets threshold information from a predetermined table, and outputs the threshold information to the color space conversion execution determination unit 505.

色空間変換実行部503は、予測残差信号記憶部501から出力される予測残差信号と、色空間変換マトリクス記憶部502から出力される色空間変換マトリクスと、色空間変換実行判定部505から出力される色空間変換実施情報を用いて、色空間変換を実施する。色空間変換実施情報が色空間変換を実施すると示していれば、色空間変換を実施する。色空間変換実施情報が色空間変換を実施しないと示していれば、色空間変換を実施しない。   The color space conversion execution unit 503 receives the prediction residual signal output from the prediction residual signal storage unit 501, the color space conversion matrix output from the color space conversion matrix storage unit 502, and the color space conversion execution determination unit 505. Color space conversion is performed using the output color space conversion execution information. If the color space conversion execution information indicates that color space conversion is to be performed, color space conversion is performed. If the color space conversion execution information indicates that the color space conversion is not performed, the color space conversion is not performed.

以上のように、色空間変換処理部104’は、予測残差信号記憶部501、色空間変換マトリクス記憶部502、色空間変換実行部503、基準マトリクス設定部504、色空間変換実行判定部505及び閾値設定部506により、色空間変換マトリクスと基準マトリクス間の距離と閾値の大小判定を行うことで適応的な色空間変換処理を実施して、色空間変換後係数値を出力する。   As described above, the color space conversion processing unit 104 ′ includes the prediction residual signal storage unit 501, the color space conversion matrix storage unit 502, the color space conversion execution unit 503, the reference matrix setting unit 504, and the color space conversion execution determination unit 505. The threshold value setting unit 506 performs adaptive color space conversion processing by determining the distance between the color space conversion matrix and the reference matrix and the threshold value, and outputs a coefficient value after color space conversion.

次に、図9を参照して、図7に示す色空間変換処理部104’の処理動作を説明する。図9は、図7に示す色空間変換処理部104’が行う色空間変換処理の動作を示すフローチャートである。予測残差信号記憶部501は、処理対象となるブロックの予測残差信号を入力し、記憶する。そして色空間変換をするために色空間変換実行部503に出力する(ステップS21)。   Next, the processing operation of the color space conversion processing unit 104 'shown in FIG. 7 will be described with reference to FIG. FIG. 9 is a flowchart showing the operation of the color space conversion process performed by the color space conversion processing unit 104 'shown in FIG. The prediction residual signal storage unit 501 inputs and stores the prediction residual signal of the block to be processed. Then, the data is output to the color space conversion execution unit 503 for color space conversion (step S21).

次に、色空間変換マトリクス記憶部502は、色空間変換マトリクス計算部116が出力する色空間変換マトリクスを入力して記憶する。そして、色空間変換を実行するために必要なので、色空間変換実行部503に出力する(ステップS22)。続いて、基準マトリクス設定部504は入力画像のフォーマットに従って、基準マトリクスをテーブルから読み出し、その情報を色空間変換実行判定部505へ出力する。同様に閾値設定部506は色空間変換の実行を判断するための閾値情報を、予め定められたテーブルから入力して色空間変換実行判定部505へ出力する(ステップS23)。   Next, the color space conversion matrix storage unit 502 inputs and stores the color space conversion matrix output from the color space conversion matrix calculation unit 116. Then, since it is necessary for executing the color space conversion, it is output to the color space conversion executing unit 503 (step S22). Subsequently, the reference matrix setting unit 504 reads the reference matrix from the table according to the format of the input image, and outputs the information to the color space conversion execution determination unit 505. Similarly, the threshold setting unit 506 inputs threshold information for determining the execution of color space conversion from a predetermined table and outputs it to the color space conversion execution determining unit 505 (step S23).

次に、色空間変換実行判定部505は、色空間変換マトリクス記憶部502が出力する色空間変換マトリクスと、基準マトリクス設定部504が出力する基準マトリクスと、閾値設定部506が出力する閾値とを入力とする。そして、入力した色空間変換マトリクスと基準マトリクスのベクトル間距離(マトリクス間距離ともいう)を計算する(ステップS24)。計算されたベクトル間距離と閾値の大小関係に基づいて、色空間判定実行の有無を判定して、その情報を色空間変換実施情報として色空間変換実行部503へ出力する(ステップS25)。   Next, the color space conversion execution determination unit 505 outputs the color space conversion matrix output from the color space conversion matrix storage unit 502, the reference matrix output from the reference matrix setting unit 504, and the threshold output from the threshold setting unit 506. As input. Then, an inter-vector distance (also referred to as an inter-matrix distance) between the input color space conversion matrix and the reference matrix is calculated (step S24). Based on the calculated relationship between the vector distance and the threshold value, the presence / absence of color space determination execution is determined, and the information is output to the color space conversion execution unit 503 as color space conversion execution information (step S25).

次に、色空間変換実行部503は、予測残差信号記憶部501が出力する予測残差信号と、色空間変換マトリクス記憶部502が出力する色空間変換マトリクスと、色空間変換実行判定部505が出力する色空間変換実施情報とを入力として、色空間変換実施情報に基づいて色空間実行判定結果を判断し(ステップS26)、色空間変換を実行すると判断された場合は色空間変換を実行する(ステップS27)。一方、実行しないと判断された場合は、色空間変換を実行せず、予測残差信号をそのまま出力する。   Next, the color space conversion execution unit 503 includes a prediction residual signal output from the prediction residual signal storage unit 501, a color space conversion matrix output from the color space conversion matrix storage unit 502, and a color space conversion execution determination unit 505. The color space conversion execution information output by the user is input, and the color space execution determination result is determined based on the color space conversion execution information (step S26). If it is determined that the color space conversion is to be executed, the color space conversion is executed. (Step S27). On the other hand, if it is determined not to execute, the color space conversion is not executed and the prediction residual signal is output as it is.

次に、図10を参照して、第2の実施形態における逆色空間変換処理部109’及び逆色空間変換処理部206’の構成を説明する。図10は第2の実施形態における逆色空間変換処理部109’及び図2に示す逆色空間変換処理部206’の構成例を示すブロック図である。逆色空間変換処理部109’と逆色空間変換処理部206’とは共通する処理を行い、同じ構成を備えているので、逆色空間変換処理としては、逆色空間変換処理部109’を説明し、逆色空間変換処理部206’の説明を省略する。   Next, the configurations of the inverse color space conversion processing unit 109 ′ and the inverse color space conversion processing unit 206 ′ according to the second embodiment will be described with reference to FIG. 10. FIG. 10 is a block diagram illustrating a configuration example of the reverse color space conversion processing unit 109 ′ and the reverse color space conversion processing unit 206 ′ illustrated in FIG. 2 according to the second embodiment. Since the reverse color space conversion processing unit 109 ′ and the reverse color space conversion processing unit 206 ′ perform the same processing and have the same configuration, as the reverse color space conversion processing, the reverse color space conversion processing unit 109 ′ is A description of the inverse color space conversion processing unit 206 ′ will be omitted.

逆色空間変換処理部109’は、図10に示すように、復号色空間変換後係数値記憶部601、逆色空間変換マトリクス記憶部602、逆色空間変換実行部603、基準マトリクス設定部604、逆色空間変換実行判定部605及び閾値設定部606を備えている。ここで、図10においては、基準マトリクス設定部604と、逆色空間変換実行判定部605と、閾値設定部606が特徴的な構成である。   As shown in FIG. 10, the inverse color space conversion processing unit 109 ′ includes a decoded color space converted coefficient value storage unit 601, an inverse color space conversion matrix storage unit 602, an inverse color space conversion execution unit 603, and a reference matrix setting unit 604. , An inverse color space conversion execution determination unit 605 and a threshold setting unit 606 are provided. Here, in FIG. 10, a reference matrix setting unit 604, an inverse color space conversion execution determination unit 605, and a threshold setting unit 606 are characteristic configurations.

復号色空間変換後係数値記憶部601は、処理対象となるブロックの復号された色空間変換後係数値を入力して記憶する。また、逆色空間変換マトリクス記憶部602は、復号済みの信号から求まる逆色空間変換マトリクスを入力して記憶する。   The decoded color space converted coefficient value storage unit 601 receives and stores the decoded color space converted coefficient value of the block to be processed. The inverse color space conversion matrix storage unit 602 inputs and stores an inverse color space conversion matrix obtained from the decoded signal.

基準マトリクス設定部604は、逆色空間変換実行判定を行うために必要となる基準マトリクスを予め定められたテーブルから読み込み、そのマトリクスを逆色空間変換実行判定部605へ出力する。テーブルは入力画像のフォーマットに応じて切り替えることができるテーブルであり、例えばYUVフォーマットの場合は、基準マトリクスとして図8に示すマトリクスを出力する。RGBフォーマットの場合は、RGB−YUV変換のマトリクスを基準マトリクスとする。RGBフォーマットの場合、前記マトリクス以外にも、例えば、各画像のシーケンス全体で求まる色空間変換マトリクス、ないしは各フレームで求まる色空間変換マトリクスの平均値や、前のスライス/フレーム/ブロックで求まる色空間変換マトリクスとしてもよい。   The reference matrix setting unit 604 reads a reference matrix necessary for performing reverse color space conversion execution determination from a predetermined table and outputs the matrix to the reverse color space conversion execution determination unit 605. The table is a table that can be switched according to the format of the input image. For example, in the case of the YUV format, the matrix shown in FIG. 8 is output as a reference matrix. In the case of the RGB format, an RGB-YUV conversion matrix is used as a reference matrix. In the case of the RGB format, in addition to the matrix, for example, the color space conversion matrix obtained for the entire sequence of each image, the average value of the color space conversion matrix obtained for each frame, or the color space obtained for the previous slice / frame / block A conversion matrix may be used.

逆色空間変換実行判定部605は、逆色空間変換マトリクス記憶部602から入力される逆色空間変換マトリクスと、基準マトリクス設定部604から入力される基準マトリクスと、閾値設定部606から入力される閾値とを用いて、逆色空間変換の実施有無を判定する。例えば、図8に示す処理手順で逆色空間変換マトリクスと基準マトリクスとの距離が設定された閾値よりも大きい場合は、基準マトリクスよりも大きく外れたベクトルになっていると判断できるため、逆色空間変換を実施しないと判断する。閾値以下となる場合、逆色空間変換を実施すると判断する。なお、色空間変換マトリクスと逆色空間変換マトリクスは転置行列の関係であるため、逆色空間変換マトリクス用の基準マトリクスは色空間変換用の基準マトリクスと転置行列の関係にあると考えてよい。この判定により、逆色空間変換を実施するか否かの情報を逆色空間変換実施情報と定義して、逆色空間変換実行部603へ出力する。   The reverse color space conversion execution determination unit 605 receives the reverse color space conversion matrix input from the reverse color space conversion matrix storage unit 602, the reference matrix input from the reference matrix setting unit 604, and the threshold setting unit 606. Whether or not reverse color space conversion is performed is determined using the threshold. For example, if the distance between the inverse color space conversion matrix and the reference matrix is larger than the set threshold value in the processing procedure shown in FIG. 8, it can be determined that the vector is significantly larger than the reference matrix. It is determined that no spatial transformation is performed. If it is less than or equal to the threshold, it is determined that reverse color space conversion is to be performed. Since the color space conversion matrix and the inverse color space conversion matrix have a transposed matrix relationship, the reference matrix for the inverse color space conversion matrix may be considered to have a relationship between the color space conversion reference matrix and the transposed matrix. Based on this determination, information indicating whether to perform reverse color space conversion is defined as reverse color space conversion execution information, and is output to the reverse color space conversion execution unit 603.

閾値設定部606は、予め定められたテーブルから閾値情報を入力及び設定をして、その閾値情報を逆色空間変換実行判定部605へ出力する。逆色空間変換実行部603は、復号色空間変換後係数値記憶部601から出力される復号された色空間変換後係数値と、逆色空間変換マトリクス記憶部402から出力される逆色空間変換マトリクスと、逆色空間変換実行判定部605から出力される逆色空間変換実施情報を用いて、逆色空間変換を実施する。逆色空間変換実施情報が逆色空間変換を実施すると示していれば、逆色空間変換を実施する。逆色空間変換実施情報が逆色空間変換を実施しないと示していれば、逆色空間変換を実施しない。   The threshold setting unit 606 inputs and sets threshold information from a predetermined table, and outputs the threshold information to the inverse color space conversion execution determination unit 605. The inverse color space conversion execution unit 603 includes the decoded color space converted coefficient value output from the decoded color space converted coefficient value storage unit 601 and the inverse color space conversion output from the inverse color space conversion matrix storage unit 402. Reverse color space conversion is performed using the matrix and reverse color space conversion execution information output from the reverse color space conversion execution determination unit 605. If the reverse color space conversion execution information indicates that reverse color space conversion is to be performed, reverse color space conversion is performed. If the reverse color space conversion execution information indicates that reverse color space conversion is not performed, reverse color space conversion is not performed.

以上のように、逆色空間変換処理部109’は、復号色空間変換後係数値記憶部601、逆色空間変換マトリクス記憶部602、逆色空間変換実行部603、基準マトリクス設定部604、逆色空間変換実行判定部605及び閾値設定部606により、マトリクス間距離と閾値の大小判定を行うことで適応的な逆色空間変換処理を実施して、予測残差復号信号を出力する。   As described above, the inverse color space conversion processing unit 109 ′ includes the decoded color space post-conversion coefficient value storage unit 601, the inverse color space conversion matrix storage unit 602, the inverse color space conversion execution unit 603, the reference matrix setting unit 604, and the inverse. The color space conversion execution determination unit 605 and the threshold setting unit 606 perform adaptive inverse color space conversion processing by determining the size of the inter-matrix distance and the threshold, and output a prediction residual decoded signal.

次に、図11を参照して、図10に示す逆色空間変換処理部109’の処理動作を説明する。図11は、図10に示す逆色空間変換処理部109’が行う逆色空間変換処理の動作を示すフローチャートである。復号色空間変換後係数値記憶部601は、処理対象となるブロックの復号された色空間変換後係数値を入力し、記憶する。そして逆色空間変換をするために復号色空間変換後係数値は逆色空間変換実行部603に出力する(ステップS31)。続いて、逆色空間変換マトリクス記憶部602は、色空間変換マトリクス計算部116が出力する逆色空間変換マトリクスを入力して記憶する。そして、逆色空間変換を実行するために必要なので、逆色空間変換実行部603に出力する(ステップS32)。   Next, the processing operation of the inverse color space conversion processing unit 109 'shown in FIG. 10 will be described with reference to FIG. FIG. 11 is a flowchart showing the operation of the reverse color space conversion process performed by the reverse color space conversion processing unit 109 'shown in FIG. The decoded color space converted coefficient value storage unit 601 receives and stores the decoded color space converted coefficient value of the block to be processed. In order to perform inverse color space conversion, the coefficient value after the decoded color space conversion is output to the inverse color space conversion execution unit 603 (step S31). Subsequently, the reverse color space conversion matrix storage unit 602 receives and stores the reverse color space conversion matrix output from the color space conversion matrix calculation unit 116. And since it is required in order to perform reverse color space conversion, it outputs to the reverse color space conversion execution part 603 (step S32).

次に、基準マトリクス設定部604は、入力画像フォーマットに応じて基準マトリクスを選択して、そのマトリクス情報を逆色空間変換実行判定部605に出力する。また、閾値設定部606は逆色空間変換の実行を判断するための閾値情報を、予め定められたテーブルから入力して逆色空間変換実行判定部605へ出力する(ステップS33)。   Next, the reference matrix setting unit 604 selects a reference matrix according to the input image format, and outputs the matrix information to the inverse color space conversion execution determination unit 605. Further, the threshold setting unit 606 inputs threshold information for determining execution of reverse color space conversion from a predetermined table and outputs the threshold information to the reverse color space conversion execution determination unit 605 (step S33).

次に、逆色空間変換実行判定部605は、逆色空間変換マトリクス記憶部602が出力する逆色空間変換マトリクス情報と、基準マトリクス設定部604が出力する基準マトリクスを入力として、図8に示されるように二つのマトリクス間距離を計算する(ステップS34)。その後、計算されたマトリクス間距離と閾値設定部606から出力される閾値との大小関係に基づいて、逆色空間判定実行の有無を判定して、その情報を逆色空間変換実施情報として逆色空間変換実行部603へ出力する(ステップS35)。   Next, the reverse color space conversion execution determination unit 605 receives the reverse color space conversion matrix information output from the reverse color space conversion matrix storage unit 602 and the reference matrix output from the reference matrix setting unit 604 as shown in FIG. Then, the distance between the two matrices is calculated (step S34). Thereafter, based on the magnitude relationship between the calculated inter-matrix distance and the threshold value output from the threshold setting unit 606, it is determined whether or not the reverse color space determination is performed, and the information is used as the reverse color space conversion execution information. It outputs to the space conversion execution part 603 (step S35).

次に、逆色空間変換実行部603は、復号色空間変換後係数値記憶部601が出力する復号された色空間変換後係数値と、逆色空間変換マトリクス記憶部602が出力する逆色空間変換マトリクスと、逆色空間変換実行判定部605が出力する逆色空間変換実施情報とを入力として、逆色空間変換実施情報に基づいて逆色空間実行判定を行い(ステップS36)、逆色空間変換を実行すると判断された場合は逆色空間変換を実行する(ステップS37)。一方、実行しないと判断された場合は、逆色空間変換を実行せず、予測残差復号信号として、そのまま出力する。   Next, the inverse color space conversion execution unit 603 outputs the decoded color space converted coefficient value output from the decoded color space converted coefficient value storage unit 601 and the inverse color space output from the inverse color space conversion matrix storage unit 602. Using the conversion matrix and the reverse color space conversion execution information output by the reverse color space conversion execution determination unit 605 as input, the reverse color space execution determination is performed based on the reverse color space conversion execution information (step S36). If it is determined that conversion is to be performed, reverse color space conversion is performed (step S37). On the other hand, if it is determined not to execute, the inverse color space conversion is not executed, and the prediction residual decoded signal is output as it is.

<第3の実施形態>
次に、本発明の第3の実施形態による画像符号化装置及び画像復号装置を説明する。第3の実施形態は、図3に示す色空間変換処理部104の構成と、図5に示す逆色空間変換処理部109、206のみが異なる。そのため、第3の実施形態における色空間変換処理部104’’と逆色空間変換処理部109’’のみの構成を説明する。逆色空間変換処理部209’’は逆色空間変換処理部109’’と共通のため、説明を省略する。
<Third Embodiment>
Next, an image encoding device and an image decoding device according to the third embodiment of the present invention will be described. The third embodiment differs from the configuration of the color space conversion processing unit 104 shown in FIG. 3 only in the inverse color space conversion processing units 109 and 206 shown in FIG. Therefore, only the configuration of the color space conversion processing unit 104 ″ and the inverse color space conversion processing unit 109 ″ in the third embodiment will be described. Since the reverse color space conversion processing unit 209 ″ is common to the reverse color space conversion processing unit 109 ″, description thereof is omitted.

図12は、第3の実施形態における色空間変換処理部104’’の構成を示すブロック図である。色空間変換処理部104’’は、図12に示すように予測残差信号記憶部701、色空間変換マトリクス記憶部702、色空間変換実行部703、固有値記憶部704、基準マトリクス設定部705、色空間変換実行判定部706及び閾値設定部707を備えている。予測残差信号記憶部701、色空間変換マトリクス記憶部702及び色空間変換実行部703は、それぞれ図3に示す予測残差信号記憶部301、色空間変換マトリクス記憶部302及び色空間変換実行部303と同じ構成である。   FIG. 12 is a block diagram illustrating a configuration of the color space conversion processing unit 104 ″ according to the third embodiment. As shown in FIG. 12, the color space conversion processing unit 104 ″ includes a prediction residual signal storage unit 701, a color space conversion matrix storage unit 702, a color space conversion execution unit 703, an eigenvalue storage unit 704, a reference matrix setting unit 705, A color space conversion execution determination unit 706 and a threshold setting unit 707 are provided. The prediction residual signal storage unit 701, the color space conversion matrix storage unit 702, and the color space conversion execution unit 703 are respectively the prediction residual signal storage unit 301, the color space conversion matrix storage unit 302, and the color space conversion execution unit illustrated in FIG. This is the same configuration as 303.

色空間変換実行判定部706は、色空間変換マトリクス記憶部702から読み出される色空間変換マトリクスの情報と、固有値記憶部704から入力される固有値と、基準マトリクス設定部705から入力される基準マトリクスの情報と、閾値設定部707から設定される二種類の閾値(固有値に対する閾値とベクトル間距離に対する閾値)とを用いて、色空間変換の実施有無を判定する。例えば、第一主成分となる固有値(一番大きな値を示す固有値)が設定された固有値に関する閾値以上であれば、極端な色空間変換が行われないと判断できるため、色空間変換を実施すると判定する。この判定結果を第一判定結果として保持する。   The color space conversion execution determination unit 706 includes information on the color space conversion matrix read from the color space conversion matrix storage unit 702, eigenvalues input from the eigenvalue storage unit 704, and reference matrix input from the reference matrix setting unit 705. Using information and two types of threshold values set by the threshold value setting unit 707 (threshold value for eigenvalues and threshold value for inter-vector distance), the presence / absence of color space conversion is determined. For example, if the eigenvalue that is the first principal component (the eigenvalue that indicates the largest value) is equal to or greater than the set threshold for the eigenvalue, it can be determined that extreme color space conversion is not performed. judge. This determination result is held as the first determination result.

次に、入力された色空間変換マトリクスと基準マトリクスとの距離を計算し、得られた距離をベクトル間距離に関する閾値と比較し、距離が前記閾値以下の場合、基準マトリクスに近いと判断して色空間変換を実施すると判定する。この判定結果を第二判定結果として保持する。第一と第二の両方の判定結果を同時に満たす場合、色空間変換を実施すると判断し、同時に満たさない場合は色空間変換を実施しないと判断する。ここで、第一判定の結果で満たさない場合は、第二判定をスキップするようにしてもよい。また、第一判定と第二判定の定義を入れ替えてもよい。前記判定により、色空間変換を実施するか否かの情報を色空間変換実施情報と定義して、色空間変換実行部703へ出力する。   Next, the distance between the input color space conversion matrix and the reference matrix is calculated, and the obtained distance is compared with a threshold related to the distance between vectors. If the distance is equal to or less than the threshold, it is determined that the distance is close to the reference matrix. It is determined that color space conversion is performed. This determination result is held as the second determination result. If both the first and second determination results are satisfied at the same time, it is determined that color space conversion is to be performed, and if not, the color space conversion is determined not to be performed. Here, when it is not satisfied with the result of the first determination, the second determination may be skipped. Moreover, you may replace the definition of a 1st determination and a 2nd determination. Based on the determination, information indicating whether or not to perform color space conversion is defined as color space conversion execution information, and is output to the color space conversion execution unit 703.

固有値記憶部704は、色空間変換マトリクスを算出するための主成分分析の過程で計算される固有値を、色空間変換マトリクス計算部116より入力して記憶する。基準マトリクス設定部705は、入力画像のフォーマット(RGBフォーマットかYUVフォーマットか)に応じて、フォーマットごとに予め定められた基準マトリクスを色空間変換実行判定部706へ入力する。閾値設定部707は、予め定められたテーブルから固有値に対する閾値及びベクトル間距離に対する閾値を入力及び設定をして、その閾値情報を色空間変換実行判定部706へ出力する。   The eigenvalue storage unit 704 inputs the eigenvalues calculated in the principal component analysis process for calculating the color space conversion matrix from the color space conversion matrix calculation unit 116 and stores them. The reference matrix setting unit 705 inputs a reference matrix predetermined for each format to the color space conversion execution determination unit 706 in accordance with the format of the input image (RGB format or YUV format). The threshold setting unit 707 inputs and sets the threshold for the eigenvalue and the threshold for the distance between vectors from a predetermined table, and outputs the threshold information to the color space conversion execution determination unit 706.

色空間変換実行部703は、予測残差信号記憶部701から出力される予測残差信号と、色空間変換マトリクス記憶部702から出力される色空間変換マトリクスと、色空間変換実行判定部706から出力される色空間変換実施情報を用いて、色空間変換を実施する。色空間変換実施情報が色空間変換を実施すると示していれば、色空間変換を実施する。色空間変換実施情報が色空間変換を実施しないと示していれば、色空間変換を実施しない。   The color space conversion execution unit 703 includes a prediction residual signal output from the prediction residual signal storage unit 701, a color space conversion matrix output from the color space conversion matrix storage unit 702, and a color space conversion execution determination unit 706. Color space conversion is performed using the output color space conversion execution information. If the color space conversion execution information indicates that color space conversion is to be performed, color space conversion is performed. If the color space conversion execution information indicates that the color space conversion is not performed, the color space conversion is not performed.

以上のように、色空間変換処理部104’’は、予測残差信号記憶部701、色空間変換マトリクス記憶部702、色空間変換実行部703、固有値記憶部704、基準マトリクス設定部705、色空間変換実行判定部706及び閾値設定部707により、固有値と固有値に対する閾値との大小関係を判定し、さらに色空間変換マトリクスと基準マトリクス間の距離とその距離に対する閾値の大小関係により適応的な色空間変換処理を実施して、色空間変換後係数値を出力する。   As described above, the color space conversion processing unit 104 ″ includes the prediction residual signal storage unit 701, the color space conversion matrix storage unit 702, the color space conversion execution unit 703, the eigenvalue storage unit 704, the reference matrix setting unit 705, the color The space conversion execution determination unit 706 and the threshold setting unit 707 determine the magnitude relationship between the eigenvalue and the threshold value for the eigenvalue, and further, the adaptive color is determined by the distance between the color space conversion matrix and the reference matrix and the magnitude relationship of the threshold value with respect to the distance. A space conversion process is performed and coefficient values after color space conversion are output.

次に、図13を参照して、図12に示す色空間変換処理部104’’の処理動作を説明する。図13は、図12に示す色空間変換処理部104’’が行う色空間変換処理の動作を示すフローチャートである。最初に、予測残差信号記憶部701は、処理対象となるブロックの予測残差信号を入力し、記憶する。そして色空間変換をするために色空間変換実行部703に出力する(ステップS41)。続いて、色空間変換マトリクス記憶部702は、色空間変換マトリクス計算部116が出力する色空間変換マトリクスを入力して記憶する。そして、色空間変換を実行するために必要なので、色空間変換実行部703に出力する(ステップS42)。   Next, the processing operation of the color space conversion processing unit 104 '' shown in FIG. 12 will be described with reference to FIG. FIG. 13 is a flowchart illustrating the operation of the color space conversion process performed by the color space conversion processing unit 104 ″ illustrated in FIG. 12. First, the prediction residual signal storage unit 701 receives and stores the prediction residual signal of the block to be processed. Then, the data is output to the color space conversion execution unit 703 for color space conversion (step S41). Subsequently, the color space conversion matrix storage unit 702 inputs and stores the color space conversion matrix output from the color space conversion matrix calculation unit 116. Then, since it is necessary to execute the color space conversion, it is output to the color space conversion execution unit 703 (step S42).

次に、固有値記憶部704は、色空間変換マトリクス計算部116が色空間変換マトリクスを計算する際に得られる固有値を入力し、記憶する。色空間変換の実行を判断するために、固有値情報を色空間変換実行判定部706へ出力する。さらに、基準マトリクス設定部705は入力画像のフォーマットに従って、基準マトリクスをテーブルから読み出し、その情報を色空間変換実行判定部706へ出力する。同様に閾値設定部707は色空間変換の実行を判断するための二種類の閾値情報、すなわち固有値に対する閾値とベクトル間距離に対する閾値を、それぞれ予め定められたテーブルから入力して色空間変換実行判定部706へ出力する(ステップS43)。   Next, the eigenvalue storage unit 704 inputs and stores eigenvalues obtained when the color space conversion matrix calculation unit 116 calculates the color space conversion matrix. In order to determine execution of the color space conversion, the eigenvalue information is output to the color space conversion execution determination unit 706. Further, the reference matrix setting unit 705 reads the reference matrix from the table according to the format of the input image, and outputs the information to the color space conversion execution determination unit 706. Similarly, the threshold setting unit 707 inputs color space conversion execution determination by inputting two types of threshold information for determining execution of color space conversion, that is, a threshold for an eigenvalue and a threshold for an inter-vector distance from a predetermined table. It outputs to the part 706 (step S43).

次に、色空間変換実行判定部706は、色空間変換マトリクス記憶部702が出力する色空間変換マトリクスと、固有値記憶部704が出力する固有値と、基準マトリクス設定部705が出力する基準マトリクスと、閾値設定部707が出力する閾値とを入力とする。そして、入力した固有値情報と固有値に対する閾値とを比較し、その大小関係の結果を第一判定条件として保持する(ステップS44)。また、入力された色空間変換マトリクスと基準マトリクスの距離を計算し、その距離とベクトル間距離に対する閾値とを比較し、大小関係の結果を第二判定条件として保持する(ステップS45)。第一判定条件と第二判定条件から、色空間判定実行の有無を判定して、その情報を色空間変換実施情報として色空間変換実行部703へ出力する(ステップS46)。例えば、第一判定条件と第二判定条件の二つを同時に満たすブロックに対しては色空間変換を実施すると判定し、同時に満たさない場合については色空間変換を実施しないと判定する。   Next, the color space conversion execution determination unit 706 includes a color space conversion matrix output from the color space conversion matrix storage unit 702, an eigenvalue output from the eigenvalue storage unit 704, a reference matrix output from the reference matrix setting unit 705, The threshold value output by the threshold value setting unit 707 is input. Then, the input eigenvalue information is compared with the threshold value for the eigenvalue, and the result of the magnitude relationship is held as the first determination condition (step S44). Further, the distance between the input color space conversion matrix and the reference matrix is calculated, the distance is compared with a threshold value for the distance between vectors, and the result of the magnitude relationship is held as the second determination condition (step S45). The presence / absence of color space determination execution is determined from the first determination condition and the second determination condition, and the information is output to the color space conversion execution unit 703 as color space conversion execution information (step S46). For example, it is determined that the color space conversion is performed for a block that satisfies both the first determination condition and the second determination condition at the same time, and it is determined that the color space conversion is not performed when the block is not satisfied at the same time.

次に、色空間変換実行部703は、予測残差信号記憶部701が出力する予測残差信号と、色空間変換マトリクス記憶部702が出力する色空間変換マトリクスと、色空間変換実行判定部706が出力する色空間変換実施情報とを入力として、色空間変換実施情報に基づいて色空間実行判定結果を判断し(ステップS47)、色空間変換を実行すると判断された場合は色空間変換を実行する(ステップS48)。一方、実行しないと判断された場合は、色空間変換を実行せず、予測残差信号をそのまま出力する。   Next, the color space conversion execution unit 703 includes a prediction residual signal output from the prediction residual signal storage unit 701, a color space conversion matrix output from the color space conversion matrix storage unit 702, and a color space conversion execution determination unit 706. The color space conversion execution information output by the user is input, the color space execution determination result is determined based on the color space conversion execution information (step S47), and if it is determined that the color space conversion is to be executed, the color space conversion is executed. (Step S48). On the other hand, if it is determined not to execute, the color space conversion is not executed and the prediction residual signal is output as it is.

次に、図14を参照して、第3の実施形態における逆色空間変換処理部109’’及び逆色空間変換処理部206’’の構成を説明する。図14は第3の実施形態における逆色空間変換処理部109’’及び図2に示す逆色空間変換処理部206’’の構成例を示すブロック図である。逆色空間変換処理部109’’と逆色空間変換処理部206’’とは共通する処理を行い、同じ構成を備えているので、逆色空間変換処理としては、逆色空間変換処理部109’’を説明し、逆色空間変換処理部206’’の説明を省略する。   Next, the configurations of the inverse color space conversion processing unit 109 ″ and the inverse color space conversion processing unit 206 ″ according to the third embodiment will be described with reference to FIG. FIG. 14 is a block diagram illustrating a configuration example of the reverse color space conversion processing unit 109 ″ and the reverse color space conversion processing unit 206 ″ illustrated in FIG. 2 according to the third embodiment. The reverse color space conversion processing unit 109 ″ and the reverse color space conversion processing unit 206 ″ perform common processing and have the same configuration. Therefore, as the reverse color space conversion processing, the reverse color space conversion processing unit 109 is used. '' Will be described, and the description of the inverse color space conversion processing unit 206 ″ will be omitted.

逆色空間変換処理部109’’は、図14に示すように、復号色空間変換後係数値記憶部801、逆色空間変換マトリクス記憶部802、逆色空間変換実行部803、固有値記憶部804、基準マトリクス設定部805、逆色空間変換実行判定部806及び閾値設定部807を備えている。ここで、図14においては、固有値記憶部804と、基準マトリクス設定部805と、逆色空間変換実行判定部806と、閾値設定部807が特徴的な構成である。   As illustrated in FIG. 14, the inverse color space conversion processing unit 109 ″ includes a decoded color space converted coefficient value storage unit 801, an inverse color space conversion matrix storage unit 802, an inverse color space conversion execution unit 803, and an eigenvalue storage unit 804. A reference matrix setting unit 805, an inverse color space conversion execution determination unit 806, and a threshold setting unit 807. In FIG. 14, the eigenvalue storage unit 804, the reference matrix setting unit 805, the inverse color space conversion execution determination unit 806, and the threshold setting unit 807 are characteristic configurations.

復号色空間変換後係数値記憶部801は、処理対象となるブロックの復号された色空間変換後係数値を入力して記憶する。また、逆色空間変換マトリクス記憶部802は、復号済みの信号から求まる逆色空間変換マトリクスを入力して記憶する。固有値記憶部804は、逆色空間変換マトリクスを算出するための主成分分析の過程で計算される固有値を、色空間変換マトリクス計算部116より入力して記憶する。   The decoded color space converted coefficient value storage unit 801 receives and stores the decoded color space converted coefficient value of the block to be processed. The inverse color space conversion matrix storage unit 802 receives and stores an inverse color space conversion matrix obtained from the decoded signal. The eigenvalue storage unit 804 inputs and stores eigenvalues calculated in the process of principal component analysis for calculating the inverse color space conversion matrix from the color space conversion matrix calculation unit 116.

基準マトリクス設定部805は、逆色空間変換実行判定を行うために必要となる基準マトリクスを予め定められたテーブルから読み込み、そのマトリクスを逆色空間変換実行判定部806へ出力する。テーブルは入力画像のフォーマットに応じて切り替えることができるテーブルであり、例えばYUVフォーマットの場合は、基準マトリクスを図8に示す基準マトリクスを出力する。RGBフォーマットの場合は、RGB―YUV変換のマトリクスを基準マトリクスとする。RGBフォーマットの場合、前記マトリクス以外にも、例えば、各画像のシーケンス全体で求まる色空間変換マトリクス、ないしは各フレームで求まる色空間変換マトリクスの平均値や、前のスライス/フレーム/ブロックで求まる色空間変換マトリクスとしてもよい。   The reference matrix setting unit 805 reads a reference matrix necessary for performing the reverse color space conversion execution determination from a predetermined table and outputs the matrix to the reverse color space conversion execution determination unit 806. The table is a table that can be switched according to the format of the input image. For example, in the case of the YUV format, the reference matrix shown in FIG. 8 is output. In the case of the RGB format, an RGB-YUV conversion matrix is used as a reference matrix. In the case of the RGB format, in addition to the matrix, for example, the color space conversion matrix obtained for the entire sequence of each image, the average value of the color space conversion matrix obtained for each frame, or the color space obtained for the previous slice / frame / block A conversion matrix may be used.

逆色空間変換実行判定部806は、逆色空間変換マトリクス記憶部802から読み出される逆色空間変換マトリクスと、固有値記憶部804から読み出される固有値と、基準マトリクス設定部805から設定される基準マトリクスと、閾値設定部807から設定される二種類の閾値とを用いて、逆色空間変換の実施有無を判定する。例えば、第一主成分となる固有値(一番大きな値を示す固有値)が設定された固有値に関する閾値以上であれば、極端な色空間変換が行われないと判断できるため、色空間変換を実施すると判定する。この判定結果を第一判定結果として保持する。続いて入力された色空間変換マトリクスと基準マトリクスとの距離を計算し、ベクトル間距離に関する閾値を比較し、距離が閾値以下の場合、基準マトリクスに近いと判断して色空間変換を実施すると判定する。この判定結果を第二判定結果として保持する。第一と第二の両方の判定結果を同時に満たす場合、色空間変換を実施すると判断し、同時に満たさない場合は色空間変換を実施しないと判断する。ここで、第一判定の結果で満たさない場合は、第二判定をスキップするようにしてもよい。また、第一判定と第二判定の定義を入れ替えてもよい。前記判定により、逆色空間変換を実施するか否かの情報を逆色空間変換実施情報と定義して、逆色空間変換実行部803へ出力する。   The inverse color space conversion execution determination unit 806 includes an inverse color space conversion matrix read from the inverse color space conversion matrix storage unit 802, an eigenvalue read from the eigenvalue storage unit 804, and a reference matrix set from the reference matrix setting unit 805. Using the two types of threshold values set from the threshold value setting unit 807, the presence / absence of reverse color space conversion is determined. For example, if the eigenvalue that is the first principal component (the eigenvalue that indicates the largest value) is equal to or greater than the set threshold for the eigenvalue, it can be determined that extreme color space conversion is not performed. judge. This determination result is held as the first determination result. Subsequently, the distance between the input color space conversion matrix and the reference matrix is calculated, and the thresholds related to the distance between vectors are compared. If the distance is equal to or less than the threshold, it is determined that the color space conversion is performed by determining that the distance is close to the reference matrix. To do. This determination result is held as the second determination result. If both the first and second determination results are satisfied at the same time, it is determined that color space conversion is to be performed, and if not, the color space conversion is determined not to be performed. Here, when it is not satisfied with the result of the first determination, the second determination may be skipped. Moreover, you may replace the definition of a 1st determination and a 2nd determination. Based on the determination, information indicating whether to perform reverse color space conversion is defined as reverse color space conversion execution information, and is output to the reverse color space conversion execution unit 803.

閾値設定部807は、予め定められたテーブルから固有値に関する閾値及びベクトル間距離に関する閾値を入力及び設定をして、それらの閾値情報を逆色空間変換実行判定部806へ出力する。逆色空間変換実行部803は、復号色空間変換後係数値記憶部801から出力される復号された色空間変換後係数値と、逆色空間変換マトリクス記憶部802から出力される逆色空間変換マトリクスと、逆色空間変換実行判定部806から出力される逆色空間変換実施情報を用いて、逆色空間変換を実施する。逆色空間変換実施情報が逆色空間変換を実施すると示していれば、逆色空間変換を実施する。逆色空間変換実施情報が逆色空間変換を実施しないと示していれば、逆色空間変換を実施しない。   The threshold setting unit 807 inputs and sets a threshold related to eigenvalues and a threshold related to the distance between vectors from a predetermined table, and outputs the threshold information to the inverse color space conversion execution determination unit 806. The inverse color space conversion execution unit 803 includes the decoded color space converted coefficient value output from the decoded color space converted coefficient value storage unit 801 and the inverse color space conversion output from the inverse color space conversion matrix storage unit 802. Reverse color space conversion is performed using the matrix and reverse color space conversion execution information output from the reverse color space conversion execution determination unit 806. If the reverse color space conversion execution information indicates that reverse color space conversion is to be performed, reverse color space conversion is performed. If the reverse color space conversion execution information indicates that reverse color space conversion is not performed, reverse color space conversion is not performed.

以上のように、逆色空間変換処理部109’’は、復号色空間変換後係数値記憶部801、逆色空間変換マトリクス記憶部802、逆色空間変換実行部803、固有値記憶部804、基準マトリクス設定部805、逆色空間変換実行判定部806及び閾値設定部807により、固有値と固有値に対する閾値との大小関係を判定し、さらに色空間変換マトリクスと基準マトリクス間の距離とその距離に対する閾値の大小関係により適応的な色空間変換処理を実施して、色空間変換後係数値を出力する。   As described above, the inverse color space conversion processing unit 109 ″ includes the decoded color space post-conversion coefficient value storage unit 801, the inverse color space conversion matrix storage unit 802, the inverse color space conversion execution unit 803, the eigenvalue storage unit 804, the reference The matrix setting unit 805, the inverse color space conversion execution determination unit 806, and the threshold setting unit 807 determine the magnitude relationship between the eigenvalue and the threshold for the eigenvalue, and further determine the distance between the color space conversion matrix and the reference matrix and the threshold for the distance. An adaptive color space conversion process is performed according to the magnitude relationship, and a coefficient value after color space conversion is output.

次に、図15を参照して、図14に示す逆色空間変換処理部109’’の処理動作を説明する。図15は、図14に示す逆色空間変換処理部109’’が行う逆色空間変換処理の動作を示すフローチャートである。復号色空間変換後係数値記憶部801は、処理対象となるブロックの復号された色空間変換後係数値を入力し、記憶する。そして逆色空間変換をするために復号色空間変換後係数値は逆色空間変換実行部803に出力する(ステップS51)。続いて、逆色空間変換マトリクス記憶部802は、色空間変換マトリクス計算部116が出力する逆色空間変換マトリクスを入力して記憶する。逆色空間変換を実行するために必要なので、逆色空間変換実行部803に出力される(ステップS52)。   Next, the processing operation of the inverse color space conversion processing unit 109 ″ shown in FIG. 14 will be described with reference to FIG. FIG. 15 is a flowchart illustrating the operation of the reverse color space conversion process performed by the reverse color space conversion processing unit 109 ″ illustrated in FIG. 14. The decoded color space converted coefficient value storage unit 801 receives and stores the decoded color space converted coefficient value of the block to be processed. Then, in order to perform inverse color space conversion, the coefficient value after the decoded color space conversion is output to the inverse color space conversion execution unit 803 (step S51). Subsequently, the reverse color space conversion matrix storage unit 802 inputs and stores the reverse color space conversion matrix output from the color space conversion matrix calculation unit 116. Since it is necessary for executing the inverse color space conversion, it is output to the inverse color space conversion execution unit 803 (step S52).

次に、固有値記憶部804は、色空間変換マトリクス計算部116が色空間変換マトリクスを計算する際に得られる固有値を入力し、記憶する。色空間変換の実行を判断するために、固有値情報を逆色空間変換実行判定部806へ出力する。さらに、基準マトリクス設定部805は入力画像のフォーマットに従って、基準マトリクスをテーブルから読み出し、その情報を逆色空間変換実行判定部806へ出力する。同様に閾値設定部807は逆色空間変換の実行を判断するための二種類の閾値情報、すなわち固有値に対する閾値とベクトル間距離に対する閾値を、それぞれ予め定められたテーブルから入力して逆色空間変換実行判定部806へ出力する(ステップS53)。   Next, the eigenvalue storage unit 804 inputs and stores eigenvalues obtained when the color space conversion matrix calculation unit 116 calculates the color space conversion matrix. In order to determine execution of color space conversion, eigenvalue information is output to the inverse color space conversion execution determination unit 806. Further, the reference matrix setting unit 805 reads the reference matrix from the table according to the format of the input image, and outputs the information to the inverse color space conversion execution determination unit 806. Similarly, the threshold setting unit 807 inputs two types of threshold information for determining execution of the inverse color space conversion, that is, the threshold for the eigenvalue and the threshold for the inter-vector distance from the predetermined table, respectively, and performs the inverse color space conversion. It outputs to the execution determination part 806 (step S53).

次に、逆色空間変換実行判定部806は、逆色空間変換マトリクス記憶部802が出力する逆色空間変換マトリクスと、固有値記憶部804が出力する固有値と、基準マトリクス設定部805が出力する基準マトリクスと、閾値設定部807が出力する閾値とを入力とする。入力した固有値情報と固有値に対する閾値とを比較し、その大小関係の結果を第一判定条件として保持する(ステップS54)。また、入力した逆色空間変換マトリクスと基準マトリクスの距離を計算し、その距離とベクトル間距離に対する閾値とを比較し、大小関係の結果を第二判定条件として保持する(ステップS55)。第一判定条件と第二判定条件から、逆色空間判定実行の有無を判定して、その情報を逆色空間変換実施情報として逆色空間変換実行部803へ出力する(ステップS56)。例えば、第一判定条件と第二判定条件の二つを同時に満たすブロックに対しては逆色空間変換を実施すると判定し、同時に満たさない場合については逆色空間変換を実施しないと判定する。   Next, the inverse color space conversion execution determination unit 806 is the inverse color space conversion matrix output from the inverse color space conversion matrix storage unit 802, the eigenvalue output from the eigenvalue storage unit 804, and the reference output from the reference matrix setting unit 805. The matrix and the threshold value output by the threshold value setting unit 807 are input. The input eigenvalue information is compared with the threshold value for the eigenvalue, and the result of the magnitude relationship is held as the first determination condition (step S54). Further, the distance between the input inverse color space conversion matrix and the reference matrix is calculated, the distance is compared with a threshold for the distance between vectors, and the result of the magnitude relationship is held as a second determination condition (step S55). Based on the first determination condition and the second determination condition, it is determined whether or not reverse color space determination is performed, and the information is output to the reverse color space conversion execution unit 803 as reverse color space conversion execution information (step S56). For example, it is determined that reverse color space conversion is performed for a block that satisfies both the first determination condition and the second determination condition at the same time, and it is determined that reverse color space conversion is not performed when the block does not satisfy both simultaneously.

次に、逆色空間変換実行部803は、復号色空間変換後係数値記憶部801が出力する復号された色空間変換後係数値と、逆色空間変換マトリクス記憶部802が出力する逆色空間変換マトリクスと、逆色空間変換実行判定部806が出力する逆色空間変換実施情報とを入力として、逆色空間変換実施情報に基づいて逆色空間実行判定を行い(ステップS57)、逆色空間変換を実行すると判断された場合は逆色空間変換を実行する(ステップS58)。一方、実行しないと判断された場合は、逆色空間変換を実行せず、予測残差復号信号として、そのまま出力する。   Next, the inverse color space conversion execution unit 803 outputs the decoded color space converted coefficient value output from the decoded color space converted coefficient value storage unit 801 and the inverse color space output from the inverse color space conversion matrix storage unit 802. Using the conversion matrix and the reverse color space conversion execution information output by the reverse color space conversion execution determination unit 806 as input, the reverse color space execution determination is performed based on the reverse color space conversion execution information (step S57). If it is determined that conversion is to be performed, reverse color space conversion is performed (step S58). On the other hand, if it is determined not to execute, the inverse color space conversion is not executed, and the prediction residual decoded signal is output as it is.

<第4の実施形態>
次に、本発明の第4の実施形態による画像符号化装置及び画像復号装置を説明する。第4の実施形態は、図3に示す色空間変換処理部104の構成と、図5に示す逆色空間変換処理部109、206のみが異なる。そのため、第4の実施形態における色空間変換処理部104’’’と逆色空間変換処理部109’’’のみの構成を説明する。逆色空間変換処理部209’’’は逆色空間変換処理部109’’’と共通のため、説明を省略する。
<Fourth Embodiment>
Next, an image encoding device and an image decoding device according to a fourth embodiment of the present invention will be described. The fourth embodiment differs from the configuration of the color space conversion processing unit 104 shown in FIG. 3 only in the inverse color space conversion processing units 109 and 206 shown in FIG. Therefore, only the configuration of the color space conversion processing unit 104 ′ ″ and the inverse color space conversion processing unit 109 ′ ″ in the fourth embodiment will be described. Since the reverse color space conversion processing unit 209 ′ ″ is common to the reverse color space conversion processing unit 109 ′ ″, description thereof is omitted.

図16は、第4の実施形態における色空間変換処理部104’’’の構成を示すブロック図である。色空間変換処理部104’’’は、図16に示すように予測残差信号記憶部901、色空間変換マトリクス記憶部902、色空間変換実行部903、固有値記憶部904、固有値重み付き和計算部905、色空間変換実行判定部906、閾値設定部907を備えている。予測残差信号記憶部901、色空間変換マトリクス記憶部902及び色空間変換実行部903は、それぞれ図3に示す予測残差信号記憶部301、色空間変換マトリクス記憶部302及び色空間変換実行部303と同じ構成である。   FIG. 16 is a block diagram illustrating a configuration of the color space conversion processing unit 104 ″ ″ according to the fourth embodiment. As shown in FIG. 16, the color space conversion processing unit 104 ′ ″ includes a prediction residual signal storage unit 901, a color space conversion matrix storage unit 902, a color space conversion execution unit 903, an eigenvalue storage unit 904, and an eigenvalue weighted sum calculation. A unit 905, a color space conversion execution determination unit 906, and a threshold setting unit 907. The prediction residual signal storage unit 901, the color space conversion matrix storage unit 902, and the color space conversion execution unit 903 are respectively the prediction residual signal storage unit 301, the color space conversion matrix storage unit 302, and the color space conversion execution unit shown in FIG. This is the same configuration as 303.

固有値記憶部904は、色空間変換マトリクスを算出するための主成分分析の過程で計算される複数の固有値(例えば、第一主成分と第二主成分)を、色空間変換マトリクス計算部116より入力して記憶する。   The eigenvalue storage unit 904 receives a plurality of eigenvalues (for example, the first principal component and the second principal component) calculated in the process of principal component analysis for calculating the color space conversion matrix from the color space conversion matrix calculation unit 116. Enter and remember.

固有値重み付き和計算部905は、固有値記憶部904から入力された複数の固有値から、重み付き和を計算する。例えば、第一主成分の固有値をP1、第二主成分の固有値をP2とする。このとき、重み付き和をPとして
P=α×P1+β×P2 式(1)
のように重み付き和が計算される。ここで、αとβは係数であり、β=0とすれば1種類の固有値で判定が実施されることに相当する為、第1の実施形態の符号化結果と一致することになる。前記重み付き和Pを色空間変換実行判定部906へ出力する。αとβは予め定められたテーブルから読み込んで、符号化処理中固定の値を用いることもできるし、例えば、スライス単位、フレーム単位などで変更してもよい。前記単位で変更する場合は、符号化して閾値と同様に復号側へ伝送する必要がある。
The eigenvalue weighted sum calculation unit 905 calculates a weighted sum from a plurality of eigenvalues input from the eigenvalue storage unit 904. For example, the eigenvalue of the first principal component is P1, and the eigenvalue of the second principal component is P2. At this time, the weighted sum is P, and P = α × P1 + β × P2 (1)
The weighted sum is calculated as follows. Here, α and β are coefficients, and if β = 0, this corresponds to the determination performed with one kind of eigenvalue, and therefore coincides with the encoding result of the first embodiment. The weighted sum P is output to the color space conversion execution determination unit 906. α and β can be read from a predetermined table, and fixed values can be used during the encoding process. For example, α and β can be changed in units of slices or frames. When changing in units, it is necessary to encode and transmit to the decoding side in the same manner as the threshold value.

色空間変換実行判定部906は、固有値重み付き和計算部905から得られる重み付き固有値と、閾値設定部907から設定された閾値とを用いて、色空間変換の実施有無を判定する。重み付き固有値が設定された閾値以上であれば、極端な色空間変換が行われないと判断できるため、色空間変換を実施すると判断する。閾値よりも小さい場合、色空間変換を実施しないと判断する。それら実施するか否かの情報を色空間変換実施情報と定義して、色空間変換実行部903へ出力する。   The color space conversion execution determination unit 906 determines whether or not to perform color space conversion using the weighted eigenvalue obtained from the eigenvalue weighted sum calculation unit 905 and the threshold set from the threshold setting unit 907. If the weighted eigenvalue is equal to or greater than the set threshold value, it can be determined that extreme color space conversion is not performed, and therefore it is determined that color space conversion is to be performed. If it is smaller than the threshold value, it is determined that the color space conversion is not performed. Information regarding whether or not to perform these operations is defined as color space conversion execution information, and is output to the color space conversion execution unit 903.

閾値設定部907は、予め定められたテーブルなどから閾値を読み込み、その閾値を色空間変換実行判定部906に対して設定する。閾値は固有値の取り得る範囲から、0から1の範囲となるが、内部の構造に応じて、例えば0から4096の整数値になるように表現される場合(0が固有値0を示し、4096が固有値1を示すような場合)は、それに応じた値を設定するようにしてもよい。仮に閾値を0.5とした場合、設定する閾値を2048とすればよい。そのような置き換えを実施する閾値変換処理部を閾値設定部907と色空間変換実行判定部906の間に設けてもよい。   The threshold setting unit 907 reads a threshold from a predetermined table or the like, and sets the threshold in the color space conversion execution determination unit 906. The threshold value is in the range of 0 to 1 from the range that the eigenvalue can take, but is expressed as an integer value of 0 to 4096, for example, depending on the internal structure (0 indicates the eigenvalue 0, and 4096 is In the case where eigenvalue 1 is indicated), a value corresponding thereto may be set. If the threshold value is set to 0.5, the threshold value to be set may be set to 2048. A threshold conversion processing unit that performs such replacement may be provided between the threshold setting unit 907 and the color space conversion execution determination unit 906.

色空間変換実行部903は、予測残差信号記憶部901から出力される予測残差信号と、色空間変換マトリクス記憶部902から出力される色空間変換マトリクスと、色空間変換実行判定部906から出力される色空間変換実施情報を用いて、色空間変換を実施する。色空間変換実施情報が色空間変換を実施すると示していれば、色空間変換を実施する。色空間変換実施情報が色空間変換を実施しないと示していれば、色空間変換を実施しない。   The color space conversion execution unit 903 receives the prediction residual signal output from the prediction residual signal storage unit 901, the color space conversion matrix output from the color space conversion matrix storage unit 902, and the color space conversion execution determination unit 906. Color space conversion is performed using the output color space conversion execution information. If the color space conversion execution information indicates that color space conversion is to be performed, color space conversion is performed. If the color space conversion execution information indicates that the color space conversion is not performed, the color space conversion is not performed.

以上のように、色空間変換処理部104’’’は、予測残差信号記憶部901、色空間変換マトリクス記憶部902、色空間変換実行部903、固有値記憶部904、固有値重み付き和計算部905、色空間変換実行判定部906及び閾値設定部907により、重み付きされた固有値と閾値の大小判定を行うことで適応的な色空間変換処理を実施して、色空間変換後係数値を出力する。   As described above, the color space conversion processing unit 104 ′ ″ includes the prediction residual signal storage unit 901, the color space conversion matrix storage unit 902, the color space conversion execution unit 903, the eigenvalue storage unit 904, and the eigenvalue weighted sum calculation unit. 905, the color space conversion execution determination unit 906 and the threshold setting unit 907 perform adaptive color space conversion processing by performing weighted eigenvalue determination and threshold size determination, and output coefficient values after color space conversion To do.

次に、図17を参照して、図16に示す色空間変換処理部104’’’の処理動作を説明する。図17は、図16に示す色空間変換処理部104’’’が行う色空間変換処理の動作を示すフローチャートである。まず、予測残差信号記憶部901は、処理対象となるブロックの予測残差信号を予測残差信号生成部103から入力し、記憶する。そして、色空間変換を行うために色空間変換実行部903に出力する(ステップS61)。続いて、色空間変換マトリクス記憶部902は、色空間変換マトリクス計算部116が出力する色空間変換マトリクスを入力して記憶する。そして、色空間変換を実行するために必要なので、色空間変換実行部903に出力する(ステップS62)。   Next, the processing operation of the color space conversion processing unit 104 ″ ″ shown in FIG. 16 will be described with reference to FIG. FIG. 17 is a flowchart showing the operation of the color space conversion process performed by the color space conversion processing unit 104 ″ ″ shown in FIG. First, the prediction residual signal storage unit 901 receives the prediction residual signal of the block to be processed from the prediction residual signal generation unit 103 and stores it. Then, the data is output to the color space conversion execution unit 903 to perform color space conversion (step S61). Subsequently, the color space conversion matrix storage unit 902 inputs and stores the color space conversion matrix output from the color space conversion matrix calculation unit 116. Then, since it is necessary for executing the color space conversion, it is output to the color space conversion executing unit 903 (step S62).

次に、固有値記憶部904は、色空間変換マトリクス計算部116が色空間変換マトリクスを計算する際に得られる複数の固有値(例えば、第一主成分と第二主成分)を入力し、記憶する。そして、色空間変換の実行を判断するために、各成分の固有値情報を固有値重み付き和計算部905へ出力する。また、閾値設定部906は色空間変換の実行を判断するための閾値情報を、予め定められたテーブルから入力して色空間変換実行判定部906へ出力する(ステップS63)。固有値重み付き和計算部905に入力された各成分の固有値から、式(1)に示されるような重み付き和が計算され、固有値の重み付き和が色空間変換実行判定部906に出力される(ステップS64)。次に、色空間変換実行判定部906は、固有値重み付き和計算部905から得られる重み付き固有値と、閾値設定部907が設定した閾値を入力として、それらの値の大小関係に基づいて、色空間判定実行の有無を判定して、その判定結果の情報を色空間変換実施情報として色空間変換実行部903へ出力する(ステップS65)。   Next, the eigenvalue storage unit 904 inputs and stores a plurality of eigenvalues (for example, the first principal component and the second principal component) obtained when the color space conversion matrix calculation unit 116 calculates the color space conversion matrix. . Then, the eigenvalue information of each component is output to the eigenvalue weighted sum calculation unit 905 in order to determine execution of color space conversion. Further, the threshold setting unit 906 inputs threshold information for determining execution of color space conversion from a predetermined table and outputs the threshold information to the color space conversion execution determination unit 906 (step S63). From the eigenvalues of each component input to the eigenvalue weighted sum calculation unit 905, a weighted sum as shown in Expression (1) is calculated, and the weighted sum of eigenvalues is output to the color space conversion execution determination unit 906. (Step S64). Next, the color space conversion execution determination unit 906 receives the weighted eigenvalue obtained from the eigenvalue weighted sum calculation unit 905 and the threshold set by the threshold setting unit 907 as input, and based on the magnitude relationship between these values, The presence / absence of space determination execution is determined, and information on the determination result is output to the color space conversion execution unit 903 as color space conversion execution information (step S65).

次に、色空間変換実行部903は、予測残差信号記憶部901から読み出した予測残差信号と、色空間変換マトリクス記憶部902から読み出した色空間変換マトリクスと、色空間変換実行判定部906が出力する色空間変換実施情報とを入力として、色空間変換実施情報に基づいて色空間実行判定結果の判断を行う(ステップS66)。この判定の結果、色空間変換を実行すると判断された場合は色空間変換を実行する(ステップS67)。一方、実行しないと判断された場合は、色空間変換を実行せず、予測残差信号をそのまま出力する。   Next, the color space conversion execution unit 903 has a prediction residual signal read from the prediction residual signal storage unit 901, a color space conversion matrix read from the color space conversion matrix storage unit 902, and a color space conversion execution determination unit 906. The color space conversion execution information output by the user is input, and the color space execution determination result is determined based on the color space conversion execution information (step S66). If it is determined that the color space conversion is to be executed as a result of the determination, the color space conversion is executed (step S67). On the other hand, if it is determined not to execute, the color space conversion is not executed and the prediction residual signal is output as it is.

次に、図18を参照して、第4の実施形態における逆色空間変換処理部109’’’及び逆色空間変換処理部206’’’の構成を説明する。図18は第4の実施形態における逆色空間変換処理部109’’’及び図2に示す逆色空間変換処理部206’’’の構成例を示すブロック図である。逆色空間変換処理部109’’’と逆色空間変換処理部206’’’とは共通する処理を行い、同じ構成を備えているので、逆色空間変換処理としては、逆色空間変換処理部109’’’を説明し、逆色空間変換処理部206’’’の説明を省略する。   Next, the configuration of the inverse color space conversion processing unit 109 ″ ″ and the inverse color space conversion processing unit 206 ″ ″ according to the fourth embodiment will be described with reference to FIG. FIG. 18 is a block diagram illustrating a configuration example of the inverse color space conversion processing unit 109 ″ ″ according to the fourth embodiment and the inverse color space conversion processing unit 206 ″ ″ illustrated in FIG. 2. Since the reverse color space conversion processing unit 109 ′ ″ and the reverse color space conversion processing unit 206 ′ ″ perform the same processing and have the same configuration, the reverse color space conversion processing includes reverse color space conversion processing. The unit 109 ′ ″ will be described, and the description of the inverse color space conversion processing unit 206 ′ ″ will be omitted.

逆色空間変換処理部109’’’は、図18に示すように、復号色空間変換後係数値記憶部1001、逆色空間変換マトリクス記憶部1002、逆色空間変換実行部1003、固有値記憶部1004、固有値重み付き和計算部1005、逆色空間変換実行判定部1006及び閾値設定部1007を備えている。ここで、図18においては、固有値記憶部1004と、固有値重み付き和計算部1005と、逆色空間変換実行判定部1006と、閾値設定部1007が特徴的な構成である。   As shown in FIG. 18, the inverse color space conversion processing unit 109 ′ ″ includes a decoded color space converted coefficient value storage unit 1001, an inverse color space conversion matrix storage unit 1002, an inverse color space conversion execution unit 1003, and an eigenvalue storage unit. 1004, an eigenvalue weighted sum calculation unit 1005, an inverse color space conversion execution determination unit 1006, and a threshold setting unit 1007. Here, in FIG. 18, an eigenvalue storage unit 1004, an eigenvalue weighted sum calculation unit 1005, an inverse color space conversion execution determination unit 1006, and a threshold setting unit 1007 are characteristic configurations.

復号色空間変換後係数値記憶部1001は、処理対象となるブロックの復号された色空間変換後係数値を入力して記憶する。また、逆色空間変換マトリクス記憶部1002は、復号済みの信号から求まる逆色空間変換マトリクスを入力して記憶する。固有値記憶部1004は、逆色空間変換マトリクスを算出するための主成分分析の過程で計算される複数の固有値(例えば、第一主成分と第二主成分)を、色空間変換マトリクス計算部116より入力して記憶する。   The decoded color space converted coefficient value storage unit 1001 inputs and stores the decoded color space converted coefficient value of the block to be processed. The inverse color space conversion matrix storage unit 1002 receives and stores an inverse color space conversion matrix obtained from the decoded signal. The eigenvalue storage unit 1004 stores a plurality of eigenvalues (for example, the first principal component and the second principal component) calculated in the process of principal component analysis for calculating the inverse color space conversion matrix, and the color space conversion matrix calculation unit 116. Input and memorize more.

固有値重み付き和計算部1005は、固有値記憶部1004から入力された複数の固有値から、重み付き和を計算する。例えば、第一主成分の固有値をP1、第二主成分の固有値をP2とする。このとき、重み付き和をPとして
P=α×P1+β×P2 式(2)
のように重み付き和が計算される。ここで、αとβは係数であり、β=0とすれば1種類の固有値で判定が実施されることに相当する為、第1の実施形態の符号化結果と一致することになる。前記重み付き和Pを逆色空間変換実行判定部1006へ出力する。αとβは予め定められたテーブルから読み込んで、復号処理中固定の値を用いることもできるし、例えば、スライス単位、フレーム単位などで変更してもよい。前記単位で変更する場合は、ビットストリームから符号化側で符号化されたαとβを復号して用いる必要がある。
The eigenvalue weighted sum calculation unit 1005 calculates a weighted sum from a plurality of eigenvalues input from the eigenvalue storage unit 1004. For example, the eigenvalue of the first principal component is P1, and the eigenvalue of the second principal component is P2. At this time, the weighted sum is P, and P = α × P1 + β × P2 (2)
The weighted sum is calculated as follows. Here, α and β are coefficients, and if β = 0, this corresponds to the determination performed with one kind of eigenvalue, and therefore coincides with the encoding result of the first embodiment. The weighted sum P is output to the inverse color space conversion execution determination unit 1006. α and β may be read from a predetermined table, and fixed values during decoding processing may be used. For example, α and β may be changed in units of slices or frames. When changing in units, it is necessary to decode and use α and β encoded on the encoding side from the bit stream.

逆色空間変換実行判定部1006は、固有値重み付き和計算部1005から読み出される重み付き固有値と、閾値設定部1007から設定される閾値とを用いて、逆色空間変換の実施有無を判定する。重み付き固有値が設定された閾値以上であれば、極端な逆色空間変換が行われないと判断できるため、逆色空間変換を実施すると判断する。閾値よりも小さい場合、逆色空間変換を実施しないと判断する。それら実施するか否かの情報を逆色空間変換実施情報と定義して、色空間変換実行部1003へ出力する。   The inverse color space conversion execution determination unit 1006 determines whether to perform reverse color space conversion using the weighted eigenvalue read from the eigenvalue weighted sum calculation unit 1005 and the threshold set from the threshold setting unit 1007. If the weighted eigenvalue is equal to or greater than the set threshold value, it can be determined that extreme inverse color space conversion is not performed, and therefore it is determined that inverse color space conversion is to be performed. If it is smaller than the threshold value, it is determined that reverse color space conversion is not performed. Information indicating whether or not to perform these operations is defined as reverse color space conversion execution information, and is output to the color space conversion execution unit 1003.

逆色空間変換実行部1003は、復号色空間変換後係数値記憶部1001から出力される復号された色空間変換後係数値と、逆色空間変換マトリクス記憶部1002から出力される逆色空間変換マトリクスと、逆色空間変換実行判定部1006から出力される逆色空間変換実施情報を用いて、逆色空間変換を実施する。逆色空間変換実施情報が逆色空間変換を実施すると示していれば、逆色空間変換を実施する。逆色空間変換実施情報が逆色空間変換を実施しないと示していれば、逆色空間変換を実施しない。   The inverse color space conversion execution unit 1003 outputs the decoded color space converted coefficient value output from the decoded color space converted coefficient value storage unit 1001 and the inverse color space conversion output from the inverse color space conversion matrix storage unit 1002. Reverse color space conversion is performed using the matrix and reverse color space conversion execution information output from the reverse color space conversion execution determination unit 1006. If the reverse color space conversion execution information indicates that reverse color space conversion is to be performed, reverse color space conversion is performed. If the reverse color space conversion execution information indicates that reverse color space conversion is not performed, reverse color space conversion is not performed.

閾値設定部1007は、予め定められたテーブルなどから閾値を読み込み、その閾値を逆色空間変換実行判定部1006に対して設定する。閾値は固有値の取り得る範囲から、0から1の範囲となるが、内部の構造に応じて、例えば0から4096の整数値になるように表現される場合(0が固有値0を示し、4096が固有値1を示すような場合)は、それに応じた値を設定するようにしてもよい。例えば、閾値を0.5とした場合、設定する閾値を2048とすればよい。   The threshold setting unit 1007 reads the threshold from a predetermined table or the like, and sets the threshold for the inverse color space conversion execution determination unit 1006. The threshold value is in the range of 0 to 1 from the range that the eigenvalue can take, but is expressed as an integer value of 0 to 4096, for example, depending on the internal structure (0 indicates the eigenvalue 0, and 4096 is In the case where eigenvalue 1 is indicated), a value corresponding thereto may be set. For example, when the threshold value is 0.5, the threshold value to be set may be 2048.

以上のように、逆色空間変換処理部109’’’は、復号色空間変換後係数値記憶部1001、逆色空間変換マトリクス記憶部1002、逆色空間変換実行部1003、固有値記憶部1004、固有値重み付き和計算部1005、逆色空間変換実行判定部1006及び閾値設定部1007により、重み付きされた固有値と閾値の大小判定を行うことで適応的な逆色空間変換処理を実施して、予測残差復号信号を出力する。   As described above, the inverse color space conversion processing unit 109 ′ ″ includes the decoded color space post-conversion coefficient value storage unit 1001, the inverse color space conversion matrix storage unit 1002, the inverse color space conversion execution unit 1003, the eigenvalue storage unit 1004, An eigenvalue weighted sum calculation unit 1005, an inverse color space conversion execution determination unit 1006, and a threshold value setting unit 1007 perform adaptive inverse color space conversion processing by determining the magnitude of the weighted eigenvalue and threshold value, A prediction residual decoding signal is output.

次に、図19を参照して、図18に示す逆色空間変換処理部109’’’の処理動作を説明する。図19は、図18に示す逆色空間変換処理部109’’’が行う逆色空間変換処理の動作を示すフローチャートである。復号色空間変換後係数値記憶部1001は、処理対象となるブロックの復号された色空間変換後係数値を入力し、記憶する。そして逆色空間変換をするために復号色空間変換後係数値を逆色空間変換実行部1003に出力する(ステップS71)。   Next, the processing operation of the inverse color space conversion processing unit 109 '' 'shown in FIG. 18 will be described with reference to FIG. FIG. 19 is a flowchart showing the operation of the reverse color space conversion process performed by the reverse color space conversion processing unit 109 ″ ″ shown in FIG. The decoded color space converted coefficient value storage unit 1001 inputs and stores the decoded color space converted coefficient value of the block to be processed. Then, in order to perform inverse color space conversion, the coefficient value after the decoded color space conversion is output to the inverse color space conversion execution unit 1003 (step S71).

次に、逆色空間変換マトリクス記憶部1002は、色空間変換マトリクス計算部116が出力する逆色空間変換マトリクスを入力して記憶する。そして、逆色空間変換を実行するために必要なので、逆色空間変換実行部1003に出力する(ステップS72)。次に、固有値記憶部1004は、色空間変換マトリクス計算部116が逆色空間変換マトリクスを計算する際に得られる複数の固有値(例えば、第一主成分と第二主成分)を入力し、記憶する。また、閾値設定部1007は逆色空間変換の実行を判断するための閾値情報を、予め定められたテーブルから入力して逆色空間変換実行判定部1006へ出力する(ステップS73)。次に、固有値重み付き和計算部1005に入力された各成分の固有値から、式(2)に示されるような重み付き和が計算され、固有値の重み付き和が逆色空間変換実行判定部1006に出力される(ステップS74)。   Next, the reverse color space conversion matrix storage unit 1002 inputs and stores the reverse color space conversion matrix output from the color space conversion matrix calculation unit 116. Then, since it is necessary for executing the reverse color space conversion, it is output to the reverse color space conversion execution unit 1003 (step S72). Next, the eigenvalue storage unit 1004 inputs and stores a plurality of eigenvalues (for example, the first principal component and the second principal component) obtained when the color space conversion matrix calculation unit 116 calculates the inverse color space conversion matrix. To do. Further, the threshold setting unit 1007 inputs threshold information for determining execution of reverse color space conversion from a predetermined table and outputs the threshold information to the reverse color space conversion execution determination unit 1006 (step S73). Next, a weighted sum as shown in Equation (2) is calculated from the eigenvalues of each component input to the eigenvalue weighted sum calculation unit 1005, and the weighted sum of eigenvalues is determined to be the inverse color space conversion execution determination unit 1006. (Step S74).

次に、逆色空間変換実行判定部1005は、固有値重み付き和計算部1005が出力する重み付き固有値と、閾値設定部1007が出力する閾値を入力として、それらの値の大小関係に基づいて、逆色空間判定実行の有無を判定して、その判定結果の情報を逆色空間変換実施情報として逆色空間変換実行部1003へ出力する(ステップS75)。   Next, the inverse color space conversion execution determination unit 1005 receives the weighted eigenvalue output from the eigenvalue weighted sum calculation unit 1005 and the threshold output from the threshold setting unit 1007 as input, and based on the magnitude relationship between these values. The presence / absence of reverse color space determination execution is determined, and information on the determination result is output to the reverse color space conversion execution unit 1003 as reverse color space conversion execution information (step S75).

次に、逆色空間変換実行部1003は、復号色空間変換後係数値記憶部1001が出力する復号された色空間変換後係数値と、逆色空間変換マトリクス記憶部1002が出力する逆色空間変換マトリクスと、逆色空間変換実行判定部1006が出力する逆色空間変換実施情報とを入力として、逆色空間変換実施情報に基づいて逆色空間実行判定結果を判断し(ステップS76)、逆色空間変換を実行すると判断された場合は逆色空間変換を実行する(ステップS77)。実行しないと判断された場合は、逆色空間変換を実行せず、予測残差復号信号として、そのまま出力する。   Next, the inverse color space conversion execution unit 1003 outputs the decoded color space converted coefficient value output from the decoded color space converted coefficient value storage unit 1001 and the inverse color space output from the inverse color space conversion matrix storage unit 1002. Using the conversion matrix and the reverse color space conversion execution information output by the reverse color space conversion execution determination unit 1006 as input, the reverse color space execution determination result is determined based on the reverse color space conversion execution information (step S76). If it is determined that color space conversion is to be performed, reverse color space conversion is performed (step S77). If it is determined not to execute, the inverse color space conversion is not executed and the prediction residual decoded signal is output as it is.

以上説明したように、色空間変換処理部104’’’及び逆色空間変換処理部109’’’は、色空間変換マトリクスを生成する際に得られる固有値の重み付き和を用いて、色空間変換をするか否かの判断を実施して、ブロック単位で適応的な色空間変換処理が可能となる。設定する閾値によっては、色空間変換に係る処理を大幅に省くことも可能になり、高速化が期待できる。また、符号化効率劣化を招く不要な変換も省くことができ、符号化効率の向上にも貢献できる。   As described above, the color space conversion processing unit 104 ′ ″ and the inverse color space conversion processing unit 109 ′ ″ use the weighted sum of eigenvalues obtained when the color space conversion matrix is generated, It is possible to perform adaptive color space conversion processing on a block basis by determining whether or not to perform conversion. Depending on the threshold value to be set, it is possible to greatly omit the processing related to color space conversion, and an increase in speed can be expected. In addition, unnecessary conversion that causes deterioration in encoding efficiency can be omitted, which can contribute to improvement in encoding efficiency.

以上、第1、第2、第3及び第4の実施形態において説明した色空間変換処理部104と、逆色空間変換処理部109を備える画像符号化装置100と、逆色空間変換処理部206を備える画像復号装置200は、コンピュータとソフトウエアプログラムとを用いて実現することができる。   As described above, the color space conversion processing unit 104 described in the first, second, third, and fourth embodiments, the image encoding device 100 including the reverse color space conversion processing unit 109, and the reverse color space conversion processing unit 206. The image decoding apparatus 200 including the above can be realized using a computer and a software program.

図20は、色空間変換処理部104を備える画像符号化装置100をコンピュータとソフトウエアプログラムとによって構成する場合におけるコンピュータのハードウェア構成例を示す図である。コンピュータは、CPU1100、メモリ1101、映像信号入力部1102、プログラム記憶装置1103及び符号化ストリーム出力部1105を備えている。   FIG. 20 is a diagram illustrating a hardware configuration example of a computer when the image encoding device 100 including the color space conversion processing unit 104 is configured by a computer and a software program. The computer includes a CPU 1100, a memory 1101, a video signal input unit 1102, a program storage device 1103, and an encoded stream output unit 1105.

CPU1100はプログラムを実行する。メモリ1101は、CPU1100がアクセスするプログラムやデータを一時的に格納するRAMなどである。映像信号入力部1102は、映像信号を生成するカメラなどの機器から符号化対象の入力映像信号を入力する。なお、映像信号入力部1102は、ハードディスク装置等による入力映像信号を記憶する記憶装置であってもよい。プログラム記憶装置1103は、前述の各実施形態において説明した符号化処理をCPU1100に実行させるソフトウエアプログラムである画像符号化プログラム1104を格納する。符号化ストリーム出力部1105は、CPU1100がメモリ1101にロードされた画像符号化プログラム1104を実行することにより生成された符号化ストリームを出力する。符号化ストリーム出力部1105は、ネットワークを介して、符号化ストリームを出力するようにしてもよい。また、符号化ストリーム出力部1105は、ハードディスク装置等による符号化ストリーム記憶する記憶装置であってもよい。CPU1100、メモリ1101、映像信号入力部1102、プログラム記憶装置1103、符号化ストリーム出力部1105は、バスを介して互いに接続されている。   The CPU 1100 executes a program. The memory 1101 is a RAM that temporarily stores programs and data accessed by the CPU 1100. The video signal input unit 1102 inputs an input video signal to be encoded from a device such as a camera that generates a video signal. The video signal input unit 1102 may be a storage device that stores an input video signal from a hard disk device or the like. The program storage device 1103 stores an image encoding program 1104 that is a software program that causes the CPU 1100 to execute the encoding process described in the above embodiments. The encoded stream output unit 1105 outputs an encoded stream generated when the CPU 1100 executes the image encoding program 1104 loaded in the memory 1101. The encoded stream output unit 1105 may output an encoded stream via a network. The encoded stream output unit 1105 may be a storage device that stores an encoded stream such as a hard disk device. The CPU 1100, the memory 1101, the video signal input unit 1102, the program storage device 1103, and the encoded stream output unit 1105 are connected to each other via a bus.

図21は、逆色空間変換処理部109及び逆色空間変換処理部206を備える画像復号装置200をコンピュータとソフトウエアプログラムとによって構成する場合におけるコンピュータのハードウェア構成例を示す図である。コンピュータは、CPU1200、メモリ1201、符号化ストリーム入力部1202、プログラム記憶装置1203及び復号映像出力部1205を備えている。   FIG. 21 is a diagram illustrating a hardware configuration example of a computer when the image decoding apparatus 200 including the inverse color space conversion processing unit 109 and the inverse color space conversion processing unit 206 is configured by a computer and a software program. The computer includes a CPU 1200, a memory 1201, an encoded stream input unit 1202, a program storage device 1203, and a decoded video output unit 1205.

CPU1200はプログラムを実行する。メモリ1201は、CPU1200がアクセスするプログラムやデータを一時的に格納するRAMなどである。符号化ストリーム入力部1202は、例えば、画像符号化装置100が前述の処理により入力映像信号を符号化した符号化ストリームを入力する。なお、符号化ストリーム入力部1202は、ハードディスク装置等による符号化ストリームを記憶する記憶装置であってもよい。プログラム記憶装置1203は、前述の各実施形態において説明した復号処理をCPU1200に実行させるソフトウエアプログラムである画像復号プログラム1204を格納する。復号映像出力部1205は、CPU1200がメモリ1201にロードされた画像復号プログラム1204を実行することにより、符号化ストリームを復号して得られた復号映像を再生装置などに出力する。なお、復号映像出力部1205は、ハードディスク装置等による復号映像信号を記憶する記憶装置であってもよい。CPU1200、メモリ1201、符号化ストリーム入力部1202、プログラム記憶装置1203、復号映像出力部1205は、バスを介して互いに接続されている。   CPU 1200 executes a program. The memory 1201 is a RAM or the like that temporarily stores programs and data accessed by the CPU 1200. The encoded stream input unit 1202 inputs, for example, an encoded stream obtained by encoding the input video signal by the image encoding apparatus 100 through the above-described processing. The encoded stream input unit 1202 may be a storage device that stores an encoded stream by a hard disk device or the like. The program storage device 1203 stores an image decoding program 1204 that is a software program that causes the CPU 1200 to execute the decoding processing described in each of the above-described embodiments. The decoded video output unit 1205 outputs the decoded video obtained by decoding the encoded stream to a playback device or the like by the CPU 1200 executing the image decoding program 1204 loaded in the memory 1201. Note that the decoded video output unit 1205 may be a storage device that stores a decoded video signal from a hard disk device or the like. The CPU 1200, the memory 1201, the encoded stream input unit 1202, the program storage device 1203, and the decoded video output unit 1205 are connected to each other via a bus.

前述した実施形態における色空間変換処理部と逆色空間変換処理部の機能をコンピュータで実現するようにしてもよい。その場合、この機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現してもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含んでもよい。また上記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであってもよく、PLD(Programmable Logic Device)やFPGA(Field Programmable Gate Array)等のハードウェアを用いて実現されるものであってもよい。   The functions of the color space conversion processing unit and the inverse color space conversion processing unit in the above-described embodiment may be realized by a computer. In that case, a program for realizing this function may be recorded on a computer-readable recording medium, and the program recorded on this recording medium may be read into a computer system and executed. Here, the “computer system” includes an OS and hardware such as peripheral devices. The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. Furthermore, the “computer-readable recording medium” dynamically holds a program for a short time like a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line. In this case, a volatile memory inside a computer system serving as a server or a client in that case may be included and a program held for a certain period of time. Further, the program may be for realizing a part of the functions described above, and may be a program capable of realizing the functions described above in combination with a program already recorded in the computer system. It may be realized using hardware such as PLD (Programmable Logic Device) or FPGA (Field Programmable Gate Array).

以上、図面を参照して本発明の実施の形態を説明してきたが、上記実施の形態は本発明の例示に過ぎず、本発明が上記実施の形態に限定されるものではないことは明らかである。したがって、本発明の技術思想及び範囲を逸脱しない範囲で構成要素の追加、省略、置換、その他の変更を行ってもよい。   As mentioned above, although embodiment of this invention has been described with reference to drawings, the said embodiment is only the illustration of this invention, and it is clear that this invention is not limited to the said embodiment. is there. Therefore, additions, omissions, substitutions, and other modifications of the components may be made without departing from the technical idea and scope of the present invention.

色空間変換処理において、固有値情報から色空間変換の実施の判断を行い、ブロック単位で適応的に色空間変換を実施することによる符号化効率の改善、および色空間変換を伴う符号化処理と復号処理の高速化が不可欠な用途に適用できる。   In color space conversion processing, it is determined whether to perform color space conversion from eigenvalue information, and the coding space is improved by performing color space conversion adaptively in units of blocks, and encoding processing and decoding with color space conversion. It can be applied to applications where speeding up of processing is essential.

100…画像符号化装置、101…イントラ予測処理部、102…インター予測処理部、103…予測残差信号生成部、104…色空間変換処理部、105…直交変換処理部106…量子化処理部、107…逆量子化処理部、108…逆直交変換処理部、109…逆色空間変換処理部、110…復号信号生成部、111…フレームメモリ、112…ループ内フィルタ処理部、113…フレームバッファ、114…インター予測情報格納部、115…イントラ予測情報格納部、116…色空間変換マトリクス計算部、117…エントロピー符号化処理部、200…画像復号装置、201…エントロピー復号処理部、202…イントラ予測処理部、203…インター予測処理部、204…逆量子化処理部、205…逆直交変換処理部、206…逆色空間変換処理部、207…復号信号生成部、208…フレームメモリ、209…ループ内フィルタ処理部、210…フレームバッファ、211…インター予測情報格納部、212…イントラ予測情報格納部、213…色空間変換マトリクス計算部、301、501、701、901…予測残差信号記憶部、302、502、702、902…色空間変換マトリクス記憶部、303、503、703、903…色空間変換実行部、304、404、704、804、9041004…固有値記憶部、504、604、705、805…基準マトリクス設定部、305、505、706、906…色空間変換実行判定部、306、406、506、606、707、807、907、1007…閾値設定部、401、601、801、1001…復号色空間変換後係数値記憶部、402、602、802、1002…逆色空間変換マトリクス記憶部、403、603、803、1003…逆色空間変換実行部、405、605、806、1006…逆色空間変換実行判定部、905、1005…固有値重み付き和計算部、1100、1200…CPU、1101、1201…メモリ、1102…映像信号入力部、1103、1203…プログラム記憶装置、1104…画像符号化プログラム、1105…符号化ストリーム出力部、1202…符号化ストリーム入力部、1204…画像復号プログラム、1205…復号映像出力部   DESCRIPTION OF SYMBOLS 100 ... Image coding apparatus 101 ... Intra prediction processing part 102 ... Inter prediction processing part 103 ... Prediction residual signal generation part 104 ... Color space conversion processing part 105 ... Orthogonal transformation processing part 106 ... Quantization processing part , 107 ... Inverse quantization processing unit, 108 ... Inverse orthogonal transformation processing unit, 109 ... Inverse color space transformation processing unit, 110 ... Decoded signal generation unit, 111 ... Frame memory, 112 ... In-loop filter processing unit, 113 ... Frame buffer , 114 ... inter prediction information storage section, 115 ... intra prediction information storage section, 116 ... color space conversion matrix calculation section, 117 ... entropy encoding processing section, 200 ... image decoding apparatus, 201 ... entropy decoding processing section, 202 ... intra Prediction processing unit, 203 ... inter prediction processing unit, 204 ... inverse quantization processing unit, 205 ... inverse orthogonal transform processing unit, 206 ... inverse Spatial conversion processing unit, 207 ... decoded signal generation unit, 208 ... frame memory, 209 ... in-loop filter processing unit, 210 ... frame buffer, 211 ... inter prediction information storage unit, 212 ... intra prediction information storage unit, 213 ... color space Conversion matrix calculation unit, 301, 501, 701, 901 ... Prediction residual signal storage unit, 302, 502, 702, 902 ... Color space conversion matrix storage unit, 303, 503, 703, 903 ... Color space conversion execution unit, 304 404, 704, 804, 904004 ... Eigen value storage unit, 504, 604, 705, 805 ... Reference matrix setting unit, 305, 505, 706, 906 ... Color space conversion execution determination unit, 306, 406, 506, 606, 707 , 807, 907, 1007... Threshold setting unit, 401, 601, 801, 1001 Decoded color space converted coefficient value storage unit, 402, 602, 802, 1002 ... Inverse color space conversion matrix storage unit, 403, 603, 803, 1003 ... Inverse color space conversion execution unit, 405, 605, 806, 1006 ... Inverse Color space conversion execution determination unit, 905, 1005 ... Eigen value weighted sum calculation unit, 1100, 1200 ... CPU, 1101, 1201 ... Memory, 1102 ... Video signal input unit, 1103, 1203 ... Program storage device, 1104 ... Image encoding Program, 1105 ... encoded stream output unit, 1202 ... encoded stream input unit, 1204 ... image decoding program, 1205 ... decoded video output unit

Claims (28)

色空間変換を適用して画像を符号化する画像符号化装置が行う画像符号化方法であって、
復号済み参照信号から前記色空間変換を行うための色空間変換マトリクスを計算するマトリクス計算ステップと、
前記色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得ステップと、
所定の閾値と前記固有値との大小関係に基づき、前記色空間変換を実行するか否かを判定する判定ステップと、
前記判定の結果に応じて、前記色空間変換マトリクスの計算結果に基づく前記色空間変換を実行する色空間変換実行ステップと
を有することを特徴とする画像符号化方法。
An image encoding method performed by an image encoding device that encodes an image by applying color space conversion,
A matrix calculation step of calculating a color space conversion matrix for performing the color space conversion from the decoded reference signal;
An eigenvalue acquisition step of acquiring an eigenvalue obtained in the process of calculating the color space conversion matrix;
A determination step of determining whether to perform the color space conversion based on a magnitude relationship between a predetermined threshold and the eigenvalue;
And a color space conversion execution step of executing the color space conversion based on the calculation result of the color space conversion matrix according to the determination result.
前記固有値取得ステップでは、
複数の成分の固有値を取得し、
前記判定ステップでは、
前記複数の固有値の重み付き和を計算して、その重み付き和と所定の閾値との大小関係に基づいて、前記色空間変換を実行するか否かの判定を行うことを特徴とする請求項1に記載の画像符号化方法。
In the eigenvalue acquisition step,
Get the eigenvalues of multiple components,
In the determination step,
The weighted sum of the plurality of eigenvalues is calculated, and it is determined whether or not to perform the color space conversion based on a magnitude relationship between the weighted sum and a predetermined threshold. 2. The image encoding method according to 1.
前記固有値取得ステップでは、
複数の成分の固有値を取得し、
前記判定ステップでは、
各成分に対応する固有値とその固有値に対応する所定の閾値との大小関係に基づき、前記色空間変換を実行するか否かの判定を行うことを特徴とする請求項1に記載の画像符号化方法。
In the eigenvalue acquisition step,
Get the eigenvalues of multiple components,
In the determination step,
2. The image coding according to claim 1, wherein whether or not to perform the color space conversion is determined based on a magnitude relationship between an eigenvalue corresponding to each component and a predetermined threshold corresponding to the eigenvalue. Method.
色空間変換を適用して画像を符号化する画像符号化装置が行う画像符号化方法であって、
復号済み参照信号から前記色空間変換を行うための色空間変換マトリクスを計算するマトリクス計算ステップと、
前記色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算ステップと、
所定の閾値と前記距離との大小関係に基づき、前記色空間変換を実行するか否かを判定する判定ステップと、
前記判定の結果に応じて、前記色空間変換マトリクスの計算結果に基づく前記色空間変換を実行する色空間変換実行ステップと
を有することを特徴とする画像符号化方法。
An image encoding method performed by an image encoding device that encodes an image by applying color space conversion,
A matrix calculation step of calculating a color space conversion matrix for performing the color space conversion from the decoded reference signal;
A distance calculating step of calculating a distance between the color space conversion matrix and a predetermined reference matrix;
A determination step of determining whether or not to perform the color space conversion based on a magnitude relationship between a predetermined threshold and the distance;
And a color space conversion execution step of executing the color space conversion based on the calculation result of the color space conversion matrix according to the determination result.
色空間変換を適用して画像を符号化する画像符号化装置が行う画像符号化方法であって、
復号済み参照信号から前記色空間変換を行うための色空間変換マトリクスを計算するマトリクス計算ステップと、
前記色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得ステップと、
前記色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算ステップと、
前記固有値と、前記距離と、所定の閾値を用いて前記色空間変換を実行するか否かを判定する判定ステップと、
前記判定の結果に応じて、前記色空間変換マトリクスの計算結果に基づく前記色空間変換を実行する色空間変換実行ステップと
を有することを特徴とする画像符号化方法。
An image encoding method performed by an image encoding device that encodes an image by applying color space conversion,
A matrix calculation step of calculating a color space conversion matrix for performing the color space conversion from the decoded reference signal;
An eigenvalue acquisition step of acquiring an eigenvalue obtained in the process of calculating the color space conversion matrix;
A distance calculating step of calculating a distance between the color space conversion matrix and a predetermined reference matrix;
A determination step of determining whether to perform the color space conversion using the eigenvalue, the distance, and a predetermined threshold;
And a color space conversion execution step of executing the color space conversion based on the calculation result of the color space conversion matrix according to the determination result.
所定の閾値を符号化して伝送することを特徴とする請求項1から5のいずれか1項に記載の画像符号化方法。   The image encoding method according to claim 1, wherein a predetermined threshold is encoded and transmitted. 逆色空間変換を適用して符号化データを復号する画像復号装置が行う画像復号方法であって、
復号済み参照信号から前記逆色空間変換を行うための逆色空間変換マトリクスを計算するマトリクス計算ステップと、
前記逆色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得ステップと、
所定の閾値と前記固有値との大小関係に基づき、前記逆色空間変換を実行するか否かを判定する判定ステップと、
前記判定の結果に応じて、前記逆色空間変換マトリクスの計算結果に基づく前記逆色空間変換を実行する逆色空間変換実行ステップと
を有することを特徴とする画像復号方法。
An image decoding method performed by an image decoding apparatus that decodes encoded data by applying inverse color space conversion,
A matrix calculation step of calculating an inverse color space conversion matrix for performing the inverse color space conversion from the decoded reference signal;
An eigenvalue acquisition step of acquiring an eigenvalue obtained in the process of calculating the inverse color space conversion matrix;
A determination step of determining whether or not to perform the inverse color space conversion based on a magnitude relationship between a predetermined threshold and the eigenvalue;
An image decoding method comprising: an inverse color space conversion execution step of executing the inverse color space conversion based on the calculation result of the inverse color space conversion matrix according to the determination result.
前記固有値取得ステップでは、
複数の成分の固有値を取得し、
前記判定ステップでは、
前記複数の固有値の重み付き和を計算して、その重み付き和と所定の閾値との大小関係に基づいて、前記逆色空間変換を実行するか否かの判定を行うことを特徴とする請求項7に記載の画像復号方法。
In the eigenvalue acquisition step,
Get the eigenvalues of multiple components,
In the determination step,
The weighted sum of the plurality of eigenvalues is calculated, and it is determined whether or not to perform the inverse color space conversion based on a magnitude relationship between the weighted sum and a predetermined threshold. Item 8. The image decoding method according to Item 7.
前記固有値取得ステップでは、
複数の成分の固有値を取得し、
前記判定ステップでは、
各成分に対応する固有値とその固有値に対応する所定の閾値との大小関係に基づき、前記逆色空間変換を実行するか否かの判定を行うことを特徴とする請求項7に記載の画像復号方法。
In the eigenvalue acquisition step,
Get the eigenvalues of multiple components,
In the determination step,
8. The image decoding according to claim 7, wherein whether or not to perform the inverse color space conversion is determined based on a magnitude relationship between an eigenvalue corresponding to each component and a predetermined threshold corresponding to the eigenvalue. Method.
逆色空間変換を適用して符号化データを復号する画像復号装置が行う画像復号方法であって、
復号済み参照信号から前記逆色空間変換を行うための逆色空間変換マトリクスを計算するマトリクス計算ステップと、
前記逆色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算ステップと、
所定の閾値と前記距離との大小関係に基づき、前記逆色空間変換を実行するか否かを判定する判定ステップと、
前記判定の結果に応じて、前記逆色空間変換マトリクスの計算結果に基づく前記逆色空間変換を実行する逆色空間変換実行ステップと
を有することを特徴とする画像復号方法。
An image decoding method performed by an image decoding apparatus that decodes encoded data by applying inverse color space conversion,
A matrix calculation step of calculating an inverse color space conversion matrix for performing the inverse color space conversion from the decoded reference signal;
A distance calculating step of calculating a distance between the inverse color space conversion matrix and a predetermined reference matrix;
A determination step of determining whether to perform the inverse color space conversion based on a magnitude relationship between a predetermined threshold and the distance;
An image decoding method comprising: an inverse color space conversion execution step of executing the inverse color space conversion based on the calculation result of the inverse color space conversion matrix according to the determination result.
逆色空間変換を適用して符号化データを復号する画像復号装置が行う画像復号方法であって、
復号済み参照信号から前記逆色空間変換を行うための逆色空間変換マトリクスを計算するマトリクス計算ステップと、
前記逆色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得ステップと、
前記逆色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算ステップと、
前記固有値と、前記距離と、所定の閾値を用いて前記逆色空間変換を実行するか否かを判定する判定ステップと、
前記判定の結果に応じて、前記逆色空間変換マトリクスの計算結果に基づく前記逆色空間変換を実行する逆色空間変換実行ステップと
を有することを特徴とする画像復号方法。
An image decoding method performed by an image decoding apparatus that decodes encoded data by applying inverse color space conversion,
A matrix calculation step of calculating an inverse color space conversion matrix for performing the inverse color space conversion from the decoded reference signal;
An eigenvalue acquisition step of acquiring an eigenvalue obtained in the process of calculating the inverse color space conversion matrix;
A distance calculating step of calculating a distance between the inverse color space conversion matrix and a predetermined reference matrix;
A determination step of determining whether to perform the inverse color space conversion using the eigenvalue, the distance, and a predetermined threshold;
An image decoding method comprising: an inverse color space conversion execution step of executing the inverse color space conversion based on the calculation result of the inverse color space conversion matrix according to the determination result.
所定の閾値をビットストリームから復号して設定することを特徴とする請求項7から11のいずれか1項に記載の画像復号方法。   The image decoding method according to any one of claims 7 to 11, wherein the predetermined threshold is set by decoding from a bitstream. 色空間変換を適用して画像を符号化する画像符号化装置であって、
復号済み参照信号から前記色空間変換を行うための色空間変換マトリクスを計算するマトリクス計算手段と、
前記色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得手段と、
所定の閾値と前記固有値との大小関係に基づき、前記色空間変換を実行するか否かを判定する判定手段と、
前記判定の結果に応じて、前記色空間変換マトリクスの計算結果に基づく前記色空間変換を実行する色空間変換実行手段と
を備えることを特徴とする画像符号化装置。
An image encoding device that encodes an image by applying color space conversion,
Matrix calculation means for calculating a color space conversion matrix for performing the color space conversion from the decoded reference signal;
Eigenvalue acquisition means for acquiring eigenvalues obtained in the process of calculating the color space conversion matrix;
Determination means for determining whether or not to execute the color space conversion based on a magnitude relationship between a predetermined threshold and the eigenvalue;
An image coding apparatus comprising: color space conversion executing means for executing the color space conversion based on the calculation result of the color space conversion matrix according to the determination result.
前記固有値取得手段は、
複数の成分の固有値を取得し、
前記判定手段は、
前記複数の固有値の重み付き和を計算して、その重み付き和と所定の閾値との大小関係に基づいて、前記色空間変換を実行するか否かの判定を行うことを特徴とする請求項13に記載の画像符号化装置。
The eigenvalue acquisition means includes
Get the eigenvalues of multiple components,
The determination means includes
The weighted sum of the plurality of eigenvalues is calculated, and it is determined whether or not to perform the color space conversion based on a magnitude relationship between the weighted sum and a predetermined threshold. 14. The image encoding device according to 13.
前記固有値取得手段は、
複数の成分の固有値を取得し、
前記判定手段は、
各成分に対応する固有値とその固有値に対応する所定の閾値との大小関係に基づき、前記色空間変換を実行するか否かの判定を行うことを特徴とする請求項13に記載の画像符号化装置。
The eigenvalue acquisition means includes
Get the eigenvalues of multiple components,
The determination means includes
14. The image coding according to claim 13, wherein whether or not to perform the color space conversion is determined based on a magnitude relationship between an eigenvalue corresponding to each component and a predetermined threshold corresponding to the eigenvalue. apparatus.
色空間変換を適用して画像を符号化する画像符号化装置であって、
復号済み参照信号から前記色空間変換を行うための色空間変換マトリクスを計算するマトリクス計算手段と、
前記色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算手段と、
所定の閾値と前記距離との大小関係に基づき、前記色空間変換を実行するか否かを判定する判定手段と、
前記判定の結果に応じて、前記色空間変換マトリクスの計算結果に基づく前記色空間変換を実行する色空間変換実行手段と
を備えることを特徴とする画像符号化装置。
An image encoding device that encodes an image by applying color space conversion,
Matrix calculation means for calculating a color space conversion matrix for performing the color space conversion from the decoded reference signal;
A distance calculating means for calculating a distance between the color space conversion matrix and a predetermined reference matrix;
Determination means for determining whether or not to execute the color space conversion based on a magnitude relationship between a predetermined threshold and the distance;
An image coding apparatus comprising: color space conversion executing means for executing the color space conversion based on the calculation result of the color space conversion matrix according to the determination result.
色空間変換を適用して画像を符号化する画像符号化装置であって、
復号済み参照信号から前記色空間変換を行うための色空間変換マトリクスを計算するマトリクス計算手段と、
前記色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得手段と、
前記色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算手段と、
前記固有値と、前記距離と、所定の閾値を用いて前記色空間変換を実行するか否かを判定する判定手段と、
前記判定の結果に応じて、前記色空間変換マトリクスの計算結果に基づく前記色空間変換を実行する色空間変換実行手段と
を備えることを特徴とする画像符号化装置。
An image encoding device that encodes an image by applying color space conversion,
Matrix calculation means for calculating a color space conversion matrix for performing the color space conversion from the decoded reference signal;
Eigenvalue acquisition means for acquiring eigenvalues obtained in the process of calculating the color space conversion matrix;
A distance calculating means for calculating a distance between the color space conversion matrix and a predetermined reference matrix;
Determination means for determining whether to perform the color space conversion using the eigenvalue, the distance, and a predetermined threshold;
An image coding apparatus comprising: color space conversion executing means for executing the color space conversion based on the calculation result of the color space conversion matrix according to the determination result.
所定の閾値を符号化して伝送することを特徴とする請求項13から17のいずれか1項に記載の画像符号化装置。   The image encoding device according to any one of claims 13 to 17, wherein a predetermined threshold is encoded and transmitted. 逆色空間変換を適用して符号化データを復号する画像復号装置であって、
復号済み参照信号から前記逆色空間変換を行うための逆色空間変換マトリクスを計算するマトリクス計算手段と、
前記逆色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得手段と、
所定の閾値と前記固有値との大小関係に基づき、前記逆色空間変換を実行するか否かを判定する判定手段と、
前記判定の結果に応じて、前記逆色空間変換マトリクスの計算結果に基づく前記逆色空間変換を実行する逆色空間変換実行手段と
を備えることを特徴とする画像復号装置。
An image decoding device that decodes encoded data by applying inverse color space conversion,
Matrix calculation means for calculating an inverse color space conversion matrix for performing the inverse color space conversion from the decoded reference signal;
Eigenvalue acquisition means for acquiring eigenvalues obtained in the process of calculating the inverse color space conversion matrix;
Determination means for determining whether to perform the inverse color space conversion based on a magnitude relationship between a predetermined threshold and the eigenvalue;
An image decoding apparatus comprising: an inverse color space conversion executing unit configured to execute the inverse color space conversion based on the calculation result of the inverse color space conversion matrix according to the determination result.
前記固有値取得手段は、
複数の成分の固有値を取得し、
前記判定手段は、
前記複数の固有値の重み付き和を計算して、その重み付き和と所定の閾値との大小関係に基づいて、前記逆色空間変換を実行するか否かの判定を行うことを特徴とする請求項19に記載の画像復号装置。
The eigenvalue acquisition means includes
Get the eigenvalues of multiple components,
The determination means includes
The weighted sum of the plurality of eigenvalues is calculated, and it is determined whether or not to perform the inverse color space conversion based on a magnitude relationship between the weighted sum and a predetermined threshold. Item 20. The image decoding device according to Item 19.
前記固有値取得手段は、
複数の成分の固有値を取得し、
前記判定手段は、
各成分に対応する固有値とその固有値に対応する所定の閾値との大小関係に基づき、前記逆色空間変換を実行するか否かの判定を行うことを特徴とする請求項19に記載の画像復号装置。
The eigenvalue acquisition means includes
Get the eigenvalues of multiple components,
The determination means includes
20. The image decoding according to claim 19, wherein whether or not to perform the inverse color space conversion is determined based on a magnitude relationship between an eigenvalue corresponding to each component and a predetermined threshold corresponding to the eigenvalue. apparatus.
逆色空間変換を適用して符号化データを復号する画像復号装置であって、
復号済み参照信号から前記逆色空間変換を行うための逆色空間変換マトリクスを計算するマトリクス計算手段と、
前記逆色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算手段と、
所定の閾値と前記距離との大小関係に基づき、前記逆色空間変換を実行するか否かを判定する判定手段と、
前記判定の結果に応じて、前記逆色空間変換マトリクスの計算結果に基づく前記逆色空間変換を実行する逆色空間変換実行手段と
を備えることを特徴とする画像復号装置。
An image decoding device that decodes encoded data by applying inverse color space conversion,
Matrix calculation means for calculating an inverse color space conversion matrix for performing the inverse color space conversion from the decoded reference signal;
Distance calculating means for calculating a distance between the inverse color space conversion matrix and a predetermined reference matrix;
Determination means for determining whether or not to perform the inverse color space conversion based on a magnitude relationship between a predetermined threshold and the distance;
An image decoding apparatus comprising: an inverse color space conversion executing unit configured to execute the inverse color space conversion based on the calculation result of the inverse color space conversion matrix according to the determination result.
逆色空間変換を適用して符号化データを復号する画像復号装置であって、
復号済み参照信号から前記逆色空間変換を行うための逆色空間変換マトリクスを計算するマトリクス計算手段と、
前記逆色空間変換マトリクスを計算する過程で得られる固有値を取得する固有値取得手段と、
前記逆色空間変換マトリクスと所定の基準マトリクスとの距離を計算する距離計算手段と、
前記固有値と、前記距離と、所定の閾値を用いて前記逆色空間変換を実行するか否かを判定する判定手段と、
前記判定の結果に応じて、前記逆色空間変換マトリクスの計算結果に基づく前記逆色空間変換を実行する逆色空間変換実行手段と
を備えることを特徴とする画像復号装置。
An image decoding device that decodes encoded data by applying inverse color space conversion,
Matrix calculation means for calculating an inverse color space conversion matrix for performing the inverse color space conversion from the decoded reference signal;
Eigenvalue acquisition means for acquiring eigenvalues obtained in the process of calculating the inverse color space conversion matrix;
Distance calculating means for calculating a distance between the inverse color space conversion matrix and a predetermined reference matrix;
Determination means for determining whether to perform the inverse color space conversion using the eigenvalue, the distance, and a predetermined threshold;
An image decoding apparatus comprising: an inverse color space conversion executing unit configured to execute the inverse color space conversion based on the calculation result of the inverse color space conversion matrix according to the determination result.
所定の閾値をビットストリームから復号して設定することを特徴とする請求項19から23のいずれか1項に記載の画像復号装置。   The image decoding apparatus according to any one of claims 19 to 23, wherein the predetermined threshold is set by decoding from a bit stream. コンピュータに、請求項1から請求項6のいずれか1項に記載の画像符号化方法を実行させるための画像符号化プログラム。   An image encoding program for causing a computer to execute the image encoding method according to any one of claims 1 to 6. コンピュータに、請求項7から請求項12のいずれか1項に記載の画像復号方法を実行させるための画像復号プログラム。   An image decoding program for causing a computer to execute the image decoding method according to any one of claims 7 to 12. 請求項25に記載の画像符号化プログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the image encoding program according to claim 25 is recorded. 請求項26に記載の画像復号プログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the image decoding program according to claim 26 is recorded.
JP2013080008A 2013-04-05 2013-04-05 Image encoding method, image decoding method, image encoding device, image decoding device, program thereof, and recording medium recording the program Active JP6030989B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013080008A JP6030989B2 (en) 2013-04-05 2013-04-05 Image encoding method, image decoding method, image encoding device, image decoding device, program thereof, and recording medium recording the program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013080008A JP6030989B2 (en) 2013-04-05 2013-04-05 Image encoding method, image decoding method, image encoding device, image decoding device, program thereof, and recording medium recording the program

Publications (2)

Publication Number Publication Date
JP2014204347A true JP2014204347A (en) 2014-10-27
JP6030989B2 JP6030989B2 (en) 2016-11-24

Family

ID=52354412

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013080008A Active JP6030989B2 (en) 2013-04-05 2013-04-05 Image encoding method, image decoding method, image encoding device, image decoding device, program thereof, and recording medium recording the program

Country Status (1)

Country Link
JP (1) JP6030989B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016523460A (en) * 2013-05-30 2016-08-08 アップル インコーポレイテッド Adaptive color space conversion coding
US10602143B2 (en) 2013-05-30 2020-03-24 Apple Inc. Adaptive color space transform coding

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005160108A (en) * 2003-11-26 2005-06-16 Samsung Electronics Co Ltd Color video residue transformation/inverse transformation method and apparatus, and color video encoding/decoding method and apparatus using the same
JP2011188368A (en) * 2010-03-10 2011-09-22 Nippon Hoso Kyokai <Nhk> Encoding apparatus, decoding apparatus and program
JP2013239923A (en) * 2012-05-15 2013-11-28 Nippon Hoso Kyokai <Nhk> Color conversion apparatus, encoder and decoder and their program
JP2014120998A (en) * 2012-12-18 2014-06-30 Nippon Hoso Kyokai <Nhk> Encoder and program of the same, decoder and program of the same, and image processing system
JP2014195145A (en) * 2013-03-28 2014-10-09 Kddi Corp Moving image encoding device, moving image decoding device, moving image encoding method, moving image decoding method, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005160108A (en) * 2003-11-26 2005-06-16 Samsung Electronics Co Ltd Color video residue transformation/inverse transformation method and apparatus, and color video encoding/decoding method and apparatus using the same
JP2011188368A (en) * 2010-03-10 2011-09-22 Nippon Hoso Kyokai <Nhk> Encoding apparatus, decoding apparatus and program
JP2013239923A (en) * 2012-05-15 2013-11-28 Nippon Hoso Kyokai <Nhk> Color conversion apparatus, encoder and decoder and their program
JP2014120998A (en) * 2012-12-18 2014-06-30 Nippon Hoso Kyokai <Nhk> Encoder and program of the same, decoder and program of the same, and image processing system
JP2014195145A (en) * 2013-03-28 2014-10-09 Kddi Corp Moving image encoding device, moving image decoding device, moving image encoding method, moving image decoding method, and program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JPN6016039826; Shohei Matsuo, et al.: 'AHG7: Modification of in-loop colour-space transformation' Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11 JCTVC-M0072, 20130422 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016523460A (en) * 2013-05-30 2016-08-08 アップル インコーポレイテッド Adaptive color space conversion coding
US10602143B2 (en) 2013-05-30 2020-03-24 Apple Inc. Adaptive color space transform coding
US11184613B2 (en) 2013-05-30 2021-11-23 Apple Inc. Adaptive color space transform coding
US11368689B2 (en) 2013-05-30 2022-06-21 Apple Inc. Adaptive color space transform coding
US11368688B2 (en) 2013-05-30 2022-06-21 Apple Inc. Adaptive color space transform coding
US11758135B2 (en) 2013-05-30 2023-09-12 Apple Inc. Adaptive color space transform coding

Also Published As

Publication number Publication date
JP6030989B2 (en) 2016-11-24

Similar Documents

Publication Publication Date Title
KR102426721B1 (en) Methods of determination for chroma quantization parameter and apparatuses for using the same
KR102462009B1 (en) Method for image encoding and computer readable redording meduim thereof
JP6316487B2 (en) Encoder, decoder, method, and program
JP6053220B2 (en) Intra-prediction encoding method, intra-prediction decoding method, intra-prediction encoding device, intra-prediction decoding device, their program, and recording medium recording the program
CN106170092B (en) Fast coding method for lossless coding
TWI689195B (en) Coding escape pixels for palette coding
EP2681914B1 (en) Quantized pulse code modulation in video coding
EP2829064B1 (en) Parameter determination for exp-golomb residuals binarization for lossless intra hevc coding
EP2755388B1 (en) Method, device, and program for encoding and decoding image
EP3568986A1 (en) Intra prediction techniques for video coding
JP7343669B2 (en) Method and apparatus for color conversion in VVC
JP7297918B2 (en) Color conversion for video coding
KR20140010185A (en) Lossless coding and associated signaling methods for compound video
WO2015051011A1 (en) Modified hevc transform tree syntax
JP6383327B2 (en) Intra prediction processing device, intra prediction processing method, intra prediction processing program, image encoding device, and image decoding device
JP2023133391A (en) Encoder, decoder and corresponding method using adaptive loop filter
KR20170072637A (en) Video Coding/Encoding Method and Apparatus thereof
WO2016115186A1 (en) Gradual updating using transform coefficients for encoding and decoding
JP2012080571A (en) Encoding device and method
KR20170114598A (en) Video coding and decoding methods using adaptive cross component prediction and apparatus
JP6030989B2 (en) Image encoding method, image decoding method, image encoding device, image decoding device, program thereof, and recording medium recording the program
KR20140004018A (en) The method of encoding and decoding of quantization matrix and the apparatus for using the same
JP5375935B2 (en) Encoding apparatus and method
KR102017027B1 (en) Fast video encoding method and apparatus for the same
JP2012055022A (en) Encoding device and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20151207

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161011

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: 20161018

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161021

R150 Certificate of patent or registration of utility model

Ref document number: 6030989

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150