JP2015095693A - Image processing device and image processing program - Google Patents
Image processing device and image processing program Download PDFInfo
- 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
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
【課題】画質の低下を防ぎつつ、適切な色変換を行う。
【解決手段】画像から複数の分析領域を取得する取得部と、各分析領域に含まれる代表点に対し、分析領域内の画素値に基づいて算出した固有ベクトルを有する色変換行列を変換して、回転パラメータを算出するパラメータ算出部と、固有ベクトルを補間して、代表点以外の点の色変換行列を算出する補間部と、パラメータ算出部により算出された色変換行例及び補間部により算出された色変換行列を用いて、画像の色変換を行う色変換部と、各代表点の回転パラメータを含む色変換情報を符号化する色変換情報符号化部と、を有する。
【選択図】図1Proper 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.
ここで、画像に対して最適な色変換が行われると、変換後の第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.
以下、各実施例について、添付図面を参照しながら詳細に説明する。 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
色変換装置11は、入力部101と、取得部102と、パラメータ算出部103と、補間部104と、生成部105と、色変換部106と、色変換情報符号化部107とを有する。
The
入力部101は、画像を入力する。入力部101は、入力した画像を取得部102と、色変換部106とに出力する。
The
取得部102は、入力部101から取得した画像から複数の代表点(画素)を抽出し、この代表点を含む分析領域を取得する。代表点は、予め設定されていてもよいし、特徴点抽出により抽出された点を代表点としてもよい。特徴点は、例えばエッジ抽出などにより求められる。
The
取得部102は、求められた特徴点を含む分析領域を取得する。分析領域は、例えば、代表点を中心に32×32の領域である。取得部102は、代表点の位置と、分析領域とをパラメータ算出部103に出力する。
The
また、取得部102は、グラデーション抽出、平坦部分の抽出などにより、画像を複数の分析領域に分割し、分析領域の任意の点(例えば中心点)を代表点として設定してもよい。
The
ここで、代表点と分析領域との関係について説明する。図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
図1に戻り、パラメータ算出部103は、取得した各分析領域に含まれる代表点に対し、この分析領域内の画素値に基づいて算出した固有ベクトルを有する色変換行列を変換して、回転パラメータを算出する。つまり、パラメータ算出部103は、各代表点のRGBからC1〜C3を求めるための適切な回転パラメータθ1〜θ3を、分析領域を分析することで算出する。
Returning to FIG. 1, the
図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).
例えば、パラメータ算出部103は、各分析領域内の画素値を用いて、色信号の相関が最も除去されるように主成分分析を行うことで固有ベクトルを算出する。また、パラメータ算出部103はC3のエネルギー又はC2とC3との線形結合のエネルギーが最も小さくなるように3つの固有ベクトルを算出してもよい。パラメータ算出部103は、上記のいずれかの方法により算出した3つの固有ベクトル(9個のパラメータ)を有する色変換行列を、3つの回転パラメータに変換して算出する。パラメータ算出部103は、算出した固有ベクトルを補間部104に出力する。
For example, the
例えば、一番大きな固有値に対する第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.
式(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.
図1に戻り、補間部104は、パラメータ算出部103から取得した固有ベクトルを補間して、代表点以外の点(補間対象点)の色変換行列を算出する。すなわち、補間部104は、補間対象点に近い複数の代表点(例えば4つの代表点)の固有ベクトルの重み付き平均を求めることで、補間対象点の補間された固有ベクトルを算出することができる。
Returning to FIG. 1, the
或いは、以下のようにして、取得した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
図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
例えば、補間部104は、2つの軸を補間する場合、つまり、ある代表点と隣り合う代表点の1つ目の固有ベクトル同士を用いて補間する場合、その2つの固有ベクトルv1及びv2が張る平面の法線ベクトルを外積により算出する。
For example, when the
図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
固有ベクトル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.
上述の方式は、四元数を直接補間した。この方式以外に、補間対象点に近い複数の代表点(例えば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つの代表点の固有ベクトルの四元数を同様に求め、それぞれq1、q2、q3、q4とする。補間対象点の固有ベクトルVxは、4つの点から補間対象点へのバイリニア法による補間係数をα1、α2、α3、α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.
補間部104は、各代表点の色変換行列と、各代表点以外の点で補間された色変換行列とを、生成部105に出力する。また、補間部104は、各代表点の位置情報と、各代表点の回転パラメータとを、色変換情報符号化部107に出力する。
The
図1に戻り、生成部105は、画面全体の各画素に対し、各画素位置に対応する色変換行列を関連付けた色変換のマップを生成する。色変換行列は、例えば3つの固有ベクトルで表される。生成部105は、生成したマップを色変換部106に出力する。
Returning to FIG. 1, the
色変換部106は、生成部105から取得した色変換のマップを用いて、入力手段101から取得した画像を色変換する。色変換部106は、色相関ができるだけ除去された色変換後の各成分を画像符号化部12に出力する。
The
色変換情報符号化部107は、各代表点の回転パラメータを含む色変換情報を符号化する。なお、色変換情報符号化部107は、代表点が任意に設定されていれば、各代表点の位置情報を色変換情報に含め、予め復号側と統一された代表点が用いられるのであれば、代表点の位置情報を色変換情報に含めなくてもよい。
The color conversion
色変換情報符号化部107は、符号化の方法について、可逆圧縮の方法であれば、いずれを用いてもよい。色変換行列は、3つの回転パラメータで表現して伝送されるので、9個のパラメータを有する3つの固有ベクトルで伝送されるよりも、伝送効率が良くなる。
The color conversion
画像符号化部12は、色変換装置11により色変換された各成分に対し、画像符号化処理を行う。画像符号化処理は、JPEG、MPEG−2、H.264/AVC、H.265/HEVCなどの公知の符号化技術を用いればよい。
The
画像符号化部12により符号化された画像と、色変換情報符号化部107により符号化された色変換情報とは、記憶部に蓄積されたり、復号側に送信されたりする。
The image encoded by the
以上の構成を有することで、画質の低下を防ぎつつ、適切な色変換を行うことができる。 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
ステップS102で、取得部102は、画像から複数の代表点を抽出し、この代表点を含む分析領域を取得する。なお、取得部102は、分析領域を求めてから代表点を決定するようにしてもよい。
In step S102, the
ステップS103で、パラメータ算出部103は、取得された分析領域内の画素値を用いて固有ベクトルを算出するとともに、代表点に対応する、固有ベクトルを有する色変換行列が変換された回転パラメータを算出する。パラメータ算出部103は、各代表点を含む各分析領域内で回転パラメータを算出する。
In step S103, the
ステップS104で、補間部104は、各代表点に対応する色変換行列の固有ベクトルを用いて、代表点以外の色変換行列を補間する。例えば、補間部104は、補間対象点に座標が近い4つの代表点の固有ベクトルを、4つの代表点からの距離に応じた重み付け平均を行うことで、固有ベクトルの補間処理を行う。
In step S104, the
ステップS105で、生成部105は、画像内の各画素に、その画素位置に対応する色変換行列を関連付けて色変換のマップを生成する。色変換のマップとは、例えば各画素に色変換行列の固有ベクトルが対応付けられたものをいう。
In step S105, the
ステップS106で、色変換部106は、画像内の各画素に対し、色変換のマップを用いて色変換を行う。例えば、色変換部106は、画像の各画素に対応する色変換行列をマップから特定し、特定した色変換行列を用いて各画素の画素値を色変換し、色成分を算出する。
In step S106, the
ステップS107で、画像符号化部12は、色変換された色成分を有する画像に対し、画像符号化処理を施す。また、色変換情報符号化部107は、各代表点の位置情報と、各代表点の回転パラメータとを含む色変換情報を符号化する。なお、符号側と復号側とで、代表点の位置を予め同じに設定しておけば、色変換情報に代表点の位置情報を含める必要はない。
In step S107, the
以上、実施例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
色変換装置21は、入力部101と、取得部202と、パラメータ算出部203と、補間部204と、生成部205と、色変換部206と、色変換情報符号化部107と、エネルギー算出部207と、領域設定部208とを有する。
The
取得部202と、パラメータ算出部203と、補間部204と、生成部205と、色変換部206とは、繰り返し処理が行われるところが、実施例1と異なり、処理の内容自体は、実施例1と同様である。なお、この繰り返し処理においては、補間部204において、補間が行えるようにするため、以下の処理を予め行う。すなわち、領域設定部208は、例えば、画像全体に対して、暫定的に分析領域とその代表点を定めておく。そして、この暫定的な分析領域の各々に対してパラメータ算出部203がパラメータを算出しておくことにより、この繰り返し処理において、補間部204が補間を行えるようにしておくことが望ましい。繰り返し処理においては、パラメータが逐次修正されて行くと共に、分析領域のサイズが適切に変更されてゆく。
Unlike the first embodiment, the
暫定的な分析領域の各々に対してパラメータ算出部203がパラメータを算出した後の具体な繰り返し処理は、以下の通りである。
A specific iterative process after the
エネルギー算出部207は、各分析領域での色成分C2と色成分C3とのエネルギーを重み付き加算し、画像全体での色成分C2と色成分C3とのエネルギーの総和を算出する。エネルギー算出部203は、算出されたエネルギーを領域設定部208に出力する。
The
領域設定部208は、取得したエネルギーが所定条件を満たすと判断すれば、その所定条件を満たす領域サイズを補間部204や色変換部206に出力する。所定条件は、例えば、エネルギーが最小又は極小となること、あるいはエネルギーが閾値以下となることなどである。
If the
領域設定部208は、エネルギーを用いる所定条件に対して、取得したエネルギーが閾値以下であるかを判定してもよいし、分析領域の全サイズを処理し、最も小さいエネルギーとなるサイズを判定してもよい。
The
領域設定部208は、取得したエネルギーが所定条件を満たさなければ、現在の分析領域を分割したり、所定サイズだけ小さくしたりして、新たな分析領域を設定する。領域設定部208は、新たに設定した分析領域を取得部202に通知する。例えば、領域設定部208は、初期値の分析領域として例えば32×32に画像を分割し、次に、16×16、8×8と順に2で割って分析領域を小さくしてもよい。
If the acquired energy does not satisfy the predetermined condition, the
取得部202は、新たな分析領域を領域設定部208から取得する。また、取得部202は、分析領域の中心位置を代表点にすればよい。パラメータ算出部203以降の処理については、新たな分析領域を用いて処理が行われる。
The
取得部202は、代表点が予め設定されている場合で、分析領域に複数の代表点が含まれる場合は、例えば分析領域の最も中心にある代表点を選択すればよい。
When the representative point is set in advance and the analysis region includes a plurality of representative points, the
これにより、画像全体の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
色変換部206は、領域設定部208から通知された分析領域サイズに対応する色変換行列のマップを用いて、色変換処理を行う。
The
なお、領域設定部208は、分析領域毎にさらに分割するか否かを判定することもできる。この場合は、どの分析領域を何回分割したかの情報が色変換情報に含まれる。
Note that the
<動作>
次に、実施例2における画像処理装置20の動作について説明する。図9は、実施例2における画像処理の一例を示すフローチャートである。図9に示すステップS201〜S206の処理は、図7に示すステップS101〜S106の処理と同様である。
<Operation>
Next, the operation of the
ステップS207で、エネルギー算出部207は、各分析領域での色成分C2と色成分C3とのエネルギーを加算し、画像全体での色成分C2と色成分C3とのエネルギーの総和を算出する。
In step S207, the
ステップS208で、領域設定部208は、算出されたエネルギーが所定条件を満たすか否かを判定する。所定条件とは、例えば算出されたエネルギーが閾値以下となる等である。エネルギーが所定条件を満たせば(ステップS208−YES)ステップS210に進み、エネルギーが所定条件を満たさなければ(ステップS208−NO)ステップS209に進む。
In step S208, the
ステップS209で、領域設定部208は、分析領域を新たに再設定する。領域設定部208は、例えば、現在の分析領域を分割することで、新たな分析領域を再設定する。ステップS209の後、ステップS202に戻り、新たな分析領域で処理が再度行われる。
In step S209, the
ステップS210で、画像符号化部12は、C2とC3とのエネルギーが小さくなるような分析領域に対し、分析して求められた固有ベクトルを有する色変換行列により色変換された色成分を有する画像に、画像符号化処理を施す。
In step S210, the
また、色変換情報符号化部107は、C2とC3とのエネルギーが小さくなるような分析領域のサイズに関する情報と、各代表点の回転パラメータとを含む色変換情報を符号化する。分析領域のサイズに関する情報から、代表点の位置が求められる。例えば、何回分割されたかが分かれば分析領域のサイズが分かり、分析領域の中心点を代表点とすることで、代表点の位置が求められる。
In addition, the color conversion
なお、色変換情報符号化部107は、設定された各分析領域の代表点の位置情報を、実施例1同様にして符号化するようにしてもよい。
The color conversion
以上、実施例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
画像復号部31は、画像符号化部12の画像符号化処理に対応する画像復号処理を行って、符号化された画像を復号する。画像復号部31は、復号した画像に対応する色変換情報と同期をとるための信号を色変換情報復号部301に出力してもよい。
The
色逆変換装置32は、色変換情報復号部301と、算出部302と、補間部303と、生成部304と、色逆変換部305とを有する。
The color
色変換情報復号部301は、例えば、符号化された画像の各代表点の回転パラメータであって、固有ベクトルを有する色変換行列が変換された回転パラメータを含む、符号化された色変換情報を復号する。色変換情報は、代表点の位置情報や分析領域のサイズに関する情報を含んでもよい。復号処理は、色変換情報符号化部107の符号化処理に対応する復号処理である。
The color conversion
色変換情報復号部301は、復号した情報を算出部302に出力する。また、色変換情報復号部301は、画像復号部31から取得した同期信号に同期して復号処理を行ってもよい。
The color conversion
算出部302は、各代表点に対し、復号された回転パラメータを用いて色変換行列を算出する。また、算出部302は、代表点の位置情報や分析領域のサイズに関する情報を取得した場合は、この情報から代表点の位置を求める。
The
例えば、算出部302は、何回分割されたかにより分析領域のサイズを特定し、このサイズの分析領域で画像を分割した場合に、この分析領域の中心点を代表点とすることで、代表点の位置を求めることができる。
For example, the
また、算出部302は、代表点の位置が予め決められている場合は、その位置を用いればよい。算出部302は、各代表点に対応する色変換行列を補間部303に出力する。このときの色変換行列は、3つの固有ベクトルを有する。
In addition, when the position of the representative point is determined in advance, the
補間部303は、算出部303により算出された色変換行列の固有ベクトルを補間して、代表点以外の点の色変換行列を算出する。補間部303は、実施例1や実施例2の補間処理と同じ補間処理を用いることで、固有ベクトルの補間処理(例えば重み付き平均)を行う。補間部303は、代表点の色変換行列と、代表点以外の点の補間された色変換行列とを生成部304に出力する。
The
生成部304は、実施例1や実施例2と同様にして、画像の各画素に対して色変換行列を関連付けて、色変換のマップを生成する。生成部304は、生成したマップを色逆変換部305に出力する。
The
色逆変換部305は、算出部302により算出された色変換行列及び補間部303により算出された色変換行列を用いて、画像復号部31により復号された画像の色逆変換を行う。色逆変換部305は、色逆変換された画像を出力画像として、記憶装置又は表示装置に出力する。
The color
以上の構成を有することで、実施例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
ステップS302で、色変換情報復号部301は、符号化された色変換情報を復号し、各代表点の位置情報、各代表点の回転パラメータを取得する。なお、ステップS301とステップS302とは、順不同である。
In step S302, the color conversion
ステップS303で、算出部302は、代表点毎に、この代表点の回転パラメータを変換することで固有ベクトルを有する色変換行列を算出する。
In step S303, the
ステップS304で、補間部303は、各代表点に対応する色変換行列の固有ベクトルを用いて、代表点以外の色変換行列を補間する。例えば、補間部303は、補間対象点に座標が近い4つの代表点の固有ベクトルを、4つの代表点からの距離に応じた重み付け平均を行うことで、固有ベクトルの補間処理を行う。
In step S304, the
ステップS305で、生成部304は、画像内の各画素に、その画素位置に対応する色変換行列を関連付けて色変換のマップを生成する。色変換のマップとは、例えば各画素に色変換行列の固有ベクトルが対応付けられたものをいう。
In step S305, the
ステップS306で、色逆変換部305は、画像復号部31により復号された画像内の各画素に対し、色変換のマップを用いて色逆変換を行う。例えば、色逆変換部305は、画像の各画素に対応する色変換行列をマップから特定し、特定した色変換行列を用いて各画素の色成分を色逆変換し、画素値を生成する。色逆変換された画像は、出力画像として記憶装置や表示装置に出力される。
In step S306, the color
以上、実施例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
図12に示すように、画像処理装置40は、制御部401、主記憶部402、補助記憶部403、ドライブ装置404、ネットワークI/F部406、入力部407、表示部408を有する。これら各構成は、バスを介して相互にデータ送受信可能に接続されている。
As illustrated in FIG. 12, the
制御部401は、コンピュータの中で、各装置の制御やデータの演算、加工を行うCPU(Central Processing Unit)である。また、制御部401は、主記憶部402又は補助記憶部403に記憶された画像処理のプログラムを実行する演算装置である。制御部401は、入力部407や記憶装置からデータを受け取り、演算、加工した上で、表示部408や記憶装置などに出力する。
The
また、制御部401は、画像処理のプログラムを実行することで、実施例1〜3で説明した処理を実現することができる。
Also, the
主記憶部402は、ROM(Read Only Memory)やRAM(Random Access Memory)などである。主記憶部402は、制御部401が実行する基本ソフトウェアであるOS(Operating System)やアプリケーションソフトウェアなどのプログラムやデータを記憶又は一時保存する記憶装置である。
The
補助記憶部403は、HDD(Hard Disk Drive)などであり、アプリケーションソフトウェアなどに関連するデータを記憶する記憶装置である。
The
ドライブ装置404は、記録媒体405、例えばフレキシブルディスクからプログラムを読み出し、記憶部にインストールする。
The
また、記録媒体405に、所定のプログラムを格納し、この記録媒体405に格納されたプログラムはドライブ装置404を介して画像処理装置40にインストールされる。インストールされた所定のプログラムは、画像処理装置40により実行可能となる。
A predetermined program is stored in the
ネットワークI/F部406は、有線及び/又は無線回線などのデータ伝送路により構築されたLAN(Local Area Network)、WAN(Wide Area Network)などのネットワークを介して接続された通信機能を有する周辺機器と画像処理装置40とのインターフェースである。
The network I /
入力部407は、カーソルキー、数字入力及び各種機能キー等を備えたキーボード、表示部408の表示画面上でキーの選択等を行うためのマウスやスライドパッド等を有する。表示部408は、LCD(Liquid Crystal Display)等により構成され、制御部401から入力される表示データに応じた表示が行われる。
The
なお、図1に示す画像処理装置10の構成は、例えば制御部401及びワークメモリとしての主記憶部402により実現されうる。また、図8に示す画像処理装置20の構成は、例えば制御部401及びワークメモリとしての主記憶部402により実現されうる。また、図10に示す画像処理装置30の構成は、例えば制御部401及びワークメモリとしての主記憶部402により実現されうる。
The configuration of the
画像処理装置40で実行されるプログラムは、実施例1〜3で説明した各部を含むモジュール構成となっている。実際のハードウェアとしては、制御部401が補助記憶部403からプログラムを読み出して実行することにより上記各部のうち1又は複数の各部が主記憶部402上にロードされ、1又は複数の各部が主記憶部402上に生成されるようになっている。
The program executed by the
このように、上述した実施例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
なお、記録媒体405は、CD−ROM、フレキシブルディスク、光磁気ディスク等の様に情報を光学的,電気的或いは磁気的に記録する記録媒体、ROM、フラッシュメモリ等の様に情報を電気的に記録する半導体メモリ等、様々なタイプの記録媒体を用いることができる。
The
また、上述した各実施例で説明した画像処理の各部は、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
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.
前記エネルギーを用いる所定条件が満たされるまで、前記分析領域のサイズを再設定する領域設定部と、をさらに有し、
前記パラメータ算出部は、
前記領域設定部により再設定された分析領域内の画素に基づいて、回転パラメータを算出する請求項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.
前記符号化された画像の各代表点の回転パラメータであって、固有ベクトルを有する色変換行列が変換された回転パラメータを含む、符号化された色変換情報を復号する色変換情報復号部と、
前記各代表点に対し、復号された回転パラメータを用いて色変換行列を算出する算出部と、
前記算出部により算出された色変換行列の固有ベクトルを補間して、前記代表点以外の点の色変換行列を算出する補間部と、
前記算出部により算出された色変換行列及び前記補間部により算出された色変換行列を用いて、前記画像復号部により復号された画像の色逆変換を行う色逆変換部と、
を有する画像処理装置。 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
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)
| 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 |
-
2013
- 2013-11-08 JP JP2013232584A patent/JP2015095693A/en active Pending
Cited By (3)
| 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 |