[go: up one dir, main page]

JP2015095693A - Image processing device and image processing program - Google Patents

Image processing device and image processing program Download PDF

Info

Publication number
JP2015095693A
JP2015095693A JP2013232584A JP2013232584A JP2015095693A JP 2015095693 A JP2015095693 A JP 2015095693A JP 2013232584 A JP2013232584 A JP 2013232584A JP 2013232584 A JP2013232584 A JP 2013232584A JP 2015095693 A JP2015095693 A JP 2015095693A
Authority
JP
Japan
Prior art keywords
color conversion
unit
image
color
conversion matrix
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.)
Pending
Application number
JP2013232584A
Other languages
Japanese (ja)
Inventor
俊輔 岩村
Shunsuke Iwamura
俊輔 岩村
俊枝 三須
Toshie Misu
俊枝 三須
善明 鹿喰
Yoshiaki Shishikui
善明 鹿喰
境田 慎一
Shinichi Sakaida
慎一 境田
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.)
Japan Broadcasting Corp
Original Assignee
Nippon Hoso Kyokai NHK
Japan Broadcasting 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 Hoso Kyokai NHK, Japan Broadcasting Corp filed Critical Nippon Hoso Kyokai NHK
Priority to JP2013232584A priority Critical patent/JP2015095693A/en
Publication of JP2015095693A publication Critical patent/JP2015095693A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

【課題】画質の低下を防ぎつつ、適切な色変換を行う。
【解決手段】画像から複数の分析領域を取得する取得部と、各分析領域に含まれる代表点に対し、分析領域内の画素値に基づいて算出した固有ベクトルを有する色変換行列を変換して、回転パラメータを算出するパラメータ算出部と、固有ベクトルを補間して、代表点以外の点の色変換行列を算出する補間部と、パラメータ算出部により算出された色変換行例及び補間部により算出された色変換行列を用いて、画像の色変換を行う色変換部と、各代表点の回転パラメータを含む色変換情報を符号化する色変換情報符号化部と、を有する。
【選択図】図1
Proper color conversion is performed while preventing deterioration in image quality.
An acquisition unit that acquires a plurality of analysis regions from an image, and a representative point included in each analysis region, a color conversion matrix having an eigenvector calculated based on a pixel value in the analysis region is converted, Calculated by a parameter calculation unit that calculates rotation parameters, an interpolation unit that calculates a color conversion matrix of points other than the representative points by interpolating eigenvectors, and a color conversion example and an interpolation unit calculated by the parameter calculation unit A color conversion unit that performs color conversion of an image using a color conversion matrix, and a color conversion information encoding unit that encodes color conversion information including a rotation parameter of each representative point.
[Selection] Figure 1

Description

本発明は、画像をブロック単位で処理する画像処理装置及び画像処理プログラムに関する。   The present invention relates to an image processing apparatus and an image processing program for processing an image in units of blocks.

カラー画像のR、G、Bの3成分には高い色相関がある。このため、画像符号化ではY、Cb、Crなどの輝度、色差信号に変換されるが、変換後も色相関が残っている。なお、画像は、動画像及び静止画像を含む。   The three components R, G, and B of the color image have a high color correlation. For this reason, in image coding, it is converted into luminance and color difference signals such as Y, Cb, and Cr, but color correlation remains after conversion. The image includes a moving image and a still image.

そこで、入力画像の特徴に応じて、主成分分析(例えば非特許文献1参照)や複数の色変換の切り替え(例えば非特許文献2参照)を行って画像を色変換し、色変換後の画像を符号化する技術がある。利用した色変換情報は、符号化された復号側に送られる。   Therefore, the image is subjected to color conversion by performing principal component analysis (for example, see Non-Patent Document 1) or switching between a plurality of color conversions (for example, see Non-Patent Document 2) according to the characteristics of the input image, and the image after color conversion There is a technique for encoding. The used color conversion information is sent to the encoded decoding side.

S.K.Singh, et al. "Novel adaptive color space transform and application to image compression," Signal Processing: Image Communication, vol.26, issue 10, pp.662-672.S.K.Singh, et al. "Novel adaptive color space transform and application to image compression," Signal Processing: Image Communication, vol.26, issue 10, pp.662-672. D.Marpe, et al. "An adaptive color transform approach and its application in 4:4:4 video coding," Proceeding of Europian Signal Processing Conference 2006.D. Marpe, et al. "An adaptive color transform approach and its application in 4: 4: 4 video coding," Proceeding of Europian Signal Processing Conference 2006.

ここで、画像に対して最適な色変換が行われると、変換後の第1成分(以下、C1とも称す)にエネルギーが集中し、第2成分、第3成分(以下、それぞれC2、C3とも称す)のエネルギーが小さくなり、符号化効率が向上する。   Here, when optimal color conversion is performed on the image, energy concentrates on the converted first component (hereinafter also referred to as C1), and the second component and the third component (hereinafter referred to as C2 and C3, respectively). The encoding efficiency is improved.

しかしながら、色変換の切り替え単位は、ブロック単位が一般的である。なめらかに色が変化する画像に対し、ブロック単位で色変換が行われると、ブロック境界が現れてしまう。この画像をMPEG2やAVC/H.264などの一般的な符号化方式によって圧縮すると、画像の連続性が損なわれたことにより符号化効率が低下してしまう。よって、一般的なブロック単位での適切な色変換を行おうとすると、画質が低下する可能性があるという問題がある。   However, the color conversion switching unit is generally a block unit. When color conversion is performed on a block-by-block basis for an image whose color changes smoothly, a block boundary appears. This image is converted to MPEG2 or AVC / H. When compression is performed by a general encoding method such as H.264, the encoding efficiency is lowered due to the loss of image continuity. Therefore, there is a problem that the image quality may be deteriorated when appropriate color conversion is performed in a general block unit.

そこで、本発明は、画質の低下を防ぎつつ、適切な色変換を行うことができる画像処理装置及び画像処理プログラムを提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an image processing apparatus and an image processing program capable of performing appropriate color conversion while preventing deterioration in image quality.

本発明の一態様における画像処理装置は、画像から複数の分析領域を取得する取得部と、各分析領域に含まれる代表点に対し、前記分析領域内の画素値に基づいて算出した固有ベクトルを有する色変換行列を変換して、回転パラメータを算出するパラメータ算出部と、前記固有ベクトルを補間して、前記代表点以外の点の色変換行列を算出する補間部と、前記パラメータ算出部により算出された色変換行例及び前記補間部により算出された色変換行列を用いて、前記画像の色変換を行う色変換部と、各代表点の回転パラメータを含む色変換情報を符号化する色変換情報符号化部と、を有する。   An image processing apparatus according to an aspect of the present invention includes an acquisition unit that acquires a plurality of analysis regions from an image, and eigenvectors calculated based on pixel values in the analysis regions with respect to representative points included in each analysis region. Calculated by a parameter calculation unit that converts a color conversion matrix to calculate a rotation parameter, an interpolation unit that interpolates the eigenvector to calculate a color conversion matrix of points other than the representative point, and the parameter calculation unit A color conversion unit that performs color conversion of the image using a color conversion row example and the color conversion matrix calculated by the interpolation unit, and a color conversion information code that encodes color conversion information including rotation parameters of each representative point And a conversion unit.

また、上記画像処理装置は、前記色変換後の3つの色成分のうちの2つの色成分のエネルギーを算出するエネルギー算出部と、前記エネルギーを用いる所定条件が満たされるまで、前記分析領域のサイズを再設定する領域設定部と、をさらに有し、前記パラメータ算出部は、前記領域設定部により再設定された分析領域内の画素に基づいて、回転パラメータを算出してもよい。   The image processing apparatus includes: an energy calculating unit that calculates energy of two color components of the three color components after the color conversion; and a size of the analysis region until a predetermined condition using the energy is satisfied. The parameter calculation unit may calculate a rotation parameter based on the pixels in the analysis region reset by the region setting unit.

また、上記画像処理装置は、前記色変換後の画像に対して符号化処理を行う画像符号化部をさらに有してもよい。   The image processing apparatus may further include an image encoding unit that performs an encoding process on the color-converted image.

また、本発明の他の態様における画像処理装置は、符号化された画像を復号する画像復号部と、前記符号化された画像の各代表点の回転パラメータであって、固有ベクトルを有する色変換行列が変換された回転パラメータを含む、符号化された色変換情報を復号する色変換情報復号部と、前記各代表点に対し、復号された回転パラメータを用いて色変換行列を算出する算出部と、前記算出部により算出された色変換行列の固有ベクトルを補間して、前記代表点以外の点の色変換行列を算出する補間部と、前記算出部により算出された色変換行列及び前記補間部により算出された色変換行列を用いて、前記画像復号部により復号された画像の色逆変換を行う色逆変換部と、を有する。   An image processing apparatus according to another aspect of the present invention includes an image decoding unit that decodes an encoded image, and a color conversion matrix that is a rotation parameter of each representative point of the encoded image and has an eigenvector A color conversion information decoding unit that decodes encoded color conversion information including the converted rotation parameter, and a calculation unit that calculates a color conversion matrix for each representative point using the decoded rotation parameter; Interpolating the eigenvectors of the color conversion matrix calculated by the calculation unit to calculate a color conversion matrix of points other than the representative points, the color conversion matrix calculated by the calculation unit, and the interpolation unit A color reverse conversion unit that performs color reverse conversion of the image decoded by the image decoding unit using the calculated color conversion matrix.

また、本発明の他の態様における画像処理プログラムは、コンピュータに、画像から複数の分析領域を取得する取得ステップ、各分析領域に含まれる代表点に対し、前記分析領域内の画素値に基づいて算出した固有ベクトルを有する色変換行列を変換して、回転パラメータを算出するパラメータ算出ステップ、前記固有ベクトルを補間して、前記代表点以外の点の色変換行列を算出する補間ステップ、前記パラメータ算出ステップにより算出された色変換行例及び前記補間ステップにより算出された色変換行列を用いて、前記画像の色変換を行う色変換ステップ、各代表点の回転パラメータを含む色変換情報を符号化する色変換情報符号化ステップ、を実行させる。   An image processing program according to another aspect of the present invention is an acquisition step of acquiring a plurality of analysis regions from an image on a computer, based on pixel values in the analysis regions for representative points included in each analysis region. A parameter calculating step of converting a color conversion matrix having the calculated eigenvector to calculate a rotation parameter; an interpolation step of interpolating the eigenvector to calculate a color conversion matrix of points other than the representative point; and the parameter calculating step. Using the calculated color conversion example and the color conversion matrix calculated in the interpolation step, a color conversion step for performing color conversion of the image, and a color conversion for encoding color conversion information including rotation parameters of each representative point An information encoding step is executed.

また、本発明の他の態様における画像処理プログラムは、コンピュータに、符号化された画像を復号する画像復号ステップと、前記符号化された画像の各代表点の回転パラメータであって、固有ベクトルを有する色変換行列が変換された回転パラメータを含む、符号化された色変換情報を復号する色変換情報復号ステップ、前記各代表点に対し、復号された回転パラメータを用いて色変換行列を算出する算出ステップ、前記算出ステップにより算出された色変換行列の固有ベクトルを補間して、前記代表点以外の点の色変換行列を算出する補間ステップ、前記算出ステップにより算出された色変換行列及び前記補間ステップにより算出された色変換行列を用いて、前記画像復号ステップにより復号された画像の色逆変換を行う色逆変換ステップ、を実行させる。   An image processing program according to another aspect of the present invention includes an image decoding step for decoding an encoded image and a rotation parameter for each representative point of the encoded image, and having an eigenvector. A color conversion information decoding step for decoding the encoded color conversion information including the rotation parameter converted by the color conversion matrix; and a calculation for calculating a color conversion matrix using the decoded rotation parameter for each representative point Interpolating the eigenvector of the color conversion matrix calculated in the calculation step to calculate a color conversion matrix of points other than the representative point, the color conversion matrix calculated in the calculation step, and the interpolation step Using the calculated color conversion matrix, a color reverse conversion step for performing color reverse conversion of the image decoded in the image decoding step. , To the execution.

本発明によれば、画質の低下を防ぎつつ、適切な色変換を行うことができる。   According to the present invention, it is possible to perform appropriate color conversion while preventing deterioration in image quality.

実施例1における画像処理装置の構成の一例を示すブロック図。1 is a block diagram illustrating an example of a configuration of an image processing device according to Embodiment 1. FIG. 代表点と分析領域との関係の一例を示す図。The figure which shows an example of the relationship between a representative point and an analysis area. 色変換を回転行列の積で表す図。The figure showing color conversion by the product of a rotation matrix. 回転行列を示す図。The figure which shows a rotation matrix. 極座標系へのパラメータ化の一例を示す図。The figure which shows an example of parameterization to a polar coordinate system. 2つのベクトルが張る法線ベクトルの一例を示す図。The figure which shows an example of the normal vector which two vectors stretch. 実施例1における画像処理の一例を示すフローチャート。5 is a flowchart illustrating an example of image processing in the first embodiment. 実施例2における画像処理装置の構成の一例を示すブロック図。FIG. 6 is a block diagram illustrating an example of a configuration of an image processing apparatus according to a second embodiment. 実施例2における画像処理の一例を示すフローチャート。10 is a flowchart illustrating an example of image processing according to the second embodiment. 実施例3における画像処理装置の構成の一例を示すブロック図。FIG. 9 is a block diagram illustrating an example of a configuration of an image processing apparatus according to a third embodiment. 実施例3における画像処理の一例を示すフローチャート。10 is a flowchart illustrating an example of image processing in the third embodiment. 実施例4における画像処理装置の構成の一例を示すブロック図。FIG. 10 is a block diagram illustrating an example of a configuration of an image processing apparatus according to a fourth embodiment.

以下、各実施例について、添付図面を参照しながら詳細に説明する。   Hereinafter, each embodiment will be described in detail with reference to the accompanying drawings.

[実施例1]
まず、実施例1における画像処理装置について説明する。実施例1における画像処理装置は、適切な色変換が行われた後に画像が符号化される装置である。
[Example 1]
First, the image processing apparatus according to the first embodiment will be described. The image processing apparatus according to the first exemplary embodiment is an apparatus that encodes an image after appropriate color conversion is performed.

<構成>
図1は、実施例1における画像処理装置10の構成の一例を示すブロック図である。図1に示す画像処理装置10は、色変換を行う色変換装置11と、色変換された画像を符号化する画像符号化部12とを有する。なお、色変換装置11だけで、画像処理装置と称してもよい。
<Configuration>
FIG. 1 is a block diagram illustrating an example of the configuration of the image processing apparatus 10 according to the first embodiment. An image processing apparatus 10 illustrated in FIG. 1 includes a color conversion apparatus 11 that performs color conversion, and an image encoding unit 12 that encodes the color-converted image. The color conversion device 11 alone may be referred to as an image processing device.

色変換装置11は、入力部101と、取得部102と、パラメータ算出部103と、補間部104と、生成部105と、色変換部106と、色変換情報符号化部107とを有する。   The color conversion apparatus 11 includes an input unit 101, an acquisition unit 102, a parameter calculation unit 103, an interpolation unit 104, a generation unit 105, a color conversion unit 106, and a color conversion information encoding unit 107.

入力部101は、画像を入力する。入力部101は、入力した画像を取得部102と、色変換部106とに出力する。   The input unit 101 inputs an image. The input unit 101 outputs the input image to the acquisition unit 102 and the color conversion unit 106.

取得部102は、入力部101から取得した画像から複数の代表点(画素)を抽出し、この代表点を含む分析領域を取得する。代表点は、予め設定されていてもよいし、特徴点抽出により抽出された点を代表点としてもよい。特徴点は、例えばエッジ抽出などにより求められる。   The acquisition unit 102 extracts a plurality of representative points (pixels) from the image acquired from the input unit 101, and acquires an analysis region including the representative points. The representative point may be set in advance, or a point extracted by feature point extraction may be used as the representative point. The feature points are obtained by, for example, edge extraction.

取得部102は、求められた特徴点を含む分析領域を取得する。分析領域は、例えば、代表点を中心に32×32の領域である。取得部102は、代表点の位置と、分析領域とをパラメータ算出部103に出力する。   The acquisition unit 102 acquires an analysis region including the obtained feature point. The analysis area is, for example, a 32 × 32 area centered on the representative point. The acquisition unit 102 outputs the representative point position and the analysis region to the parameter calculation unit 103.

また、取得部102は、グラデーション抽出、平坦部分の抽出などにより、画像を複数の分析領域に分割し、分析領域の任意の点(例えば中心点)を代表点として設定してもよい。   The acquisition unit 102 may divide the image into a plurality of analysis regions by gradation extraction, flat portion extraction, or the like, and set an arbitrary point (for example, a center point) in the analysis region as a representative point.

ここで、代表点と分析領域との関係について説明する。図2は、代表点と分析領域との関係の一例を示す図である。図2に示す例では、代表点は、画像に対し、格子状に設定されている。なお、代表点は、図2に示す例に限られず、特徴点抽出などにより、任意の点が設定されてもよい。   Here, the relationship between the representative point and the analysis area will be described. FIG. 2 is a diagram illustrating an example of the relationship between representative points and analysis areas. In the example illustrated in FIG. 2, the representative points are set in a grid pattern with respect to the image. The representative point is not limited to the example shown in FIG. 2, and an arbitrary point may be set by extracting feature points.

また、図2に示す例では、分析領域ar101は、代表点を中心とする所定領域(例えば32×32)が設定されている。なお、分析領域は、図2に示す例に限らず、円形や矩形など形状を問わない。また、取得部102は、先に分析領域を求め、この分析領域の任意の点を代表点に設定してもよい。   In the example shown in FIG. 2, the analysis area ar101 is set with a predetermined area (for example, 32 × 32) centered on the representative point. Note that the analysis region is not limited to the example shown in FIG. In addition, the acquisition unit 102 may first obtain an analysis region and set an arbitrary point of the analysis region as a representative point.

図1に戻り、パラメータ算出部103は、取得した各分析領域に含まれる代表点に対し、この分析領域内の画素値に基づいて算出した固有ベクトルを有する色変換行列を変換して、回転パラメータを算出する。つまり、パラメータ算出部103は、各代表点のRGBからC1〜C3を求めるための適切な回転パラメータθ1〜θ3を、分析領域を分析することで算出する。   Returning to FIG. 1, the parameter calculation unit 103 converts the color conversion matrix having the eigenvector calculated based on the pixel value in the analysis region to the representative point included in each acquired analysis region, and sets the rotation parameter. calculate. That is, the parameter calculation unit 103 calculates appropriate rotation parameters θ1 to θ3 for obtaining C1 to C3 from RGB of each representative point by analyzing the analysis region.

図3は、色変換を回転行列の積で表す図である。色変換行列は、3×3の行列である。色変換行列は、直交したRGB軸の回転に対応する。よって、色変換行列は、図3に示すように、3つの回転行列の積とみなせる。   FIG. 3 is a diagram illustrating color conversion as a product of rotation matrices. The color conversion matrix is a 3 × 3 matrix. The color conversion matrix corresponds to the rotation of the orthogonal RGB axes. Therefore, the color conversion matrix can be regarded as a product of three rotation matrices as shown in FIG.

図4は、回転行列を示す図である。図4に示す回転行列は、次の式(1)で表すことができる。   FIG. 4 is a diagram illustrating a rotation matrix. The rotation matrix shown in FIG. 4 can be expressed by the following equation (1).

Figure 2015095693
よって、R、G、BからC1、C2、C3への色変換は、3つの回転パラメータθ1、θ2、θ3によって決定される。
Figure 2015095693
Therefore, the color conversion from R, G, B to C1, C2, C3 is determined by the three rotation parameters θ1, θ2, θ3.

例えば、パラメータ算出部103は、各分析領域内の画素値を用いて、色信号の相関が最も除去されるように主成分分析を行うことで固有ベクトルを算出する。また、パラメータ算出部103はC3のエネルギー又はC2とC3との線形結合のエネルギーが最も小さくなるように3つの固有ベクトルを算出してもよい。パラメータ算出部103は、上記のいずれかの方法により算出した3つの固有ベクトル(9個のパラメータ)を有する色変換行列を、3つの回転パラメータに変換して算出する。パラメータ算出部103は、算出した固有ベクトルを補間部104に出力する。   For example, the parameter calculation unit 103 calculates the eigenvector by performing principal component analysis using the pixel values in each analysis region so that the color signal correlation is most eliminated. The parameter calculation unit 103 may calculate three eigenvectors so that the energy of C3 or the energy of linear combination of C2 and C3 is minimized. The parameter calculation unit 103 converts a color conversion matrix having three eigenvectors (9 parameters) calculated by any one of the above methods into three rotation parameters and calculates. The parameter calculation unit 103 outputs the calculated eigenvector to the interpolation unit 104.

例えば、一番大きな固有値に対する第1固有ベクトルを(a1(1),a1(2),a1(3))とし、入力値のR、G、B成分を(R,G,B)Tとすると、C1は、以下のように表せる。 For example, the first eigenvector for the largest eigenvalue is (a 1 (1) , a 1 (2) , a 1 (3) ), and the R, G, B components of the input value are (R, G, B) T Then, C1 can be expressed as follows.

Figure 2015095693
更に、2番目に大きな固有値に対する固有ベクトルを(a2(2),a2(2),a2(3))とし、3番目に大きな固有値に対する固有ベクトルを(a3(2),a3(2),a3(3))とし、これらの固有ベクトルを大きい順番に上から順に並べ、これを色変換行列Aとして表せば、以下の式(2)になる。
Figure 2015095693
Furthermore, the eigenvector for the second largest eigenvalue is (a 2 (2) , a 2 (2) , a 2 (3) ), and the eigenvector for the third largest eigenvalue is (a 3 (2) , a 3 (2 ) , a 3 (3) ), and these eigenvectors are arranged in descending order from the top and expressed as a color conversion matrix A, the following equation (2) is obtained.

Figure 2015095693
上記行列Aは、3つの回転パラメータによって以下のようにも表せる。
Figure 2015095693
The matrix A can also be expressed as follows using three rotation parameters.

Figure 2015095693
ここでS1はSinθ1、C1はCosθ1を意味する。
Figure 2015095693
Where S 1 is Sinθ 1, C 1 refers to Cos? 1.

式(2)と式(3)の行列Aの左下成分同士の対応から、以下の式が導ける。   From the correspondence between the lower left components of the matrix A in Equation (2) and Equation (3), the following equation can be derived.

Figure 2015095693
上記の式(4)によって、θ2が求まる。同様にして、式(3)及び式(4)からθ1及びθ3を求めることができる。なお、θ1、θ2及びθ3は、Sin-1などを用いて導出されるため、複数の候補が求まる場合があるが、式(3)及び式(4)を満たすものであれば、いずれのものであってもよい。また、固有ベクトルのパラメータのサイド情報圧縮効率の向上のために、複数の候補を求めた後に、周囲のすでにθ1〜θ3を算出し終わったブロックのθ1〜θ3との差分が最も小さくなるような候補を当該ブロックのθとして決定することもできる。
Figure 2015095693
Θ 2 is obtained by the above equation (4). Similarly, θ 1 and θ 3 can be obtained from the equations (3) and (4). Since θ 1 , θ 2, and θ 3 are derived using Sin −1 or the like, a plurality of candidates may be obtained. However, as long as the equations (3) and (4) are satisfied, Any one may be used. Further, in order to improve the side information compression efficiency parameters of eigenvectors, after obtaining a plurality of candidates, the smallest difference between the theta 1 through? 3 block has finished calculating the already theta 1 through? 3 around Such a candidate can also be determined as θ of the block.

図1に戻り、補間部104は、パラメータ算出部103から取得した固有ベクトルを補間して、代表点以外の点(補間対象点)の色変換行列を算出する。すなわち、補間部104は、補間対象点に近い複数の代表点(例えば4つの代表点)の固有ベクトルの重み付き平均を求めることで、補間対象点の補間された固有ベクトルを算出することができる。   Returning to FIG. 1, the interpolation unit 104 interpolates the eigenvector acquired from the parameter calculation unit 103 to calculate a color conversion matrix of points (interpolation target points) other than the representative points. That is, the interpolation unit 104 can calculate the weighted average of the eigenvectors of a plurality of representative points (for example, four representative points) close to the interpolation target point, thereby calculating the interpolated eigenvector of the interpolation target point.

或いは、以下のようにして、取得した3つの固有ベクトルを、デカルト座標系から極座標系に変換してから、補間を実行することもできる。   Alternatively, interpolation can be performed after converting the acquired three eigenvectors from the Cartesian coordinate system to the polar coordinate system as follows.

図5は、極座標系へのパラメータ化の一例を示す図である。補間部104は、固有ベクトルを、図5に示すように極座標系に変換してパラメータ(γ、θ、φ)を求め、これらのパラメータを、各々重み付き平均を用いて補間することで、補間対象点の固有ベクトルを求める。   FIG. 5 is a diagram illustrating an example of parameterization into the polar coordinate system. The interpolation unit 104 converts the eigenvectors into a polar coordinate system as shown in FIG. 5 to obtain parameters (γ, θ, φ), and interpolates these parameters using weighted averages, respectively. Find the eigenvector of a point.

図5に示す例では、固有ベクトルの直交性は失われるが、3つの互いに直交するベクトルから別の3つの互いに直交するベクトルへの補間になり、非正則な変換行列は生成されないので、特に問題にはならない。   In the example shown in FIG. 5, the eigenvector orthogonality is lost, but interpolation is performed from three mutually orthogonal vectors to another three mutually orthogonal vectors, and an irregular transformation matrix is not generated. Must not.

また、補間部104は、固有ベクトルの補間として、オイラーパラメータを用いて補間することで、固有ベクトルの補間を適切に行ってもよい。オイラーパラメータを用いると、四元数のパラメータで表現できるので、ある軸周りの回転を行うことができる。   Further, the interpolation unit 104 may appropriately perform eigenvector interpolation by performing interpolation using Euler parameters as eigenvector interpolation. If Euler parameters are used, they can be expressed by quaternion parameters, so that rotation around a certain axis can be performed.

例えば、補間部104は、2つの軸を補間する場合、つまり、ある代表点と隣り合う代表点の1つ目の固有ベクトル同士を用いて補間する場合、その2つの固有ベクトルv1及びv2が張る平面の法線ベクトルを外積により算出する。 For example, when the interpolation unit 104 interpolates two axes, that is, when interpolation is performed using first eigenvectors of a representative point adjacent to a certain representative point, the two eigenvectors v 1 and v 2 are stretched. The plane normal vector is calculated from the outer product.

図6は、2つのベクトルが張る法線ベクトルの一例を示す図である。図6に示すように、補間部104は、固有ベクトル1(v1)と固有ベクトル2(v2)との法線ベクトル(単位ベクトルu)を求める。補間部104は、求めた法線ベクトルの軸を中心として時計回り(又は半時計周り)の回転を四元数により算出する。これにより、補間部104は、補間対象点の固有ベクトルを、オイラーパラメータ上で重み付き平均を用いることで、四元数を用いて以下のように適切に補間することができる。 FIG. 6 is a diagram illustrating an example of a normal vector spanned by two vectors. As shown in FIG. 6, the interpolation unit 104 obtains a normal vector (unit vector u) between the eigenvector 1 (v 1 ) and the eigenvector 2 (v 2 ). The interpolation unit 104 calculates a clockwise (or counterclockwise) rotation about the axis of the obtained normal vector as a quaternion. Accordingly, the interpolation unit 104 can appropriately interpolate the eigenvector of the interpolation target point using the quaternion by using the weighted average on the Euler parameter as follows.

固有ベクトル1(v1)と固有ベクトル2(v2)との関係は、四元数qと両ベクトル間の角度をθ用いると、以下のように表せる。 The relationship between eigenvector 1 (v 1 ) and eigenvector 2 (v 2 ) can be expressed as follows when θ is used as the quaternion q and the angle between both vectors.

Figure 2015095693
ここで、i,j,kは、四元数に用いられる以下の規則を満たす数である。
Figure 2015095693
Here, i, j, and k are numbers that satisfy the following rules used for quaternions.

Figure 2015095693
そして、上記2つの隣り合う代表点の距離Lと、補間対象点から固有ベクトル1(v1)に対応する代表点までの距離L1との距離を用いて、四元数を以下のように按分することで、補間対象点の四元数qを以下のように求めることができる。
Figure 2015095693
Then, using the distance and the distance L of the representative points adjacent the two, the distance L 1 to the representative point corresponding to the eigenvector 1 (v 1) from the interpolation target point, apportioning the quaternion as follows By doing so, the quaternion q x of the interpolation target point can be obtained as follows.

Figure 2015095693
そして、補間対象点の固有ベクトルvxは、四元数qを用いて以下のように求めることができる。
Figure 2015095693
Then, the eigenvector v x of the interpolation target point can be obtained as follows using the quaternion q x .

Figure 2015095693
以上のようにして、補間した固有ベクトルを求めることができる。
Figure 2015095693
As described above, the interpolated eigenvector can be obtained.

上述の方式は、四元数を直接補間した。この方式以外に、補間対象点に近い複数の代表点(例えば4つの代表点)の固有ベクトルの四元数の対数の重み付き平均を求め、求められた対数の四元数を実数に戻すことで、補間対象点の補間された固有ベクトルを算出することもできる。この場合には、4つの代表点の固有ベクトルの四元数の対数を算出してから補間することで、上述のように四元数を直接補間する方式よりも、計算量の削減が可能である。   The above method directly interpolated quaternions. In addition to this method, by calculating the weighted average of the logarithm of the quaternion of the eigenvectors of a plurality of representative points (for example, four representative points) close to the interpolation target point, and returning the obtained logarithmic quaternion to a real number It is also possible to calculate the interpolated eigenvector of the interpolation target point. In this case, the calculation amount can be reduced by calculating the logarithm of the quaternion of the eigenvectors of the four representative points and then performing the interpolation, as compared with the method of directly interpolating the quaternion as described above. .

具体的には、例えば以下のように計算できる。   Specifically, for example, it can be calculated as follows.

まず、補間対象点に近い4つの代表点の固有ベクトルの四元数を同様に求め、それぞれq、q、q、qとする。補間対象点の固有ベクトルVxは、4つの点から補間対象点へのバイリニア法による補間係数をα、α、α、αとすれば、以下の式で、補間対象点の固有ベクトルVxを求めることができる。 First, the quaternions of the eigenvectors of the four representative points close to the interpolation target point are obtained in the same manner, and are set as q 1 , q 2 , q 3 , and q 4 respectively. The eigenvector Vx of the interpolation target point is expressed by the following equation, assuming that the interpolation coefficients by the bilinear method from the four points to the interpolation target point are α 1 , α 2 , α 3 , α 4. Can be sought.

Figure 2015095693
Figure 2015095693

補間部104は、各代表点の色変換行列と、各代表点以外の点で補間された色変換行列とを、生成部105に出力する。また、補間部104は、各代表点の位置情報と、各代表点の回転パラメータとを、色変換情報符号化部107に出力する。   The interpolation unit 104 outputs the color conversion matrix of each representative point and the color conversion matrix interpolated at a point other than each representative point to the generation unit 105. In addition, the interpolation unit 104 outputs the position information of each representative point and the rotation parameter of each representative point to the color conversion information encoding unit 107.

図1に戻り、生成部105は、画面全体の各画素に対し、各画素位置に対応する色変換行列を関連付けた色変換のマップを生成する。色変換行列は、例えば3つの固有ベクトルで表される。生成部105は、生成したマップを色変換部106に出力する。   Returning to FIG. 1, the generation unit 105 generates a color conversion map in which a color conversion matrix corresponding to each pixel position is associated with each pixel of the entire screen. The color conversion matrix is represented by, for example, three eigenvectors. The generation unit 105 outputs the generated map to the color conversion unit 106.

色変換部106は、生成部105から取得した色変換のマップを用いて、入力手段101から取得した画像を色変換する。色変換部106は、色相関ができるだけ除去された色変換後の各成分を画像符号化部12に出力する。   The color conversion unit 106 performs color conversion on the image acquired from the input unit 101 using the color conversion map acquired from the generation unit 105. The color conversion unit 106 outputs each component after color conversion from which color correlation has been removed as much as possible to the image encoding unit 12.

色変換情報符号化部107は、各代表点の回転パラメータを含む色変換情報を符号化する。なお、色変換情報符号化部107は、代表点が任意に設定されていれば、各代表点の位置情報を色変換情報に含め、予め復号側と統一された代表点が用いられるのであれば、代表点の位置情報を色変換情報に含めなくてもよい。   The color conversion information encoding unit 107 encodes color conversion information including a rotation parameter for each representative point. If the representative point is arbitrarily set, the color conversion information encoding unit 107 includes the position information of each representative point in the color conversion information, and if the representative point unified in advance with the decoding side is used. The position information of the representative point may not be included in the color conversion information.

色変換情報符号化部107は、符号化の方法について、可逆圧縮の方法であれば、いずれを用いてもよい。色変換行列は、3つの回転パラメータで表現して伝送されるので、9個のパラメータを有する3つの固有ベクトルで伝送されるよりも、伝送効率が良くなる。   The color conversion information encoding unit 107 may use any encoding method as long as it is a lossless compression method. Since the color conversion matrix is represented by three rotation parameters and transmitted, the transmission efficiency is improved as compared with transmission by three eigenvectors having nine parameters.

画像符号化部12は、色変換装置11により色変換された各成分に対し、画像符号化処理を行う。画像符号化処理は、JPEG、MPEG−2、H.264/AVC、H.265/HEVCなどの公知の符号化技術を用いればよい。   The image encoding unit 12 performs an image encoding process on each component color-converted by the color conversion device 11. The image encoding process is JPEG, MPEG-2, H.264. H.264 / AVC, H.H. A known encoding technique such as H.265 / HEVC may be used.

画像符号化部12により符号化された画像と、色変換情報符号化部107により符号化された色変換情報とは、記憶部に蓄積されたり、復号側に送信されたりする。   The image encoded by the image encoding unit 12 and the color conversion information encoded by the color conversion information encoding unit 107 are accumulated in the storage unit or transmitted to the decoding side.

以上の構成を有することで、画質の低下を防ぎつつ、適切な色変換を行うことができる。   With the above configuration, it is possible to perform appropriate color conversion while preventing deterioration in image quality.

<動作>
次に、実施例1における画像処理装置10の動作について説明する。図7は、実施例1における画像処理の一例を示すフローチャートである。図7に示すステップS101で、入力部101は、撮影された画像(静止画像又は動画像)を入力する。
<Operation>
Next, the operation of the image processing apparatus 10 in the first embodiment will be described. FIG. 7 is a flowchart illustrating an example of image processing in the first embodiment. In step S101 illustrated in FIG. 7, the input unit 101 inputs a captured image (a still image or a moving image).

ステップS102で、取得部102は、画像から複数の代表点を抽出し、この代表点を含む分析領域を取得する。なお、取得部102は、分析領域を求めてから代表点を決定するようにしてもよい。   In step S102, the acquisition unit 102 extracts a plurality of representative points from the image, and acquires an analysis region including the representative points. Note that the acquisition unit 102 may determine the representative point after obtaining the analysis region.

ステップS103で、パラメータ算出部103は、取得された分析領域内の画素値を用いて固有ベクトルを算出するとともに、代表点に対応する、固有ベクトルを有する色変換行列が変換された回転パラメータを算出する。パラメータ算出部103は、各代表点を含む各分析領域内で回転パラメータを算出する。   In step S103, the parameter calculation unit 103 calculates an eigenvector using the acquired pixel values in the analysis region, and calculates a rotation parameter obtained by converting a color conversion matrix having an eigenvector corresponding to the representative point. The parameter calculation unit 103 calculates a rotation parameter in each analysis region including each representative point.

ステップS104で、補間部104は、各代表点に対応する色変換行列の固有ベクトルを用いて、代表点以外の色変換行列を補間する。例えば、補間部104は、補間対象点に座標が近い4つの代表点の固有ベクトルを、4つの代表点からの距離に応じた重み付け平均を行うことで、固有ベクトルの補間処理を行う。   In step S104, the interpolation unit 104 interpolates a color conversion matrix other than the representative point using the eigenvector of the color conversion matrix corresponding to each representative point. For example, the interpolation unit 104 performs eigenvector interpolation processing on the eigenvectors of four representative points whose coordinates are close to the interpolation target point by performing weighted averaging according to the distances from the four representative points.

ステップS105で、生成部105は、画像内の各画素に、その画素位置に対応する色変換行列を関連付けて色変換のマップを生成する。色変換のマップとは、例えば各画素に色変換行列の固有ベクトルが対応付けられたものをいう。   In step S105, the generation unit 105 generates a color conversion map by associating each pixel in the image with a color conversion matrix corresponding to the pixel position. The color conversion map is, for example, a map in which each pixel is associated with an eigenvector of a color conversion matrix.

ステップS106で、色変換部106は、画像内の各画素に対し、色変換のマップを用いて色変換を行う。例えば、色変換部106は、画像の各画素に対応する色変換行列をマップから特定し、特定した色変換行列を用いて各画素の画素値を色変換し、色成分を算出する。   In step S106, the color conversion unit 106 performs color conversion on each pixel in the image using a color conversion map. For example, the color conversion unit 106 specifies a color conversion matrix corresponding to each pixel of the image from the map, performs color conversion on the pixel value of each pixel using the specified color conversion matrix, and calculates a color component.

ステップS107で、画像符号化部12は、色変換された色成分を有する画像に対し、画像符号化処理を施す。また、色変換情報符号化部107は、各代表点の位置情報と、各代表点の回転パラメータとを含む色変換情報を符号化する。なお、符号側と復号側とで、代表点の位置を予め同じに設定しておけば、色変換情報に代表点の位置情報を含める必要はない。   In step S107, the image encoding unit 12 performs an image encoding process on an image having color components that have undergone color conversion. The color conversion information encoding unit 107 encodes color conversion information including position information of each representative point and a rotation parameter of each representative point. If the positions of the representative points are set to be the same on the code side and the decoding side, it is not necessary to include the position information of the representative points in the color conversion information.

以上、実施例1によれば、画像の代表点で適切な色変換の回転パラメータを決定し、代表点以外の点については補間によって求める。これにより、実施例1では、色変換のためのブロック分割を必要とせず、ブロック境界が現れない色変換を行うことができるので、画質の低下を防ぐことができる。   As described above, according to the first embodiment, an appropriate color conversion rotation parameter is determined at a representative point of an image, and points other than the representative point are obtained by interpolation. As a result, in the first embodiment, block conversion for color conversion is not required, and color conversion in which block boundaries do not appear can be performed, so that deterioration in image quality can be prevented.

また、実施例1によれば、色変換行列を3つの回転パラメータで表し、この3つの回転パラメータを伝送するので、9(3×3)個のパラメータを有する固有ベクトルを伝送するよりも伝送効率が良くなる。   Also, according to the first embodiment, the color conversion matrix is represented by three rotation parameters, and these three rotation parameters are transmitted. Therefore, the transmission efficiency is higher than the transmission of eigenvectors having 9 (3 × 3) parameters. Get better.

[実施例2]
次に、実施例2における画像処理装置について説明する。実施例2では、分析領域のサイズを適切にする処理を行う。
[Example 2]
Next, an image processing apparatus according to the second embodiment will be described. In the second embodiment, processing for making the size of the analysis region appropriate is performed.

分析領域が小さく設定されるほど、分析領域内の信号の特徴が偏るため、色変換後の代表点におけるC2とC3とのエネルギーは小さくなる傾向にある。しかし、代表点以外の座標で補間された色変換行列が、本来その対象座標を代表点として色変換行列を最適化した場合の値から極端に遠ざかる可能性がある。   As the analysis area is set smaller, the characteristics of the signal in the analysis area are biased, so that the energy of C2 and C3 at the representative point after color conversion tends to be smaller. However, there is a possibility that the color conversion matrix interpolated with coordinates other than the representative point is extremely far from the value when the color conversion matrix is originally optimized with the target coordinate as the representative point.

一方で、分析領域が大きく設定されるほど、分析領域内の信号の偏りが少なくなり、色変換後の代表点のC2とC3とのエネルギーが大きくなる傾向にある。しかし、代表点以外の座標で補間された色変換行列が、本来その対象画座標を代表点として色変換行列を最適化した場合の値から極端に遠ざかる可能性は低くなる。例えば、具体的な例としては、分析領域が周辺の代表点をも含む大きな領域である場合には、代表点以外の点において、補間による影響が小さくなる傾向にある。なお、分析領域が小さい場合は、その分析領域についての信号の特徴が偏り、しかも、その領域に特有の色変換行列が求まるため、色変換後の代表点におけるC2、C3のエネルギーは、小さくなる傾向にある。   On the other hand, as the analysis area is set larger, the bias of the signal in the analysis area decreases, and the energy of the representative points C2 and C3 after color conversion tends to increase. However, it is less likely that the color conversion matrix interpolated with coordinates other than the representative point is extremely far from the value when the color conversion matrix is originally optimized with the target image coordinates as the representative point. For example, as a specific example, when the analysis region is a large region including peripheral representative points, the influence due to interpolation tends to be small at points other than the representative points. When the analysis region is small, the characteristics of the signal for the analysis region are biased, and a color conversion matrix peculiar to the region is obtained. Therefore, the energy of C2 and C3 at the representative points after color conversion is small. There is a tendency.

よって、実施例2では、画像全体の色変換行列が求められた後、画像に色変換行列を適用して、画像全体のC2とC3とのエネルギー量を算出し、このエネルギー量ができるだけ小さくなるように、分析領域の大きさや代表点の位置を決定する。   Therefore, in Example 2, after the color conversion matrix of the entire image is obtained, the color conversion matrix is applied to the image to calculate the energy amount of C2 and C3 of the entire image, and this energy amount becomes as small as possible. As described above, the size of the analysis region and the position of the representative point are determined.

<構成>
図8は、実施例2における画像処理装置20の構成の一例を示すブロック図である。図8に示す画像処理装置20は、色変換を行う色変換装置21と、色変換後の画像を符号化する画像符号化部12とを有する。色変換装置21だけで、画像処理装置と称してもよい。なお、図8に示す構成において、図1に示す構成と同様のものは同じ符号を付し、その説明を省略する。
<Configuration>
FIG. 8 is a block diagram illustrating an example of the configuration of the image processing apparatus 20 according to the second embodiment. An image processing apparatus 20 illustrated in FIG. 8 includes a color conversion apparatus 21 that performs color conversion, and an image encoding unit 12 that encodes an image after color conversion. Only the color conversion device 21 may be referred to as an image processing device. In the configuration shown in FIG. 8, the same components as those shown in FIG.

色変換装置21は、入力部101と、取得部202と、パラメータ算出部203と、補間部204と、生成部205と、色変換部206と、色変換情報符号化部107と、エネルギー算出部207と、領域設定部208とを有する。   The color conversion device 21 includes an input unit 101, an acquisition unit 202, a parameter calculation unit 203, an interpolation unit 204, a generation unit 205, a color conversion unit 206, a color conversion information encoding unit 107, and an energy calculation unit. 207 and an area setting unit 208.

取得部202と、パラメータ算出部203と、補間部204と、生成部205と、色変換部206とは、繰り返し処理が行われるところが、実施例1と異なり、処理の内容自体は、実施例1と同様である。なお、この繰り返し処理においては、補間部204において、補間が行えるようにするため、以下の処理を予め行う。すなわち、領域設定部208は、例えば、画像全体に対して、暫定的に分析領域とその代表点を定めておく。そして、この暫定的な分析領域の各々に対してパラメータ算出部203がパラメータを算出しておくことにより、この繰り返し処理において、補間部204が補間を行えるようにしておくことが望ましい。繰り返し処理においては、パラメータが逐次修正されて行くと共に、分析領域のサイズが適切に変更されてゆく。   Unlike the first embodiment, the acquisition unit 202, the parameter calculation unit 203, the interpolation unit 204, the generation unit 205, and the color conversion unit 206 are repeatedly processed. It is the same. In this iterative process, the following process is performed in advance so that the interpolation unit 204 can perform the interpolation. That is, for example, the area setting unit 208 provisionally determines the analysis area and its representative point for the entire image. Then, it is desirable that the parameter calculation unit 203 calculates parameters for each of the provisional analysis areas so that the interpolation unit 204 can perform interpolation in this iterative process. In the iterative process, the parameters are sequentially corrected and the size of the analysis region is appropriately changed.

暫定的な分析領域の各々に対してパラメータ算出部203がパラメータを算出した後の具体な繰り返し処理は、以下の通りである。   A specific iterative process after the parameter calculation unit 203 calculates the parameters for each provisional analysis region is as follows.

エネルギー算出部207は、各分析領域での色成分C2と色成分C3とのエネルギーを重み付き加算し、画像全体での色成分C2と色成分C3とのエネルギーの総和を算出する。エネルギー算出部203は、算出されたエネルギーを領域設定部208に出力する。   The energy calculation unit 207 weights and adds the energy of the color component C2 and the color component C3 in each analysis region, and calculates the total energy of the color component C2 and the color component C3 in the entire image. The energy calculation unit 203 outputs the calculated energy to the region setting unit 208.

領域設定部208は、取得したエネルギーが所定条件を満たすと判断すれば、その所定条件を満たす領域サイズを補間部204や色変換部206に出力する。所定条件は、例えば、エネルギーが最小又は極小となること、あるいはエネルギーが閾値以下となることなどである。   If the area setting unit 208 determines that the acquired energy satisfies a predetermined condition, the area setting unit 208 outputs an area size that satisfies the predetermined condition to the interpolation unit 204 and the color conversion unit 206. The predetermined condition is, for example, that the energy is minimum or minimum, or that the energy is equal to or less than a threshold value.

領域設定部208は、エネルギーを用いる所定条件に対して、取得したエネルギーが閾値以下であるかを判定してもよいし、分析領域の全サイズを処理し、最も小さいエネルギーとなるサイズを判定してもよい。   The region setting unit 208 may determine whether the acquired energy is equal to or less than a threshold with respect to a predetermined condition using energy, process all sizes of the analysis region, and determine the size that provides the smallest energy. May be.

領域設定部208は、取得したエネルギーが所定条件を満たさなければ、現在の分析領域を分割したり、所定サイズだけ小さくしたりして、新たな分析領域を設定する。領域設定部208は、新たに設定した分析領域を取得部202に通知する。例えば、領域設定部208は、初期値の分析領域として例えば32×32に画像を分割し、次に、16×16、8×8と順に2で割って分析領域を小さくしてもよい。   If the acquired energy does not satisfy the predetermined condition, the area setting unit 208 sets a new analysis area by dividing the current analysis area or reducing it by a predetermined size. The region setting unit 208 notifies the acquisition unit 202 of the newly set analysis region. For example, the area setting unit 208 may divide the image into, for example, 32 × 32 as the analysis area of the initial value, and then divide the image by 16 in order of 16 × 16, 8 × 8 to reduce the analysis area.

取得部202は、新たな分析領域を領域設定部208から取得する。また、取得部202は、分析領域の中心位置を代表点にすればよい。パラメータ算出部203以降の処理については、新たな分析領域を用いて処理が行われる。   The acquisition unit 202 acquires a new analysis region from the region setting unit 208. The acquisition unit 202 may use the center position of the analysis region as a representative point. About the process after the parameter calculation part 203, a process is performed using a new analysis area | region.

取得部202は、代表点が予め設定されている場合で、分析領域に複数の代表点が含まれる場合は、例えば分析領域の最も中心にある代表点を選択すればよい。   When the representative point is set in advance and the analysis region includes a plurality of representative points, the acquisition unit 202 may select the representative point at the center of the analysis region, for example.

これにより、画像全体のC2とC3とのエネルギーが小さくなるときの領域を用いて算出された回転パラメータを求めることができる。   Thereby, the rotation parameter calculated using the area | region when the energy of C2 and C3 of the whole image becomes small can be calculated | required.

補間部204は、領域設定部208により通知された分析領域サイズの回転パラメータと、分析領域のサイズに関する情報(例えば分割回数)とを、色変換情報符号化部107に出力する。   The interpolation unit 204 outputs the rotation parameter of the analysis region size notified by the region setting unit 208 and information about the size of the analysis region (for example, the number of divisions) to the color conversion information encoding unit 107.

色変換部206は、領域設定部208から通知された分析領域サイズに対応する色変換行列のマップを用いて、色変換処理を行う。   The color conversion unit 206 performs color conversion processing using a map of a color conversion matrix corresponding to the analysis region size notified from the region setting unit 208.

なお、領域設定部208は、分析領域毎にさらに分割するか否かを判定することもできる。この場合は、どの分析領域を何回分割したかの情報が色変換情報に含まれる。   Note that the region setting unit 208 can also determine whether or not to further divide each analysis region. In this case, information about which analysis area is divided and how many times is included in the color conversion information.

<動作>
次に、実施例2における画像処理装置20の動作について説明する。図9は、実施例2における画像処理の一例を示すフローチャートである。図9に示すステップS201〜S206の処理は、図7に示すステップS101〜S106の処理と同様である。
<Operation>
Next, the operation of the image processing apparatus 20 in the second embodiment will be described. FIG. 9 is a flowchart illustrating an example of image processing according to the second embodiment. The processing in steps S201 to S206 shown in FIG. 9 is the same as the processing in steps S101 to S106 shown in FIG.

ステップS207で、エネルギー算出部207は、各分析領域での色成分C2と色成分C3とのエネルギーを加算し、画像全体での色成分C2と色成分C3とのエネルギーの総和を算出する。   In step S207, the energy calculation unit 207 adds the energy of the color component C2 and the color component C3 in each analysis region, and calculates the sum of the energy of the color component C2 and the color component C3 in the entire image.

ステップS208で、領域設定部208は、算出されたエネルギーが所定条件を満たすか否かを判定する。所定条件とは、例えば算出されたエネルギーが閾値以下となる等である。エネルギーが所定条件を満たせば(ステップS208−YES)ステップS210に進み、エネルギーが所定条件を満たさなければ(ステップS208−NO)ステップS209に進む。   In step S208, the region setting unit 208 determines whether the calculated energy satisfies a predetermined condition. The predetermined condition is, for example, that the calculated energy is equal to or less than a threshold value. If the energy satisfies the predetermined condition (step S208—YES), the process proceeds to step S210. If the energy does not satisfy the predetermined condition (step S208—NO), the process proceeds to step S209.

ステップS209で、領域設定部208は、分析領域を新たに再設定する。領域設定部208は、例えば、現在の分析領域を分割することで、新たな分析領域を再設定する。ステップS209の後、ステップS202に戻り、新たな分析領域で処理が再度行われる。   In step S209, the region setting unit 208 newly resets the analysis region. The area setting unit 208 resets a new analysis area, for example, by dividing the current analysis area. After step S209, the process returns to step S202, and the process is performed again in the new analysis region.

ステップS210で、画像符号化部12は、C2とC3とのエネルギーが小さくなるような分析領域に対し、分析して求められた固有ベクトルを有する色変換行列により色変換された色成分を有する画像に、画像符号化処理を施す。   In step S210, the image encoding unit 12 converts the analysis region in which the energy of C2 and C3 is small into an image having color components that are color-converted by a color conversion matrix having an eigenvector obtained by analysis. Then, an image encoding process is performed.

また、色変換情報符号化部107は、C2とC3とのエネルギーが小さくなるような分析領域のサイズに関する情報と、各代表点の回転パラメータとを含む色変換情報を符号化する。分析領域のサイズに関する情報から、代表点の位置が求められる。例えば、何回分割されたかが分かれば分析領域のサイズが分かり、分析領域の中心点を代表点とすることで、代表点の位置が求められる。   In addition, the color conversion information encoding unit 107 encodes color conversion information including information on the size of the analysis region such that the energy between C2 and C3 is small and the rotation parameter of each representative point. The position of the representative point is obtained from the information regarding the size of the analysis area. For example, if the number of divisions is known, the size of the analysis region can be known, and the position of the representative point can be obtained by using the central point of the analysis region as the representative point.

なお、色変換情報符号化部107は、設定された各分析領域の代表点の位置情報を、実施例1同様にして符号化するようにしてもよい。   The color conversion information encoding unit 107 may encode the set position information of the representative point of each analysis region in the same manner as in the first embodiment.

以上、実施例2によれば、実施例1の効果に加え、適切な分析領域により求められた適切な固有ベクトルを有する色変換行列を用いることができる。よって、画像符号化が行われる際に、符号化効率を向上させることができる。   As described above, according to the second embodiment, in addition to the effects of the first embodiment, a color conversion matrix having an appropriate eigenvector obtained by an appropriate analysis region can be used. Therefore, encoding efficiency can be improved when image encoding is performed.

また、実施例2によれば、分析領域の大きさや代表点の位置を、色変換部により生成された色成分のエネルギー量を用いて適切に設定することで、次のことが可能になる。実施例2によれば、なめらかに色が変わるような画像に対しては、代表点を粗く(間隔を広く)設定し、分析領域を大きく設定することができる。これにより、色変換情報を減らすことができ、符号化効率が向上する。   Further, according to the second embodiment, the following can be achieved by appropriately setting the size of the analysis region and the position of the representative point using the energy amount of the color component generated by the color conversion unit. According to the second embodiment, for an image whose color changes smoothly, the representative points can be set coarsely (wider intervals) and the analysis region can be set larger. Thereby, color conversion information can be reduced and encoding efficiency improves.

また、実施例2では、細かいテクスチャが多い画像に対しては、代表点を細かく(間隔を狭く)設定し、分析領域を小さく設定することができる。これにより、画質の劣化を防ぐことができる。   In the second embodiment, for an image with many fine textures, the representative point can be set finely (the interval is narrow), and the analysis region can be set small. This can prevent image quality deterioration.

[実施例3]
次に、実施例3における画像処理装置について説明する。実施例3における画像処理装置は、実施例1や実施例2で色変換され、符号化された画像に対し、復号処理を行って色逆変換することで、出力画像を生成する。
[Example 3]
Next, an image processing apparatus according to the third embodiment will be described. The image processing apparatus according to the third embodiment generates an output image by performing a decoding process on the image that has been color-converted and encoded in the first and second embodiments and performing color inverse conversion.

<構成>
図10は、実施例3における画像処理装置30の構成の一例を示すブロック図である。図10に示す画像処理装置30は、符号化された画像を復号する画像復号部31と、色逆変換を行う色逆変換装置32とを有する。なお、色逆変換装置32だけで、画像処理装置と称してもよい。
<Configuration>
FIG. 10 is a block diagram illustrating an example of the configuration of the image processing apparatus 30 according to the third embodiment. An image processing device 30 illustrated in FIG. 10 includes an image decoding unit 31 that decodes an encoded image, and a color reverse conversion device 32 that performs color reverse conversion. The color inverse conversion device 32 alone may be referred to as an image processing device.

画像復号部31は、画像符号化部12の画像符号化処理に対応する画像復号処理を行って、符号化された画像を復号する。画像復号部31は、復号した画像に対応する色変換情報と同期をとるための信号を色変換情報復号部301に出力してもよい。   The image decoding unit 31 performs an image decoding process corresponding to the image encoding process of the image encoding unit 12 and decodes the encoded image. The image decoding unit 31 may output a signal for synchronizing with the color conversion information corresponding to the decoded image to the color conversion information decoding unit 301.

色逆変換装置32は、色変換情報復号部301と、算出部302と、補間部303と、生成部304と、色逆変換部305とを有する。   The color reverse conversion device 32 includes a color conversion information decoding unit 301, a calculation unit 302, an interpolation unit 303, a generation unit 304, and a color reverse conversion unit 305.

色変換情報復号部301は、例えば、符号化された画像の各代表点の回転パラメータであって、固有ベクトルを有する色変換行列が変換された回転パラメータを含む、符号化された色変換情報を復号する。色変換情報は、代表点の位置情報や分析領域のサイズに関する情報を含んでもよい。復号処理は、色変換情報符号化部107の符号化処理に対応する復号処理である。   The color conversion information decoding unit 301 decodes encoded color conversion information including, for example, rotation parameters of each representative point of an encoded image and including a rotation parameter obtained by converting a color conversion matrix having an eigenvector. To do. The color conversion information may include information regarding the position information of the representative points and the size of the analysis area. The decoding process is a decoding process corresponding to the encoding process of the color conversion information encoding unit 107.

色変換情報復号部301は、復号した情報を算出部302に出力する。また、色変換情報復号部301は、画像復号部31から取得した同期信号に同期して復号処理を行ってもよい。   The color conversion information decoding unit 301 outputs the decoded information to the calculation unit 302. The color conversion information decoding unit 301 may perform the decoding process in synchronization with the synchronization signal acquired from the image decoding unit 31.

算出部302は、各代表点に対し、復号された回転パラメータを用いて色変換行列を算出する。また、算出部302は、代表点の位置情報や分析領域のサイズに関する情報を取得した場合は、この情報から代表点の位置を求める。   The calculation unit 302 calculates a color conversion matrix for each representative point using the decoded rotation parameter. In addition, when the calculation unit 302 acquires the position information of the representative point and the information regarding the size of the analysis region, the calculation unit 302 obtains the position of the representative point from this information.

例えば、算出部302は、何回分割されたかにより分析領域のサイズを特定し、このサイズの分析領域で画像を分割した場合に、この分析領域の中心点を代表点とすることで、代表点の位置を求めることができる。   For example, the calculation unit 302 specifies the size of the analysis region based on how many times it is divided, and when the image is divided by the analysis region of this size, the central point of the analysis region is used as the representative point, Can be determined.

また、算出部302は、代表点の位置が予め決められている場合は、その位置を用いればよい。算出部302は、各代表点に対応する色変換行列を補間部303に出力する。このときの色変換行列は、3つの固有ベクトルを有する。   In addition, when the position of the representative point is determined in advance, the calculation unit 302 may use the position. The calculation unit 302 outputs a color conversion matrix corresponding to each representative point to the interpolation unit 303. The color conversion matrix at this time has three eigenvectors.

補間部303は、算出部303により算出された色変換行列の固有ベクトルを補間して、代表点以外の点の色変換行列を算出する。補間部303は、実施例1や実施例2の補間処理と同じ補間処理を用いることで、固有ベクトルの補間処理(例えば重み付き平均)を行う。補間部303は、代表点の色変換行列と、代表点以外の点の補間された色変換行列とを生成部304に出力する。   The interpolation unit 303 interpolates the eigenvectors of the color conversion matrix calculated by the calculation unit 303, and calculates a color conversion matrix of points other than the representative points. The interpolation unit 303 performs an eigenvector interpolation process (for example, a weighted average) by using the same interpolation process as that of the first and second embodiments. The interpolation unit 303 outputs the color conversion matrix of the representative points and the color conversion matrix interpolated at points other than the representative points to the generation unit 304.

生成部304は、実施例1や実施例2と同様にして、画像の各画素に対して色変換行列を関連付けて、色変換のマップを生成する。生成部304は、生成したマップを色逆変換部305に出力する。   The generation unit 304 generates a color conversion map by associating a color conversion matrix with each pixel of the image in the same manner as in the first and second embodiments. The generation unit 304 outputs the generated map to the color inverse conversion unit 305.

色逆変換部305は、算出部302により算出された色変換行列及び補間部303により算出された色変換行列を用いて、画像復号部31により復号された画像の色逆変換を行う。色逆変換部305は、色逆変換された画像を出力画像として、記憶装置又は表示装置に出力する。   The color reverse conversion unit 305 performs color reverse conversion of the image decoded by the image decoding unit 31 using the color conversion matrix calculated by the calculation unit 302 and the color conversion matrix calculated by the interpolation unit 303. The color reverse conversion unit 305 outputs the image subjected to the color reverse conversion as an output image to a storage device or a display device.

以上の構成を有することで、実施例1や実施例2の画像処理装置で符号化された画像を適切に復号することができる。   By having the above configuration, it is possible to appropriately decode an image encoded by the image processing apparatus according to the first embodiment or the second embodiment.

<動作>
次に、実施例3における画像処理装置30の動作について説明する。図11は、実施例3における画像処理の一例を示すフローチャートである。図11に示すステップS301で、画像復号部31は、入力されたストリーム(符号化された画像のデータ)に対し、画像復号処理を行う。
<Operation>
Next, the operation of the image processing apparatus 30 in the third embodiment will be described. FIG. 11 is a flowchart illustrating an example of image processing according to the third embodiment. In step S301 illustrated in FIG. 11, the image decoding unit 31 performs an image decoding process on the input stream (encoded image data).

ステップS302で、色変換情報復号部301は、符号化された色変換情報を復号し、各代表点の位置情報、各代表点の回転パラメータを取得する。なお、ステップS301とステップS302とは、順不同である。   In step S302, the color conversion information decoding unit 301 decodes the encoded color conversion information, and acquires position information of each representative point and rotation parameters of each representative point. Note that step S301 and step S302 are in no particular order.

ステップS303で、算出部302は、代表点毎に、この代表点の回転パラメータを変換することで固有ベクトルを有する色変換行列を算出する。   In step S303, the calculation unit 302 calculates a color conversion matrix having an eigenvector by converting the rotation parameter of the representative point for each representative point.

ステップS304で、補間部303は、各代表点に対応する色変換行列の固有ベクトルを用いて、代表点以外の色変換行列を補間する。例えば、補間部303は、補間対象点に座標が近い4つの代表点の固有ベクトルを、4つの代表点からの距離に応じた重み付け平均を行うことで、固有ベクトルの補間処理を行う。   In step S304, the interpolation unit 303 interpolates the color conversion matrix other than the representative point using the eigenvector of the color conversion matrix corresponding to each representative point. For example, the interpolation unit 303 performs eigenvector interpolation processing by performing a weighted average of the eigenvectors of four representative points whose coordinates are close to the interpolation target point according to the distances from the four representative points.

ステップS305で、生成部304は、画像内の各画素に、その画素位置に対応する色変換行列を関連付けて色変換のマップを生成する。色変換のマップとは、例えば各画素に色変換行列の固有ベクトルが対応付けられたものをいう。   In step S305, the generation unit 304 generates a color conversion map by associating each pixel in the image with a color conversion matrix corresponding to the pixel position. The color conversion map is, for example, a map in which each pixel is associated with an eigenvector of a color conversion matrix.

ステップS306で、色逆変換部305は、画像復号部31により復号された画像内の各画素に対し、色変換のマップを用いて色逆変換を行う。例えば、色逆変換部305は、画像の各画素に対応する色変換行列をマップから特定し、特定した色変換行列を用いて各画素の色成分を色逆変換し、画素値を生成する。色逆変換された画像は、出力画像として記憶装置や表示装置に出力される。   In step S306, the color reverse conversion unit 305 performs color reverse conversion on each pixel in the image decoded by the image decoding unit 31 using a color conversion map. For example, the color reverse conversion unit 305 specifies a color conversion matrix corresponding to each pixel of the image from the map, and performs color reverse conversion on the color component of each pixel using the specified color conversion matrix to generate a pixel value. The color-inverted image is output as an output image to a storage device or a display device.

以上、実施例3によれば、実施例1や実施例2の画像処理装置で符号化された画像を適切に復号することができる。   As described above, according to the third embodiment, it is possible to appropriately decode the image encoded by the image processing apparatus according to the first or second embodiment.

[実施例4]
図12は、実施例4における画像処理装置40の構成の一例を示すブロック図である。図12に示す画像処理装置40は、上述した実施例1〜3で説明した画像処理をソフトウェアで実装した装置の一例である。
[Example 4]
FIG. 12 is a block diagram illustrating an example of the configuration of the image processing apparatus 40 according to the fourth embodiment. An image processing apparatus 40 shown in FIG. 12 is an example of an apparatus in which the image processing described in the first to third embodiments is implemented by software.

図12に示すように、画像処理装置40は、制御部401、主記憶部402、補助記憶部403、ドライブ装置404、ネットワークI/F部406、入力部407、表示部408を有する。これら各構成は、バスを介して相互にデータ送受信可能に接続されている。   As illustrated in FIG. 12, the image processing apparatus 40 includes a control unit 401, a main storage unit 402, an auxiliary storage unit 403, a drive device 404, a network I / F unit 406, an input unit 407, and a display unit 408. These components are connected to each other via a bus so as to be able to transmit and receive data.

制御部401は、コンピュータの中で、各装置の制御やデータの演算、加工を行うCPU(Central Processing Unit)である。また、制御部401は、主記憶部402又は補助記憶部403に記憶された画像処理のプログラムを実行する演算装置である。制御部401は、入力部407や記憶装置からデータを受け取り、演算、加工した上で、表示部408や記憶装置などに出力する。   The control unit 401 is a CPU (Central Processing Unit) that controls each device, calculates data, and processes in a computer. The control unit 401 is an arithmetic device that executes an image processing program stored in the main storage unit 402 or the auxiliary storage unit 403. The control unit 401 receives data from the input unit 407 and the storage device, calculates and processes the data, and then outputs the data to the display unit 408 and the storage device.

また、制御部401は、画像処理のプログラムを実行することで、実施例1〜3で説明した処理を実現することができる。   Also, the control unit 401 can realize the processing described in the first to third embodiments by executing an image processing program.

主記憶部402は、ROM(Read Only Memory)やRAM(Random Access Memory)などである。主記憶部402は、制御部401が実行する基本ソフトウェアであるOS(Operating System)やアプリケーションソフトウェアなどのプログラムやデータを記憶又は一時保存する記憶装置である。   The main storage unit 402 is a ROM (Read Only Memory), a RAM (Random Access Memory), or the like. The main storage unit 402 is a storage device that stores or temporarily stores programs and data such as OS (Operating System) and application software that are basic software executed by the control unit 401.

補助記憶部403は、HDD(Hard Disk Drive)などであり、アプリケーションソフトウェアなどに関連するデータを記憶する記憶装置である。   The auxiliary storage unit 403 is an HDD (Hard Disk Drive) or the like, and is a storage device that stores data related to application software or the like.

ドライブ装置404は、記録媒体405、例えばフレキシブルディスクからプログラムを読み出し、記憶部にインストールする。   The drive device 404 reads the program from the recording medium 405, for example, a flexible disk, and installs it in the storage unit.

また、記録媒体405に、所定のプログラムを格納し、この記録媒体405に格納されたプログラムはドライブ装置404を介して画像処理装置40にインストールされる。インストールされた所定のプログラムは、画像処理装置40により実行可能となる。   A predetermined program is stored in the recording medium 405, and the program stored in the recording medium 405 is installed in the image processing apparatus 40 via the drive device 404. The installed predetermined program can be executed by the image processing apparatus 40.

ネットワークI/F部406は、有線及び/又は無線回線などのデータ伝送路により構築されたLAN(Local Area Network)、WAN(Wide Area Network)などのネットワークを介して接続された通信機能を有する周辺機器と画像処理装置40とのインターフェースである。   The network I / F unit 406 is a peripheral having a communication function connected via a network such as a LAN (Local Area Network) or a WAN (Wide Area Network) constructed by a data transmission path such as a wired and / or wireless line. This is an interface between the device and the image processing apparatus 40.

入力部407は、カーソルキー、数字入力及び各種機能キー等を備えたキーボード、表示部408の表示画面上でキーの選択等を行うためのマウスやスライドパッド等を有する。表示部408は、LCD(Liquid Crystal Display)等により構成され、制御部401から入力される表示データに応じた表示が行われる。   The input unit 407 includes a keyboard having cursor keys, numeric input, various function keys, and the like, and a mouse and a slide pad for performing key selection on the display screen of the display unit 408. The display unit 408 is configured by an LCD (Liquid Crystal Display) or the like, and performs display according to display data input from the control unit 401.

なお、図1に示す画像処理装置10の構成は、例えば制御部401及びワークメモリとしての主記憶部402により実現されうる。また、図8に示す画像処理装置20の構成は、例えば制御部401及びワークメモリとしての主記憶部402により実現されうる。また、図10に示す画像処理装置30の構成は、例えば制御部401及びワークメモリとしての主記憶部402により実現されうる。   The configuration of the image processing apparatus 10 illustrated in FIG. 1 can be realized by, for example, the control unit 401 and the main storage unit 402 as a work memory. Further, the configuration of the image processing apparatus 20 illustrated in FIG. 8 can be realized by the control unit 401 and the main storage unit 402 as a work memory, for example. The configuration of the image processing apparatus 30 shown in FIG. 10 can be realized by, for example, the control unit 401 and the main storage unit 402 as a work memory.

画像処理装置40で実行されるプログラムは、実施例1〜3で説明した各部を含むモジュール構成となっている。実際のハードウェアとしては、制御部401が補助記憶部403からプログラムを読み出して実行することにより上記各部のうち1又は複数の各部が主記憶部402上にロードされ、1又は複数の各部が主記憶部402上に生成されるようになっている。   The program executed by the image processing apparatus 40 has a module configuration including each unit described in the first to third embodiments. As actual hardware, when the control unit 401 reads out and executes a program from the auxiliary storage unit 403, one or more of the above-described units are loaded onto the main storage unit 402, and one or more of the respective units are main. It is generated on the storage unit 402.

このように、上述した実施例1〜3で説明した画像処理は、コンピュータに実行させるためのプログラムとして実現されてもよい。このプログラムをサーバ等からインストールしてコンピュータに実行させることで、実施例1〜3で説明した処理を実現することができる。   As described above, the image processing described in the first to third embodiments may be realized as a program for causing a computer to execute the image processing. The processing described in the first to third embodiments can be realized by installing this program from a server or the like and causing the computer to execute the program.

また、このプログラムを記録媒体405に記録し、このプログラムが記録された記録媒体405をコンピュータや携帯端末に読み取らせて、前述した画像処理を実現させることも可能である。   It is also possible to record the program in the recording medium 405 and cause the computer or portable terminal to read the recording medium 405 on which the program is recorded, thereby realizing the above-described image processing.

なお、記録媒体405は、CD−ROM、フレキシブルディスク、光磁気ディスク等の様に情報を光学的,電気的或いは磁気的に記録する記録媒体、ROM、フラッシュメモリ等の様に情報を電気的に記録する半導体メモリ等、様々なタイプの記録媒体を用いることができる。   The recording medium 405 is a recording medium that records information optically, electrically, or magnetically, such as a CD-ROM, a flexible disk, a magneto-optical disk, etc. Various types of recording media such as a semiconductor memory for recording can be used.

また、上述した各実施例で説明した画像処理の各部は、1つ又は複数の集積回路に実装してもよい。   Further, each part of the image processing described in each of the above embodiments may be mounted on one or a plurality of integrated circuits.

以上、各実施例について詳述したが、特定の実施例に限定されるものではなく、特許請求の範囲に記載された範囲内において、上記変形例以外にも種々の変形及び変更が可能である。   Each embodiment has been described in detail above. However, the present invention is not limited to the specific embodiment, and various modifications and changes other than the above-described modification are possible within the scope described in the claims. .

10、20、30、40 画像処理装置
11 21 色変換装置
12 画像符号化部
31 画像復号部
32 色逆変換装置
101 入力部
102、202 取得部
103、203 パラメータ算出部
104、204 補間部
105、205 生成部
106、206 色変換部
207 エネルギー算出部
208 領域設定部
301 色変換情報復号部
302 算出部
303 補間部
304 生成部
305 色逆変換部
10, 20, 30, 40 Image processing device 11 21 Color conversion device 12 Image encoding unit 31 Image decoding unit 32 Color inverse conversion device 101 Input unit 102, 202 Acquisition unit 103, 203 Parameter calculation unit 104, 204 Interpolation unit 105, 205 generation unit 106, 206 color conversion unit 207 energy calculation unit 208 region setting unit 301 color conversion information decoding unit 302 calculation unit 303 interpolation unit 304 generation unit 305 color inverse conversion unit

Claims (6)

画像から複数の分析領域を取得する取得部と、
各分析領域に含まれる代表点に対し、前記分析領域内の画素値に基づいて算出した固有ベクトルを有する色変換行列を変換して、回転パラメータを算出するパラメータ算出部と、
前記固有ベクトルを補間して、前記代表点以外の点の色変換行列を算出する補間部と、
前記パラメータ算出部により算出された色変換行例及び前記補間部により算出された色変換行列を用いて、前記画像の色変換を行う色変換部と、
各代表点の回転パラメータを含む色変換情報を符号化する色変換情報符号化部と、
を有する画像処理装置。
An acquisition unit for acquiring a plurality of analysis regions from an image;
A parameter calculation unit that converts a color conversion matrix having an eigenvector calculated based on a pixel value in the analysis region to a representative point included in each analysis region, and calculates a rotation parameter;
An interpolation unit that interpolates the eigenvector and calculates a color conversion matrix of points other than the representative points;
A color conversion unit that performs color conversion of the image using the color conversion row example calculated by the parameter calculation unit and the color conversion matrix calculated by the interpolation unit;
A color conversion information encoding unit that encodes color conversion information including a rotation parameter of each representative point;
An image processing apparatus.
前記色変換後の3つの色成分のうちの2つの色成分のエネルギーを算出するエネルギー算出部と、
前記エネルギーを用いる所定条件が満たされるまで、前記分析領域のサイズを再設定する領域設定部と、をさらに有し、
前記パラメータ算出部は、
前記領域設定部により再設定された分析領域内の画素に基づいて、回転パラメータを算出する請求項1記載の画像処理装置。
An energy calculation unit that calculates energy of two color components of the three color components after the color conversion;
An area setting unit that resets the size of the analysis area until a predetermined condition using the energy is satisfied,
The parameter calculation unit
The image processing apparatus according to claim 1, wherein the rotation parameter is calculated based on the pixels in the analysis region reset by the region setting unit.
前記色変換後の画像に対して符号化処理を行う画像符号化部をさらに有する請求項1又は2記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising an image encoding unit that performs an encoding process on the color-converted image. 符号化された画像を復号する画像復号部と、
前記符号化された画像の各代表点の回転パラメータであって、固有ベクトルを有する色変換行列が変換された回転パラメータを含む、符号化された色変換情報を復号する色変換情報復号部と、
前記各代表点に対し、復号された回転パラメータを用いて色変換行列を算出する算出部と、
前記算出部により算出された色変換行列の固有ベクトルを補間して、前記代表点以外の点の色変換行列を算出する補間部と、
前記算出部により算出された色変換行列及び前記補間部により算出された色変換行列を用いて、前記画像復号部により復号された画像の色逆変換を行う色逆変換部と、
を有する画像処理装置。
An image decoding unit for decoding the encoded image;
A color conversion information decoding unit for decoding encoded color conversion information, including rotation parameters obtained by converting a color conversion matrix having an eigenvector, which is a rotation parameter of each representative point of the encoded image;
For each representative point, a calculation unit that calculates a color conversion matrix using the decoded rotation parameter;
An interpolation unit that interpolates eigenvectors of the color conversion matrix calculated by the calculation unit, and calculates a color conversion matrix of points other than the representative points;
A color reverse conversion unit that performs color reverse conversion of the image decoded by the image decoding unit, using the color conversion matrix calculated by the calculation unit and the color conversion matrix calculated by the interpolation unit;
An image processing apparatus.
コンピュータに、
画像から複数の分析領域を取得する取得ステップ、
各分析領域に含まれる代表点に対し、前記分析領域内の画素値に基づいて算出した固有ベクトルを有する色変換行列を変換して、回転パラメータを算出するパラメータ算出ステップ、
前記固有ベクトルを補間して、前記代表点以外の点の色変換行列を算出する補間ステップ、
前記パラメータ算出ステップにより算出された色変換行例及び前記補間ステップにより算出された色変換行列を用いて、前記画像の色変換を行う色変換ステップ、
各代表点の回転パラメータを含む色変換情報を符号化する色変換情報符号化ステップ、
を実行させるための画像処理プログラム。
On the computer,
An acquisition step of acquiring a plurality of analysis regions from the image;
A parameter calculation step of calculating a rotation parameter by converting a color conversion matrix having an eigenvector calculated based on a pixel value in the analysis region to a representative point included in each analysis region;
An interpolation step of interpolating the eigenvector to calculate a color conversion matrix of points other than the representative points;
A color conversion step of performing color conversion of the image using the color conversion row example calculated by the parameter calculation step and the color conversion matrix calculated by the interpolation step;
A color conversion information encoding step for encoding color conversion information including a rotation parameter of each representative point;
An image processing program for executing
コンピュータに、
符号化された画像を復号する画像復号ステップと、
前記符号化された画像の各代表点の回転パラメータであって、固有ベクトルを有する色変換行列が変換された回転パラメータを含む、符号化された色変換情報を復号する色変換情報復号ステップ、
前記各代表点に対し、復号された回転パラメータを用いて色変換行列を算出する算出ステップ、
前記算出ステップにより算出された色変換行列の固有ベクトルを補間して、前記代表点以外の点の色変換行列を算出する補間ステップ、
前記算出ステップにより算出された色変換行列及び前記補間ステップにより算出された色変換行列を用いて、前記画像復号ステップにより復号された画像の色逆変換を行う色逆変換ステップ、
を実行させるための画像処理プログラム。
On the computer,
An image decoding step for decoding the encoded image;
A color conversion information decoding step for decoding encoded color conversion information, including rotation parameters of each representative point of the encoded image, the rotation parameter being converted from a color conversion matrix having an eigenvector;
A calculation step for calculating a color conversion matrix using the decoded rotation parameter for each representative point,
An interpolation step of interpolating eigenvectors of the color conversion matrix calculated by the calculation step to calculate a color conversion matrix of points other than the representative points;
A color reverse conversion step for performing color reverse conversion of the image decoded by the image decoding step using the color conversion matrix calculated by the calculation step and the color conversion matrix calculated by the interpolation step;
An image processing program for executing
JP2013232584A 2013-11-08 2013-11-08 Image processing device and image processing program Pending JP2015095693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013232584A JP2015095693A (en) 2013-11-08 2013-11-08 Image processing device and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013232584A JP2015095693A (en) 2013-11-08 2013-11-08 Image processing device and image processing program

Publications (1)

Publication Number Publication Date
JP2015095693A true JP2015095693A (en) 2015-05-18

Family

ID=53197846

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013232584A Pending JP2015095693A (en) 2013-11-08 2013-11-08 Image processing device and image processing program

Country Status (1)

Country Link
JP (1) JP2015095693A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021521523A (en) * 2018-04-10 2021-08-26 ウニベルジテート ハイデルベルク Methods for color visualization and separation, software modules, and integrated circuits
CN115941959A (en) * 2022-12-02 2023-04-07 展讯半导体(南京)有限公司 Color matrix processing method, system, medium, and terminal
CN118660145A (en) * 2024-08-21 2024-09-17 湖南苏科智能科技有限公司 Security check image conversion method, system, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021521523A (en) * 2018-04-10 2021-08-26 ウニベルジテート ハイデルベルク Methods for color visualization and separation, software modules, and integrated circuits
CN115941959A (en) * 2022-12-02 2023-04-07 展讯半导体(南京)有限公司 Color matrix processing method, system, medium, and terminal
CN118660145A (en) * 2024-08-21 2024-09-17 湖南苏科智能科技有限公司 Security check image conversion method, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111145090B (en) A point cloud attribute encoding method, decoding method, encoding device and decoding device
US9699458B2 (en) Image encoding apparatus, image encoding method, image decoding apparatus, and image decoding method
CN105284111B (en) Dynamic image encoding device, moving image decoding apparatus, dynamic image encoding method, dynamic image decoding method and program
JPWO2014054267A1 (en) Image coding apparatus and image coding method
US20150110183A1 (en) Image predictive encoding and decoding device
JP2013150215A (en) Moving image decoding device, moving image encoding device, moving image decoding method, moving image encoding method, moving image decoding program, and moving image encoding program
US20140010446A1 (en) Image coding method, image decoding method, image coding apparatus, and image decoding apparatus
CN112075080A (en) Intra prediction device, image encoding device, image decoding device, and program
US10034016B2 (en) Coding apparatus, computer system, coding method, and computer product
JP2015095693A (en) Image processing device and image processing program
JP6187826B2 (en) Moving picture coding apparatus and moving picture coding method
JP4825227B2 (en) Image decoding apparatus and image processing program
US20160057429A1 (en) Coding apparatus, method, computer product, and computer system
US20100080488A1 (en) Fast directional image interpolator with difference projection
JP2020057840A (en) Image decoding device, image encoding device, image processing system, and program
JP4776505B2 (en) Image encoding device, image decoding device, and image processing program
JP2019062339A (en) Dynamic picture image encoder, dynamic picture image coding method, and dynamic picture image coding program
JP2013017128A (en) Intra-prediction mode estimation device, image encoder, image decoder and program
US20220078437A1 (en) Encoding apparatus and program
JP6311821B2 (en) Moving image processing apparatus and moving image processing method
JP2014192586A (en) Image processing apparatus, image processing method and image processing program
JP6065090B2 (en) Moving picture decoding apparatus, moving picture decoding method, and moving picture decoding program
JP6317720B2 (en) Moving picture coding apparatus, moving picture coding method, and moving picture coding program
JP7310919B2 (en) Filter generation method, filter generation device and program
JP2018186456A (en) Image coding apparatus, image coding method, and program