JP2006094541A - Apparatus and method for generation of coefficient - Google Patents

Apparatus and method for generation of coefficient Download PDF

Info

Publication number
JP2006094541A
JP2006094541A JP2005290375A JP2005290375A JP2006094541A JP 2006094541 A JP2006094541 A JP 2006094541A JP 2005290375 A JP2005290375 A JP 2005290375A JP 2005290375 A JP2005290375 A JP 2005290375A JP 2006094541 A JP2006094541 A JP 2006094541A
Authority
JP
Japan
Prior art keywords
coefficient
class
pixel
circuit
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2005290375A
Other languages
Japanese (ja)
Other versions
JP4240322B2 (en
Inventor
Hideo Nakaya
秀雄 中屋
Tetsujiro Kondo
哲二郎 近藤
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 JP2005290375A priority Critical patent/JP4240322B2/en
Publication of JP2006094541A publication Critical patent/JP2006094541A/en
Application granted granted Critical
Publication of JP4240322B2 publication Critical patent/JP4240322B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To generate coefficients used for correcting quantization errors in decoding compressed image data. <P>SOLUTION: Each target pixel in a compressed image data S20 is class-sorted, based on the pixel data in a block with the target pixel set at the center. An error value δy composed of the differential between the true pixel value y of the marked pixel and the decoded value in decoding the marked pixel is found. Error value δy is expressed as a linear combination of quantization codes Q<SB>i</SB>and the coefficients wi for each class-sorted result CLASS. The coefficients w<SB>i</SB>, obtained by using the least squares method are stored in a ROM 23, in advance, corresponding with the class-sorted results CLASS. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は係数生成装置及び係数生成方法に関し、例えば伝送や記録のために圧縮符号化された画像信号を復号する圧縮デコーダにおいて用いられる、当該画像信号を補正するための係数を予め求める場合に適用し得る。   The present invention relates to a coefficient generation device and a coefficient generation method, and is applied to a case where a coefficient for correcting an image signal used in a compression decoder that decodes an image signal compressed and encoded for transmission or recording is obtained in advance. Can do.

従来、例えばテレビ会議システムなどのように画像信号を遠隔地に伝送するいわゆる画像信号伝送システムや、画像信号をデイジタル化してビデオテープレコーダやビデオデイスクレコーダに記録し再生する装置においては、伝送路や記録媒体を効率的に利用するため、デイジタル化した画像信号の相関を利用して有意情報を効率的に符号化することにより伝送情報量や記録情報量を削減し、伝送効率や記録効率を高めるようになされている。   Conventionally, in a so-called image signal transmission system that transmits an image signal to a remote place, such as a video conference system, or in an apparatus that digitizes an image signal and records and reproduces it on a video tape recorder or a video disk recorder, In order to efficiently use recording media, significant information is efficiently encoded using the correlation of digitized image signals to reduce the amount of transmitted information and recorded information, thereby increasing transmission efficiency and recording efficiency. It is made like that.

具体的には、画像データを高能率圧縮符号化することにより、伝送するデータ量を大幅に削減する。この高能率符号化の一手法としてADRC(Adaptive Dynamic Range Coding )が提案されている(例えば特開昭61-144989 号公報参照)。ADRCは入力画像データを複数画素からなるブロツクに分割し、当該ブロツク単位で各画素データを原量子化ビツト数よりも小さいビツト数に符号化するものである。より具体的には、2次元ブロツク内に含まれる複数画素の最大値及び最小値により規定されるダイナミツクレンジを求め、このダイナミツクレンジに適応した符号化を行うことにより画像信号を高能率符号化する。   Specifically, the amount of data to be transmitted is greatly reduced by performing high-efficiency compression coding on image data. ADRC (Adaptive Dynamic Range Coding) has been proposed as one method of this high-efficiency encoding (see, for example, Japanese Patent Laid-Open No. 61-144989). ADRC divides input image data into blocks composed of a plurality of pixels, and encodes each pixel data into a number of bits smaller than the number of original quantization bits in the block unit. More specifically, a dynamic range defined by the maximum value and the minimum value of a plurality of pixels included in the two-dimensional block is obtained, and an image signal is encoded with high efficiency by performing encoding suitable for the dynamic range. Turn into.

このADRCを実現するADRCエンコーダは、図10に示すように構成されている。図10において、ADRCエンコーダ1はアナログデイジタル変換回路(A/D)2によつて入力画像信号S1を1画素当り8ビツトのデイジタルデータに変換した後、ブロツク化回路3に供給する。ブロツク化回路3は画像データを8画素×8ライン程度のブロツクに分割する。   An ADRC encoder that realizes this ADRC is configured as shown in FIG. In FIG. 10, an ADRC encoder 1 converts an input image signal S1 into digital data of 8 bits per pixel by an analog digital conversion circuit (A / D) 2 and then supplies it to a block circuit 3. The blocking circuit 3 divides the image data into blocks of about 8 pixels × 8 lines.

最大値算出回路4はブロツク内の最大画素値MAXを求め、最小値算出回路5はブロツク内の最小画素値MINを求める。そして最大画素値MAX及び最小画素値MINが差分回路7に与えられ、さらに最小画素値MINが差分回路8及びフレーム化回路10に与えられる。この結果差分回路7からはブロツク内のダイナミツクレンジDRが出力され、これがフレーム化回路10に送出される。また差分回路8では、遅延回路6を介して入力された各画素値と最小画素値MINとの差分演算が行われ、この結果得られた差分値が適応量子化回路9に送出される。   The maximum value calculation circuit 4 calculates the maximum pixel value MAX in the block, and the minimum value calculation circuit 5 calculates the minimum pixel value MIN in the block. The maximum pixel value MAX and the minimum pixel value MIN are supplied to the difference circuit 7, and the minimum pixel value MIN is further supplied to the difference circuit 8 and the framing circuit 10. As a result, the dynamic range DR in the block is output from the difference circuit 7 and sent to the framing circuit 10. Further, the difference circuit 8 performs a difference calculation between each pixel value input via the delay circuit 6 and the minimum pixel value MIN, and sends the difference value obtained as a result to the adaptive quantization circuit 9.

適応量子化回路9は、ブロツク内の各画素値をLとしたとき、次式 Adaptive quantization circuit 9, when each pixel value in the block and the L i, the following equation

Figure 2006094541
Figure 2006094541

の演算に基づく再量子化を行う。この結果8ビツトで表現されていた各画素は、これよりも小さいnビツトの量子化コードQで表現されることになり、画像情報量が有効に削減される。フオーマツト化回路10は、ブロツク内ダイナミツクレンジDR、最小画素値MIN及び量子化コードQを伝送路や記録系の種類に応じてフオーマツトすることにより最終的な圧縮画像データS2を形成する。
かくしてADRCエンコーダ1においては、1画素当り8ビツトの画像情報をそのまま伝送する場合と比較して、情報量が格段に削減された圧縮画像データS2を得ることができる。
Requantization based on the operation of As a result, each pixel represented by 8 bits is represented by an n-bit quantization code Q i smaller than this, and the amount of image information is effectively reduced. The formatting circuit 10 forms final compressed image data S2 by formatting the in-block dynamic range DR, the minimum pixel value MIN, and the quantization code Q i in accordance with the type of transmission path and recording system.
Thus, the ADRC encoder 1 can obtain the compressed image data S2 in which the amount of information is remarkably reduced as compared with the case of transmitting 8-bit image information per pixel as it is.

この圧縮符号化されてなる圧縮画像データS2を復号するADRCデコーダは、図11に示すように構成されている。すなわちADRCデコーダ11はフレーム分解回路12に圧縮画像データS2を入力すると、これを最小画素値MIN、ブロツク内ダイナミツクレンジDR及び量子化コードQに分解し、このうちブロツク内ダイナミツクレンジDR及び量子化コードQを適応逆量子化回路13に供給すると共に、最小画素値MINを加算回路14に供給する。 The ADRC decoder that decodes the compressed image data S2 that has been compression-encoded is configured as shown in FIG. That is, when the ADRC decoder 11 inputs the compressed image data S2 to the frame decomposition circuit 12, the ADRC decoder 11 decomposes the compressed image data S2 into the minimum pixel value MIN, the in-block dynamic range DR, and the quantization code Q i , of which the in-block dynamic range DR and The quantization code Q i is supplied to the adaptive inverse quantization circuit 13 and the minimum pixel value MIN is supplied to the addition circuit 14.

ここで適応逆量子化回路13及び加算回路14は、次式   Here, the adaptive inverse quantization circuit 13 and the addition circuit 14 are expressed by the following equations.

Figure 2006094541
Figure 2006094541

の演算を行うことにより、各画素についての復号値L′求め、これを復号画像データS3としてブロツク分解回路15に送出する。ブロツク分解回路15はADRCエンコーダ1(図10)のブロツク化回路3と逆の処理を行うことにより、復号画像データS3をテレビジヨン時系列に変換する。ブロツク分解された復号画像データはデイジタルアナログ変換回路16によりアナログ変換され、このようにして復元画像信号S4が得られる。 As a result, the decoded value L i ′ for each pixel is obtained, and this is sent to the block decomposition circuit 15 as decoded image data S3. The block decomposition circuit 15 converts the decoded image data S3 into a television time series by performing the reverse process of the block circuit 3 of the ADRC encoder 1 (FIG. 10). The decoded image data subjected to the block decomposition is converted into an analog signal by the digital / analog conversion circuit 16, and thus the restored image signal S4 is obtained.

ところが、従来のADRCの符号化復号化においては、(1)及び(2)式の演算を行う際に、除算部分でいわゆる近似演算が行われる。このためADRCの量子化ビツト数が少ない場合には、復元画質が劣化する問題があつた。   However, in conventional ADRC encoding / decoding, when performing the calculations of equations (1) and (2), a so-called approximate calculation is performed in the division part. For this reason, when the number of ADRC quantization bits is small, there is a problem that the restored image quality deteriorates.

かかる問題点を解決する一つの方法として従来、画像信号の相関性を考慮して、復号対象となる画素のみで復号値を求めるのではなく、その周辺画素のレベルをも参照して復号対象画素の復号値を求めることにより、復号時の量子化誤差を低減する復号装置が提案されている(特開平1-200885号公報)。   Conventionally, as one method for solving such a problem, the decoding target pixel is not referred to by obtaining the decoding value only with the pixel to be decoded in consideration of the correlation of the image signal, but also referring to the level of the surrounding pixels. There has been proposed a decoding device that reduces the quantization error at the time of decoding by obtaining the decoded value (Japanese Patent Laid-Open No. 1-200885).

しかしながら、この種の復号装置においては、注目復号画素の最近傍の画素による局所的な特徴のみを参照しているため、改善の効果はあるものの、真値に近い復号値を得る点で未だ不十分な問題がある。例えば注目復号画素の周囲の画素を含めた領域において、それらの画素値が原画像の画素値に対して全体としてどちらかにオフセツトしている場合がある(いわゆるオフセツト変動)。このような場合には、たとえ周辺画素のレベルを参照して復号対象画素を復号しても、その周辺画素全体に誤差があるので、正確な復号値を得ることはできなかつた。   However, since this type of decoding device refers only to local features of pixels closest to the target decoding pixel, it has an improvement effect, but is still unsatisfactory in terms of obtaining a decoding value close to the true value. There are enough problems. For example, in the region including the surrounding pixels of the target decoding pixel, the pixel value may be offset to either one of the pixel value of the original image as a whole (so-called offset fluctuation). In such a case, even if the decoding target pixel is decoded with reference to the level of the surrounding pixels, there is an error in the entire surrounding pixels, so that an accurate decoded value cannot be obtained.

本発明は以上の点を考慮してなされたもので、ADRC等のブロツク単位の符号化により得られた圧縮画像データを復号する際に量子化誤差を補正値するために用いられる係数を予め生成する係数生成装置及び係数生成方法を提案しようとするものである。   The present invention has been made in consideration of the above points, and a coefficient used for correcting a quantization error when decoding compressed image data obtained by block unit encoding such as ADRC is generated in advance. A coefficient generation device and a coefficient generation method are proposed.

かかる課題を解決するため本発明においては、入力された学習用画像データを符号化した符号化画像データから、注目画素を中心とする所定範囲のクラス分類ブロツクを形成し、当該クラス分類ブロツクのブロツク内画素データを用いて注目画素をクラス分類し、学習用画像データからの注目画素の真値と、注目画素を復号手段によつて復号した際の復号値との差分値を求め、当該差分値を、分類されたクラス毎にクラス分類に用いるブロツク内画素データと所定の係数との積和演算により表し、最小二乗法を用いて当該積和演算の係数を求め、当該係数を分類されたクラスに対応付けて係数記憶手段に格納するようにする。   In order to solve such a problem, in the present invention, a class classification block of a predetermined range centering on the pixel of interest is formed from encoded image data obtained by encoding the input learning image data, and the class classification block is blocked. Classify the target pixel using the inner pixel data, obtain a difference value between the true value of the target pixel from the learning image data and the decoded value when the target pixel is decoded by the decoding unit, and the difference value For each classified class is represented by a product-sum operation of the pixel data in the block used for class classification and a predetermined coefficient, the coefficient of the product-sum operation is obtained using the least square method, and the coefficient is classified. And stored in the coefficient storage means.

この結果、例えば注目復号画素の周囲の画素を含めた領域においてそれらの画素値が原画像の画素値に対して全体としてどちらかにオフセツトしているような場合に、分類されたクラスに応じて係数記憶手段から読み出した係数とブロツク内画素データとの積和演算により得られる補正値を用いて符号化画素データを補正することにより、当該オフセツト量をも含めた誤差量を有効にキヤンセルすることができる。   As a result, depending on the classified class, for example, when the pixel values in the region including the surrounding pixels of the target decoding pixel are offset to the pixel value of the original image as a whole By effectively correcting the encoded pixel data using the correction value obtained by the product-sum operation of the coefficient read from the coefficient storage means and the pixel data in the block, the error amount including the offset amount can be effectively canceled. Can do.

上述のように本発明によれば、入力された学習用画像データを符号化した符号化画像データから、注目画素を中心とする所定範囲のクラス分類ブロツクを形成し、当該クラス分類ブロツクのブロツク内画素データを用いて注目画素をクラス分類し、学習用画像データからの注目画素の真値と、注目画素を復号手段によつて復号した際の復号値との差分値を求め、当該差分値を、分類されたクラス毎にクラス分類に用いるブロツク内画素データと所定の係数との積和演算により表し、最小二乗法を用いて当該積和演算の係数を求め、当該係数を分類されたクラスに対応付けて係数記憶手段に格納することにより、圧縮画像データから復元画像を生成する際に、当該圧縮画像データ中の各注目画素を、当該注目画素を中心とするクラス分類ブロツク内画素データを用いてクラス分類し、当該クラスに応じた係数と圧縮画像データとの積和演算により復号値と真値との誤差量に相当する補正値を求め、当該補正値を用いて注目画素データの復号誤差を補正し原画像に非常に近い復元画像を得ることができる。   As described above, according to the present invention, a class classification block having a predetermined range centered on the pixel of interest is formed from the encoded image data obtained by encoding the input learning image data, and the class classification block contains the block. The pixel of interest is classified using the pixel data, a difference value between the true value of the pixel of interest from the learning image data and the decoded value when the pixel of interest is decoded by the decoding unit is obtained, and the difference value is obtained. For each classified class, it is represented by the product-sum operation of the pixel data in the block used for class classification and a predetermined coefficient, the coefficient of the product-sum operation is obtained using the least square method, and the coefficient is classified into the classified class. When the decompressed image is generated from the compressed image data by associating and storing in the coefficient storage means, each pixel of interest in the compressed image data is classified into a class classification block centered on the pixel of interest. Classify using the inner pixel data, obtain a correction value corresponding to the error amount between the decoded value and the true value by the product-sum operation of the coefficient corresponding to the class and the compressed image data, and use the correction value It is possible to correct the decoding error of the pixel data and obtain a restored image that is very close to the original image.

以下図面について、本発明の一実施例を詳述する。   Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

(1)全体構成
図11との対応部分に同一符号を付して示す図1において、20は全体として本発明による画像データ復号方法を適用したADRCデコーダを示す。ADRCデコーダ20はクラス分類適応処理部21を有する。クラス分類適応処理部21はフレーム分解回路12から出力された量子化コードQに対してクラス分類適応処理を施すことにより、量子化コードQをより真値に近い量子化コードQ′に変換した後、適応逆量子化回路13に供給する。
(1) Overall Configuration In FIG. 1, in which parts corresponding to those in FIG. 11 are assigned the same reference numerals, 20 indicates an ADRC decoder to which the image data decoding method according to the present invention is applied as a whole. The ADRC decoder 20 has a class classification adaptive processing unit 21. The class classification adaptation processing unit 21 performs class classification adaptation processing on the quantization code Q i output from the frame decomposition circuit 12, thereby changing the quantization code Q i to a quantization code Q i ′ closer to the true value. After the conversion, it is supplied to the adaptive inverse quantization circuit 13.

クラス分類適応処理部21は、量子化コードQをクラス分類回路22に入力し、ここで注目する画素の量子化コードQの周辺の情報を用いて注目画素をクラス分類し、当該分類結果を表わすクラスコードCLASS を出力する。係数ROM23には、予め学習によつて各クラス毎に求められた係数(この係数は複数の係数でなる係数組である)が記憶されており、クラスコードCLASS に応じた係数組wが読み出される。 The class classification adaptive processing unit 21 inputs the quantization code Q i to the class classification circuit 22 and classifies the pixel of interest using information around the quantization code Q i of the pixel of interest here, and the classification result The class code CLASS that represents is output. The coefficient ROM 23 stores coefficients previously obtained for each class by learning (this coefficient is a coefficient set made up of a plurality of coefficients), and a coefficient set w corresponding to the class code CLASS is read out. .

積和演算回路24は係数ROM23から読み出された係数組wと、注目画素の周辺画素の量子化コードQを用いて、次式 The product-sum operation circuit 24 uses the coefficient set w read from the coefficient ROM 23 and the quantization code Q i of the peripheral pixels of the pixel of interest to

Figure 2006094541
Figure 2006094541

で表わされる線形一次結合演算を行うことにより、注目画素に対する補正値δを求める。そして加算回路25において、注目画素の補正値δと注目画素の量子化コードQが加算されることにより、注目画素についての新たな量子化コードQ′(=Q+ δ)が得られる。 A correction value δ i for the target pixel is obtained by performing a linear linear combination operation represented by: Then, the addition circuit 25 adds the correction value δ i of the target pixel and the quantization code Q i of the target pixel, so that a new quantization code Q i ′ (= Q i + δ i ) for the target pixel is obtained. can get.

適応逆量子化回路13及び加算回路14においては、クラス分類適応処理部21によつて形成された新たな量子化コードQ′を用いて、次式 The adaptive inverse quantization circuit 13 and the addition circuit 14 use the new quantization code Q i ′ formed by the class classification adaptive processing unit 21 to

Figure 2006094541
Figure 2006094541

に基づく復号処理を行うことにより復号値L″を求め、これを復号画像データS10として出力する。復号画像データS10はブロツク分解回路15及びデイジタルアナログ変換回路16を順次通過させられることにより、復元画像信号S11とされる。 The decoded value L i ″ is obtained by performing a decoding process based on the above and is output as decoded image data S10. The decoded image data S10 is restored by being sequentially passed through the block decomposition circuit 15 and the digital analog conversion circuit 16. The image signal is S11.

(2)クラス分類回路の構成例
ここでクラス分類回路22は、例えば図2又は図3に示すように構成されている。ここで図2に示すクラス分類回路30及び図3に示すクラス分類回路40は、基本的には、注目画素を中心とする狭い範囲のブロツクの情報とさらにその外側のブロツクの情報とをコード化し、これをクラスコードCLASSとして出力するものである。
(2) Configuration Example of Class Classification Circuit Here, the class classification circuit 22 is configured as shown in FIG. 2 or FIG. 3, for example. Here, the class classification circuit 30 shown in FIG. 2 and the class classification circuit 40 shown in FIG. 3 basically encode the information of a block in a narrow range centering on the pixel of interest and the information of the block outside it. This is output as a class code CLASS.

なおADRCのようにブロツク単位で符号化されて得られた圧縮画像データS2においては、注目画素が符号化ブロツクの境界にある場合もあり、このような場合に注目画素の量子化コードとその周辺の量子化コードがそれぞれ異なる符号化ブロツクに存在することとなるため、注目量子化コードとその周辺の量子化コードとの関連が無くなつてしまう。   In the compressed image data S2 obtained by encoding in units of blocks like ADRC, the target pixel may be at the boundary of the encoding block. In such a case, the quantization code of the target pixel and its surroundings Therefore, the relationship between the quantization code of interest and the surrounding quantization codes is lost.

そこでADRCデコーダ20においては、実際上、クラス分類回路22の前段に図示しないブロツク調整回路を設け、当該ブロツク調整回路によつて注目画素周辺の量子化コードQを一旦復号し、注目画素の符号化ブロツクのダイナミツクレンジDR及び最小値MINに基づいてこの復号値を再量子化した量子化コードQをクラス分類回路22に供給するようになされている。 Therefore, in the ADRC decoder 20, a block adjustment circuit (not shown) is actually provided in the preceding stage of the class classification circuit 22, and the block adjustment circuit temporarily decodes the quantization code Q i around the pixel of interest, and the code of the pixel of interest. Based on the dynamic range DR and minimum value MIN of the quantization block, a quantized code Q i obtained by requantizing the decoded value is supplied to the class classification circuit 22.

(2−1)構成例I
先ず図2に示すクラス分類回路30について説明する。クラス分類回路30は、フレーム分解回路12(図1)及び図示しないブロツク調整回路を介して入力された量子化コードQを第1のブロツク化回路31及び第2のブロツク化回路32に入力する。第1のブロツク化回路は、図4に示すように、注目画素とその周辺8画素により第1のブロツクを形成し、このブロツク化データをタイミング合せのための遅延回路33を介してコード化回路34に送出する。コード化回路34は入力したブロツク化データに基づいて、注目画素の周囲8画素の量子化コードを所定の順に並べたものを第1のクラスコードD1として出力する。このようにして、注目画素の周辺の狭い範囲の画素レベル分布パターンを表わす第1のクラスコードD1が形成される。
(2-1) Configuration example I
First, the class classification circuit 30 shown in FIG. 2 will be described. The class classification circuit 30 inputs the quantization code Q i input via the frame decomposition circuit 12 (FIG. 1) and a block adjustment circuit (not shown) to the first block circuit 31 and the second block circuit 32. . As shown in FIG. 4, the first blocking circuit forms a first block by the pixel of interest and its surrounding 8 pixels, and the block data is coded via a delay circuit 33 for timing adjustment. 34. Based on the input block data, the encoding circuit 34 outputs a first class code D1 in which quantization codes of 8 pixels around the target pixel are arranged in a predetermined order. In this way, the first class code D1 representing the narrow pixel range distribution pattern around the target pixel is formed.

第2のブロツク化回路32は、図4に示すように、第1のブロツク化回路31で形成したブロツクのさらに外側の8画素により第2のブロツクを形成し、このブロツク化データを最大値検出回路35及び最小値検出回路36に送出する。最大値検出回路35及び最小値検出回路36はそれぞれ8画素の中の最大値及び最小値を検出し、当該検出結果を方向コード化回路37及び38に送出する。   As shown in FIG. 4, the second blocking circuit 32 forms a second block by 8 pixels further outside the block formed by the first blocking circuit 31, and detects the maximum value of the blocked data. The data is sent to the circuit 35 and the minimum value detection circuit 36. The maximum value detection circuit 35 and the minimum value detection circuit 36 detect the maximum value and the minimum value in the eight pixels, respectively, and send the detection results to the direction encoding circuits 37 and 38.

方向コード化回路37及び38は、中心からみた(すなわち注目画素からみた)最大値画素及び最小値画素の方向をコード化する。ここで中心からみた方向は8種類に別れるので、各方向コード化回路37及び38はそれぞれ3ビツトでなる方向コードを出力する。この方向コード化回路37の方向コードと方向コード化回路38の方向コードとを合わせたものが、第2のクラスコードD2として出力される。このようにして、注目画素周辺の画像の傾斜の方向を表わす第2のクラスコードD2が形成される。   The direction encoding circuits 37 and 38 encode the direction of the maximum value pixel and the minimum value pixel viewed from the center (that is, viewed from the target pixel). Here, since the directions viewed from the center are divided into eight types, each of the direction encoding circuits 37 and 38 outputs a 3-bit direction code. A combination of the direction code of the direction encoding circuit 37 and the direction code of the direction encoding circuit 38 is output as the second class code D2. In this way, the second class code D2 representing the inclination direction of the image around the target pixel is formed.

第1及び第2のクラスコードD1及びD2は続く合成回路39によつて合成され、この結果第1及び第2のクラスコードD1及びD2を合わせた最終的なクラスコードCLASS が形成され、当該クラスコードCLASS が係数ROM23に出力される。   The first and second class codes D1 and D2 are synthesized by the subsequent synthesizing circuit 39. As a result, a final class code CLASS combining the first and second class codes D1 and D2 is formed. The code CLASS is output to the coefficient ROM 23.

(2−2)構成例II
次に図3に示すクラス分類回路40について説明する。クラス分類回路40は、量子化コードQを第1のブロツク化回路41及び第2のブロツク化回路42に入力する。第1のブロツク化回路41は図2の第1のブロツク化回路31と同様に注目画素とその周辺8画素により第1のブロツクを形成する。また第2のブロツク化回路42も上述した第2ブロツク化回路32と同様に外側の8画素により第2のブロツクを形成する。
(2-2) Configuration example II
Next, the class classification circuit 40 shown in FIG. 3 will be described. The class classification circuit 40 inputs the quantization code Q i to the first block circuit 41 and the second block circuit 42. Similar to the first blocking circuit 31 of FIG. 2, the first blocking circuit 41 forms a first block by the pixel of interest and its surrounding eight pixels. Similarly to the second blocking circuit 32 described above, the second blocking circuit 42 also forms the second block with the outer eight pixels.

第1のブロツク化回路41により形成されたブロツク化データのうち、注目画素の周辺8画素の量子化値は順次比較回路43に与えられると共に注目画素の量子化値がメモリ(D)44を介して比較回路43に与えられる。比較回路43では、図5(A)に示すように、注目画素の量子化値とその周辺8画素の各量子化値の大小が順次比較される。コード化回路45は比較回路43の比較結果を「1」又は「0」でコード化し、これを第1のクラスコードD3として出力する。   Of the block data generated by the first block circuit 41, the quantized values of the eight pixels around the target pixel are sequentially supplied to the comparison circuit 43 and the quantized value of the target pixel is passed through the memory (D) 44. To the comparison circuit 43. As shown in FIG. 5A, the comparison circuit 43 sequentially compares the quantized value of the target pixel and the quantized values of the surrounding eight pixels. The encoding circuit 45 encodes the comparison result of the comparison circuit 43 with “1” or “0”, and outputs this as the first class code D3.

第2のブロツク化回路42により形成されたブロツク化データは、タイミング合せのための遅延回路46を介して比較回路47に供給される。また比較回路47には、第1のブロツク化回路41によつて形成されたブロツク化データが平均値算出回路48を介して供給される。この結果比較回路47では、図5(B)に示すように、注目画素とその周辺8画素の合わせて9画素の平均値と、その外側の8画素との大小が順次比較される。コード化回路49は比較回路47の比較結果を「1」又は「0」にコード化し、これを第2のクラスコードD4として出力する。   The blocked data formed by the second blocking circuit 42 is supplied to the comparison circuit 47 via the delay circuit 46 for timing adjustment. The comparison circuit 47 is supplied with the block data formed by the first block circuit 41 via the average value calculation circuit 48. As a result, as shown in FIG. 5B, the comparison circuit 47 sequentially compares the average value of nine pixels, including the target pixel and the surrounding eight pixels, and the size of the outer eight pixels. The encoding circuit 49 encodes the comparison result of the comparison circuit 47 into “1” or “0”, and outputs this as the second class code D4.

このようにして、第1のクラスコードD3と比較して広い範囲の画素の状態を表わす第2のクラスコードD4が形成される。因にクラス分類回路40は、第2のクラスコードD4を求める際、注目画素の値をそのまま用いて外側の周辺画素との比較を行なわずに、近傍8画素を含めた9画素によつて予め平均値を求め、その平均値と外側8画素との比較を行うようにしたことにより、例えば注目画素が特異点である場合やノイズ等があつた場合でも、これらの影響を第2のクラスコードD4に及ばせることなく、的確に注目画素周辺の状態を表わす第2のクラスコードD4を形成することができる。   In this way, the second class code D4 representing the state of the pixels in a wider range compared to the first class code D3 is formed. Incidentally, when the class classification circuit 40 obtains the second class code D4, it uses the value of the target pixel as it is and does not perform comparison with the outer peripheral pixels, and uses 9 pixels including 8 neighboring pixels in advance. By calculating the average value and comparing the average value with the outer 8 pixels, for example, even when the pixel of interest is a singular point or there is noise or the like, these effects are expressed by the second class code. The second class code D4 that accurately represents the state around the target pixel can be formed without reaching D4.

第1及び第2のクラスコードD3及びD4は続く合成回路50によつて合成され、この結果第1及び第2のクラスコードD3及びD4を合わせた最終的なクラスコードCLASS が形成され、当該クラスコードCLASS が係数ROM23に出力される。   The first and second class codes D3 and D4 are synthesized by the subsequent synthesis circuit 50. As a result, a final class code CLASS is formed by combining the first and second class codes D3 and D4. The code CLASS is output to the coefficient ROM 23.

(3)係数の選定
次に係数ROM23に記憶されるクラス毎の係数組wの選定の仕方について説明する。この係数組wは画質劣化の無い原画像データを用いた学習により求められる。図6に、これを実現するための学習回路60の構成を示す。学習回路60は劣化の無い学習用画像データS20を時系列変換61に入力すると、ここで当該学習用画像データS20に対して注目画素の画素値yと、その周辺の8画素x〜x(8画素でなくてもよい)とで1ブロツクを構成するような時系列変換処理を施し、これら9画素y、x〜xをADRCエンコーダ62に供給する。
(3) Selection of Coefficient Next, a method of selecting the coefficient set w for each class stored in the coefficient ROM 23 will be described. The coefficient set w is obtained by learning using original image data with no image quality deterioration. FIG. 6 shows a configuration of a learning circuit 60 for realizing this. When the learning circuit 60 inputs not the learning image data S20 deterioration in time series conversion 61, wherein the pixel value y of the pixel of interest with respect to the learning image data S20, 8 pixels x 1 ~x the surrounding 8 A time series conversion process is performed so as to form one block with (not necessarily 8 pixels), and these 9 pixels y, x 1 to x 8 are supplied to the ADRC encoder 62.

ADRCエンコーダ62は、図10において上述したADRCエンコーダ1と同様の構成でなり入力画像データを圧縮符号化することにより、各画素値y、x〜xに対応する量子化コードQと、それらのダイナミツクレンジDRと、最小値MINとでなる圧縮画像データS21を生成し、当該圧縮画像データS21を、図11において上述した従来のADRCデコーダ11と同様の構成でなるADRCデコーダ63によつて復号する。 The ADRC encoder 62 has the same configuration as the ADRC encoder 1 described above with reference to FIG. 10, and compresses and encodes input image data, whereby a quantization code Q i corresponding to each pixel value y, x 1 to x 8 , Compressed image data S21 composed of the dynamic range DR and the minimum value MIN is generated, and the compressed image data S21 is generated by an ADRC decoder 63 having the same configuration as the conventional ADRC decoder 11 described above with reference to FIG. Decrypt.

そしてADRCデコーダ63によつて得られた復号画素値のうち注目画素の復号画素値が差分回路64に供給される。また差分回路64には、注目画素の真の画素値yがタイミング合せのための遅延回路65を介して供給される。この結果差分回路64では、ADRCエンコーダ62及びADRCデコーダ63を介して得られた圧縮復号誤差の有る注目画素の画素値と、加工されていない注目画素の真の画素値yとの差分がとられ、当該差分結果が誤差値δyとして係数算出回路66に送出される。   The decoded pixel value of the target pixel among the decoded pixel values obtained by the ADRC decoder 63 is supplied to the difference circuit 64. Further, the true pixel value y of the target pixel is supplied to the difference circuit 64 via a delay circuit 65 for timing adjustment. As a result, the difference circuit 64 calculates the difference between the pixel value of the target pixel having the compression decoding error obtained via the ADRC encoder 62 and the ADRC decoder 63 and the true pixel value y of the target pixel that has not been processed. The difference result is sent to the coefficient calculation circuit 66 as an error value δy.

また学習回路60は、ADRCエンコーダ62から出力される量子化コードQをクラス分類回路67に送出する。クラス分類回路67は上述したクラス分類回路22(図1)と同様の構成でなり、注目画素の周辺の複数の量子化コードQに基づいて当該注目画素のクラスを表わすクラスコードCLASS を形成し、当該クラスコードCLASS を係数算出回路66に送出する。またADRCエンコーダ62から出力された量子化コードQはタイミング合せのための遅延回路68を介して係数算出回路66に与えられる。 The learning circuit 60 sends the quantization code Q i output from the ADRC encoder 62 to the class classification circuit 67. The class classification circuit 67 has the same configuration as the class classification circuit 22 (FIG. 1) described above, and forms a class code CLASS representing the class of the target pixel based on a plurality of quantization codes Q i around the target pixel. The class code CLASS is sent to the coefficient calculation circuit 66. The quantization code Q i output from the ADRC encoder 62 is given to the coefficient calculation circuit 66 via the delay circuit 68 for timing adjustment.

このように係数算出回路66はクラスコードCLASS を入力すると共に、注目画素周辺の量子化コードQ〜Q及び注目画素の真値からの誤差値δyを入力し、クラスコードCLASS で表わされるクラス毎に、誤差値δyと量子化コードQ〜Qとの相関関係を表わす係数Wを最小二乗法を用いた学習により求める。 In this way, the coefficient calculation circuit 66 inputs the class code CLASS, and also inputs the quantization codes Q 1 to Q 8 around the pixel of interest and the error value δy from the true value of the pixel of interest, and the class represented by the class code CLASS Each time, a coefficient W representing the correlation between the error value δy and the quantization codes Q 1 to Q 8 is obtained by learning using the least square method.

すなわち係数算出回路66は、先ず量子化コードQ、Q、……、Qにそれぞれ係数w、w、……、wを掛けることにより、誤差値δyを周辺の量子化コードQ〜Qと係数w〜wとの線形一次結合により表わす。具体的には、係数算出回路66は同じクラスの誤差値δy〜δyそれぞれについて、量子化コードQ(R,S)(但し、R=1、2、……r、S=1、2、……、8とする)と係数w〜wとの線形一次結合式を立てて、この係数w〜wを最小二乗法により求める。 That coefficient calculation circuit 66, first quantization code Q 1, Q 2, ......, coefficients w 1, w 2 respectively Q 8, ......, by multiplying w 8, quantization code around the error value δy This is represented by a linear linear combination of Q 1 to Q 8 and coefficients w 1 to w 8 . Specifically, the coefficient calculation circuit 66 calculates the quantization code Q (R, S) (where R = 1, 2,... R, S = 1, 2 ) for each of the error values δy 1 to δy r of the same class. ,..., 8) and coefficients w 1 to w 8 and a linear linear combination formula are established, and the coefficients w 1 to w 8 are obtained by the least square method.

これについて説明すると、先ず誤差値δy〜δyの行列式Yは、周辺量子化コードQ(R,S)の行列式Xと係数w〜wの行列式Wを用いて、次式 To describe this, first, the determinant Y of the error values δy 1 to δy r is expressed by the following equation using the determinant X of the peripheral quantization code Q (R, S) and the determinant W of the coefficients w 1 to w 8.

Figure 2006094541
Figure 2006094541

でなる観測方程式の形で表わすことができる。但し(5)式において、rは同一クラスの注目画素数を表わす。 Can be expressed in the form of an observation equation. However, in the formula (5), r represents the number of target pixels of the same class.

ここで(5)式の連立方程式を解くことにより係数w〜wを求めればよい。これを最小二乗法の演算により解く。すなわち先ず、(5)式を残差行列Eを用いて、次式 Here, the coefficients w 1 to w 8 may be obtained by solving the simultaneous equations of equation (5). This is solved by the operation of the least square method. That is, first, using the residual matrix E, the equation (5)

Figure 2006094541
Figure 2006094541

のように残差方程式の形に表現し直す。 Re-express it in the form of a residual equation like

ここで(6)式から各係数w〜wの最確値を求めるためには、e +e +……+e を最小にする条件、すなわち次式 Here from (6) in order to determine the most probable value of each coefficient w 1 to w 8, the condition that the e 1 2 + e 2 2 + ...... + e r 2 to the minimum, i.e. the formula

Figure 2006094541
Figure 2006094541

なる8個の条件を入れてこれを満足する各係数w〜wを見つければ良い。ここで(6)式より、次式 It is only necessary to find the coefficients w 1 to w 8 that satisfy the above eight conditions. Here, from equation (6),

Figure 2006094541
Figure 2006094541

を得、(7)式の条件をi=1、2、……、8について立てればそれぞれ、次式 If the conditions of the equation (7) are set for i = 1, 2,..., 8, respectively,

Figure 2006094541
Figure 2006094541

が得られる。ここで(6)式及び(9)式から次式の正規方程式が得られる。 Is obtained. Here, the following normal equation is obtained from the equations (6) and (9).

Figure 2006094541
Figure 2006094541

ここで(10)式で表わされる正規方程式は未知数が8個だけある連立方程式であるから、これにより最確値である各係数w〜wを求めることができる。正確には(10)式でwにかかる(ΣQjkj1)(但しj=1、……、r、k=1、……、8、l=1、……、8)のマトリクスが正則であれば解くことができる。実際には、Gauss-Jordanの消去法(掃き出し法)を用いて連立方程式を解く。 Here, since the normal equation represented by the expression (10) is a simultaneous equation having only eight unknowns, the coefficients w 1 to w 8 which are the most probable values can be obtained. Exactly according to the w i in equation (10) (ΣQ jk Q j1) (however j = 1, ......, r, k = 1, ......, 8, l = 1, ......, 8) is a matrix of If it is regular, it can be solved. Actually, simultaneous equations are solved using Gauss-Jordan elimination (sweeping method).

実際上係数算出回路66は、図7に示すように構成されている。すなわち係数算出回路66は量子化コードQ〜Q及び誤差値δyを正規方程式生成回路70に入力し、当該正規方程式生成回路70によつてクラス毎に(10)式で表わされるような正規方程式を生成し、続くCPU演算回路71によつて掃き出し法の演算によりクラス毎の係数組w(w〜w)を求める。 In practice, the coefficient calculation circuit 66 is configured as shown in FIG. That is, the coefficient calculation circuit 66 inputs the quantization codes Q 1 to Q r and the error value δy to the normal equation generation circuit 70, and the normal equation generation circuit 70 performs normalization as expressed by equation (10) for each class. An equation is generated, and a coefficient set w (w 1 to w 8 ) for each class is obtained by the calculation of the sweep method by the CPU arithmetic circuit 71 that follows.

正規方程式生成回路70は先ず乗算器アレイ72によつて各画素同士の乗算を行う。乗算器アレイ72は、図8に示すように構成されており、四角で表わす各セル毎に画素同士の乗算を行い、これにより得た各乗算結果を続く加算器メモリ73に与える。   The normal equation generation circuit 70 first multiplies each pixel by the multiplier array 72. The multiplier array 72 is configured as shown in FIG. 8, and performs multiplication of pixels for each cell represented by a square, and gives each multiplication result obtained thereby to the adder memory 73.

加算器メモリ73は、図9に示すように、乗算器アレイ72と同様に配列された複数のセルでなる加算器アレイ74と複数のメモリ(又はレジスタ)アレイ75A、75B、……とにより構成されている。メモリアレイ75A、75B、……はクラスコードCLASS で表わされるクラス数分設けられており、クラスコードCLASS をデコードするクラスコードデコーダ77の出力(クラス)に応答して一つのメモリアレイ75A、75B、……が選択され、選択されたメモリアレイ75A、75B、……の格納値が加算器アレイ74に帰還される。このとき加算器アレイ74により得られる加算結果が再び対応するメモリアレイ75A、75B、……に格納される。   As shown in FIG. 9, the adder memory 73 includes an adder array 74 composed of a plurality of cells arranged in the same manner as the multiplier array 72 and a plurality of memory (or register) arrays 75A, 75B,. Has been. Memory arrays 75A, 75B,... Are provided for the number of classes represented by class code CLASS, and one memory array 75A, 75B,... Is responded to the output (class) of class code decoder 77 for decoding class code CLASS. .. Is selected, and the stored values of the selected memory arrays 75A, 75B,... Are fed back to the adder array 74. At this time, the addition result obtained by the adder array 74 is stored again in the corresponding memory arrays 75A, 75B,.

このようにして乗算器アレイ72、加算器アレイ74及びメモリアレイ75によつて積和演算が行われ、クラスコードCLASS によつて決定されるクラス毎にメモリアレイ75A、75B、……のいずれかが選択されて、積和演算の結果によつてメモリアレイ75A、75B、……の内容が更新される。   In this way, the multiply-accumulate operation is performed by the multiplier array 72, the adder array 74, and the memory array 75, and one of the memory arrays 75A, 75B,... For each class determined by the class code CLASS. Are selected, and the contents of the memory arrays 75A, 75B,... Are updated according to the result of the product-sum operation.

なお、各々のアレイの位置は(10)式で表わされる正規方程式のwにかかるΣQjkj1(但し、j=1、……、r、k=1、……、8、l=1、……、8)の位置に対応する。(10)式の正規方程式を見れば明らかなように右上の項を反転すれば左下と同じものになるため、各アレイは三角形の形状をしている。 The position of each array (10) ΣQ jk Q j1 (although according to w i of the normal equation of formula, j = 1, ......, r , k = 1, ......, 8, l = 1 , ..., 8). As apparent from the normal equation (10), if the upper right term is inverted, it becomes the same as the lower left, so each array has a triangular shape.

このようにして、ある一定期間の間に積和演算が行われて各画素位置毎のさらに各クラス毎の正規方程式が生成される。クラス毎の正規方程式の各項の結果はそれぞれのクラスに対応するメモリアレイ75A、75B、……に記憶されており、次にそれらのクラス毎の正規方程式の各項が掃き出し法演算を実現するCPU演算回路71によつて計算される。この結果クラス毎の係数組w(w〜w)が求められ、当該係数組w(w〜w)が係数ROM23(図1)の対応するクラスのアドレスに書き込まれる。 In this way, a product-sum operation is performed during a certain period, and a normal equation for each class is generated for each pixel position. The result of each term of the normal equation for each class is stored in the memory arrays 75A, 75B,... Corresponding to the respective class, and then each term of the normal equation for each class realizes the sweep method calculation. It is calculated by the CPU arithmetic circuit 71. As a result, a coefficient set w (w 1 to w 8 ) for each class is obtained, and the coefficient set w (w 1 to w 8 ) is written to the address of the corresponding class in the coefficient ROM 23 (FIG. 1).

(4)動作
以上の構成において、ADRCデコーダ20はADRCによる符号化により形成された圧縮画像データS2のうち量子化コードQをクラス分類回路22に入力し、当該クラス分類回路22によつて注目画素(注目量子化コード)を中心とした複数画素データ(量子化コード)を集めてブロツクを形成し、そのブロツクの情報に基づいてクラスコードCLASS を生成する。
(4) Operation In the above configuration, the ADRC decoder 20 inputs the quantization code Q i out of the compressed image data S2 formed by ADRC encoding to the class classification circuit 22, and the class classification circuit 22 pays attention. A block is formed by collecting a plurality of pixel data (quantization code) centering on a pixel (target quantization code), and a class code CLASS is generated based on the information of the block.

次にこのクラスコードCLASS を読出しアドレスとして係数ROM23からクラスコードCLASS に応じた係数組wを読み出す。そして積和演算回路24において、係数組wと注目画素周辺の画素データ(量子化コード)とを用いた積和演算を行うことにより、注目量子化コードQをそのまま続く適応逆量子化回路13によつて復号した場合に生じる真値から誤差値δを求める。 Next, the coefficient set w corresponding to the class code CLASS is read from the coefficient ROM 23 using the class code CLASS as a read address. Then, the product-sum operation circuit 24 performs a product-sum operation using the coefficient set w and pixel data (quantization code) around the pixel of interest, so that the adaptive inverse quantization circuit 13 continues the attention quantization code Q i as it is. The error value δ i is obtained from the true value generated when decoding is performed.

ADRCデコーダ20は加算回路25において誤差値δを量子化コードQに加算することにより、適応逆量子化回路13における復号時に発生する復号誤差を予めキヤンセルする。この結果補正された量子化コードQ′が適応逆量子化回路13において伸長復号されることにより、適応逆量子化回路13からはほぼ真値に等しい復号画素値が出力される。 The ADRC decoder 20 adds in advance an error value δ i to the quantization code Q i in the adder circuit 25, thereby canceling in advance the decoding error that occurs during decoding in the adaptive inverse quantization circuit 13. As a result, the corrected quantized code Q i ′ is decompressed and decoded in the adaptive inverse quantization circuit 13, so that a decoded pixel value substantially equal to a true value is output from the adaptive inverse quantization circuit 13.

ここで誤差値δを算出する際に用いる係数組wは、圧縮画像データS2を形成する際に用いたADRCエンコーダ1(図10)に対応したADRCエンコーダ62や適応逆量子化回路13を有するADRCデコーダ63等によつて構成される学習回路60によつて、原画像に含まれる真値yを使つた学習により求められているため、たとえ圧縮画像データS2がオフセツト変動している場合でも、真値yを基準とした誤差値δを得ることができる。従つてADRCデコーダ20では、誤差値δによつて、オフセツト変動さらには圧縮符号化時の圧縮誤差をも有効にキヤンセルし得る。 Here, the coefficient set w used when calculating the error value δ i includes the ADRC encoder 62 and the adaptive inverse quantization circuit 13 corresponding to the ADRC encoder 1 (FIG. 10) used when forming the compressed image data S2. Since it is obtained by learning using the true value y included in the original image by the learning circuit 60 constituted by the ADRC decoder 63 and the like, even if the compressed image data S2 fluctuates in offset, An error value δ i based on the true value y can be obtained. Therefore, the ADRC decoder 20 can effectively cancel the offset variation and the compression error at the time of compression coding by the error value δ i .

(5)効果
以上の構成によれば、原量子化ビツト数よりも小さいビツト数に圧縮符号化された圧縮画像データS2を復号する際に、当該圧縮画像データS2を注目画素毎にクラス分類し、予め原画素値(真値)yを使つて求められた係数組wの中からクラス分類結果CLASS に応じた係数組wを用いて誤差値δを求め、当該誤差値δによつてデータを補正するようにしたことにより、原画像にほぼ等しい復元画像を得ることができる。
(5) Effect According to the above configuration, when decoding the compressed image data S2 that has been compression-encoded to a number of bits smaller than the number of original quantized bits, the compressed image data S2 is classified for each pixel of interest. obtains an error value [delta] i using coefficient set w in accordance with the classification result cLASS from the pre-original pixel value (true value) y the use connexion the obtained coefficient set w, Yotsute to the error value [delta] i By correcting the data, a restored image almost equal to the original image can be obtained.

(6)他の実施例
なお上述の実施例においては、本発明を、ADRCによつて得られた圧縮画像データS2を復号するADRCデコーダ20に適用した場合について述べたが、本発明はこれに限らず、例えばDCT(Discrete Cosine Transform )符号化、DPCM(Differential Pulse Code Modulation)、BTC(Block Truncation Coding)等のようにブロツク単位で圧縮符号化された画像データを復号する場合に広く適用することができる。
(6) Other Embodiments In the above-described embodiments, the case where the present invention is applied to the ADRC decoder 20 that decodes the compressed image data S2 obtained by ADRC has been described. The present invention is not limited to this, and is widely applied when decoding image data that has been compression-coded in units of blocks such as DCT (Discrete Cosine Transform) coding, DPCM (Differential Pulse Code Modulation), BTC (Block Truncation Coding), etc. Can do.

また上述の実施例においては、本発明による画像データ復号方法を、図1に示すようなハードウエアで実現する場合について述べたが、本発明はこれに限らず、圧縮画像データを計算機に取り込むことによりソフトウエアによつて計算処理するようにしても良い。   In the above-described embodiment, the case where the image data decoding method according to the present invention is realized by hardware as shown in FIG. 1 is described. However, the present invention is not limited to this, and compressed image data is taken into a computer. Thus, calculation processing may be performed by software.

さらに上述の実施例においては、クラスに対応した係数を記憶する係数記憶手段として係数ROM22を用いた場合について述べたが、本発明はこれに限らず、これに代えてRAM(Random Access Memory)やSRAM等を用いるようにしても良い。   Further, in the above-described embodiment, the case where the coefficient ROM 22 is used as the coefficient storage means for storing the coefficient corresponding to the class has been described. However, the present invention is not limited to this, and instead of this, a RAM (Random Access Memory), An SRAM or the like may be used.

本発明による画像データ復号方法を適用したADRCデコーダの構成を示すブロツク図である。It is a block diagram which shows the structure of the ADRC decoder to which the image data decoding method by this invention is applied. クラス分類回路の構成例を示すブロツク図である。It is a block diagram which shows the structural example of a class classification circuit. クラス分類回路の構成例を示すブロツク図である。It is a block diagram which shows the structural example of a class classification circuit. 図2のクラス分類回路による分類処理の説明に供する略線図である。It is a basic diagram with which it uses for description of the classification process by the class classification circuit of FIG. 図3のクラス分類回路による分類処理の説明に供する略線図である。It is a basic diagram with which it uses for description of the classification process by the class classification circuit of FIG. 係数を求めるための学習回路の構成を示すブロツク図である。It is a block diagram which shows the structure of the learning circuit for calculating | requiring a coefficient. 係数算出回路の構成を示すブロツク図である。It is a block diagram which shows the structure of a coefficient calculation circuit. 係数算出回路の乗算器アレイの構成を示す略線的ブロツク図である。It is a rough block diagram which shows the structure of the multiplier array of a coefficient calculation circuit. 係数算出回路の加算器メモリの構成を示す略線的ブロツク図である。It is a rough block diagram which shows the structure of the adder memory of a coefficient calculation circuit. ADRCエンコーダの構成を示すブロツク図である。It is a block diagram which shows the structure of an ADRC encoder. 従来のADRCデコーダの構成を示すブロツク図である。It is a block diagram which shows the structure of the conventional ADRC decoder.

符号の説明Explanation of symbols

1、62……ADRCエンコーダ、9……適応量子化回路、11、20、63……ADRCデコーダ、13……適応逆量子化、21……クラス分類適応処理部、22、30、40、67……クラス分類回路、23……係数ROM、60……学習回路、S1……入力画像信号、S2、S21……圧縮画像データ、S3、S10……復号画像データ、S4、S11……復元画像信号、MAX……最大画素値、MIN……最小画素値、DR……ダイナミツクレンジ、Q、Q′……量子化コード、CLASS ……クラスコード、w……係数組、δ……補正値、y……真値、δy……誤差データ。 DESCRIPTION OF SYMBOLS 1,62 ... ADRC encoder, 9 ... Adaptive quantization circuit, 11, 20, 63 ... ADRC decoder, 13 ... Adaptive dequantization, 21 ... Class classification adaptive processing part, 22, 30, 40, 67 …… Class classification circuit, 23 …… Coefficient ROM, 60 …… Learning circuit, S1 …… Input image signal, S2, S21 …… Compressed image data, S3, S10 …… Decoded image data, S4, S11 …… Restored image Signal, MAX: Maximum pixel value, MIN: Minimum pixel value, DR: Dynamic range, Q i , Q i '... Quantization code, CLASS: Class code, w ... Coefficient group, δ i ... … Correction value, y …… true value, δy …… error data.

Claims (3)

学習用画像データが入力される入力手段と、
上記学習用画像データを符号化した符号化画像データから、注目画素を中心とする所定範囲のクラス分類ブロツクを形成し、当該クラス分類ブロツクのブロツク内画素データを用いて上記注目画素をクラス分類するクラス分類手段と、
上記学習用画像データからの上記注目画素の真値と、上記注目画素を復号手段によつて復号した際の復号値との差分値を求める差分値算出手段と、
上記差分値を、上記クラス分類手段によつて分類されたクラス毎に上記クラス分類に用いるブロツク内画素データと所定の係数との積和演算により表し、最小二乗法を用いて当該積和演算の係数を求める係数算出手段と、
上記係数算出手段により求めた上記係数を上記クラス分類手段により分類されるクラスに対応付けて係数記憶手段に格納する係数格納手段と
を具えることを特徴とする係数生成装置。
Input means for inputting learning image data;
A class classification block having a predetermined range centered on the target pixel is formed from the encoded image data obtained by encoding the learning image data, and the target pixel is classified using the pixel data in the block of the class classification block. Classification means,
Difference value calculating means for obtaining a difference value between the true value of the target pixel from the learning image data and a decoded value when the target pixel is decoded by a decoding means;
The difference value is represented by a product-sum operation of pixel data in blocks used for the class classification and a predetermined coefficient for each class classified by the class classification means, and using the least squares method, Coefficient calculation means for obtaining a coefficient;
A coefficient generation device comprising: coefficient storage means for storing the coefficient obtained by the coefficient calculation means in a coefficient storage means in association with a class classified by the class classification means.
上記係数算出手段は、
上記ブロツク内画素データと上記係数との複数の積和演算でなる正規方程式に対して掃き出し法を用いることにより上記係数を求める
ことを特徴とする請求項1に記載の係数生成装置。
The coefficient calculation means is
2. The coefficient generation apparatus according to claim 1, wherein the coefficient is obtained by using a sweeping method for a normal equation formed by a plurality of product-sum operations of the pixel data in the block and the coefficient.
入力された学習用画像データを符号化した符号化画像データから、注目画素を中心とする所定範囲のクラス分類ブロツクを形成し、当該クラス分類ブロツクのブロツク内画素データを用いて上記注目画素をクラス分類するクラス分類ステツプと、
上記学習用画像データからの上記注目画素の真値と、上記注目画素を復号手段によつて復号した際の復号値との差分値を求める差分値算出ステツプと、
上記差分値を、上記クラス分類ステツプによつて分類されたクラス毎に上記クラス分類に用いるブロツク内画素データと所定の係数との積和演算により表し、最小二乗法を用いて当該積和演算の係数を求める係数算出ステツプと、
上記係数算出ステツプにより求めた上記係数を上記クラス分類ステツプにより分類されたクラスに対応付けて係数記憶手段に格納する係数格納ステツプと
を具えることを特徴とする係数生成方法。
A class classification block having a predetermined range centered on the target pixel is formed from the encoded image data obtained by encoding the input learning image data, and the target pixel is classified using the pixel data in the block of the class classification block. A classification step to classify,
A difference value calculating step for obtaining a difference value between a true value of the target pixel from the learning image data and a decoded value when the target pixel is decoded by a decoding unit;
The difference value is represented by a product-sum operation of the pixel data in the block used for the class classification and a predetermined coefficient for each class classified by the class classification step, and the product-sum operation is calculated using a least square method. A coefficient calculation step for obtaining a coefficient;
A coefficient generation method comprising: a coefficient storage step for storing the coefficient obtained in the coefficient calculation step in a coefficient storage means in association with the class classified in the class classification step.
JP2005290375A 2005-10-03 2005-10-03 Coefficient generation apparatus and coefficient generation method Expired - Lifetime JP4240322B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005290375A JP4240322B2 (en) 2005-10-03 2005-10-03 Coefficient generation apparatus and coefficient generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005290375A JP4240322B2 (en) 2005-10-03 2005-10-03 Coefficient generation apparatus and coefficient generation method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP20835995A Division JP3748115B2 (en) 1995-07-24 1995-07-24 Image data decoding apparatus and image data decoding method

Publications (2)

Publication Number Publication Date
JP2006094541A true JP2006094541A (en) 2006-04-06
JP4240322B2 JP4240322B2 (en) 2009-03-18

Family

ID=36234968

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005290375A Expired - Lifetime JP4240322B2 (en) 2005-10-03 2005-10-03 Coefficient generation apparatus and coefficient generation method

Country Status (1)

Country Link
JP (1) JP4240322B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351558A (en) * 2018-04-03 2019-10-18 朱政 A kind of encoding video pictures compression efficiency method for improving based on intensified learning

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190003497A (en) 2016-05-02 2019-01-09 소니 주식회사 Image processing apparatus and image processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351558A (en) * 2018-04-03 2019-10-18 朱政 A kind of encoding video pictures compression efficiency method for improving based on intensified learning
CN110351558B (en) * 2018-04-03 2021-05-25 杭州微帧信息科技有限公司 Video image coding compression efficiency improving method based on reinforcement learning

Also Published As

Publication number Publication date
JP4240322B2 (en) 2009-03-18

Similar Documents

Publication Publication Date Title
JP4493215B2 (en) Image compression using directional prediction coding method of wavelet coefficients
TWI301953B (en) Methods and apparatuses for video encoding
US5293230A (en) Pyramidal encoder for encoding error images
KR100601743B1 (en) Image processing device and method, and transmission medium, transmission method and image format
JP2008507190A (en) Motion compensation method
JP5073004B2 (en) Image coding apparatus, image coding method, image decoding apparatus, and image decoding method
JPH07147681A (en) Hierarchical coding/decoding device for digital image signal
US11856210B2 (en) Apparatuses, methods, computer programs and computer-readable media
JP2001519988A (en) System for extracting coding parameters from video data
JP4240322B2 (en) Coefficient generation apparatus and coefficient generation method
US7450769B2 (en) Image processing method for facilitating data transmission
JP3748115B2 (en) Image data decoding apparatus and image data decoding method
JP3758211B2 (en) Hierarchical coding apparatus and method for digital image signal, and decoding apparatus and method
JP2007116731A (en) Image signal processing method
JP3759537B2 (en) Image signal transmission apparatus and image signal transmission method
JPH10285604A (en) Optimum video compression method and system therefor by single processing stage
JP3774201B2 (en) Image processing device
JP3716997B2 (en) Image conversion method and apparatus
JPH08307835A (en) Classification adaptive processing unit and its method
JPH08186827A (en) Hierarchical coder for digital image signal
JP3627256B2 (en) Apparatus and method for receiving / reproducing digital image signal
JP4353294B2 (en) Information signal conversion apparatus and method
JP3831955B2 (en) Class classification adaptive processing apparatus and method
JP2584854B2 (en) Image coding method
JPS63256080A (en) Decoder for block coding

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080619

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080814

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080911

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081110

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20081204

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20081217

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120109

Year of fee payment: 3

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120109

Year of fee payment: 3

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130109

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term