JPH09127923A - Arithmetic unit and arithmetic method - Google Patents

Arithmetic unit and arithmetic method

Info

Publication number
JPH09127923A
JPH09127923A JP7283177A JP28317795A JPH09127923A JP H09127923 A JPH09127923 A JP H09127923A JP 7283177 A JP7283177 A JP 7283177A JP 28317795 A JP28317795 A JP 28317795A JP H09127923 A JPH09127923 A JP H09127923A
Authority
JP
Japan
Prior art keywords
matrix
signal
conversion
quantized
error
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.)
Withdrawn
Application number
JP7283177A
Other languages
Japanese (ja)
Inventor
Atsushi Kikuchi
敦 菊池
Toshiyuki Miyauchi
俊之 宮内
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP7283177A priority Critical patent/JPH09127923A/en
Publication of JPH09127923A publication Critical patent/JPH09127923A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

PROBLEM TO BE SOLVED: To generate a quantized transformation matrix with minimum quantization error. SOLUTION: When the generation request of a quantized transformation matrix for minimizing the error generated when RGB signal is converted into YUV signal (color difference signal with luminance signal) and then returned to the original RGB signal by use of inverse transformation is inputted to a main control, part 26 through an input and output signal processing part 21, the main control part 26 makes a quantized matrix generating part 24 quantize the transformation matrix, and makes an equation generating part 25 generate an integer programming expression. Thereafter, the main control part 26 makes an integer program executing part 23 determine the solution of the integer programming problem, and generates an inverse transformation matrix corresponding to the quantized transformation matrix by the determined solution, and outputs it to the outside of an arithmetic unit through the input and output signal processing part 21.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、演算装置および演
算方法に関し、特に、量子化した変換行列を用いて、R
GB信号を輝度信号と色差信号に変換する場合、または
輝度信号と色差信号をRGB信号に変換する場合に、変
換時における変換誤差を小さくするようにした演算装置
および演算方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an arithmetic unit and an arithmetic method, and more particularly, to an R and R method using a quantized transformation matrix.
The present invention relates to an arithmetic unit and an arithmetic method for reducing a conversion error at the time of converting a GB signal into a luminance signal and a color difference signal, or converting a luminance signal and a color difference signal into an RGB signal.

【0002】[0002]

【従来の技術】RGB信号をYUV信号(輝度信号と色
差信号)に変換する場合、またはその逆変換を行う場
合、変換行列の浮動小数点を持つ行列要素に2のN乗を
乗じて四捨五入することにより、変換行列の各行列要素
を整数で表す(変換行列を量子化する)ことができる。
2. Description of the Related Art When converting an RGB signal into a YUV signal (luminance signal and color difference signal) or vice versa, a matrix element having a floating point in a conversion matrix is multiplied by 2 to the Nth power and rounded off. Thus, each matrix element of the conversion matrix can be represented by an integer (the conversion matrix is quantized).

【0003】例えば、数1に示す変換行列(以下、行列
を[ ]で表す)[Rf]はYUV信号をRGB信号に変
換する変換行列であり、数2に示す変換行列[Yf]は
RGB信号をYUV信号に変換する変換行列である。
For example, the conversion matrix [Rf] shown in Expression 1 (hereinafter, the matrix is represented by []) is a conversion matrix for converting a YUV signal into an RGB signal, and the conversion matrix [Yf] shown in Expression 2 is an RGB signal. Is a conversion matrix for converting to a YUV signal.

【0004】[0004]

【数1】 (Equation 1)

【0005】[0005]

【数2】 (Equation 2)

【0006】数1、数2に示すように、行列[Rf],
[Yf]の各行列要素は浮動小数点をもつ実数形式で与
えられている。この各行列要素を、例えば、10ビットで
表現できる整数(-512乃至511)で表すために、行列[R
f]の各行列要素に2^8(=256)(^はべき乗を表す)を乗
じ、小数点以下第1位を四捨五入して量子化したものが
数3で示す行列[R]である。
As shown in Equations 1 and 2, the matrix [Rf],
Each matrix element of [Yf] is given in a real number format with a floating point. In order to represent each matrix element with an integer (-512 to 511) that can be represented by 10 bits, for example, the matrix [R
The matrix [R] shown in Equation 3 is obtained by multiplying each matrix element of [f] by 2 ^ 8 (= 256) (^ represents a power), rounding off to the first decimal place, and quantizing.

【0007】[0007]

【数3】 (Equation 3)

【0008】また、行列[Yf]の各行列要素に2^9(=51
2)を乗じ、小数点以下第1位を四捨五入して量子化した
ものが数4で示す行列[Y]である。
In addition, 2 ^ 9 (= 51) is assigned to each matrix element of the matrix [Yf].
The matrix [Y] shown in Equation 4 is obtained by multiplying by 2), rounding off to the first decimal place, and quantizing.

【0009】[0009]

【数4】 (Equation 4)

【0010】このように、変換行列の量子化を行えば、
変換行列の各行列要素を整数で表すことができ、容易に
信号化することができる。RGB信号をYUV信号に変
換した後、再び、RGB信号に変換するためには、RG
B信号を行列[Y]で変換した後、行列[R]で、さら
に変換し、得られたRGB信号の各成分を512*256で除
すれば、元のRGB信号に戻ることになる。
Thus, if the transformation matrix is quantized,
Each matrix element of the conversion matrix can be represented by an integer and can be easily signalized. After converting the RGB signal into the YUV signal, in order to convert the RGB signal into the RGB signal again, RG
After the B signal is converted by the matrix [Y], it is further converted by the matrix [R], and each component of the obtained RGB signal is divided by 512 * 256 to return to the original RGB signal.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、数3で
示される行列[R]および数4で示される行列[Y]
は、各行列要素の小数点以下第1位を四捨五入して量子
化した変換行列であるため、正確な変換行列を表してい
ない。従って、例えば、行列[R]と行列[Y]で示さ
れる変換行列を用いてRGB信号からYUV信号に変換
し、その後、さらにRGB信号に変換すると、量子化レ
ベル(今の場合は10ビット)が変換時に生ずる誤差より
粗い場合は、変換前後のRGBの各成分に変換による誤
差が生じる(変換前と変換後のRGB信号の各成分は一
致しない)。
However, the matrix [R] shown by the equation 3 and the matrix [Y] shown by the equation 4
Is a conversion matrix that is quantized by rounding off the first decimal place of each matrix element, and therefore does not represent an accurate conversion matrix. Therefore, for example, when the RGB signal is converted into the YUV signal using the conversion matrix represented by the matrix [R] and the matrix [Y], and then further converted into the RGB signal, the quantization level (10 bits in this case) Is rougher than the error that occurs during conversion, an error occurs due to conversion in each RGB component before and after conversion (each component of the RGB signal before conversion does not match that after conversion).

【0012】RGB信号を変換行列[Y]を用いてYU
V信号に変換した後、再び、変換行列[R]を用いてR
GB信号に変換するときに生ずる、変換前のRGB信号
と変換後のRGB信号との誤差を表す誤差行列を数5に
示す。
The RGB signal is converted into YU by using the conversion matrix [Y].
After converting to V signal, R is converted again by using the conversion matrix [R].
Equation 5 shows an error matrix representing the error between the RGB signal before conversion and the RGB signal after conversion, which occurs when the RGB signal is converted.

【0013】[0013]

【数5】 (Equation 5)

【0014】量子化変換行列生成時の四捨五入による誤
差を無視すれば、行列[Rf]と行列[Yf]は逆行列の
関係にあるため、512倍の[Yf](すなわち[Y])と
256倍の[Rf](すなわち[R])を乗じたものは、51
2*256倍の単位行列[I]となるはずである。従って、
[Y][R]から512*256倍の単位行列[I]を減じた
行列がこの場合の誤差行列[E]を表している。
Ignoring the error due to rounding when the quantization conversion matrix is generated, since the matrix [Rf] and the matrix [Yf] have an inverse relationship, they are 512 times [Yf] (that is, [Y]).
Multiplied by 256 times [Rf] (that is, [R]) is 51
The unit matrix [I] should be 2 * 256 times. Therefore,
The matrix obtained by subtracting the unit matrix [I] of 512 * 256 times from [Y] [R] represents the error matrix [E] in this case.

【0015】数5に示す誤差行列[E]では、行列要素
の最大絶対値mは274(=|-274|:第3行第1列目の行列
要素)であり、同一行の同一符号の行列要素を加えた値
の最大絶対値Mは486(=|-100-202-184|:第1行目の行
列要素)である。mが大きい程、誤差が大きく、Mが大
きい程、その符号の方向への誤差が大きくなる。
In the error matrix [E] shown in Equation 5, the maximum absolute value m of the matrix element is 274 (= | -274 |: the matrix element in the third row and the first column), and The maximum absolute value M of the values including the matrix elements is 486 (= | -100-202-184 |: the matrix element in the first row). The larger m is, the larger the error is, and the larger M is, the larger the error is in the direction of the code.

【0016】同様に、YUV信号を変換行列[R]を用
いてRGB信号に変換した後、再び、変換行列[Y]を
用いてYUV信号に変換するときに生じる、変換前のY
UV信号と変換後のYUV信号との誤差を表す誤差行列
[E]を数6に示す。
Similarly, after conversion of the YUV signal into an RGB signal using the conversion matrix [R], and again after conversion into the YUV signal using the conversion matrix [Y], Y before conversion occurs.
The error matrix [E] representing the error between the UV signal and the converted YUV signal is shown in Equation 6.

【0017】[0017]

【数6】 (Equation 6)

【0018】このときのmは376(=|-376|:第3行第3
列目の行列要素)であり、Mは476(=|-146-86-244|:
第1行目の行列要素)である。
At this time, m is 376 (= | -376 |: 3rd line, 3rd line)
Matrix element in the column), and M is 476 (= | -146-86-244 |:
The first row is a matrix element).

【0019】このように、従来の変換行列の量子化技法
では、循環変換を繰り返すたびに、誤差が生ずる課題が
ある。また、変換誤差を小さくするためには、より細か
い量子化レベルを設定する(行列[Rf]、または行列
[Yf]の行列要素の最小値と最大値の差で示されるレ
ンジを、より細かく細分化する)ことが必要となり、そ
のためには、より多くのビット数が必要となる課題があ
った。
As described above, the conventional transform matrix quantization technique has a problem that an error occurs each time cyclic transformation is repeated. Further, in order to reduce the conversion error, a finer quantization level is set (the range indicated by the difference between the minimum value and the maximum value of the matrix elements of the matrix [Rf] or the matrix [Yf] is finely subdivided. There is a problem that a larger number of bits are required for that.

【0020】本発明はこのような状況に鑑みてなされた
ものであり、量子化レベルを大きくする(ビット数を大
きくする)ことなく、量子化変換行列による循環変換時
の誤差を小さくするものである。
The present invention has been made in view of such a situation, and is intended to reduce an error at the time of cyclic conversion by a quantization conversion matrix without increasing the quantization level (increasing the number of bits). is there.

【0021】[0021]

【課題を解決するための手段】請求項1に記載の演算装
置は、量子化された第1の変換行列を用いて第1の信号
から変換された第2の信号を元の第1の信号に変換する
量子化された第2の変換行列と、量子化された第1の変
換行列とにより規定される誤差行列を利用して、量子化
された第2の変換行列を生成する生成手段を備えること
を特徴とする。
According to a first aspect of the present invention, there is provided an arithmetic unit according to claim 1, wherein a second signal converted from a first signal using a quantized first conversion matrix is used as an original first signal. Generating means for generating a quantized second conversion matrix using an error matrix defined by the quantized second conversion matrix and the quantized first conversion matrix It is characterized by being provided.

【0022】請求項6に記載の演算装置は、第1の信号
を第2の信号に変換する第1の変換行列、および第2の
信号を第1の信号に変換する第2の変換行列を、その行
列要素を、切り捨て、切り上げ、または四捨五入のうち
少なくともいずれか2つを用いて量子化することで量子
化する量子化手段と、量子化された第1の信号を第2の
信号に変換するN個の第1の変換行列と、量子化された
第2の信号を第1の信号に変換するM個の第2の変換行
列の中から、1つの第1の変換行列と1つの第2の変換
行列とを組み合わせる組み合わせ手段と、組み合わされ
た第1の変換行列と第2の変換行列とにより規定される
誤差行列を利用して、組み合わせの中から、1つの組み
合わせの第1の変換行列と第2の変換行列を選択する選
択手段とを備えることを特徴とする。
According to a sixth aspect of the present invention, there is provided a computing device which comprises a first transformation matrix for transforming a first signal into a second signal and a second transformation matrix for transforming a second signal into a first signal. Quantizing means for quantizing the matrix element by using at least two of rounding down, rounding up, or rounding, and converting the quantized first signal into a second signal. From the N first conversion matrices and the M second conversion matrices that convert the quantized second signal into the first signal, one first conversion matrix and one first conversion matrix. A combination means for combining two conversion matrices and an error matrix defined by the combined first conversion matrix and second conversion matrix are used to make a first conversion of one combination from among the combinations. A matrix and a selection means for selecting the second transformation matrix And wherein the door.

【0023】請求項9に記載の演算方法は、量子化され
た第1の変換行列を用いて第1の信号から変換された第
2の信号を元の第1の信号に変換する量子化された第2
の変換行列と、量子化された第1の変換行列とにより規
定される誤差行列を利用して、量子化された第2の変換
行列を生成することを特徴とする。
According to a ninth aspect of the present invention, the quantized first transformation matrix is used to transform the second signal transformed from the first signal into the original first signal. Second
Is used to generate a quantized second conversion matrix by using an error matrix defined by the conversion matrix of 1 and the quantized first conversion matrix.

【0024】請求項10に記載の演算方法は、第1の信
号を第2の信号に変換する第1の変換行列、および第2
の信号を第1の信号に変換する第2の変換行列を、その
行列要素を、切り捨て、切り上げ、または四捨五入のう
ち少なくともいずれか2つを用いて量子化することで量
子化し、量子化された第1の信号を第2の信号に変換す
るN個の第1の変換行列と、量子化された第2の信号を
第1の信号に変換するM個の第2の変換行列の中から、
1つの第1の変換行列と1つの第2の変換行列とを組み
合わせ、組み合わされた第1の変換行列と第2の変換行
列とにより規定される誤差行列を利用して、組み合わせ
の中から、1つの組み合わせの第1の変換行列と第2の
変換行列を選択することを特徴とする。
According to a tenth aspect of the present invention, there is provided a calculation method for converting a first signal into a second signal, and a second conversion matrix.
Quantized a second transformation matrix that transforms the signal of to the first signal by quantizing its matrix elements using at least two of rounding down, rounding up, or rounding off. From N first conversion matrices for converting the first signal into the second signal and M second conversion matrices for converting the quantized second signal into the first signal,
One first conversion matrix and one second conversion matrix are combined, and an error matrix defined by the combined first conversion matrix and second conversion matrix is used to select from among the combinations: It is characterized in that one combination of the first transformation matrix and the second transformation matrix is selected.

【0025】請求項1に記載の演算装置においては、生
成手段が、量子化された第1の変換行列を用いて第1の
信号から変換された第2の信号を元の第1の信号に変換
する量子化された第2の変換行列と、量子化された第1
の変換行列とにより規定される誤差行列を利用して、量
子化された第2の変換行列を生成する。
In the arithmetic unit according to the first aspect, the generating means converts the second signal converted from the first signal into the original first signal by using the quantized first conversion matrix. A quantized second transform matrix to transform and a quantized first transform matrix
The quantized second conversion matrix is generated using the error matrix defined by

【0026】請求項6に記載の演算装置においては、量
子化手段が、第1の信号を第2の信号に変換する第1の
変換行列、および第2の信号を第1の信号に変換する第
2の変換行列を、その行列要素を、切り捨て、切り上
げ、または四捨五入のうち少なくともいずれか2つを用
いて量子化することで量子化し、組み合わせ手段が、量
子化された第1の信号を第2の信号に変換するN個の第
1の変換行列と、量子化された第2の信号を第1の信号
に変換するM個の第2の変換行列の中から、1つの第1
の変換行列と1つの第2の変換行列とを組み合わせ、選
択手段が、組み合わされた第1の変換行列と第2の変換
行列とにより規定される誤差行列を利用して、組み合わ
せの中から、1つの組み合わせの第1の変換行列と第2
の変換行列を選択する。
In the arithmetic unit according to the sixth aspect, the quantizing means converts the first signal into the first signal and the second conversion signal into the second signal. The second transform matrix is quantized by quantizing its matrix elements using at least two of rounding down, rounding up, or rounding, and combining means quantizes the quantized first signal One of the N first conversion matrices for converting the second signal into two signals and the M second conversion matrices for converting the quantized second signal into the first signal.
And one second conversion matrix are combined, and the selecting means utilizes the error matrix defined by the combined first conversion matrix and second conversion matrix to select from among the combinations: A combination of the first transformation matrix and the second
Select the transformation matrix of.

【0027】請求項9に記載の演算方法においては、量
子化された第1の変換行列を用いて第1の信号から変換
された第2の信号を元の第1の信号に変換する量子化さ
れた第2の変換行列と、量子化された第1の変換行列と
により規定される誤差行列を利用して、量子化された第
2の変換行列が生成される。
In the calculation method according to the ninth aspect, the quantization for converting the second signal converted from the first signal into the original first signal by using the quantized first conversion matrix. The quantized second conversion matrix is generated using the error matrix defined by the quantized first conversion matrix and the quantized first conversion matrix.

【0028】請求項10に記載の演算方法においては、
第1の信号を第2の信号に変換する第1の変換行列、お
よび第2の信号を第1の信号に変換する第2の変換行列
が、その行列要素を、切り捨て、切り上げ、または四捨
五入のうち少なくともいずれか2つを用いて量子化する
ことで量子化され、量子化された第1の信号を第2の信
号に変換するN個の第1の変換行列と、量子化された第
2の信号を第1の信号に変換するM個の第2の変換行列
の中から、1つの第1の変換行列と1つの第2の変換行
列とが組み合わされ、組み合わされた第1の変換行列と
第2の変換行列とにより規定される誤差行列を利用し
て、組み合わせの中から、1つの組み合わせの第1の変
換行列と第2の変換行列が選択される。
In the arithmetic method according to claim 10,
A first transformation matrix that transforms a first signal into a second signal and a second transformation matrix that transforms a second signal into a first signal have their matrix elements rounded down, rounded up, or rounded off. Quantized by using at least any two of them, N first conversion matrices for converting the quantized first signal into a second signal, and a quantized second conversion matrix. First conversion matrix in which one first conversion matrix and one second conversion matrix are combined from M second conversion matrices for converting the signal of 1 to the first signal, and the combined first conversion matrix Using the error matrix defined by and the second conversion matrix, one combination of the first conversion matrix and the second conversion matrix is selected from the combinations.

【0029】[0029]

【発明の実施の形態】以下に本発明の実施例を説明する
が、特許請求の範囲に記載の各手段と以下の実施例との
対応関係を明かにするために、各手段の後の括弧内に、
対応する実施例(但し一例)を付加して本発明の特徴を
記述すると、次のようになる。但し、勿論この記載は、
各手段を記載したものに限定することを意味するもので
はない。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below. In order to clarify the correspondence between each means described in the claims and the following embodiments, parentheses after each means are described. Within
The characteristics of the present invention will be described as follows by adding a corresponding embodiment (but one example). However, of course,
It does not mean that each means is limited to those described.

【0030】請求項1に記載の演算装置は、第1の信号
を第2の信号に変換する第1の変換行列を量子化する量
子化手段(例えば、図2の量子化行列生成部24)と、
量子化された前記第1の変換行列を用いて前記第1の信
号から変換された前記第2の信号を元の前記第1の信号
に変換する量子化された第2の変換行列と、量子化され
た前記第1の変換行列とにより規定される誤差行列を利
用して、量子化された前記第2の変換行列を生成する生
成手段(例えば、図2の整数計画プログラム実行部2
3)とを備えることを特徴とする。
The arithmetic unit according to claim 1 is a quantizing means for quantizing the first conversion matrix for converting the first signal into the second signal (for example, the quantization matrix generating section 24 in FIG. 2). When,
A quantized second transformation matrix for transforming the second signal transformed from the first signal into the original first signal using the quantized first transformation matrix; Generating means for generating the quantized second conversion matrix using the error matrix defined by the converted first conversion matrix (for example, the integer programming program execution unit 2 in FIG. 2).
3) and are provided.

【0031】請求項4に記載の演算装置は、前記量子化
手段は、前記第2の信号を前記第1の信号に変換する第
3の変換行列をさらに量子化し、前記生成手段は、量子
化された前記第3の変換行列を用いて前記第2の信号か
ら変換された前記第1の信号を元の前記第2の信号に変
換する量子化された第4の変換行列と、量子化された前
記第3の変換行列とにより規定される誤差行列を利用し
て、量子化された前記第4の変換行列をさらに生成し、
前記量子化手段により量子化される前記第1の変換行列
と前記生成手段により生成される前記第2の変換行列と
により規定される前記誤差行列より求められる第1の誤
差と、前記量子化手段により量子化される前記第3の変
換行列と前記生成手段により生成される前記第4の変換
行列とにより規定される前記誤差行列より求められる第
2の誤差を比較し、前記第2の変換行列と第4の変換行
列のうち、誤差の小さい誤差行列を与える方を選択する
選択手段(例えば、図2のメイン制御部26)をさらに
備えることを特徴とする。
In the arithmetic unit according to a fourth aspect, the quantizing means further quantizes a third conversion matrix for converting the second signal into the first signal, and the generating means quantizes. A quantized fourth transformation matrix for transforming the first signal transformed from the second signal into the original second signal using the transformed third transformation matrix; And further generating the quantized fourth conversion matrix using an error matrix defined by the third conversion matrix
A first error obtained from the error matrix defined by the first transform matrix quantized by the quantizer and the second transform matrix generated by the generator; and the quantizer. The second conversion matrix is compared with a second error obtained from the error matrix defined by the third conversion matrix quantized by the third conversion matrix and the fourth conversion matrix generated by the generation unit. And a fourth conversion matrix, which further includes a selection unit (for example, the main control unit 26 in FIG. 2) for selecting one that gives an error matrix with a smaller error.

【0032】請求項6に記載の演算装置は、第1の信号
を第2の信号に変換する第1の変換行列、および前記第
2の信号を前記第1の信号に変換する第2の変換行列
を、その行列要素を、切り捨て、切り上げ、または四捨
五入のうち少なくともいずれか2つを用いて量子化する
ことで量子化する量子化手段(例えば、図2の量子化行
列生成部24)と、前記量子化手段により量子化された
前記第1の信号を前記第2の信号に変換するN個の前記
第1の変換行列と、前記量子化手段により量子化された
前記第2の信号を前記第1の信号に変換するM個の前記
第2の変換行列の中から、1つの前記第1の変換行列と
1つの前記第2の変換行列とを組み合わせる組み合わせ
手段(例えば、図5のステップS41の処理を行う図2
のメイン制御部26)と、前記組み合わせ手段により組
み合わされた前記第1の変換行列と前記第2の変換行列
とにより規定される誤差行列を利用して、前記組み合わ
せの中から、1つの組み合わせの前記第1の変換行列と
前記第2の変換行列を選択する選択手段(例えば、図5
のステップS42の処理を行う図2のメイン制御部2
6)とを備えることを特徴とする。
According to a sixth aspect of the present invention, there is provided an arithmetic device, wherein a first conversion matrix for converting a first signal into a second signal and a second conversion matrix for converting the second signal into the first signal. Quantization means for quantizing a matrix by quantizing its matrix elements using at least two of rounding down, rounding up, or rounding off (for example, the quantization matrix generation unit 24 in FIG. 2); The N first conversion matrices for converting the first signal quantized by the quantizing means into the second signal, and the second signal quantized by the quantizing means, Combination means for combining one of the first conversion matrices and one of the second conversion matrices from the M second conversion matrices to be converted into the first signal (for example, step S41 of FIG. 5). 2 which performs the processing of
Of the combination by using the error control matrix defined by the main control unit 26) and the first conversion matrix and the second conversion matrix combined by the combination means. Selection means for selecting the first conversion matrix and the second conversion matrix (for example, FIG.
2 for performing the processing of step S42 of FIG.
6).

【0033】図1は本発明の演算装置を適用した変換装
置の一実施例の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of a conversion device to which the arithmetic unit of the present invention is applied.

【0034】変換入力信号としてのRGB信号またはY
UV信号が、パーソナルコンピュータ2またはVCR
(VIDEO CASSETE RECORDER)3より変換装置1に入力さ
れると、これらの信号は、変換装置1内の入出力信号制
御回路11に供給されるようになされている。また、変
換後のYUV信号またはRGB信号は、入出力信号制御
回路11よりVCR3またはパーソナルコンピュータ2
に出力されるようになされている。
RGB signal or Y as conversion input signal
UV signal is personal computer 2 or VCR
When input to the converter 1 from the (VIDEO CASSETE RECORDER) 3, these signals are supplied to the input / output signal control circuit 11 in the converter 1. The converted YUV signal or RGB signal is output from the input / output signal control circuit 11 to the VCR 3 or the personal computer 2.
It is designed to be output to.

【0035】変換回路12は、入出力信号制御回路11
より入力されたRGB信号またはYUV信号に対して、
最適変換行列生成回路13により生成された変換行列を
作用させ、RGB信号をYUV信号に変換するか、また
はYUV信号をRGB信号に変換するようになされてい
る。
The conversion circuit 12 is an input / output signal control circuit 11
For the RGB signal or YUV signal input from
The conversion matrix generated by the optimum conversion matrix generation circuit 13 is operated to convert an RGB signal into a YUV signal or a YUV signal into an RGB signal.

【0036】変換回路12により変換されたYUV信号
またはRGB信号は、入出力信号制御回路11に供給さ
れるようになされている。
The YUV signal or the RGB signal converted by the conversion circuit 12 is supplied to the input / output signal control circuit 11.

【0037】最適変換行列生成回路13により生成され
る変換行列は、この変換行列を用いてRGB信号をYU
V信号(または、YUV信号をRGB信号)に変換した
後、その変換行列に対応する逆変換行列を用いて、変換
後のYUV信号を元のRGB信号(または、変換後のR
GB信号を元のYUV信号)に変換する循環変換を行う
とき、変換前の信号と、この循環変換を行い元の信号に
戻した変換後の信号との誤差を表す誤差行列の行列要素
の最大絶対値を最小にするようになされている。従っ
て、この変換行列を用いて循環変換を行った場合、変換
後の信号と元の信号との誤差を小さくすることができ
る。
The conversion matrix generated by the optimum conversion matrix generation circuit 13 uses this conversion matrix to convert the RGB signal to YU.
After converting the V signal (or the YUV signal into the RGB signal), the converted YUV signal is converted into the original RGB signal (or the converted R signal) by using an inverse conversion matrix corresponding to the conversion matrix.
When performing the cyclic conversion for converting the GB signal into the original YUV signal), the maximum of the matrix elements of the error matrix representing the error between the signal before conversion and the signal after the conversion, which is the cyclic conversion and returned to the original signal. It is designed to minimize the absolute value. Therefore, when cyclic conversion is performed using this conversion matrix, the error between the converted signal and the original signal can be reduced.

【0038】あるいはまた、最適変換行列生成回路13
により生成される変換行列は、循環変換を行った場合の
誤差行列において、同一行の同一符号の行列要素を加え
た値の最大絶対値を最小にするようになされる。従っ
て、この変換行列を用いて循環変換を行った場合、常に
一定の方向に生ずる変換後の信号の各成分の誤差を小さ
くすることができる。
Alternatively, the optimum conversion matrix generation circuit 13
The conversion matrix generated by the above is designed to minimize the maximum absolute value of the values obtained by adding the matrix elements of the same row and the same code in the error matrix when the cyclic conversion is performed. Therefore, when cyclic conversion is performed using this conversion matrix, it is possible to reduce the error of each component of the converted signal that always occurs in a fixed direction.

【0039】最適変換行列生成回路13は、制御回路1
4から、変換行列の生成方法(分岐限定法の整数計画プ
ログラムを用いる方法、または組み合わせ計画法を用い
る方法)、変換行列の量子化レベル(変換行列を量子化
するためのビット数)、および変換行列の種類(誤差行
列の行列要素の最大絶対値が最小になる変換行列、また
は誤差行列の同一行の同一符号の行列要素を加えた値の
絶対値が最小になる変換行列)に関する情報を取得し、
これらの変換行列に関する生成仕様情報に従い、RGB
信号をYUV信号に変換する量子化変換行列、またはY
UV信号をRGB信号に変換する量子化変換行列を生成
し、変換回路12に生成した変換行列情報を出力するよ
うになされている。
The optimum conversion matrix generating circuit 13 is the control circuit 1
4, the method of generating a transformation matrix (method using integer programming program of branch and bound method or method using combinatorial programming), quantization level of transformation matrix (number of bits for quantizing transformation matrix), and transformation Obtains information about the type of matrix (the transformation matrix that minimizes the maximum absolute value of the matrix elements of the error matrix, or the transformation matrix that minimizes the absolute value of the values of the same rows of the error matrix plus the matrix elements of the same sign) Then
According to the generation specification information on these conversion matrices, RGB
Quantization conversion matrix for converting signal to YUV signal, or Y
The quantization conversion matrix for converting the UV signal into the RGB signal is generated, and the generated conversion matrix information is output to the conversion circuit 12.

【0040】制御回路14は、循環変換が行われる頻
度、変換に要する時間等をモニタして、最適な変換行列
の生成仕様を判断し、適宜、この生成仕様情報を最適変
換行列生成回路13に出力するようになされている。
The control circuit 14 determines the optimum conversion matrix generation specification by monitoring the frequency of cyclic conversion, the time required for conversion, etc., and appropriately outputs this generation specification information to the optimum conversion matrix generation circuit 13. It is designed to output.

【0041】図2は、図1に示した最適変換行列生成回
路13の機能ブロック図を表す図である。
FIG. 2 is a diagram showing a functional block diagram of the optimum conversion matrix generation circuit 13 shown in FIG.

【0042】入出力信号処理部21は、変換回路12か
らの変換行列の生成要求信号を入力し、メイン制御部2
6に変換行列の生成を指示し、また、メイン制御部26
により生成された変換行列情報を変換回路12に出力す
るようになされている。さらに、入出力信号処理部21
は、制御回路14からの変換行列の生成仕様情報をメイ
ン制御部26に供給するようになされている。
The input / output signal processing unit 21 inputs the conversion matrix generation request signal from the conversion circuit 12, and the main control unit 2
6 is instructed to generate a conversion matrix, and the main control unit 26
The conversion matrix information generated by the above is output to the conversion circuit 12. Further, the input / output signal processing unit 21
Supplies the conversion matrix generation specification information from the control circuit 14 to the main control unit 26.

【0043】m/M計算部22は、組み合わせ計画法に
より変換行列[R]とその逆変換行列[Y]がメイン制
御部26より与えられた場合に、誤差行列を演算し、さ
らに、誤差行列の行列要素の最大絶対値を表すmと、誤
差行列の同一行の同一符号の行列要素を加えた値の最大
絶対値を表すMを計算し、計算結果をメイン制御部26
に出力するようになされている。
When the transformation matrix [R] and its inverse transformation matrix [Y] are given by the main control unit 26 by the combinatorial programming, the m / M calculation unit 22 calculates an error matrix, and further, the error matrix The maximum absolute value of the matrix element of m and the maximum absolute value of the value of the sum of the matrix elements of the same row and the same sign of the error matrix are calculated, and the calculation result is calculated by the main controller 26.
It is designed to output to.

【0044】整数計画プログラム実行部23は、メイン
制御部26から出力された分岐限定法の整数計画用の式
を解き、変換行列[Y](または[R])の行列要素を
求め、この行列要素をメイン制御部26に出力するよう
になされている。
The integer programming program execution unit 23 solves the integer programming equation of the branch and bound method output from the main control unit 26 to obtain the matrix elements of the transformation matrix [Y] (or [R]), and this matrix The elements are output to the main control unit 26.

【0045】量子化行列生成部24は、メイン制御部2
6を介して供給される変換行列の量子化レベルの情報に
従い、実数で表される変換行列[Rf]と変換行列[Y
f]に、2のN乗を乗じた後、分岐限定法の整数計画プ
ログラムを用いて変換行列を生成する場合は、四捨五入
により量子化された変換行列を生成し、組み合わせ計画
法を用いて変換行列を生成する場合は、切り捨て、また
は、切り上げにより量子化された変換行列を生成し、メ
イン制御部26に出力するようになされている。
The quantization matrix generating section 24 includes a main control section 2
According to the quantization level information of the transformation matrix supplied via 6, the transformation matrix [Rf] and the transformation matrix [Y
f] is multiplied by 2 to the Nth power, and then a transformation matrix is generated by using the integer programming program of the branch and bound method, the transformation matrix quantized by rounding is generated, and the transformation is performed using the combinatorial programming. When a matrix is generated, a conversion matrix quantized by rounding down or rounding up is generated and output to the main control unit 26.

【0046】方程式生成部25は、メイン制御部26か
ら出力された変換行列[R](または[Y])に対応す
る変換行列[Y](または[R])の行列要素を未知数
とする分岐限定法の整数計画法の式を作成し、この式を
メイン制御部26に出力するようになされている。
The equation generating section 25 branches the matrix elements of the conversion matrix [Y] (or [R]) corresponding to the conversion matrix [R] (or [Y]) output from the main control section 26 as unknowns. The formula of the integer programming method of the limiting method is created, and this formula is output to the main control unit 26.

【0047】メイン制御部26は、入出力信号処理部2
1より変換行列の生成を指示されると、変換行列の生成
仕様に従い各処理命令を各処理部に指示するようになさ
れている。
The main control unit 26 includes the input / output signal processing unit 2
When the generation of the conversion matrix is instructed from 1, each processing instruction is instructed to each processing unit according to the conversion matrix generation specification.

【0048】メモリ27は、各種のデータ、例えば、R
GB信号をYUV信号に変換する変換行列[Yf]の各
行列要素のデータ、YUV信号をRGB信号に変換する
変換行列[Rf]の各行列要素のデータ等を記憶するよ
うになされている。
The memory 27 stores various data such as R data.
The data of each matrix element of the conversion matrix [Yf] for converting the GB signal into the YUV signal, the data of each matrix element of the conversion matrix [Rf] for converting the YUV signal into the RGB signal, and the like are stored.

【0049】次に、最適変換行列生成回路13の具体的
な処理例を図3のフローチャートを参照して説明する。
Next, a specific processing example of the optimum conversion matrix generation circuit 13 will be described with reference to the flowchart of FIG.

【0050】始めに、分岐限定法の整数計画プログラム
を用いて変換行列を生成する(所定の変換行列[Rf]
(または[Yf])を量子化した変換行列[R](また
は[Y])に対応する変換行列[Y](または[R])
を求める)場合について説明する。さらにこの場合、誤
差行列の行列要素の最大絶対値を最小にする方法と、誤
差行列の同一行の同一符号の行列要素を加えた値の絶対
値を最小にする方法とがあるが、最初に前者について説
明し、次に、後者について説明する。
First, a transformation matrix is generated using an integer programming program of the branch and bound method (predetermined transformation matrix [Rf]
(Or [Yf]) quantized transformation matrix [R] (or [Y]) corresponding transformation matrix [Y] (or [R])
Will be described). Furthermore, in this case, there are a method of minimizing the maximum absolute value of the matrix element of the error matrix and a method of minimizing the absolute value of the value obtained by adding the matrix elements of the same row and the same sign of the error matrix. The former will be described, and then the latter will be described.

【0051】メイン制御部26は、変換回路12から入
出力信号処理部21を介して、変換行列の生成命令が指
示されると、図3のステップS11において、誤差行列
の行列要素の最大絶対値mを表す変数δに零を初期設定
する。
When a conversion matrix generation command is issued from the conversion circuit 12 via the input / output signal processing unit 21, the main control unit 26 receives the maximum absolute value of the matrix element of the error matrix in step S11 of FIG. A variable δ representing m is initialized to zero.

【0052】続いて、ステップS12で、メイン制御部
26は、図2のメモリ27よりYUV(またはRGB)
信号をRGB(またはYUV)信号に変換する変換行列
[Rf](または[Yf])を読み込む。この行列[R
f](または[Yf])は、何らかの方法により生成さ
れ、量子化するためにメモリ27に記憶されているもの
である。
Subsequently, in step S12, the main control unit 26 causes the memory 27 of FIG.
A conversion matrix [Rf] (or [Yf]) for converting a signal into an RGB (or YUV) signal is read. This matrix [R
f] (or [Yf]) is generated by some method and stored in the memory 27 for quantization.

【0053】後続のステップS13で、量子化行列生成
部24は、制御回路14より供給された変換行列の生成
仕様に従い、量子化レベルを設定し、変換行列[Rf]
(または[Yf])の各行列要素に2のN乗(Nは量子
化レベルにより決定)を乗じ、四捨五入により量子化変
換行列[R](または[Y])を生成する。
In the subsequent step S13, the quantization matrix generator 24 sets the quantization level according to the conversion matrix generation specification supplied from the control circuit 14, and the conversion matrix [Rf]
Each matrix element of (or [Yf]) is multiplied by 2 to the Nth power (N is determined by the quantization level) and rounded to generate a quantization conversion matrix [R] (or [Y]).

【0054】例えば、10ビット(-512乃至511)で変換
行列の各行列要素を表すため、行列[Rf]の各行列要
素に2^8=256を乗じ、小数点以下第1位を四捨五入し、
量子化変換行列[R]を生成する。同様に行列[Y]を
生成する場合は、行列[Yf]の各行列要素に2^9=512を
乗じ、小数点以下第1位を四捨五入し、量子化変換行列
[Y]を生成する。数7と数8は、このようにして生成
した行列[R]と行列[Y]を示す。
For example, in order to represent each matrix element of the conversion matrix with 10 bits (-512 to 511), each matrix element of the matrix [Rf] is multiplied by 2 ^ 8 = 256, and the first decimal place is rounded off.
A quantization conversion matrix [R] is generated. Similarly, when the matrix [Y] is generated, each matrix element of the matrix [Yf] is multiplied by 2 ^ 9 = 512, the first decimal place is rounded off, and the quantization conversion matrix [Y] is generated. Expressions 7 and 8 show the matrix [R] and the matrix [Y] generated in this way.

【0055】[0055]

【数7】 (Equation 7)

【0056】[0056]

【数8】 (Equation 8)

【0057】続いて、ステップS14で、方程式生成部
25は、行列[R](または[Y])に対応する行列
[Y](または[R])を求めるために、行列[Y]
(または[R])の行列要素を未知数とした分岐限定法
を用いた整数計画用の式を生成する。
Subsequently, in step S14, the equation generation unit 25 obtains the matrix [Y] (or [R]) corresponding to the matrix [R] (or [Y]) in order to obtain the matrix [Y].
An expression for integer programming is generated using the branch and bound method with the matrix elements of (or [R]) as unknowns.

【0058】このステップの処理の詳細を説明すると、
数7の行列[R]の行列要素をRijとするとき、行列
[R]の行列要素の中で、R22,R23が負であり、数8の
行列[Y]の行列要素をYijとするとき、行列[Y]の
行列要素の中で、Y21,Y22,Y32,Y33が負である。ここ
で、行列要素Rij,Yijを、+または-の符号と、零また
は正の整数(rij,yijとする)とで表すようにする
と、Rij=±rij,Yij=±yijとなる。従って、数7と
数8は、数9の式(1−1),(1−2)に示すように
表すことができる。
The details of the processing in this step will be described below.
When the matrix element of the matrix [R] of Expression 7 is Rij, R22 and R23 are negative among the matrix elements of the matrix [R], and the matrix element of the matrix [Y] of Expression 8 is Yij , Y21, Y22, Y32, and Y33 are negative among the matrix elements of the matrix [Y]. Here, if the matrix elements Rij, Yij are represented by + or-signs and zero or a positive integer (denoted as rij, yij), then Rij = ± rij, Yij = ± yij. Therefore, Equations 7 and 8 can be expressed as shown in Equations (1-1) and (1-2) of Equation 9.

【0059】[0059]

【数9】 (Equation 9)

【0060】行列[Rf]と行列[Yf]は、互いに逆行
列の関係にあるため、四捨五入による誤差を無視すれ
ば、[R]/256と[Y]/512も、互いに逆行列の関係
にあり、その積は単位行列[I]となる。
Since the matrix [Rf] and the matrix [Yf] are inversely related to each other, if errors due to rounding are ignored, [R] / 256 and [Y] / 512 are also inversely related to each other. And the product is the unit matrix [I].

【0061】従って、[R][Y]=256*512[I]で
あり、[Y][R]=512*256[I]である。四捨五入
による誤差を考慮すると、今、行列[Y](または
[R])の行列要素を未知数としているので、数10の
式(2−1),(2−2)(または数11の式(3−
1),(3−2))が成り立つ。
Therefore, [R] [Y] = 256 * 512 [I] and [Y] [R] = 512 * 256 [I]. Considering the error due to rounding, since the matrix elements of the matrix [Y] (or [R]) are now unknowns, the equations (2-1), (2-2) (10) 3-
1) and (3-2)) are established.

【0062】[0062]

【数10】 (Equation 10)

【0063】[0063]

【数11】 [Equation 11]

【0064】数9の式(1−3),(1−4)に示すよ
うに、[R][Y]=[A],[Y][R]=[B]と
し、誤差行列の行列要素の最大絶対値mを表す変数をδ
とすると、行列[A]の行列要素A11(式(2−1))
に対して、式(4−1)(または、行列[A]の行列要
素A11(式(3−1))に対して、式(4−2))が成
立する。何故ならば、行列要素A11は256*512に近い値
のはずだからである。
As shown in equations (1-3) and (1-4) of equation 9, [R] [Y] = [A], [Y] [R] = [B], and the error matrix matrix Let δ be the variable that represents the maximum absolute value m of the element
Then, the matrix element A11 of the matrix [A] (equation (2-1))
On the other hand, Expression (4-1) (or Expression (4-2) for the matrix element A11 (Expression (3-1)) of the matrix [A] is established. This is because the matrix element A11 should have a value close to 256 * 512.

【0065】 256*512-δ≦274y11+376y31≦256*512+δ (4−1) 256*512-δ≦143r11+244r13≦256*512+δ (4−2)256 * 512-δ ≦ 274y11 + 376y31 ≦ 256 * 512 + δ (4-1) 256 * 512-δ ≦ 143r11 + 244r13 ≦ 256 * 512 + δ (4-2)

【0066】同様に、0に近い値の行列要素A12に対し
て、式(4−3)(または、式(4−4))が、0に近
い値の行列要素A13に対して、式(4−5)(または、
式(4−6))が成立する。
Similarly, for matrix element A12 having a value close to 0, equation (4-3) (or expression (4-4)) is given for matrix element A13 having a value close to 0. 4-5) (or
Formula (4-6)) is materialized.

【0067】 -δ≦274y12-376y32≦δ (4−3) -δ≦281r11-205r13≦δ (4−4) -δ≦274y13-376y33≦δ (4−5) -δ≦54r11-40r13≦δ (4−6)-Δ≤274y12-376y32≤δ (4-3) -δ≤281r11-205r13≤δ (4-4) -δ≤274y13-376y33≤δ (4-5) -δ≤54r11-40r13≤δ (4-6)

【0068】さらにまた、同様に、行列要素A21,A22,
A23,A31,A32,およびA33に対して、不等式を生成す
ることができる。
Furthermore, similarly, the matrix elements A21, A22,
Inequalities can be generated for A23, A31, A32, and A33.

【0069】また、行列[B]についても、512*256に
近い値の行列要素B11(式(2−2))に対して、式
(5−1)(または、行列要素B11(式(3−2))に
対して、式(5−2))が、0に近い値の行列要素B12
に対して、式(5−3)(または、式(5−4))が、
0に近い値の行列要素B13に対して、式(5−5)(ま
たは、式(5−6))が成立する。
Regarding the matrix [B], the matrix element B11 (equation (2-2)) having a value close to 512 * 256 is replaced by the equation (5-1) (or the matrix element B11 (equation (3 -2)), the equation (5-2)) is a matrix element B12 having a value close to 0.
On the other hand, equation (5-3) (or equation (5-4)) becomes
Formula (5-5) (or formula (5-6)) is established for the matrix element B13 having a value close to 0.

【0070】 512*256-δ≦274y11+274y12+274y13≦512*256+δ (5−1) 512*256-δ≦143r11+281r21+54r31≦512*256+δ (5−2) -δ≦-92y12+475y13≦δ (5−3) -δ≦-281r22+54r32≦δ (5−4) -δ≦376y11-192y12≦δ (5−5) -δ≦143r13-281r23≦δ (5−6)512 * 256-δ ≦ 274y11 + 274y12 + 274y13 ≦ 512 * 256 + δ (5-1) 512 * 256-δ ≦ 143r11 + 281r21 + 54r31 ≦ 512 * 256 + δ (5-2) -δ ≦ -92y12 + 475y13≤δ (5-3) -δ≤-281r22 + 54r32≤δ (5-4) -δ≤376y11-192y12≤δ (5-5) -δ≤143r13-281r23≤δ (5-6 )

【0071】同様に、行列要素B21,B22,B23,B31,B
32,およびB33に対して、不等式を生成することができ
る。
Similarly, matrix elements B21, B22, B23, B31, B
Inequalities can be generated for 32, and B33.

【0072】このようにして、例えば、上記式(4−
1)などにおける不等式の数を2個と数えると、行列
[A]と行列[B]の各行列要素に対して2つの不等式
が生成され、行列[Y](または[R])の行列要素を
未知数とする計36本の不等式が生成される。
Thus, for example, the above equation (4-
If the number of inequalities in 1) is counted as 2, two inequalities are generated for each matrix element of the matrix [A] and the matrix [B], and the matrix element of the matrix [Y] (or [R]) is generated. A total of 36 inequalities with unknowns are generated.

【0073】さらに、この条件を満たす行列[Y](ま
たは[R])の行列要素を限定するため、行列[Y]
(または[R])の行列要素の絶対値の総和Zが最大
(式(6−1)(または式(6−2))のZが最大)に
なるような条件を付与する。この条件は、量子化された
変換行列の行列要素に、有限ビットで表されるレンジ内
で最大の広がりを持たせるための条件となる。式(6−
2)でr12とr33は零とした。
Further, in order to limit the matrix elements of the matrix [Y] (or [R]) satisfying this condition, the matrix [Y]
(Or [R]) a condition that the total sum Z of the absolute values of the matrix elements is maximum (Z in formula (6-1) (or formula (6-2)) is maximum) is given. This condition is a condition for allowing the matrix element of the quantized conversion matrix to have the maximum spread within the range represented by finite bits. Formula (6-
In 2), r12 and r33 are set to zero.

【0074】 y11+y12+y13+y21+y22+y23+y31+y32+y33=Z (6−1) r11+r13+r21+r22+r23+r31+r32=Z (6−2)Y11 + y12 + y13 + y21 + y22 + y23 + y31 + y32 + y33 = Z (6-1) r11 + r13 + r21 + r22 + r23 + r31 + r32 = Z (6-2)

【0075】行列要素y11乃至y33(またはr11乃至r
33)は、正の整数または零であり、これを求めるには上
述した36本の不等式を満たし、式(6−1)(または式
(6−2))のZが最大になる解を求めればよく、これ
は、数12で示す整数計画法の解を求めることに帰着す
る。
Matrix elements y11 to y33 (or r11 to r
33) is a positive integer or zero. To find this, find the solution that satisfies the above 36 inequalities and maximizes Z in equation (6-1) (or equation (6-2)). This is enough, and this results in finding an integer programming solution shown in Eq.

【0076】[0076]

【数12】 (Equation 12)

【0077】今の場合、36本の不等式が、数12の式
(7−1)に相当し、gは36、nは9、Xj(j=1乃至9)
はy11乃至y33(またはr11乃至r33)、Fij(i=1乃
至36:j=1乃至9)はy11乃至y33(またはr11乃至r3
3)の係数、Hi(i=1乃至36)は256*512+δ,-256*512+
δ,またはδのいずれかである。
In the present case, 36 inequalities correspond to the equation (7-1) of the equation 12, g is 36, n is 9, and Xj (j = 1 to 9).
Is y11 to y33 (or r11 to r33), and Fij (i = 1 to 36: j = 1 to 9) is y11 to y33 (or r11 to r3).
The coefficient of 3), Hi (i = 1 to 36) is 256 * 512 + δ, -256 * 512 +
Either δ or δ.

【0078】また、式(6−1)(または式(6−
2))が、数12の式(7−2)に相当し、この場合、
係数Cj(j=1乃至9)はすべて1である。
Further, the equation (6-1) (or the equation (6-
2)) corresponds to the equation (7-2) of the equation 12, and in this case,
The coefficients Cj (j = 1 to 9) are all 1.

【0079】このようにして、行列[Y]の行列要素を
未知数とした場合の整数計画法で使用される36本の不
等式の係数の値を図4に示す。
FIG. 4 shows the values of the coefficients of 36 inequalities used in integer programming when the matrix elements of the matrix [Y] are unknowns in this way.

【0080】図4に示した数字は、左から右に、δを28
0とした場合の256*512+δ(または-256*512+δ、または
δ)、y11,y21,y31,y12,y22,y32,y13,y23,およ
びy33の係数(符号を付加した値)を示している。
In the numbers shown in FIG. 4, δ is 28 from left to right.
256 * 512 + δ (or -256 * 512 + δ or δ) when set to 0, y11, y21, y31, y12, y22, y32, y13, y23, and y33 coefficients (values with signs) Is shown.

【0081】例えば、4−1で示す行は、 274*y11+0*y21+376*y31+0*y12+0*y22+0*y32+0*y
13+0*y23+0*y33≦131352(=256*512+280(=δ)) の不等式を表しており、式(4−1)の右側の不等式に
相当する。
For example, the line indicated by 4-1 is 274 * y11 + 0 * y21 + 376 * y31 + 0 * y12 + 0 * y22 + 0 * y32 + 0 * y.
The inequality of 13 + 0 * y23 + 0 * y33 ≦ 131352 (= 256 * 512 + 280 (= δ)) is expressed, and corresponds to the inequality on the right side of the equation (4-1).

【0082】同様に、4−2で示す行は、式(4−1)
の左側の不等式に相当し、4−7で示す行は、式(4−
3)の右側の不等式に相当し、4−8で示す行は、式
(4−3)の左側の不等式に相当し、4−13で示す行
は、式(4−5)の右側の不等式に相当し、4−14で
示す行は、式(4−5)の左側の不等式に相当する。
Similarly, the line indicated by 4-2 is represented by the formula (4-1).
Corresponds to the inequalities on the left side of, and lines 4-7 indicate that
3) corresponds to the inequality on the right side, the row indicated by 4-8 corresponds to the inequality on the left side of equation (4-3), and the row indicated by 4-13 indicates the inequality on the right side of equation (4-5). The row indicated by 4-14 corresponds to the inequality on the left side of the equation (4-5).

【0083】また、4−19で示す行は、式(5−1)
の右側の不等式に相当し、4−20で示す行は、式(5
−1)の左側の不等式に相当し、4−25で示す行は、
式(5−3)の右側の不等式に相当し、4−26で示す
行は、式(5−3)の左側の不等式に相当し、4−31
で示す行は、式(5−5)の右側の不等式に相当し、4
−32で示す行は、式(5−5)の左側の不等式に相当
する。
Further, the line indicated by 4-19 is the expression (5-1).
Corresponding to the inequality on the right side of
Corresponding to the inequality on the left side of -1), the line indicated by 4-25 is
This corresponds to the inequality on the right side of Expression (5-3), and the row indicated by 4-26 corresponds to the inequality on the left side of Expression (5-3).
The row indicated by corresponds to the inequality on the right side of Equation (5-5),
The row indicated by -32 corresponds to the inequality on the left side of equation (5-5).

【0084】このようにして、図3のステップS14に
おいて、整数計画法で使用される不等式(上記の例では
36本の不等式)と式(6−1)(または、式(6−
2))に示すZとZの条件(Zが最大)が生成される。
Thus, in step S14 of FIG. 3, the inequalities (36 inequalities in the above example) used in the integer programming method and the equation (6-1) (or the equation (6-
2)) Z and the condition of Z (Z is maximum) are generated.

【0085】続くステップS15で、方程式生成部25
により生成されたこれらの式は、メイン制御部26を介
して整数計画プログラム実行部23に渡され、整数計画
問題の解を求める整数計画プログラムが実行される。
In the following step S15, the equation generation unit 25
These expressions generated by are passed to the integer programming program execution unit 23 via the main control unit 26, and the integer programming program for finding the solution of the integer programming problem is executed.

【0086】後続のステップS16で、整数計画プログ
ラム実行部23で実行された整数計画プログラムの解が
存在するか否かが判定され、解が存在しないときは、ス
テップS18の処理に分岐する。求める解が正の整数、
または零である条件のもとでこの整数計画問題を解くた
め、δが小さい場合、解が存在しないことも有り得る。
In the subsequent step S16, it is determined whether or not there is a solution of the integer programming program executed by the integer programming program executing section 23. If there is no solution, the process branches to step S18. The solution to be solved is a positive integer,
Or, since this integer programming problem is solved under the condition of being zero, when δ is small, there may be no solution.

【0087】そこで、ステップS18で、メイン制御部
26は、δに所定の小さな値α(例えば10)を加え、
ステップS14に戻り、方程式生成部25に対して、こ
のαを加算したδを用いて、再び、整数計画問題の式を
生成させる。
Therefore, in step S18, the main control unit 26 adds a predetermined small value α (for example, 10) to δ,
Returning to step S14, the equation generation unit 25 is caused to generate the equation of the integer programming problem again by using δ obtained by adding the α.

【0088】このようにして、整数計画問題の解が得ら
れるまで、δの値を、0,10,20,30,…と、少しづつ大き
くしながら、ステップS14、ステップS15、ステッ
プS16、およびステップS18の処理が繰り返し実行
され、ステップS16で解が存在すると判断された場
合、ステップS17の出力処理が行われる。
In this way, until the solution of the integer programming problem is obtained, the value of δ is gradually increased to 0, 10, 20, 30, ... While step S14, step S15, step S16, and The process of step S18 is repeatedly executed, and when it is determined that the solution exists in step S16, the output process of step S17 is performed.

【0089】図3に示すフローチャートは、整数計画問
題の解を求めるための処理概要を、簡単に説明するた
め、細部に及ぶ処理ステップは省略してあるが、勿論、
ステップS17の処理が実行される前には、求めた解
が、唯一の解となるような処理が行われる。
The flowchart shown in FIG. 3 omits detailed processing steps for the purpose of briefly explaining the processing outline for obtaining the solution of the integer programming problem.
Before the processing of step S17 is executed, processing is performed so that the obtained solution is the only solution.

【0090】つまり、行列[Rf]を量子化した行列
[R]と行列要素を未知数とした行列[Y]による第1
の解を上述したように求め(図3のステップS11乃至
S16とステップS18の処理を実行)、その後、さら
に、行列[Yf]を量子化した行列[Y]と行列要素を
未知数とした行列[R]による第2の解を求め(再び、
図3のステップS11乃至S16とステップS18の処
理を実行)、両者のうち、[Y][R](または[R]
[Y])による誤差行列の行列要素の最大絶対値mが小
さい方の解を求める解とする。また、最小のmを持つ複
数の解が存在する場合には、それらの解のうち、いずれ
か1つを選択するような処理が行われる。
That is, the first by the matrix [R] obtained by quantizing the matrix [Rf] and the matrix [Y] having unknown matrix elements.
Is obtained as described above (the processing of steps S11 to S16 and step S18 of FIG. 3 is executed), and then the matrix [Y] obtained by quantizing the matrix [Yf] and the matrix [Y] in which the matrix elements are unknowns. R] to find a second solution (again,
3 executes steps S11 to S16 and step S18), and [Y] [R] (or [R]
Let [Y]) be the solution for which the maximum absolute value m of the matrix element of the error matrix is smaller. Further, when there are a plurality of solutions having the smallest m, a process of selecting any one of the solutions is performed.

【0091】例えば、変換行列の行列要素を10ビット
で表し、行列[R]の各行列要素を数7に示した値とし
た場合、行列要素を未知数として、整数計画問題の解と
して得た行列[Y]は数13に示すようになる(第1の
解)。
For example, when the matrix elements of the transformation matrix are represented by 10 bits and each matrix element of the matrix [R] has the value shown in equation 7, the matrix obtained as the solution of the integer programming problem with the matrix elements as unknowns. [Y] becomes as shown in Expression 13 (first solution).

【0092】[0092]

【数13】 (Equation 13)

【0093】また、このときの誤差行列[E]を数14
と数15に示す。
Also, the error matrix [E] at this time is given by
And Equation 15 shows.

【0094】[0094]

【数14】 [Equation 14]

【0095】[0095]

【数15】 (Equation 15)

【0096】これらの誤差行列[E]の行列要素の最大
絶対値mは、数14で274(=|-274|:第3行第1列の行列
要素)、数15で244(=|-244|または|244|:第1行第3
列の行列要素または第2行第1列の行列要素)となり、従
来の量子化変換行列による誤差行列[E](=[R]
[Y]-256*512[I])のそれ(数6に示すm=376)よ
り小さくなる。
The maximum absolute value m of the matrix elements of these error matrices [E] is 274 (= | -274 |: matrix element of the third row, first column) in the equation 14 and 244 (= |-in the equation 15). 244 | or | 244 |: 1st row 3rd
Column matrix element or the second row, first column matrix element), and the error matrix [E] (= [R] by the conventional quantization conversion matrix
It becomes smaller than that of [Y] -256 * 512 [I]) (m = 376 shown in Expression 6).

【0097】さらに、この例では、誤差行列[E]の同
一行の同一符号の行列要素の和の最大絶対値Mも、数1
4で414(=|-274-140|:第3行)、数15で430(=|244+1
86|:第2行)となり、従来の量子化変換行列による誤差
行列[E]のそれ(数5と数6に示すM=486,M=476)
より小さくなっている。
Furthermore, in this example, the maximum absolute value M of the sum of matrix elements of the same row and the same code in the error matrix [E] is also given by
4 with 414 (= | -274-140 |: 3rd line), with number 15 with 430 (= | 244 + 1
86 |: 2nd line), which is that of the error matrix [E] by the conventional quantization conversion matrix (M = 486, M = 476 shown in Equations 5 and 6)
It is smaller.

【0098】同様に、変換行列の行列要素を10ビット
で表し、行列[Y]の各行列要素を数8に示した値とし
た場合、行列要素を未知数として、整数計画問題の解と
して得た行列[R]は数16に示すようになる(第2の
解)。
Similarly, when the matrix element of the conversion matrix is represented by 10 bits and each matrix element of the matrix [Y] is set to the value shown in Expression 8, the matrix element is set as an unknown number and obtained as a solution of the integer programming problem. The matrix [R] is as shown in Expression 16 (second solution).

【0099】[0099]

【数16】 (Equation 16)

【0100】また、このときの誤差行列[E]を数17
と数18に示す。
Further, the error matrix [E] at this time is given by
And Equation 18 shows.

【0101】[0101]

【数17】 [Equation 17]

【0102】[0102]

【数18】 (Equation 18)

【0103】これらの誤差行列[E]の行列要素の最大
絶対値mは、数17で180(=|-180|:第3行第2列の行列
要素)、数18で195(=|195|:第1行第2列の行列要素)
となる。
The maximum absolute value m of the matrix element of these error matrices [E] is 180 (= | -180 |: matrix element in the third row, second column) in Equation 17, and 195 (= | 195 in Equation 18). (:: matrix element in the first row and second column)
Becomes

【0104】従って、[Y][R]の変換(RGB信号
をYUV信号に変換した後、再び、YUV信号をRGB
信号に戻す変換)の場合、第2の解により計算されたm
(=180)が、第1の解により計算されたm(=274)より小さ
いので、第2の解が求める解となる。同様に、[R]
[Y]の変換(YUV信号をRGB信号に変換した後、
再び、RGB信号をYUV信号に戻す変換)の場合も、
第2の解により計算されたm(=195)が、第1の解により
計算されたm(=244)より小さいので、第2の解が求める
解となる。
Therefore, conversion of [Y] [R] (after converting the RGB signal into the YUV signal, the YUV signal is converted into the RGB signal again).
(Transform back to signal), m calculated by the second solution
Since (= 180) is smaller than m (= 274) calculated by the first solution, the second solution is the solution to be obtained. Similarly, [R]
[Y] conversion (after converting YUV signals to RGB signals,
Again, in the case of conversion from RGB signal back to YUV signal),
Since m (= 195) calculated by the second solution is smaller than m (= 244) calculated by the first solution, the second solution is the solution to be obtained.

【0105】このようにして、10ビットで変換行列を
量子化した場合は、数8で示す行列[Y]と数16に示
す行列[R](第2の解)が、[Y][R]の変換、
[R][Y]の変換のどちらの場合においても、求める
変換行列として変換回路12に出力され、変換回路12
は、この行列[R]と行列[Y]を用いてRGB信号と
YUV信号の間での変換を行う。
In this way, when the transformation matrix is quantized with 10 bits, the matrix [Y] shown in equation 8 and the matrix [R] (second solution) shown in equation 16 become [Y] [R ] Conversion,
In either case of conversion of [R] and [Y], the conversion matrix 12 is output as a conversion matrix to be obtained, and the conversion circuit 12
Performs the conversion between the RGB signal and the YUV signal using the matrix [R] and the matrix [Y].

【0106】次に、誤差行列[E]の同一行の同一符号
の行列要素の和の絶対値Mを最小にする変換行列(逆変
換行列)を生成する処理について説明する。この場合の
最適変換行列生成回路13の処理動作と上述したmを最
小にする場合の処理動作の相違は、図3のステップS1
4で生成される不等式が異なる点のみである(ステップ
S18において更新する変数が、δからΔに変更される
が、これは変数の表現が変化しているに過ぎず、本質的
な相違ではない)。従って、ここでは、図3のステップ
S14の処理についての説明だけを行う。
Next, the process of generating a conversion matrix (inverse conversion matrix) that minimizes the absolute value M of the sum of matrix elements of the same row and the same code in the error matrix [E] will be described. The difference between the processing operation of the optimum conversion matrix generation circuit 13 in this case and the processing operation in the case of minimizing m described above is that step S1 in FIG.
The only difference is the inequality generated in step 4 (the variable updated in step S18 is changed from δ to Δ, but this is merely a change in the expression of the variable and is not an essential difference. ). Therefore, only the process of step S14 of FIG. 3 will be described here.

【0107】ステップS14で、方程式生成部25は、
行列[Y](または[R])の行列要素を未知数とした
分岐限定法を用いた整数計画用の不等式、方程式を生成
する。
In step S14, the equation generating section 25
Inequalities and equations for integer programming using the branch and bound method with the matrix elements of the matrix [Y] (or [R]) as unknowns are generated.

【0108】ここで、このステップの処理の詳細を説明
する。
Here, details of the processing in this step will be described.

【0109】まず、[R][Y]-256*512[I]で表さ
れる誤差行列[E]について、誤差行列[E]の行列要
素をEijで表し、誤差行列[E]の同一行の同一符号の
行列要素を加えた値の最大絶対値Mを表す変数をΔとし
た場合、E11,E12,E13,E11+E12,E12+E13,E11+E
13,およびE11+E12+E13の絶対値はΔ以下である。こ
れを数10の式(2−1)の関係を用いて不等式で表す
と、行列[Y]の行列要素を未知数とした場合、式(8
−1)乃至式(8−7)が成立する。これらの各式に含
まれる不等式の数を2つと数えると、2*7本の不等式
になる。
First, regarding the error matrix [E] represented by [R] [Y] −256 * 512 [I], the matrix elements of the error matrix [E] are represented by Eij, and the same row of the error matrix [E] is represented. Let Δ be the variable that represents the maximum absolute value M of the values obtained by adding the matrix elements of the same sign to E11, E12, E13, E11 + E12, E12 + E13, E11 + E
The absolute value of 13, and E11 + E12 + E13 is less than or equal to Δ. If this is expressed by an inequality using the relationship of Expression (2-1) of Expression 10, when the matrix element of the matrix [Y] is an unknown number, Expression (8
-1) to Expression (8-7) are established. If the number of inequalities included in each of these equations is counted as 2, there are 2 * 7 inequalities.

【0110】 256*512-Δ≦274y11+376y31≦256*512+Δ (8−1) -Δ≦274y12-376y32≦Δ (8−2) -Δ≦274y13-376y33≦Δ (8−3) 256*512-Δ≦(274y11+376y31)+(274y12-376y32) ≦256*512+Δ (8−4) -Δ≦(274y12-376y32)+(274y13-376y33)≦Δ (8−5) 256*512-Δ≦(274y11+376y31)+(274y13-376y33) ≦256*512+Δ (8−6) 256*512-Δ≦(274y11+376y31)+(274y12-376y32)+(274y13-376y33) ≦256*512+Δ (8−7)256 * 512-Δ ≦ 274y11 + 376y31 ≦ 256 * 512 + Δ (8-1) -Δ ≦ 274y12-376y32 ≦ Δ (8-2) -Δ ≦ 274y13-376y33 ≦ Δ (8-3) 256 * 512-Δ ≦ (274y11 + 376y31) + (274y12-376y32) ≦ 256 * 512 + Δ (8-4) -Δ ≦ (274y12-376y32) + (274y13-376y33) ≦ Δ (8-5) 256 * 512-Δ ≦ (274y11 + 376y31) + (274y13-376y33) ≦ 256 * 512 + Δ (8-6) 256 * 512-Δ ≦ (274y11 + 376y31) + (274y12-376y32) + (274y13-376y33) ≦ 256 * 512 + Δ (8-7)

【0111】また、誤差行列[E]の第2行と第3行につ
いても、同様な不等式が成立するので、不等式の数は、
2*7*3=42本となる。さらにまた、[Y][R]-5
12*256[I]で示される誤差行列[E]について同様の
不等式が生成できるので不等式の総数は42*2=84
本となる。
Since the same inequality holds for the second and third rows of the error matrix [E], the number of inequalities is
2 * 7 * 3 = 42. Furthermore, [Y] [R] -5
Since a similar inequality can be generated for the error matrix [E] represented by 12 * 256 [I], the total number of inequalities is 42 * 2 = 84.
It becomes a book.

【0112】さらに、この条件を満たす行列[Y](ま
たは[R])の行列要素を限定するため、行列[Y]
(または[R])の行列要素の絶対値の総和が最大(式
(6−1)(または式(6−2))のZが最大)になる
ような条件を付与する。
Furthermore, in order to limit the matrix elements of the matrix [Y] (or [R]) satisfying this condition, the matrix [Y]
(Or [R]) the condition that the total sum of the absolute values of the matrix elements is maximum (Z in formula (6-1) (or formula (6-2)) is maximum) is given.

【0113】このようにして、数12で示す整数計画法
の問題に帰着する。
In this way, the problem of integer programming shown in equation 12 is reduced.

【0114】今の場合、84本の不等式が、数12の式
(7−1)に相当し、gは84、nは9、Xj(j=1乃至9)
はy11乃至y33(またはr11乃至r33)、Fij(i=1乃
至36:j=1乃至9)はy11乃至y33(またはr11乃至r3
3)の係数、Hi(i=1乃至84)は256*512+Δ,-256*512+
Δ,またはΔのいずれかである。
In this case, 84 inequalities correspond to the equation (7-1) of the equation 12, and g is 84, n is 9, and Xj (j = 1 to 9).
Is y11 to y33 (or r11 to r33), and Fij (i = 1 to 36: j = 1 to 9) is y11 to y33 (or r11 to r3).
The coefficient of 3), Hi (i = 1 to 84) is 256 * 512 + Δ, -256 * 512 +
Either Δ or Δ.

【0115】また、式(6−1)(または式(6−
2))が、数12の式(7−2)に相当し、Cj(j=1乃
至9)はすべて1である。
Further, the equation (6-1) (or the equation (6-
2)) corresponds to the equation (7-2) of Expression 12, and Cj (j = 1 to 9) is all 1.

【0116】このようにして、図3のステップS14に
おいて、整数計画法で使用される不等式(今の例では8
4本の不等式)と式(6−1)(または式(6−2))
に示すZとZの条件(Zが最大)が生成される。
Thus, in step S14 of FIG. 3, the inequality (8 in the present example) used in integer programming is obtained.
Four inequalities) and equation (6-1) (or equation (6-2))
Z and the condition of Z (Z is maximum) are generated.

【0117】以上のようにして、変換行列の行列要素を
10ビットで表し、行列[R]の各行列要素を数7に示
した値とし、行列[Y]の行列要素を未知数とした場合
における整数計画問題の解として得た行列[Y]を数1
9に示す(第1の解)。
As described above, when the matrix element of the conversion matrix is represented by 10 bits, each matrix element of the matrix [R] has the value shown in the equation 7, and the matrix element of the matrix [Y] has an unknown value. The matrix [Y] obtained as the solution of the integer programming problem is given by
9 (first solution).

【0118】[0118]

【数19】 [Equation 19]

【0119】また、このときの誤差行列[E]を数20
と数21に示す。数20に示す誤差行列における同一行
の同一符号の行列要素を加えた値の絶対値Mは384(=|3
84|:第1行)であり、数21に示す誤差行列における同
一行の同一符号の行列要素を加えた値の絶対値Mは360
(=|-360|:第1行)である。従来の量子化変換行列によ
る誤差行列[E]のそれ(数5と数6に示すM=486,M=
476)より小さくなる。
The error matrix [E] at this time is given by
And Equation 21. The absolute value M of the value obtained by adding the matrix elements of the same row and the same code in the error matrix shown in Expression 20 is 384 (= | 3
84 |: the first row), and the absolute value M of the values obtained by adding the matrix elements of the same row and the same code in the error matrix shown in Expression 21 is 360.
(= | -360 |: 1st line). That of the error matrix [E] by the conventional quantization transformation matrix (M = 486, M =
476).

【0120】[0120]

【数20】 (Equation 20)

【0121】[0121]

【数21】 (Equation 21)

【0122】同様に、変換行列の行列要素を10ビット
で表し、行列[Y]の各行列要素を数8に示した値と
し、行列要素を未知数とした場合、整数計画問題の解と
して得た行列[R]を数22に示す(第2の解)。
Similarly, when the matrix element of the transformation matrix is represented by 10 bits, each matrix element of the matrix [Y] has the value shown in equation 8 and the matrix element is an unknown number, it is obtained as a solution of the integer programming problem. The matrix [R] is shown in Expression 22 (second solution).

【0123】[0123]

【数22】 (Equation 22)

【0124】また、このときの誤差行列[E]を数23
と数24に示す。数23に示す誤差行列における同一行
の同一符号の行列要素を加えた値の絶対値Mは276(=|2
76|:第3行)であり、数24に示す誤差行列における同
一行の同一符号の行列要素を加えた値の絶対値Mは250
(=|-118-132|:第3行)である。
Also, the error matrix [E] at this time is given by
And Equation 24 shows. The absolute value M of the value obtained by adding the matrix elements of the same row and the same code in the error matrix shown in Expression 23 is 276 (= | 2
76 |: the third row), and the absolute value M of the value obtained by adding the matrix elements of the same row and the same code in the error matrix shown in Equation 24 is 250.
(= | -118-132 |: 3rd line).

【0125】[0125]

【数23】 (Equation 23)

【0126】[0126]

【数24】 (Equation 24)

【0127】従って、[Y][R]の変換(RGB信号
をYUV信号に変換した後、再び、YUV信号をRGB
信号に戻す変換)の場合、第2の解により計算されたM
(=276)が、第1の解により計算されたM(=384)より小さ
いので、第2の解が求める解となる。同様に、[R]
[Y]の変換(YUV信号をRGB信号に変換した後、
再び、RGB信号をYUV信号に戻す変換)の場合も、
第2の解により計算されたM(=250)が、第1の解により
計算されたM(=360)より小さいので、第2の解が求める
解となる。
Therefore, conversion of [Y] [R] (after converting the RGB signal into the YUV signal, the YUV signal is converted into the RGB signal again).
(Transform back to signal), M calculated by the second solution
Since (= 276) is smaller than M (= 384) calculated by the first solution, the second solution is the solution to be obtained. Similarly, [R]
[Y] conversion (after converting YUV signals to RGB signals,
Again, in the case of conversion from RGB signal back to YUV signal),
Since M (= 250) calculated by the second solution is smaller than M (= 360) calculated by the first solution, the second solution is the solution to be obtained.

【0128】このようにして、10ビットで変換行列を
量子化した場合は、数8で示す行列[Y]と数22に示
す行列[R](第2の解)が、[Y][R]の変換、
[R][Y]の変換のどちらの場合においても、求める
変換行列として変換回路12に出力され、変換回路12
は、この行列[R]と行列[Y]を用いてRGB信号と
YUV信号の間での変換を行う。
In this way, when the transformation matrix is quantized with 10 bits, the matrix [Y] shown in equation 8 and the matrix [R] (second solution) shown in equation 22 become [Y] [R ] Conversion,
In either case of conversion of [R] and [Y], the conversion matrix 12 is output as a conversion matrix to be obtained, and the conversion circuit 12
Performs the conversion between the RGB signal and the YUV signal using the matrix [R] and the matrix [Y].

【0129】次に、組み合わせ計画法を用いた量子化変
換行列の生成処理について、図5のフローチャートを参
照して説明する。
Next, the process of generating the quantization conversion matrix using the combinatorial programming will be described with reference to the flowchart of FIG.

【0130】ステップS31において、入出力信号処理
部21からの量子化変換行列の生成命令がメイン制御部
26に送られると、メイン制御部26は、変数Mminと
変数mminにハイバリュー(∞)を初期設定する。
In step S31, when the quantization conversion matrix generation command from the input / output signal processing unit 21 is sent to the main control unit 26, the main control unit 26 sets high values (∞) to the variables Mmin and mmin. Initialize.

【0131】続くステップS32で、RGB信号をYU
V信号に変換させる変換行列[Yf]と、YUV信号を
RGB信号に変換させる変換行列[Rf]の行列要素の
値が、メモリ27から読み込まれる。
In a succeeding step S32, the RGB signal is YU.
The values of the matrix elements of the conversion matrix [Yf] for converting the V signal and the conversion matrix [Rf] for converting the YUV signal into the RGB signal are read from the memory 27.

【0132】後続のステップS33で、メイン制御部2
6は、量子化行列生成部24に対して、制御回路14よ
り供給された変換行列生成情報に従い、量子化レベルを
設定させ、行列[Yf]と行列[Rf]に対応する量子化
変換行列を生成させるための命令を出力する。この命令
に対して、量子化行列生成部24は、変換行列[Yf]
と行列[Rf]の各行列要素に2のN乗を乗じ、さら
に、各行列要素別に、切り上げ、または切り捨てを行
い、この方法で表されるすべての行列[Y]と行列
[R]を生成する。つまり、各行列要素は切り上げと切
り捨ての2種類の値を有するので、行列[Y]として2^
9通り、行列[R]として、2^7通り(行列[R]の1行
2列目の行列要素と3行3列目の行列要素は、既知のも
のとして零に固定する)の行列を生成する。
In the following step S33, the main control unit 2
6 causes the quantization matrix generation unit 24 to set the quantization level according to the transformation matrix generation information supplied from the control circuit 14, and sets the quantization transformation matrix corresponding to the matrix [Yf] and the matrix [Rf]. Output the command to generate. In response to this instruction, the quantization matrix generation unit 24 causes the conversion matrix [Yf]
And each matrix element of the matrix [Rf] are multiplied by the Nth power of 2 and rounded up or down for each matrix element to generate all matrices [Y] and matrix [R] represented by this method. To do. That is, since each matrix element has two kinds of values, rounding up and rounding down, as a matrix [Y], 2 ^
There are 9 ways and 2 ^ 7 ways of matrix [R] (the matrix elements of the 1st row and 2nd column and the matrix element of the 3rd row and 3rd column of the matrix [R] are fixed to zero as known). To generate.

【0133】次のステップS34において、メイン制御
部26は、量子化行列生成部24の生成した2^9個の
行列[Y]から第1の行列[Y]と、2^7個の行列
[R]から第1の行列[R]を選択し、ステップS35
で、この行列[R]と行列[Y]を用いて、誤差行列
[E]の行列要素の最大絶対値mと同一行の同一符号の
行列要素を加えた値の最大絶対値Mの値をm/M計算部
22に計算させる。
At the next step S34, the main control unit 26 selects the first matrix [Y] from the 2 ^ 9 matrices [Y] generated by the quantization matrix generator 24 and the 2 ^ 7 matrices [Y]. R] to select the first matrix [R], step S35
Then, using the matrix [R] and the matrix [Y], the maximum absolute value M of the value obtained by adding the maximum absolute value m of the matrix element of the error matrix [E] and the matrix element of the same row and the same sign The m / M calculator 22 is caused to calculate.

【0134】続くステップS36で、メイン制御部26
は、m/M計算部22の計算したMとMminとの大小比
較を行い、MがMminより小さいと判断された場合、ス
テップS37で、Mminの値としてMを設定し、このと
きの行列[Y]と行列[R]を行列[YM]と行列[R
M]に保存する。ステップS36で、MがMmin以上であ
ると判断された場合は、後続のステップS38の処理が
実行される。
In a succeeding step S36, the main controller 26
Compares the magnitudes of M and Mmin calculated by the m / M calculator 22, and if it is determined that M is smaller than Mmin, sets M as the value of Mmin in step S37, and the matrix [ Y] and matrix [R] to matrix [YM] and matrix [R
Save to [M]. When it is determined in step S36 that M is greater than or equal to Mmin, the process of the subsequent step S38 is executed.

【0135】ステップS38で、メイン制御部26は、
m/M計算部22の計算したmとmminとの大小比較を
行い、mがminより小さいと判断された場合、ステップ
S39で、mminの値としてmを設定し、このときの行
列[Y]と行列[R]を行列[Ym]と行列[Rm]に保
存する。ステップS38で、mがmmin以上であると判
断された場合は、後続のステップS40の処理が実行さ
れる。
In step S38, the main controller 26
The magnitudes of m and mmin calculated by the m / M calculator 22 are compared, and when it is determined that m is smaller than min, m is set as the value of mmin in step S39, and the matrix [Y] at this time is set. And matrix [R] into matrix [Ym] and matrix [Rm]. When it is determined in step S38 that m is greater than or equal to mmin, the processing of the subsequent step S40 is executed.

【0136】なお、最初の場合、ステップS31でMmi
nとmminに∞が設定されているので、ステップS36と
ステップS38ではYESの判定がなされ、ステップS3
7とステップS39で、そのときの値MとmがMminと
mminに設定される。
In the first case, Mmi is determined in step S31.
Since n and mmin are set to ∞, YES is determined in step S36 and step S38, and step S3 is performed.
7 and step S39, the values M and m at that time are set to Mmin and mmin.

【0137】続くステップS40において、すべての行
列[Y]と行列[R]の組み合わせ(2^9*2^7=2^
16通り)について、ステップS35乃至ステップS3
9で示す処理が実行されたか否かが判断され、未処理の
行列[Y]と行列[R]の組み合わせが存在すると判断
された場合、ステップS41で、メイン制御部26は次
の[Y]と[R]の組み合わせを選択し、ステップS3
5に分岐し、繰り返し、それ以降の処理を実行する。ス
テップS40で、すべての行列[Y]と行列[R]の組
み合わせについて、ステップS35乃至ステップS39
で示す処理が終了したと判断された場合、後続のステッ
プS42に分岐する。
In the following step S40, combinations (2 ^ 9 * 2 ^ 7 = 2 ^) of all matrices [Y] and matrices [R].
16), steps S35 to S3
When it is determined whether or not the process shown in 9 is executed and there is an unprocessed combination of the matrix [Y] and the matrix [R], in step S41, the main control unit 26 determines the next [Y]. And [R] combination is selected, and step S3
It branches to 5 and repeats, and the subsequent processing is executed. In step S40, steps S35 to S39 are performed for all combinations of matrix [Y] and matrix [R].
When it is determined that the process indicated by is completed, the process branches to the subsequent step S42.

【0138】このようにして、メイン制御部26の選択
したすべての行列[Y]と行列[R]の組み合わせにつ
いて、mとMが計算され、そのうち、最小のmとMが、
それぞれ、mminとMminに格納され、それに対応する行
列[Y]と行列[R]の組み合わせが、それぞれ、行列
[Ym]と行列[Rm]、並びに行列[YM]と行列[R
M]に格納される。
In this way, m and M are calculated for all combinations of the matrix [Y] and matrix [R] selected by the main control unit 26, and among them, the minimum m and M are
The combinations of the matrix [Y] and the matrix [R], which are respectively stored in mmin and Mmin, correspond to the matrix [Ym] and the matrix [Rm], and the matrix [YM] and the matrix [R].
M].

【0139】ステップS42において、メイン制御部2
6は、変換行列生成情報に従い、行列[Ym]と行列
[Rm]を出力するか(値mを最小にする変換行列の生
成が指令されている場合)、行列[YM]と行列[RM]
を出力するか(値Mを最小にする変換行列の生成が指令
されている場合)を判断し、入出力信号処理部21を介
して量子化変換行列[Ym]と行列[Rm]または、行列
[YM]と行列[RM]を変換回路12に出力する。
In step S42, the main controller 2
6 outputs the matrix [Ym] and the matrix [Rm] according to the conversion matrix generation information (when the generation of the conversion matrix that minimizes the value m is instructed), the matrix [YM] and the matrix [RM]
Is output (when the generation of the conversion matrix that minimizes the value M is instructed), the quantization conversion matrix [Ym] and the matrix [Rm] or the matrix is input via the input / output signal processing unit 21. The [YM] and the matrix [RM] are output to the conversion circuit 12.

【0140】このようにして、組み合わせ計画法を適用
した場合においては、10ビットで変換行列の行列要素
を量子化し、[Y][R]の変換(RGB信号をYUV
信号に変換した後、再び、YUV信号をRGB信号に戻
す変換)による誤差行列のmを最小にする行列[Ym]
と行列[Rm]を、それぞれ、数25の式(9−1)と
式(9−2)に示す。このときの誤差行列により求めら
れたmは113であり、上述した例の中では最も小さい値
となっている。
In this way, when the combinatorial programming is applied, the matrix elements of the conversion matrix are quantized with 10 bits, and the [Y] [R] conversion (RGB signal is converted to YUV) is performed.
A matrix [Ym] that minimizes the error matrix m by converting the signal to a signal and then converting the YUV signal back to an RGB signal.
And the matrix [Rm] are shown in Expression (9-1) and Expression (9-2) of Equation 25, respectively. The m calculated by the error matrix at this time is 113, which is the smallest value in the above-mentioned examples.

【0141】[0141]

【数25】 (Equation 25)

【0142】また、同様に、組み合わせ計画法を適用し
た場合においては、10ビットで変換行列の行列要素を
量子化し、[Y][R]の変換(RGB信号をYUV信
号に変換した後、再び、YUV信号をRGB信号に戻す
変換)による誤差行列のMを最小にする行列[RM]と
行列[YM]を、それぞれ、数26の式(10−1)と
式(10−2)に示す。このときの誤差行列により求め
られたMは192であり、上述した例の中では最も小さい
値となっている。
Similarly, when the combinatorial programming is applied, the matrix elements of the conversion matrix are quantized with 10 bits, and the [Y] [R] conversion (after converting the RGB signal into the YUV signal, is performed again). , The matrix [RM] and the matrix [YM] that minimize M of the error matrix due to the conversion of the YUV signal back into the RGB signal) are shown in Expression (10-1) and Expression (10-2) of Equation 26, respectively. . M determined by the error matrix at this time is 192, which is the smallest value in the above-mentioned example.

【0143】[0143]

【数26】 (Equation 26)

【0144】ステップS33における量子化変換行列の
生成処理で、行列要素の切り上げ、または切り捨てによ
り量子化変換行列を生成したが、さらに、四捨五入によ
る組み合わせを考慮することも可能である。しかしなが
ら、そのようにすると、行列[Y]として、3^9通りの
行列が生成され、[R]行列として、3^7通りの行列が
生成されることになり、それらの組み合わせは3^9*3^7=
3^16通りにも及び、短時間で、mまたはMを最小にする
組み合わせを選択するのは困難である。従って、切り上
げ、切り捨て、および四捨五入の中から2つを考慮(上
述した実施例では、切り上げと切り捨てを考慮)した組
み合わせの中で誤差行列[E]のmまたはMが最小とな
る量子化変換行列を求めるようにする。
In the generation processing of the quantization conversion matrix in step S33, the quantization conversion matrix is generated by rounding up or rounding down the matrix elements, but it is also possible to consider a combination by rounding. However, in this case, 3 ^ 9 kinds of matrices are generated as the matrix [Y], and 3 ^ 7 kinds of matrices are generated as the [R] matrix, and the combination thereof is 3 ^ 9. * 3 ^ 7 =
It is difficult to select a combination that minimizes m or M in a short time, reaching 3 ^ 16 ways. Therefore, the quantization conversion matrix that minimizes m or M of the error matrix [E] among the combinations in which two of rounding up, rounding down, and rounding are considered (in the above-described embodiment, rounding up and rounding down are considered). To ask for.

【0145】以上のようにして、量子化変換行列を用い
て、RGB信号からYUV信号(または、YUV信号か
らRGB信号)へ変換し、さらにYUV信号からRGB
信号(または、RGB信号からYUV信号)に変換する
際に生ずる誤差行列[E]のmで示される誤差と、誤差
行列[E]のMで示される誤差とを小さくすることがで
きる。
As described above, using the quantization conversion matrix, the RGB signal is converted into the YUV signal (or the YUV signal to the RGB signal), and the YUV signal is converted into the RGB signal.
It is possible to reduce the error represented by m in the error matrix [E] and the error represented by M in the error matrix [E] that occur when the signal (or the RGB signal is converted to the YUV signal).

【0146】従って、特に、上記信号の循環変換を繰り
返し行う装置、または方法において、変換行列生成時の
量子化ビット数を増やすことなく、変換後の信号を元の
信号に、より近い状態で復元させることができる。
Therefore, in particular, in the device or method for repeatedly performing the cyclic conversion of the signal, the converted signal is restored in a state closer to the original signal without increasing the number of quantization bits at the time of generating the conversion matrix. Can be made.

【0147】また、循環変換時に用いる変換行列として
は、誤差行列[E]のmで示される誤差を小さくするた
めの変換行列を選択することも、誤差行列[E]のMで
示される誤差を小さくするための変換行列を選択するこ
とも可能であり、目的に合わせて量子化変換行列を選択
し、使用することができる。
As the transformation matrix used at the time of cyclic transformation, a transformation matrix for reducing the error indicated by m in the error matrix [E] can be selected, or the error indicated by M in the error matrix [E] can be selected. It is also possible to select a transformation matrix for making it smaller, and a quantization transformation matrix can be selected and used according to the purpose.

【0148】なお、本発明は、上記実施例の他、例え
ば、切り上げと切り捨てを考慮した組み合わせでmとM
を求め、さらに、切り上げと四捨五入を考慮した組み合
わせでmとMを求め、さらにまた、切り捨てと四捨五入
を考慮した組み合わせでmとMを求めた後、これらのう
ち、最小であるmとMを持つ量子化変換行列を選択する
などし、種々の改変が可能である。
In addition to the above-described embodiment, the present invention uses, for example, a combination of m and M in consideration of rounding up and rounding down.
Then, m and M are obtained by combining rounding up and rounding, and m and M are obtained again by considering rounding down and rounding. Various modifications are possible, such as selecting the quantization conversion matrix.

【0149】[0149]

【発明の効果】以上のように請求項1に記載の演算装置
および請求項9に記載の演算方法によれば、量子化され
た第1の変換行列を用いて第1の信号から変換された第
2の信号を元の第1の信号に変換する量子化された第2
の変換行列と、量子化された第1の変換行列とにより規
定される誤差行列を利用して、量子化された第2の変換
行列を生成するようにしたので、量子化誤差を少なく
し、循環変換後の信号を元の信号に、より近い状態で復
元させることができる。
As described above, according to the arithmetic unit according to the first aspect and the arithmetic method according to the ninth aspect, the first signal is converted by using the quantized first conversion matrix. Quantized second transforming second signal into original first signal
By using the error matrix defined by the transformation matrix of 1 and the quantized first transformation matrix to generate the quantized second transformation matrix, the quantization error is reduced, The signal after the cyclic conversion can be restored to the original signal in a state closer to the original signal.

【0150】請求項6に記載の演算装置および請求項1
0に記載の演算方法によれば、第1の信号を第2の信号
に変換する第1の変換行列、および第2の信号を第1の
信号に変換する第2の変換行列を、その行列要素を、切
り捨て、切り上げ、または四捨五入のうち少なくともい
ずれか2つを用いて量子化することで量子化し、量子化
された第1の信号を第2の信号に変換するN個の第1の
変換行列と、量子化された第2の信号を第1の信号に変
換するM個の第2の変換行列の中から、1つの第1の変
換行列と1つの第2の変換行列とを組み合わせ、組み合
わされた第1の変換行列と第2の変換行列とにより規定
される誤差行列を利用して、組み合わせの中から、1つ
の組み合わせの第1の変換行列と第2の変換行列を選択
するようにしたので、より一層、量子化誤差を少なく
し、より一層循環変換後の信号を元の信号に近い状態で
復元させることができる。
An arithmetic unit according to claim 6 and claim 1
According to the calculation method described in 0, the first conversion matrix for converting the first signal into the second signal and the second conversion matrix for converting the second signal into the first signal are N first transforms that quantize an element by quantizing it using at least two of rounding down, rounding up, or rounding, and transforming the quantized first signal into a second signal A matrix and a combination of one first conversion matrix and one second conversion matrix from among the M second conversion matrices for converting the quantized second signal into the first signal, An error matrix defined by the combined first transformation matrix and second transformation matrix is used to select one combination of the first transformation matrix and the second transformation matrix from among the combinations. Therefore, the quantization error is further reduced and the cyclic variation is further reduced. It can be recovered in a state close to the original signal a signal after.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の演算装置を適用した変換装置の構成例
を示すブロック図である。
FIG. 1 is a block diagram showing a configuration example of a conversion device to which an arithmetic device of the present invention is applied.

【図2】図1の最適変換行列生成回路13の機能を説明
するブロック図である。
FIG. 2 is a block diagram illustrating a function of an optimum conversion matrix generation circuit 13 of FIG.

【図3】図1の最適変換行列生成回路13の整数計画法
の処理を説明するフローチャートである。
FIG. 3 is a flowchart illustrating a process of an integer programming method of the optimum conversion matrix generation circuit 13 of FIG.

【図4】量子化変換行列[Y]の行列要素を未知数とし
たときの整数計画問題における不等式の係数の例を示す
図である。
FIG. 4 is a diagram illustrating an example of an inequality coefficient in an integer programming problem when matrix elements of a quantized transformation matrix [Y] are unknowns.

【図5】図1の最適変換行列生成回路13の組み合わせ
計画法の処理を説明するフローチャートである。
5 is a flowchart illustrating processing of a combination planning method of the optimum conversion matrix generation circuit 13 in FIG.

【符号の説明】[Explanation of symbols]

1 変換装置 2 パーソナルコンピュータ 3 VCR 11 入出力信号制御回路 12 変換回路 13 最適変換行列生成回路 14 制御回路 21 入出力信号処理部 22 m/M計算部 23 整数計画プログラム実行部 24 量子化行列生成部 25 方程式生成部 26 メイン制御部 27 メモリ DESCRIPTION OF SYMBOLS 1 conversion device 2 personal computer 3 VCR 11 input / output signal control circuit 12 conversion circuit 13 optimal conversion matrix generation circuit 14 control circuit 21 input / output signal processing unit 22 m / M calculation unit 23 integer programming program execution unit 24 quantization matrix generation unit 25 Equation Generation Unit 26 Main Control Unit 27 Memory

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 第1の信号を第2の信号に変換する第1
の変換行列を量子化する量子化手段と、 量子化された前記第1の変換行列を用いて前記第1の信
号から変換された前記第2の信号を元の前記第1の信号
に変換する量子化された第2の変換行列と、量子化され
た前記第1の変換行列とにより規定される誤差行列を利
用して、量子化された前記第2の変換行列を生成する生
成手段とを備えることを特徴とする演算装置。
1. A first for converting a first signal into a second signal
Quantizing means for quantizing the transform matrix of, and transforming the second signal converted from the first signal to the original first signal using the quantized first transform matrix Generating means for generating the quantized second conversion matrix using an error matrix defined by the quantized second conversion matrix and the quantized first conversion matrix. An arithmetic unit comprising.
【請求項2】 前記生成手段は、前記誤差行列の行列要
素の最大絶対値を最小にする前記第2の変換行列を生成
することを特徴とする請求項1に記載の演算装置。
2. The arithmetic unit according to claim 1, wherein the generating unit generates the second conversion matrix that minimizes the maximum absolute value of the matrix element of the error matrix.
【請求項3】 前記生成手段は、前記誤差行列の同一行
において、同一符号の行列要素をすべて加えた値の絶対
値を最小にする前記第2の変換行列を生成することを特
徴とする請求項1に記載の演算装置。
3. The generating means generates the second conversion matrix that minimizes an absolute value of a value obtained by adding all matrix elements having the same code in the same row of the error matrix. The arithmetic unit according to Item 1.
【請求項4】 前記量子化手段は、前記第2の信号を前
記第1の信号に変換する第3の変換行列をさらに量子化
し、 前記生成手段は、量子化された前記第3の変換行列を用
いて前記第2の信号から変換された前記第1の信号を元
の前記第2の信号に変換する量子化された第4の変換行
列と、量子化された前記第3の変換行列とにより規定さ
れる誤差行列を利用して、量子化された前記第4の変換
行列をさらに生成し、 前記量子化手段により量子化される前記第1の変換行列
と前記生成手段により生成される前記第2の変換行列と
により規定される前記誤差行列より求められる第1の誤
差と、前記量子化手段により量子化される前記第3の変
換行列と前記生成手段により生成される前記第4の変換
行列とにより規定される前記誤差行列より求められる第
2の誤差を比較し、前記第2の変換行列と第4の変換行
列のうち、誤差の小さい誤差行列を与える方を選択する
選択手段をさらに備えることを特徴とする請求項1に記
載の演算装置。
4. The quantizing means further quantizes a third transformation matrix that transforms the second signal into the first signal, and the generating means quantizes the third transformation matrix. A quantized fourth transformation matrix for transforming the first signal transformed from the second signal into the original second signal using By using the error matrix defined by the above, further generating the quantized fourth conversion matrix, and the first conversion matrix quantized by the quantization means and the generation means generated by the generation means. A first error obtained from the error matrix defined by a second transformation matrix, the third transformation matrix quantized by the quantization means, and the fourth transformation generated by the generation means. Calculating from the error matrix defined by 2. The method according to claim 1, further comprising a selection unit that compares a second error that is generated and selects one of the second conversion matrix and the fourth conversion matrix that gives an error matrix with a smaller error. Computing device.
【請求項5】 前記生成手段は、分岐限定法の整数計画
プログラムの実行により前記変換行列を生成することを
特徴とする請求項1に記載の演算装置。
5. The arithmetic unit according to claim 1, wherein the generation unit generates the conversion matrix by executing an integer programming program of a branch and bound method.
【請求項6】 第1の信号を第2の信号に変換する第1
の変換行列、および前記第2の信号を前記第1の信号に
変換する第2の変換行列を、その行列要素を、切り捨
て、切り上げ、または四捨五入のうち少なくともいずれ
か2つを用いて量子化することで量子化する量子化手段
と、 前記量子化手段により量子化された前記第1の信号を前
記第2の信号に変換するN個の前記第1の変換行列と、
前記量子化手段により量子化された前記第2の信号を前
記第1の信号に変換するM個の前記第2の変換行列の中
から、1つの前記第1の変換行列と1つの前記第2の変
換行列とを組み合わせる組み合わせ手段と、 前記組み合わせ手段により組み合わされた前記第1の変
換行列と前記第2の変換行列とにより規定される誤差行
列を利用して、前記組み合わせの中から、1つの組み合
わせの前記第1の変換行列と前記第2の変換行列を選択
する選択手段とを備えることを特徴とする演算装置。
6. A first signal for converting a first signal into a second signal
And a second transformation matrix that transforms the second signal into the first signal by quantizing its matrix elements using at least two of rounding down, rounding up, or rounding off. Quantizing means for quantizing the first signal, and N first transform matrices for transforming the first signal quantized by the quantizing means into the second signal;
From the M second conversion matrices for converting the second signal quantized by the quantization means into the first signal, one first conversion matrix and one second conversion matrix One of the combinations by using an error matrix defined by the combination means for combining the second conversion matrix and the combination means for combining the conversion matrix of An arithmetic unit comprising: a selection unit that selects the first conversion matrix and the second conversion matrix that are combined.
【請求項7】 前記選択手段は、前記誤差行列の行列要
素の最大絶対値を最小にする前記組み合わせを選択する
ことを特徴とする請求項6に記載の演算装置。
7. The arithmetic unit according to claim 6, wherein the selecting means selects the combination that minimizes the maximum absolute value of the matrix element of the error matrix.
【請求項8】 前記選択手段は、前記誤差行列の同一行
において、同一符号の行列要素をすべて加えた値の絶対
値を最小にする前記組み合わせを選択する。ことを特徴
とする請求項6に記載の演算装置。
8. The selecting means selects the combination that minimizes an absolute value of values obtained by adding all matrix elements having the same code in the same row of the error matrix. The arithmetic unit according to claim 6, characterized in that.
【請求項9】 第1の信号を第2の信号に変換する第1
の変換行列を量子化し、 量子化された前記第1の変換行列を用いて前記第1の信
号から変換された前記第2の信号を元の前記第1の信号
に変換する量子化された第2の変換行列と、量子化され
た前記第1の変換行列とにより規定される誤差行列を利
用して、量子化された前記第2の変換行列を生成するこ
とを特徴とする演算方法。
9. A first signal for converting a first signal into a second signal
Quantizing the transformation matrix of, and transforming the second signal transformed from the first signal to the original first signal using the quantized first transformation matrix An arithmetic method characterized in that the quantized second conversion matrix is generated using an error matrix defined by the second conversion matrix and the quantized first conversion matrix.
【請求項10】 第1の信号を第2の信号に変換する第
1の変換行列、および前記第2の信号を前記第1の信号
に変換する第2の変換行列を、その行列要素を、切り捨
て、切り上げ、または四捨五入のうち少なくともいずれ
か2つを用いて量子化することで量子化し、 量子化された前記第1の信号を前記第2の信号に変換す
るN個の前記第1の変換行列と、量子化された前記第2
の信号を前記第1の信号に変換するM個の前記第2の変
換行列の中から、1つの前記第1の変換行列と1つの前
記第2の変換行列とを組み合わせ、 組み合わされた前記第1の変換行列と前記第2の変換行
列とにより規定される誤差行列を利用して、前記組み合
わせの中から、1つの組み合わせの前記第1の変換行列
と前記第2の変換行列を選択することを特徴とする演算
方法。
10. A first transformation matrix for transforming a first signal into a second signal and a second transformation matrix for transforming the second signal into the first signal, the matrix elements of which are: Quantize by quantizing using at least two of rounding down, rounding up, or rounding, and N number of the first transforms that transform the quantized first signal into the second signal A matrix and the quantized second
From one of the M second conversion matrices for converting the signal of 1 to the first signal, combining one of the first conversion matrix and one of the second conversion matrices, Selecting one of the first transformation matrix and the second transformation matrix of one combination from among the combinations by using an error matrix defined by one transformation matrix and the second transformation matrix The calculation method characterized by.
JP7283177A 1995-10-31 1995-10-31 Arithmetic unit and arithmetic method Withdrawn JPH09127923A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7283177A JPH09127923A (en) 1995-10-31 1995-10-31 Arithmetic unit and arithmetic method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7283177A JPH09127923A (en) 1995-10-31 1995-10-31 Arithmetic unit and arithmetic method

Publications (1)

Publication Number Publication Date
JPH09127923A true JPH09127923A (en) 1997-05-16

Family

ID=17662157

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7283177A Withdrawn JPH09127923A (en) 1995-10-31 1995-10-31 Arithmetic unit and arithmetic method

Country Status (1)

Country Link
JP (1) JPH09127923A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013115736A (en) * 2011-11-30 2013-06-10 Canon Inc Color space conversion apparatus, color space conversion method and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013115736A (en) * 2011-11-30 2013-06-10 Canon Inc Color space conversion apparatus, color space conversion method and program

Similar Documents

Publication Publication Date Title
US20240104378A1 (en) Dynamic quantization of neural networks
CN110363279B (en) Image processing method and device based on convolutional neural network model
JP4560033B2 (en) Method for decoding video or image data
CN100412907C (en) Low complexity and unified transforms for video coding
US7602320B2 (en) Systems and methods for companding ADC-DSP-DAC combinations
US20090184695A1 (en) Method and system for rms computation on digitized samples
US6697529B2 (en) Data compression method and recording medium with data compression program recorded therein
KR102214837B1 (en) Convolution neural network parameter optimization method, neural network computing method and apparatus
KR20070006801A (en) Low-complexity nonlinear filters
WO2022168604A1 (en) Softmax function approximation calculation device, approximation calculation method, and approximation calculation program
KR20210015990A (en) Convolution neural network parameter optimization method, neural network computing method and apparatus
CN116762080A (en) Neural network generation device, neural network operation device, edge device, neural network control method, and software generation program
JPH0715346A (en) Method and circuit for encoding of digital signal for decision of scalar product of two vectors
US5555321A (en) Image data binary coding method and apparatus
JPH09127923A (en) Arithmetic unit and arithmetic method
JP3504599B2 (en) Fixed point graphics device, method, and data processing system
EP0686940B1 (en) Image processing systems and methods
CN113780545A (en) General fitting method and device for neural network activation function
US4758889A (en) Value correction method
CN113177634A (en) Image analysis system, method and equipment based on neural network input and output quantification
EP3591955A1 (en) Method of processing data by an iterative application of a same lut
JP3142356B2 (en) Quantizer and image data quantizer
US20240036816A1 (en) Systems and methods for identifying scaling factors for deep neural networks
JP2007079972A (en) Inverse conversion circuit
CN115906917A (en) Neural network model deployment method and device based on model algorithm division

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030107