JP2002016808A - Coding and decoding device, coding and decoding methods, and computer-readable record medium for executing methods - Google Patents

Coding and decoding device, coding and decoding methods, and computer-readable record medium for executing methods

Info

Publication number
JP2002016808A
JP2002016808A JP2000137826A JP2000137826A JP2002016808A JP 2002016808 A JP2002016808 A JP 2002016808A JP 2000137826 A JP2000137826 A JP 2000137826A JP 2000137826 A JP2000137826 A JP 2000137826A JP 2002016808 A JP2002016808 A JP 2002016808A
Authority
JP
Japan
Prior art keywords
color
signal
component
inverse
conversion
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
JP2000137826A
Other languages
Japanese (ja)
Other versions
JP3999442B2 (en
Inventor
Atsuka Matsuura
熱河 松浦
Takahiro Yagishita
高弘 柳下
Yukiko Yamazaki
由希子 山崎
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2000137826A priority Critical patent/JP3999442B2/en
Publication of JP2002016808A publication Critical patent/JP2002016808A/en
Application granted granted Critical
Publication of JP3999442B2 publication Critical patent/JP3999442B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a coding device for simplifying a coding circuit and simplifying quantization by utilizing the positional correlation of each component before color transformation, and then by carrying out the color transformation. SOLUTION: In each buffer shown in Figure 2, image data consisting of components of colors R, G, and B read from a scanner is subjected to transformation utilizing position correction for each color of R, G, and B in each of position correlation conversion parts 504, 505, and 506. After that, the DC constituent of each component is subjected to color transformation at a color conversion part 507 to become DC brightness and DC color signals, and then is quantified at quantization and coding parts 510 and 511. The AC component of each component is subjected to a first-stage quantization at an AC component quantization part 508, is subjected to the color transformation at a color transformation part 509 to become AC brightness and AC color signals, and is subjected to a second-stage quantization at the quantization and coding parts 510 and 511.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ディジタル複写
機、ファクシミリ装置などの画像形成装置で使用される
符号化装置、復号化装置、符号化方法、復号化方法、お
よびその方法を実行するためのコンピュータが読取可能
な記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an encoding apparatus, a decoding apparatus, an encoding method, a decoding method and an encoding method for use in an image forming apparatus such as a digital copying machine and a facsimile apparatus. The present invention relates to a computer-readable recording medium.

【0002】[0002]

【従来の技術】近年、カラー画像の需要は年々増加し、
また高画質の要望に答えるべく高解像度化が進行してい
る。このような状況下で、メモリ節約のためカラー画像
を圧縮したいという需要が高くなっている。
2. Description of the Related Art In recent years, demand for color images has been increasing year by year.
In addition, higher resolution is being developed in order to respond to demands for higher image quality. Under such circumstances, there is an increasing demand for compressing color images to save memory.

【0003】従来、カラー画像の圧縮法として、まず色
変換を行ない画像情報を明度信号・色信号に分けてか
ら、色信号を明度信号よりも多く削減する量子化を行な
う手法が用いられている。これは色変換により明度信号
に情報を集中させることで効率的に重要度の高い情報を
残そうという発想に基づくものである。
Conventionally, as a method of compressing a color image, a method of first performing color conversion to divide image information into a lightness signal and a color signal, and then performing quantization to reduce the color signal more than the lightness signal has been used. . This is based on the idea of efficiently leaving information of high importance by concentrating information on the brightness signal by color conversion.

【0004】例えば、昭和61年6月3、4日開催の
「昭和61年度画像電子学会 第14回全国大会」の予
稿集に記載されているNo.24「均等色空間に基づく
カラー画像の符号化」(大島、門馬、窪田)における手
法を図40に示す。図40において、RGB−Lab変
換部101において色変換(RGB→Lab変換)され
たカラー画像データは、色差平均化部112、122に
おいて、劣化させても画質上影響の少ない色信号a、b
のみが2×2画素ブロック単位で4画素平均化される。
その後、画像データは、明度信号と色信号が夫々輝度サ
ンプリング部103、色差サンプリング部113、12
3でサブサンプリングされ、符号化部134で符号化さ
れる。
[0004] For example, No. 1 described in the proceedings of the “14th Annual Meeting of the Institute of Image Electronics Engineers of Japan in 1986” held on June 3 and 4 of 1986. FIG. 40 shows a method in "Encoding a color image based on a uniform color space" (Oshima, Kadoma, Kubota). In FIG. 40, color image data that has been subjected to color conversion (RGB → Lab conversion) in the RGB-Lab conversion unit 101 are subjected to color difference averaging units 112 and 122 to produce color signals a and b that have little effect on image quality even if they are deteriorated.
Only four pixels are averaged in 2 × 2 pixel block units.
After that, the image data includes the brightness signal and the chrominance signal, respectively, of the luminance sampling unit 103, the color difference
3 and is encoded by the encoding unit 134.

【0005】また、特開昭63−9282号公報記載の
技術は同様な考えに基づく手法を図41に示す。図41
において、各色(R、G、B)のブロック単位毎に、色
変換部202で色変換されたカラー画像データは、輝度
直交変換部203で明度信号が直交変換されて直流成分
および交流成分に変換され、直流・交流成分ともに量子
化・符号化部204で量子化・符号化され、他方、色信
号は、色差代表色算出部213、223でブロック内の
情報を1色で表した代表色(実施例ではブロック平均
値)が算出された後、量子化・符号化部214、224
で代表色のみが量子化・符号化される。
FIG. 41 shows a technique based on a similar idea in the technique described in Japanese Patent Application Laid-Open No. 63-9282. FIG.
In the color image data color-converted by the color conversion unit 202 for each color (R, G, B) block unit, the brightness signal is orthogonally transformed by the luminance orthogonal transformation unit 203 and converted into a DC component and an AC component. The DC and AC components are both quantized and coded by the quantization and coding unit 204, while the color signal is represented by a representative color (one color representing the information in the block by the color difference representative color calculation units 213 and 223). After the block average value is calculated in the embodiment, the quantization / encoding units 214 and 224
, Only the representative color is quantized and encoded.

【0006】さらに、特開平6−245079号公報記
載の技術を図42に示す。図42において、色変換部3
02で、各色毎に所定の単位毎に色変換されたカラー画
像データは、輝度直流・交流変換部303、色差直流・
交流変換部313で明度信号・色信号とも直流・交流成
分に変換され、量子化・符号化部304、314、32
4では、明度信号・色信号の交流成分が互いの振幅の比
を用いて量子化され、また、量子化・符号化部314、
324では、色信号の直流成分が色差の低い情報ほど細
かく量子化されるような非線形量子化を用いて量子化さ
れる。
FIG. 42 shows a technique described in Japanese Patent Application Laid-Open No. 6-245079. In FIG. 42, the color conversion unit 3
02, the color image data color-converted for each color in a predetermined unit is converted into a luminance DC / AC
Both the lightness signal and the chrominance signal are converted into DC / AC components by an AC conversion unit 313, and the quantization / encoding units 304, 314, 32
In 4, the AC components of the brightness signal and the color signal are quantized using the ratio of their amplitudes, and the quantization / encoding unit 314,
At 324, the DC component of the color signal is quantized using non-linear quantization such that information with a lower color difference is finely quantized.

【0007】このように、従来のカラー画像の符号化
は、まず色変換により情報を偏らせ、その後に、必要に
応じ明度信号・色信号毎に位置的相関を用いてさらに情
報を偏らせることを基本的な処理の流れとしていた。
As described above, in the conventional color image coding, information is first biased by color conversion, and then, if necessary, the information is further biased using positional correlation for each of the brightness signal and the color signal. Was the basic processing flow.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、かかる
従来の方式は、必ずしもカラー画像の符号化に最適な方
式というわけではなく、回路規模の面で無駄が多かっ
た。具体的には、色同士の相関よりも相関の強い位置
的相関を処理の上流で用いないことにより、本来小規模
または少数でよいはずの色変換回路が増大したり、ま
た、色変換してから量子化することにより明度信号と色
信号に対し別々の量子化テーブルを設けなければならな
い、といった問題がある。
However, such a conventional method is not always the most suitable for encoding a color image, and is wasteful in terms of circuit scale. Specifically, by not using a positional correlation having a stronger correlation than the correlation between colors upstream of the processing, the number of color conversion circuits that should be small or small in number is increased, or color conversion is performed. Therefore, there is a problem that separate quantization tables must be provided for the lightness signal and the color signal by performing quantization from.

【0009】本発明は、上記課題に鑑みてなされたもの
であり、色変換の前に各コンポーネントの位置的相関を
まず利用し、次いで色変換を行なうことにより、符号化
回路の簡易化・量子化の簡略化を図ることが可能な符号
化装置、復号化装置、符号化方法、復号化方法、および
その方法を実行するためのコンピュータが読取可能な記
録媒体を提供することである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problem, and simplifies an encoding circuit and performs quantum conversion by first utilizing the positional correlation of each component before performing color conversion and then performing color conversion. It is an object of the present invention to provide an encoding device, a decoding device, an encoding method, a decoding method, and a computer-readable recording medium for executing the method, which can simplify the encoding.

【0010】[0010]

【課題を解決するための手段】上述の課題を解決するた
めに、請求項1にかかる発明は、カラー画像を構成する
各色成分である複数のコンポーネントで構成されるカラ
ー画像を圧縮して符号情報を生成する符号化装置におい
て、各コンポーネントの情報を画像の1次元または2次
元の位置的相関を用いて情報量に偏りが生じるように変
換する第1の変換手段と、前記第1の変換手段による変
換後の情報に対し変換を行ない、明度信号と色信号を得
る第2の変換手段と、前記第1の変換手段および/また
は前記第2の変換手段の変換により得られた係数に対し
量子化を行なう量子化手段と、を備えたものである。
In order to solve the above-mentioned problems, the present invention according to claim 1 compresses a color image composed of a plurality of components, each of which is a color component constituting a color image, by compressing code information. And a first conversion unit that converts information of each component so as to cause a bias in the amount of information using one-dimensional or two-dimensional positional correlation of an image, and the first conversion unit. A second conversion means for converting the information after conversion by the first conversion means to obtain a lightness signal and a color signal, and a quantum conversion means for converting the coefficient obtained by the conversion of the first conversion means and / or the second conversion means. And quantization means for performing quantization.

【0011】上記発明によれば、第1の変換手段は各コ
ンポーネントの情報を画像の1次元または2次元の位置
的相関を用いて情報量に偏りが生じるように変換し、第
2の変換手段は第1の変換手段による変換後の情報に対
して変換を行ない、明度信号と色信号を得て、量子化手
段は、第1の変換手段および/または第2の変換手段の
変換により得られた係数に対し量子化を行なう。
According to the above invention, the first conversion means converts the information of each component so as to cause a bias in the information amount using the one-dimensional or two-dimensional positional correlation of the image, and the second conversion means. Performs conversion on the information after conversion by the first conversion unit to obtain a lightness signal and a color signal, and the quantization unit is obtained by conversion of the first conversion unit and / or the second conversion unit. Quantization is performed on the coefficients.

【0012】また、請求項2にかかる発明は、カラー画
像を構成する各色成分である複数のコンポーネントで構
成されるカラー画像を圧縮して符号情報を生成する符号
化装置において、各コンポーネントの情報を所定の単位
毎に直流成分と交流成分とに分離する分離手段と、前記
分離手段により分離された交流成分を、明度信号と色信
号とに変換して交流明度信号と交流色信号を得る変換手
段と、前記変換手段により得られた交流明度信号および
/または交流色信号を量子化する量子化手段と、を備え
たものである。
According to a second aspect of the present invention, there is provided an encoding apparatus which generates code information by compressing a color image composed of a plurality of components, each of which is a color component constituting a color image. Separating means for separating a DC component and an AC component for each predetermined unit, and converting means for converting the AC component separated by the separating means into a brightness signal and a color signal to obtain an AC brightness signal and an AC color signal And a quantizing means for quantizing the AC lightness signal and / or the AC color signal obtained by the converting means.

【0013】上記発明によれば、分離手段は各コンポー
ネントの情報を所定の単位毎に直流成分と交流成分とに
分離し、変換手段は分離手段により分離された交流成分
を明度信号と色信号とに変換して交流明度信号と交流色
信号を得て、量子化手段は変換手段により得られた交流
明度信号および/または交流色信号を量子化する。
According to the above invention, the separating means separates the information of each component into a DC component and an AC component for each predetermined unit, and the converting means converts the AC component separated by the separating means into a brightness signal and a color signal. To obtain an AC lightness signal and an AC color signal, and the quantization means quantizes the AC lightness signal and / or the AC color signal obtained by the conversion means.

【0014】また、請求項3にかかる発明は、カラー画
像を構成する各色成分である複数のコンポーネントで構
成されるカラー画像を圧縮して符号情報を生成する符号
化装置において、各コンポーネントの情報を所定の単位
毎に直流成分と交流成分とに分離する分離手段と、前記
分離手段により分離された交流成分を量子化する交流成
分量子化手段と、前記分離手段により分離された直流成
分を明度信号と色信号とに変換して直流明度信号と直流
色信号を得る第1の変換手段と、前記第1の量子化手段
により量子化された交流成分を、明度信号と色信号とに
変換して交流明度信号と交流色信号を得る第2の変換手
段と、前記第2の変換手段により変換された交流明度信
号および/または交流色信号を量子化する量子化手段
と、を備えたものである。
According to a third aspect of the present invention, there is provided an encoding apparatus which generates code information by compressing a color image composed of a plurality of components, each of which is a color component constituting a color image. Separation means for separating a DC component and an AC component for each predetermined unit, AC component quantization means for quantizing the AC component separated by the separation means, and a brightness signal for separating the DC component separated by the separation means A first conversion means for converting the AC component quantized by the first quantization means into a brightness signal and a color signal. A second conversion means for obtaining an AC lightness signal and an AC color signal; and a quantization means for quantizing the AC lightness signal and / or the AC color signal converted by the second conversion means. That.

【0015】上記発明によれば、分離手段は各コンポー
ネントの情報を所定の単位毎に直流成分と交流成分とに
分離し、交流成分量子化手段は分離手段により分離され
た交流成分を量子化し、第1の変換手段は分離手段によ
り分離された直流成分を明度信号と色信号とに変換して
直流明度信号と直流色信号を得て、第2の変換手段は第
1の量子化手段により量子化された交流成分を、明度信
号と色信号とに変換して交流明度信号と交流色信号を得
て、量子化手段は第2の変換手段により変換された交流
明度信号および/または交流色信号を量子化する。
According to the above invention, the separating means separates the information of each component into a DC component and an AC component for each predetermined unit, and the AC component quantizing means quantizes the AC component separated by the separating means. The first converting means converts the DC component separated by the separating means into a brightness signal and a chrominance signal to obtain a DC lightness signal and a DC chrominance signal, and the second converting means performs quantization by the first quantizing means. The converted AC component is converted into a brightness signal and a chrominance signal to obtain an AC brightness signal and an AC chrominance signal, and the quantizing unit converts the AC brightness signal and / or the AC chrominance signal converted by the second conversion unit. Is quantized.

【0016】また、請求項4にかかる発明は、カラー画
像を構成する各色成分である複数のコンポーネントで構
成されるカラー画像を圧縮するカラー画像の符号化装置
において、各コンポーネントの情報を所定の単位毎に直
流成分と交流成分とに分離する分離手段と、前記分離手
段で分離された直流成分を明度信号と色信号とに変換し
て直流明度信号と直流色信号を得る変換手段と、前記分
離手段で分離された交流成分を量子化する量子化手段
と、を備えたものである。上記発明によれば、分離手段
は各コンポーネントの情報を所定の単位毎に直流成分と
交流成分とに分離し、変換手段は分離手段で分離された
直流成分を明度信号と色信号とに変換して直流明度信号
と直流色信号を得て、量子化手段は分離手段で分離され
た交流成分を量子化する。
According to a fourth aspect of the present invention, there is provided a color image encoding apparatus for compressing a color image composed of a plurality of components, each of which is a color component constituting a color image, wherein information of each component is stored in a predetermined unit. Separation means for separating a DC component and an AC component for each, a conversion means for converting the DC component separated by the separation means into a brightness signal and a color signal to obtain a DC brightness signal and a DC color signal, Quantization means for quantizing the AC component separated by the means. According to the invention, the separating unit separates the information of each component into a DC component and an AC component for each predetermined unit, and the converting unit converts the DC component separated by the separating unit into a brightness signal and a color signal. Then, the DC brightness signal and the DC color signal are obtained, and the quantization means quantizes the AC component separated by the separation means.

【0017】また、請求項5にかかる発明は、請求項2
または請求項3に記載の発明において、前記量子化手段
は、交流明度信号および/または交流色信号を量子化す
る際に、ベクトル量子化を行なうものである。上記発明
によれば、量子化手段は、交流明度信号および/または
交流色信号を量子化する際に、ベクトル量子化を行な
う。
The invention according to claim 5 is based on claim 2.
Alternatively, in the invention described in claim 3, the quantization means performs vector quantization when quantizing the AC brightness signal and / or the AC chrominance signal. According to the invention, the quantization means performs vector quantization when quantizing the AC brightness signal and / or the AC chrominance signal.

【0018】また、請求項6にかかる発明は、請求項
2、請求項3、または請求項5に記載の発明において、
前記量子化手段は、交流明度信号および交流色信号を量
子化する際に、交流明度信号と交流色信号の比率を量子
化するものである。上記発明によれば、量子化手段は、
交流明度信号および交流色信号を量子化する際に、交流
明度信号と交流色信号の比率を量子化する。
The invention according to claim 6 is the invention according to claim 2, 3, or 5, wherein
The quantization means quantizes the ratio between the AC lightness signal and the AC color signal when quantizing the AC lightness signal and the AC color signal. According to the above invention, the quantization means includes:
When quantizing the AC lightness signal and the AC color signal, the ratio between the AC lightness signal and the AC color signal is quantized.

【0019】また、請求項7にかかる発明は、請求項4
に記載の発明において、前記量子化手段は、前記交流成
分のうち、最もエッジが大きな特定色についてベクトル
量子化し、他の色は当該特定色のベクトルとの比を量子
化するものである。上記発明によれば、量子化手段は、
交流成分のうち、最もエッジが大きな特定色についてベ
クトル量子化し、他の色は当該特定色のベクトルとの比
を量子化する。
The invention according to claim 7 is based on claim 4.
In the invention described in (1), the quantization means vector-quantizes a specific color having the largest edge among the AC components, and quantizes a ratio of another color to a vector of the specific color. According to the above invention, the quantization means includes:
Of the AC components, vector quantization is performed on the specific color having the largest edge, and the ratio of the other colors to the vector of the specific color is quantized.

【0020】また、請求項8にかかる発明は、請求項2
〜請求項7のいずれか1つに記載の符号化装置におい
て、前記量子化手段は、ベクトル量子化する場合には、
閾値を量子化値の中間地点よりも大きめに設定すること
とした。上記発明によれば、前記量子化手段は、ベクト
ル量子化する場合には、閾値を量子化値の中間地点より
も大きめに設定する。
The invention according to claim 8 is the invention according to claim 2.
The encoding device according to any one of claims 1 to 7, wherein the quantization unit performs vector quantization.
The threshold is set to be larger than the intermediate point of the quantization value. According to the above invention, when performing the vector quantization, the quantization means sets the threshold value to be larger than the intermediate point of the quantization value.

【0021】また、請求項9にかかる発明は、請求項3
に記載の発明において、前記交流成分量子化手段は、1
つの係数または全係数の下位ビットを削除して量子化を
行うものである。上記発明によれば、交流成分量子化手
段は、1つの係数または全係数の下位ビットを削除して
量子化を行う。
According to a ninth aspect of the present invention, there is provided the third aspect of the present invention.
In the invention described in (1), the AC component quantization means includes:
Quantization is performed by deleting lower bits of one coefficient or all coefficients. According to the invention, the AC component quantization means performs quantization by deleting lower bits of one coefficient or all coefficients.

【0022】また、請求項10にかかる発明は、請求項
3に記載の発明において、前記交流成分量子化手段は、
画像の斜めエッジに対応する係数を削除するものであ
る。上記発明によれば、交流成分量子化手段は、画像の
斜めエッジに対応する係数を削除する。
According to a tenth aspect of the present invention, in the third aspect of the invention, the AC component quantizing means comprises:
The coefficient corresponding to the diagonal edge of the image is deleted. According to the above invention, the AC component quantization means deletes the coefficient corresponding to the oblique edge of the image.

【0023】また、請求項11にかかる発明は、請求項
2〜請求項10のいずれか1つに記載の発明において、
前記分離手段は、変換単位である所定の単位内部の画素
のみを参照して変換を行うものである。上記発明によれ
ば、分離手段は、変換単位である所定の単位内部の画素
のみを参照して変換を行う。
The invention according to claim 11 is the invention according to any one of claims 2 to 10, wherein
The separation means performs conversion with reference to only pixels inside a predetermined unit which is a conversion unit. According to the above invention, the separation unit performs the conversion with reference to only the pixels inside the predetermined unit which is the conversion unit.

【0024】また、請求項12にかかる発明は、請求項
11に記載の発明において、前記分離手段は、ハールウ
ェーブレット変換を行うものである。上記発明によれ
ば、分離手段は、ハールウェーブレット変換を行う。
According to a twelfth aspect of the present invention, in the eleventh aspect, the separation means performs a Haar wavelet transform. According to the above invention, the separating means performs the Haar wavelet transform.

【0025】また、請求項13にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像を圧縮して符号情報を生成するカ
ラー画像の符号化装置において、各コンポーネントの情
報を所定の単位毎にBTC変換する変換手段と、前記B
TC変換された情報を色変換する色変換手段と、前記色
変換手段で色変換された情報を量子化する量子化手段
と、を備えたものである。上記発明によれば、変換手段
は各コンポーネントの情報を所定の単位毎にBTC変換
し、色変換手段はBTC変換された情報を色変換し、量
子化手段は色変換手段で色変換された情報を量子化す
る。
According to a thirteenth aspect of the present invention, there is provided a color image coding apparatus for generating code information by compressing a color image composed of a plurality of components which are color components forming a color image. Conversion means for performing BTC conversion of the information of
The color conversion device includes a color conversion unit that performs color conversion on the TC-converted information, and a quantization unit that quantizes the information that has been color-converted by the color conversion unit. According to the above invention, the conversion unit performs BTC conversion on the information of each component for each predetermined unit, the color conversion unit performs color conversion on the BTC converted information, and the quantization unit performs the color conversion on the information converted by the color conversion unit. Is quantized.

【0026】また、請求項14にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像を圧縮して符号情報を生成するカ
ラー画像の符号化装置において、前記各コンポーネント
の情報を、所定の単位毎に画像の1次元または2次元の
位置的相関を用いて情報量に偏りが生じるように変換す
る第1の変換手段と、前記第1の変換手段による変換後
の情報に対し変換を行ない、明度信号と色信号とを得る
第2の変換手段と、前記所定の単位毎に画像の領域を判
定する領域判定手段と、前記第1の変換手段および/ま
たは前記第2の変換手段の変換により得られた係数に対
し、前記領域判定手段の判定結果に従い領域毎に異なる
量子化を行なう量子化手段と、前記領域判定手段により
判定された領域を識別するためのフラグ情報を作成する
フラグ情報作成手段と、を備えたものである。
According to a fourteenth aspect of the present invention, there is provided a color image encoding apparatus for compressing a color image composed of a plurality of components which are color components constituting a color image to generate code information. First conversion means for converting the information of the component using a one-dimensional or two-dimensional positional correlation of an image for each predetermined unit so that the amount of information is biased; and after conversion by the first conversion means. Second conversion means for performing conversion on the information of (i) and (ii) to obtain a lightness signal and a color signal; area determination means for determining an image area for each of the predetermined units; and first conversion means and / or Quantizing means for performing different quantization for each of the coefficients obtained by the conversion by the second converting means in accordance with the determination result of the area determining means; and determining the area determined by the area determining means. A flag information generation means for generating a flag information for another, but with the.

【0027】上記発明によれば、第1の変換手段は各コ
ンポーネントの情報を、所定の単位毎に画像の1次元ま
たは2次元の位置的相関を用いて情報量に偏りが生じる
ように変換し、第2の変換手段は第1の変換手段による
変換後の情報に対し変換を行ない、第2の変換手段は明
度信号と色信号とを得て、領域判定手段は所定の単位毎
に画像の領域を判定し、量子化手段は第1の変換手段お
よび/または第2の変換手段の変換により得られた係数
に対し、領域判定手段の判定結果に従い領域毎に異なる
量子化を行ない、フラグ情報作成手段は領域判定手段に
より判定された領域を識別するためのフラグ情報を作成
する。
According to the invention, the first converting means converts the information of each component so that the information amount is biased by using the one-dimensional or two-dimensional positional correlation of the image for each predetermined unit. , The second converting means converts the information after the conversion by the first converting means, the second converting means obtains a lightness signal and a color signal, and the area judging means performs the conversion of the image every predetermined unit. The region is determined, and the quantization unit performs different quantization on the coefficient obtained by the conversion by the first conversion unit and / or the second conversion unit for each region in accordance with the determination result of the region determination unit, and outputs the flag information. The creating means creates flag information for identifying the area determined by the area determining means.

【0028】また、請求項15にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像を圧縮して符号情報を生成する符
号化装置において、前記各コンポーネントの情報を、所
定の単位毎に直流成分および交流成分に分離する分離手
段と、前記分離手段により分離された交流成分を量子化
する第1の量子化手段と、前記第1の量子化手段により
量子化された交流成分を、明度信号と色信号とに変換し
て交流明度信号と交流色信号とを得る変換手段と、前記
所定の単位毎に、前記交流成分、前記交流明度信号、お
よび前記交流色信号のうち少なくとも1つの振幅の大き
さに従って、前記所定の単位が複数の領域のうちいずれ
の領域に属するのかを判定する領域判定手段と、前記交
流明度信号および/または前記交流色信号に対し、前記
領域判定手段の判定結果に従って領域毎に異なる量子化
を行なう第2の量子化手段と、前記領域判定手段により
判定された領域を識別するためのフラグ情報を作成する
フラグ情報作成手段と、を備えたものである。
According to a fifteenth aspect of the present invention, in the coding apparatus for generating code information by compressing a color image composed of a plurality of components which are each color component constituting a color image, For separating a DC component and an AC component for each predetermined unit, a first quantizing unit for quantizing the AC component separated by the separating unit, and a quantizing unit for quantizing by the first quantizing unit. Conversion means for converting the AC component into a brightness signal and a color signal to obtain an AC brightness signal and an AC color signal; and for each of the predetermined units, the AC component, the AC brightness signal, and the AC color signal. Area determining means for determining which of the plurality of areas the predetermined unit belongs to according to the magnitude of at least one amplitude of the signal; Alternatively, a second quantizer for performing different quantization for each of the AC color signals in accordance with the determination result of the area determiner, and flag information for identifying the area determined by the area determiner are created. And flag information generating means.

【0029】上記発明によれば、分離手段は各コンポー
ネントの情報を、所定の単位毎に直流成分および交流成
分に分離し、第1の量子化手段は分離手段により分離さ
れた交流成分を量子化し、変換手段は第1の量子化手段
により量子化された交流成分を、明度信号と色信号とに
変換して交流明度信号と交流色信号とを得て、領域判定
手段は所定の単位毎に、交流成分、交流明度信号、前記
交流色信号のうち少なくとも1つの振幅の大きさに従っ
て、所定の単位が複数の領域のうちいずれの領域に属す
るのかを判定し、第2の量子化手段は交流明度信号およ
び/または交流色信号に対し、領域判定手段の判定結果
に従って領域毎に異なる量子化を行ない、フラグ情報作
成手段は領域判定手段により判定された領域を識別する
ためのフラグ情報を作成する。
According to the above invention, the separating means separates information of each component into a DC component and an AC component for each predetermined unit, and the first quantizing means quantizes the AC component separated by the separating means. The converting means converts the AC component quantized by the first quantizing means into a brightness signal and a color signal to obtain an AC brightness signal and an AC color signal, and the area determining means performs , The AC component, the AC lightness signal, and the AC color signal, according to at least one of the amplitudes, determines which of the plurality of regions the predetermined unit belongs to, and the second quantization means The brightness signal and / or the AC color signal are subjected to different quantization for each area according to the determination result of the area determining means, and the flag information creating means is configured to output flag information for identifying the area determined by the area determining means. To create.

【0030】また、請求項16にかかる発明は、請求項
15に記載の発明は、前記第2の量子化手段は、前記振
幅の大きさが小さい領域ほど、前記交流成分、または前
記交流明度信号および/もしくは前記交流色信号を粗く
量子化するものである。上記発明によれば、第2の量子
化手段は、振幅の大きさが小さい領域ほど、交流成分、
または交流明度信号および/もしくは交流色信号を粗く
量子化する。
The invention according to claim 16 is the invention according to claim 15, wherein the second quantizing means sets the AC component or the AC brightness signal in a region where the amplitude is smaller. And / or coarsely quantizes the AC color signal. According to the above invention, the second quantizing means sets the AC component,
Alternatively, the AC brightness signal and / or the AC color signal are roughly quantized.

【0031】また、請求項17にかかる発明は、請求項
14〜請求項16のいずれか1つに記載の発明におい
て、前記領域判定手段は、エッジ領域と非エッジ領域を
判定するものである。上記発明によれば、領域判定手段
は、エッジ領域と非エッジ領域を判定する。
According to a seventeenth aspect of the present invention, in the invention according to any one of the fourteenth to sixteenth aspects, the area determining means determines an edge area and a non-edge area. According to the above invention, the area determination means determines an edge area and a non-edge area.

【0032】また、請求項18にかかる発明は、請求項
14〜請求項17のいずれか1つに記載の発明におい
て、前記領域判定手段は、n(nは3以上の整数)段階
の領域を判定するものである。上記発明によれば、領域
判定手段は、n(nは3以上の整数)段階の領域を判定
する。
The invention according to claim 18 is the invention according to any one of claims 14 to 17, wherein the area judging means sets the area of n stages (n is an integer of 3 or more). It is to judge. According to the above invention, the region determination means determines a region of n stages (n is an integer of 3 or more).

【0033】また、請求項19にかかる発明は、請求項
14〜請求項18のいずれか1つに記載の発明におい
て、前記フラグ情報はフラグ専用のビットであり、また
は係数値を表す符号と一体に構成されることとした。上
記発明によれば、フラグ情報はフラグ専用のビットとし
ても良く、また、係数値を表す符号と一体に構成される
ことにしても良い。
According to a nineteenth aspect of the present invention, in the invention according to any one of the fourteenth to eighteenth aspects, the flag information is a flag-only bit or integrated with a code representing a coefficient value. It was decided to be composed. According to the above invention, the flag information may be a bit dedicated to the flag, or may be configured integrally with a code representing the coefficient value.

【0034】また、請求項20にかかる発明は、請求項
1〜請求項19のいずれか1つに記載の発明において、
前記符号情報として固定長符号を生成するものである。
上記発明によれば、符号情報として固定長符号を生成す
る。
According to a twentieth aspect of the present invention, there is provided the method according to any one of the first to nineteenth aspects, wherein
A fixed-length code is generated as the code information.
According to the above invention, a fixed-length code is generated as code information.

【0035】また、請求項21にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像の符号情報を復号化する復号化装
置において、前記符号情報を逆量子化して交流明度信
号、交流色信号、直流明度信号、および直流色信号を復
元する逆量子化手段と、前記交流明度信号および前記交
流色信号を逆色変換して交流信号を復元する第1の逆色
変換手段と、前記直流明度信号および前記直流色信号を
逆色変換して直流信号を復元する第2の逆色変換手段
と、前記第1の逆色変換手段で復元された交流信号を逆
量子化する交流逆量子化手段と、前記第2の逆色変換手
段で復元された直流信号および前記交流成分逆量子化手
段で逆量子化された交流信号を逆位置相関変換して、前
記カラー画像の各コンポーネントを復元する逆位置相関
変換手段と、を備えたものである。
According to a twenty-first aspect of the present invention, there is provided a decoding apparatus for decoding code information of a color image composed of a plurality of components, each of which is a color component constituting a color image, wherein the code information is dequantized. Inverse quantization means for restoring an AC lightness signal, an AC color signal, a DC lightness signal, and a DC color signal, and a first inverse means for inversely transforming the AC lightness signal and the AC color signal to restore an AC signal. A color conversion unit, a second inverse color conversion unit for performing inverse color conversion of the DC lightness signal and the DC color signal to restore a DC signal, and an AC signal restored by the first inverse color conversion unit. AC inverse quantizing means for quantizing, and the DC signal restored by the second inverse color transforming means and the AC signal inversely quantized by the AC component inverse quantizing means are subjected to inverse positional correlation conversion to obtain the color signal. Each component of the image Reverse position correlation transform means for restoring the Nento, those having a.

【0036】上記発明によれば、逆量子化手段は符号情
報を逆量子化して交流明度信号、交流色信号、直流明度
信号、および直流色信号を復元し、第1の逆色変換手段
は交流明度信号および交流色信号を逆色変換して交流信
号を復元し、第2の逆色変換手段は直流明度信号および
直流色信号を逆色変換して直流信号を復元し、交流逆量
子化手段は第1の逆色変換手段で復元された交流信号を
逆量子化し、逆位置相関変換手段は第2の逆変換手段で
復元された直流信号および交流逆量子化手段で逆量子化
された交流信号を逆位置相関変換して、カラー画像の各
コンポーネントを復元する。
According to the invention, the inverse quantization means inversely quantizes the code information to restore the AC lightness signal, the AC color signal, the DC lightness signal and the DC color signal, and the first inverse color conversion means A second inverse color conversion unit for performing inverse color conversion on the brightness signal and the AC color signal to restore the AC signal, and a second inverse color conversion unit for performing inverse color conversion on the DC brightness signal and the DC color signal to restore the DC signal; Is inversely quantized of the AC signal restored by the first inverse color conversion means, and the inverse positional correlation conversion means is the DC signal restored by the second inverse transformation means and the AC signal inversely quantized by the AC inverse quantization means. The signal is inversely correlated to recover each component of the color image.

【0037】また、請求項22にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像の符号情報を復号化する復号化装
置において、前記符号情報を逆量子化して交流明度信
号、交流色信号、および直流信号を復元する逆量子化手
段と、前記交流明度信号および前記交流色信号を逆色変
換して交流信号を復元する第1の逆色変換手段と、前記
第1の逆色変換手段で復元された交流信号を逆量子化す
る交流逆量子化手段と、前記直流信号および前記交流逆
量子化手段で逆量子化された交流信号を逆位置相関変換
して前記カラー画像の各コンポーネントを復元する逆位
置相関変換手段と、を備えたものである。
According to a twenty-second aspect of the present invention, there is provided a decoding apparatus for decoding code information of a color image composed of a plurality of components which are color components forming a color image, wherein the code information is dequantized. An inverse quantization means for restoring the AC lightness signal, the AC color signal, and the DC signal, and a first inverse color conversion means for inversely transforming the AC lightness signal and the AC color signal to restore the AC signal; AC inverse quantization means for inversely quantizing the AC signal restored by the first inverse color conversion means, and inverse positional correlation transform of the DC signal and the AC signal inversely quantized by the AC inverse quantization means. Inverse position correlation conversion means for restoring each component of the color image.

【0038】上記発明によれば、逆量子化手段は符号情
報を逆量子化して交流明度信号、交流色信号、および直
流信号を復元し、第1の逆量子化手段は交流明度信号お
よび交流色信号を逆色変換して交流信号を復元し、交流
逆量子化手段は第1の逆色変換手段で復元された交流信
号を逆量子化し、逆位置相関変換手段は直流信号および
交流逆量子化手段で逆量子化された交流信号を逆位置相
関変換してカラー画像の各コンポーネントを復元する。
According to the above invention, the inverse quantization means restores the AC lightness signal, the AC color signal, and the DC signal by inversely quantizing the code information, and the first inverse quantization means performs the AC lightness signal and the AC color signal. The AC signal is restored by inverse color conversion of the signal, the AC inverse quantization means inversely quantizes the AC signal restored by the first inverse color conversion means, and the inverse positional correlation conversion means restores the DC signal and AC inverse quantization. The AC signal dequantized by the means is subjected to inverse positional correlation conversion to restore each component of the color image.

【0039】また、請求項23にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像の符号情報を復号化する復号化装
置において、前記符号情報を逆量子化する逆量子化手段
と、前記逆量子化手段で逆量子化された情報を逆色変換
する逆色変換手段と、前記逆色変換手段で逆色変換され
た情報を逆BTC変換して前記カラー画像の各コンポー
ネントを復元する逆BTC手段と、を備えたものであ
る。上記発明によれば、逆量子化手段は符号情報を逆量
子化し、逆色変換手段は逆量子化手段で逆量子化された
情報を逆色変換し、逆BTC手段は逆色変換手段で逆色
変換された情報を逆BTC変換してカラー画像の各コン
ポーネントを復元する。
According to a twenty-third aspect of the present invention, in a decoding apparatus for decoding code information of a color image composed of a plurality of components, each of which is a color component constituting a color image, the code information is dequantized. Inverse quantization means for performing inverse color conversion on the information inversely quantized by the inverse quantization means, and inverse BTC conversion on the information inversely color transformed by the inverse color conversion means to produce the color Inverse BTC means for restoring each component of the image. According to the above invention, the inverse quantization means inversely quantizes the code information, the inverse color conversion means performs inverse color conversion on the information inversely quantized by the inverse quantization means, and the inverse BTC means performs inverse color conversion on the inverse color conversion means. The color-converted information is subjected to inverse BTC conversion to restore each component of the color image.

【0040】また、請求項24にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像の符号情報を復号化する復号化装
置において、フラグ情報から符号情報が属する領域を判
定する領域判定手段と、前記領域判定手段の判定結果に
従って、前記所定単位の符号情報を領域毎に異なる逆量
子化を行なって、直流明度信号および直流色信号、並び
に交流明度信号および交流色信号を復元する逆量子化手
段と、前記交流明度信号および前記交流色信号を逆色変
換して交流信号を復元する第1の逆色変換手段と、前記
直流明度信号および前記直流色信号を逆色変換して直流
信号を復元する第2の逆色変換手段と、前記第1の逆色
変換手段で復元された交流信号を逆量子化する交流逆量
子化手段と、前記第2の逆色変換手段で復元された直流
信号および前記交流逆量子化手段で逆量子化された交流
信号を逆位置相関変換して、前記カラー画像の各コンポ
ーネントを復元する逆位置相関変換手段と、を備えたも
のである。
According to a twenty-fourth aspect of the present invention, in a decoding apparatus for decoding code information of a color image composed of a plurality of components which are color components constituting a color image, the code information belongs to the flag information. A region determining unit for determining a region, and performing a different inverse quantization on the code information of the predetermined unit for each region in accordance with a determination result of the region determining unit to obtain a DC brightness signal and a DC color signal, and an AC brightness signal and an AC brightness signal. Inverse quantization means for restoring a color signal; first inverse color conversion means for inverse color transforming the AC lightness signal and the AC color signal to restore an AC signal; Second inverse color conversion means for performing inverse color conversion to restore a DC signal, AC inverse quantization means for inverse quantizing the AC signal restored by the first inverse color conversion means, Inverse position correlation conversion means for performing inverse position correlation conversion on the DC signal restored by the inverse color conversion means and the AC signal inversely quantized by the AC inverse quantization means to thereby restore each component of the color image; , Is provided.

【0041】上記発明によれば、領域判定手段はフラグ
情報から符号情報が属する領域を判定し、逆量子化手段
は領域判定手段の判定結果に従って、所定単位の符号情
報を領域毎に異なる逆量子化を行なって、直流明度信号
および直流色信号、並びに交流色信号および交流色信号
を復元し、第1の逆色変換手段は交流明度信号および前
記交流色信号を逆色変換して交流信号を復元し、第2の
逆色変換手段は直流明度信号および前記直流色信号を逆
色変換して直流信号を復元し、交流逆量子化手段は、第
1の逆色変換手段で復元された交流信号を逆量子化し、
逆位置変換手段は第2の逆色変換手段で復元された直流
信号および交流逆量子化手段で逆量子化された交流信号
を逆位置相関変換して、カラー画像の各コンポーネント
を復元する。
According to the above invention, the area determination means determines the area to which the code information belongs from the flag information, and the inverse quantization means separates the code information of a predetermined unit for each area according to the determination result of the area determination means. To restore the DC lightness signal and the DC color signal, and the AC color signal and the AC color signal, and the first inverse color conversion means performs the inverse color conversion of the AC lightness signal and the AC color signal to convert the AC signal. The second inverse color conversion means performs inverse color conversion on the DC brightness signal and the DC color signal to restore the DC signal, and the AC inverse quantization means performs AC recovery on the AC color signal restored by the first inverse color conversion means. Dequantizes the signal,
The inverse position conversion means performs inverse position correlation conversion of the DC signal restored by the second inverse color conversion means and the AC signal inversely quantized by the AC inverse quantization means to restore each component of the color image.

【0042】また、請求項25にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像の符号情報を復号化する復号化装
置において、フラグ情報から符号情報が属する領域を判
定する領域判定手段と、前記領域判定手段の判定結果に
従って、前記所定単位の符号情報を領域毎に異なる逆量
子化を行なって、直流明度信号、直流色信号、交流明度
信号、および交流色信号を復元する逆量子化手段と、前
記交流明度信号および前記交流色信号を逆色変換して交
流信号を復元する第1の逆色変換手段と、前記逆量子化
手段で復元された直流信号および前記第1の逆色変換手
段で逆量子化された交流信号を逆位置相関変換して、前
記カラー画像の各コンポーネントを復元する逆位置変換
手段と、を備えたものである。
According to a twenty-fifth aspect of the present invention, in a decoding apparatus for decoding code information of a color image composed of a plurality of components which are color components constituting a color image, the code information belongs from the flag information. Area determining means for determining an area, and performing a different inverse quantization on the code information of the predetermined unit for each area according to the determination result of the area determining means, to obtain a DC brightness signal, a DC color signal, an AC brightness signal, and an AC Inverse quantizing means for restoring a color signal, first inverse color transforming means for inversely transforming the AC lightness signal and the AC color signal to restore an AC signal, and DC restored by the inverse quantizing means. Inverse position conversion means for performing an inverse position correlation conversion on the signal and the AC signal inversely quantized by the first inverse color conversion means to restore each component of the color image. Than it is.

【0043】上記発明によれば、領域判定手段はフラグ
情報から符号情報が属する領域を判定し、逆量子化手段
は領域判定手段の判定結果に従って、所定単位の符号情
報を領域毎に異なる逆量子化を行なって直流明度信号お
よび直流色信号、並びに交流明度信号および交流色信号
を復元し、第1の逆色変換手段は交流明度信号および交
流色信号を逆色変換して交流信号を復元し、逆位置変換
手段は、前記逆量子化手段で復元された直流信号および
前記第1の逆色変換手段で逆量子化された交流信号を逆
位置変換して、前記カラー画像の各コンポーネントを復
元する。
According to the above invention, the area determining means determines the area to which the code information belongs from the flag information, and the inverse quantization means separates the code information of a predetermined unit for each area according to the determination result of the area determining means. To restore the DC lightness signal and the DC color signal, and the AC lightness signal and the AC color signal, and the first inverse color conversion means performs the inverse color conversion of the AC lightness signal and the AC color signal to restore the AC signal. The inverse position transforming means inversely transforms the DC signal restored by the inverse quantizing means and the AC signal inversely quantized by the first inverse color converting means to restore each component of the color image. I do.

【0044】また、請求項26にかかる発明は、請求項
21〜請求項25のいずれか1つに記載の発明におい
て、前記逆量子化手段は、前記直流明度信号を復元する
場合に中間値で復元するものである。上記発明によれ
ば、逆量子化手段は、直流明度信号を復元する場合に中
間値で復元する。
According to a twenty-sixth aspect of the present invention, in the invention according to any one of the twenty-first to twenty-fifth aspects, the inverse quantization means uses an intermediate value when the DC brightness signal is restored. It is to restore. According to the above invention, the inverse quantization means restores the DC brightness signal with an intermediate value.

【0045】また、請求項27にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像を圧縮して符号情報を生成する符
号化方法において、前記各コンポーネントの情報を画像
の1次元または2次元の位置的相関を用いて情報量に偏
りが生じるように変換する第1の工程と、前記第1の工
程による変換後の情報に対し変換を行ない、明度信号と
色信号を得る第2の工程と、前記第1の工程および/ま
たは前記第2の工程の変換により得られた係数に対し量
子化を行なう第3の工程と、を含むものである。
According to a twenty-seventh aspect of the present invention, there is provided an encoding method for compressing a color image composed of a plurality of components, each of which is a color component constituting a color image, to generate code information. A first step of transforming the information using a one-dimensional or two-dimensional positional correlation of the image so as to cause a bias in the amount of information; and performing a conversion on the information converted in the first step to obtain a brightness signal A second step of obtaining a color signal; and a third step of performing quantization on the coefficient obtained by the conversion of the first step and / or the second step.

【0046】上記発明によれば、各コンポーネントの情
報を画像の1次元または2次元の位置的相関を用いて情
報量に偏りが生じるように変換し、変換後の情報に対し
変換を行ない明度信号と色信号を得て、得られた係数に
対し量子化を行なうものである。
According to the above invention, the information of each component is converted using the one-dimensional or two-dimensional positional correlation of the image so that the amount of information is biased, and the converted information is converted to obtain a brightness signal. And color signals are obtained, and the obtained coefficients are quantized.

【0047】また、請求項28にかかる発明によれば、
カラー画像を構成する各色成分である複数のコンポーネ
ントで構成されるカラー画像を圧縮して符号情報を生成
する符号化方法において、前記各コンポーネントの情報
を所定の単位毎に直流成分と交流成分とに分離する第1
の工程と、前記分離された交流成分を、明度信号と色信
号とに変換して交流明度信号と交流色信号を得る第2の
工程と、前記交流明度信号および/または前記交流色信
号を量子化する第3の工程と、を含むものである。上記
発明によれば、各コンポーネントの情報を所定の単位毎
に直流成分と交流成分とに分離し、分離された交流成分
を明度信号と色信号とに変換して交流明度信号と交流色
信号を得て、交流明度信号および/または交流色信号を
量子化する。
According to the twenty-eighth aspect of the present invention,
In an encoding method for compressing a color image composed of a plurality of components as color components constituting a color image to generate code information, the information of each component is converted into a DC component and an AC component for each predetermined unit. First to separate
A second step of converting the separated AC component into a brightness signal and a color signal to obtain an AC brightness signal and an AC color signal; and quantizing the AC brightness signal and / or the AC color signal. And a third step of forming According to the above invention, information of each component is separated into a DC component and an AC component for each predetermined unit, and the separated AC component is converted into a brightness signal and a color signal, and the AC brightness signal and the AC color signal are converted. Then, the AC lightness signal and / or the AC color signal are quantized.

【0048】また、請求項29にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像を圧縮して符号情報を生成する符
号化方法において、前記各コンポーネントの情報を所定
の単位毎に直流成分と交流成分とに分離する第1の工程
と、前記分離された交流成分を量子化する第2の工程
と、前記分離された直流成分を明度信号と色信号とに変
換して直流明度信号と直流色信号を得る第3の工程と、
前記量子化された交流成分を、明度信号と色信号とに変
換して交流明度信号と交流色信号を得る第4の工程と、
前記変換された交流明度信号および/または交流色信号
を量子化する第5の工程とを含むものである。
According to a twenty-ninth aspect of the present invention, in the encoding method for generating code information by compressing a color image composed of a plurality of components which are color components forming a color image, A first step of separating the separated DC component into a DC component and an AC component for each predetermined unit, a second step of quantizing the separated AC component, and a step of dividing the separated DC component into a brightness signal and a color signal. A third step of obtaining a DC lightness signal and a DC color signal by converting
A fourth step of converting the quantized AC component into a brightness signal and a color signal to obtain an AC brightness signal and an AC color signal;
A fifth step of quantizing the converted AC lightness signal and / or AC color signal.

【0049】上記発明によれば、各コンポーネントの情
報を所定の単位毎に直流成分と交流成分とに分離し、分
離された交流成分を量子化し、分離された直流成分を明
度信号と色信号とに変換して直流明度信号と直流色信号
を得て、量子化された交流成分を、明度信号と色信号と
に変換して交流明度信号と交流色信号を得て、さらに、
変換された交流明度信号および/または交流色信号を量
子化する。
According to the above invention, information of each component is separated into a DC component and an AC component for each predetermined unit, the separated AC component is quantized, and the separated DC component is converted into a brightness signal and a color signal. To obtain a DC lightness signal and a DC color signal, and convert the quantized AC component into a lightness signal and a color signal to obtain an AC lightness signal and an AC color signal.
The converted AC lightness signal and / or AC color signal are quantized.

【0050】また、請求項30にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像を圧縮して符号情報を生成する符
号化方法において、前記各コンポーネントの情報を所定
の単位毎に直流成分と交流成分とに分離する第1の工程
と、前記分離された直流成分を明度信号と色信号とに変
換して直流明度信号と直流色信号を得る第2の工程と、
前記分離された交流信号を量子化する第3の工程と、を
含むものである。
According to a thirtieth aspect of the present invention, there is provided an encoding method for compressing a color image composed of a plurality of components, each of which is a color component constituting a color image, to generate code information. A first step of separating the DC component into a DC component and an AC component for each predetermined unit, and a second step of converting the separated DC component into a brightness signal and a color signal to obtain a DC brightness signal and a DC color signal. Process and
And a third step of quantizing the separated AC signal.

【0051】上記発明によれば、各コンポーネントの情
報を所定の単位毎に直流成分と交流成分とに分離し、分
離された直流成分を明度信号と色信号とに変換して直流
明度信号と直流色信号を得て、分離された交流信号を量
子化する。
According to the above invention, the information of each component is separated into a DC component and an AC component for each predetermined unit, and the separated DC component is converted into a brightness signal and a color signal to convert the DC brightness signal into a DC signal. A color signal is obtained and the separated AC signal is quantized.

【0052】また、請求項31にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像を圧縮して符号情報を得る符号化
方法において、前記各コンポーネントの情報を所定の単
位毎にBTC変換する第1の工程と、前記BTC変換さ
れた情報を色変換する第2の工程と、前記色変換された
情報を量子化する第3の工程と、を含むものである。上
記発明によれば、各コンポーネントの情報を所定の単位
毎にBTC変換し、BTC変換された情報を色変換し、
色変換された情報を量子化する。
According to a thirty-first aspect of the present invention, in the coding method for obtaining code information by compressing a color image composed of a plurality of components which are each color component forming a color image, The method includes a first step of performing BTC conversion for each predetermined unit, a second step of performing color conversion on the BTC-converted information, and a third step of quantizing the color-converted information. According to the invention, the information of each component is BTC-converted for each predetermined unit, and the BTC-converted information is color-converted,
The color-converted information is quantized.

【0053】また、請求項32にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像を圧縮して符号情報を生成する符
号化方法において、前記各コンポーネントの情報を、所
定の単位毎に画像の1次元又は2次元の位置的相関を用
いて情報量に偏りが生じるように変換する第1の工程
と、変換後の情報に対し変換を行ない、明度信号と色信
号とを得る第2の工程と、前記所定の単位毎に画像の領
域を判定する第3の工程と、前記第2の工程および/ま
たは前記第3の工程の変換により得られた係数に対し、
領域の判定結果に従い領域毎に異なる量子化を行なう第
4の工程と、前記判定された領域を識別するためのフラ
グ情報を作成する第5の工程と、を含むものである。
According to a thirty-second aspect of the present invention, there is provided an encoding method for generating code information by compressing a color image composed of a plurality of components, each of which is a color component constituting a color image. A first step of converting the information into a bias using a one-dimensional or two-dimensional positional correlation of an image for each predetermined unit, and performing a conversion on the converted information to obtain a brightness signal A second step of obtaining a color signal; a third step of determining an image area for each of the predetermined units; and a coefficient obtained by the conversion of the second step and / or the third step. On the other hand,
The method includes a fourth step of performing different quantization for each area in accordance with a result of the area determination, and a fifth step of creating flag information for identifying the determined area.

【0054】上記発明によれば、各コンポーネントの情
報を、所定の単位毎に画像の1次元又は2次元の位置的
相関を用いて情報量に偏りが生じるように変換し、変換
後の情報に対し変換を行ない、明度信号と色信号とを得
て、所定の単位毎に画像の領域を判定し、変換により得
られた係数に対し、領域の判定結果に従い領域毎に異な
る量子化を行なう第4の工程と、前記判定された領域を
識別するためのフラグ情報を作成する。
According to the above invention, the information of each component is converted so as to cause a bias in the amount of information by using a one-dimensional or two-dimensional positional correlation of an image for each predetermined unit, and the converted information is converted into the converted information. A conversion is performed to obtain a lightness signal and a color signal, a region of the image is determined for each predetermined unit, and a different quantization is performed on the coefficient obtained by the conversion for each region in accordance with the region determination result. Step 4 and flag information for identifying the determined area are created.

【0055】また、請求項33にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像を圧縮して符号情報を生成する符
号化方法において、前記各コンポーネントの情報を、所
定の単位毎に直流成分および交流成分に分離する第1の
工程と、前記分離された交流成分を量子化する第2の工
程と、前記量子化された交流成分を、明度信号と色信号
とに変換して交流明度信号と交流色信号とを得る第3の
工程と、前記所定の単位毎に、前記交流成分、前記交流
明度信号、前記交流色信号のうちの少なくとも1つの振
幅の大きさに従って、前記所定の単位が複数の領域のう
ちいずれの領域に属するかを判定する第4の工程と、前
記交流明度信号および/または前記交流色信号に対し、
前記領域の判定結果に従って領域毎に異なる量子化を行
なう第5の工程と、前記判定された領域を識別するため
のフラグ情報を作成する第6の工程と、を含むものであ
る。
According to a thirty-third aspect of the present invention, there is provided an encoding method for generating code information by compressing a color image composed of a plurality of components, each of which is a color component constituting a color image. A first step of separating the AC component into a DC component and an AC component for each predetermined unit, a second step of quantizing the separated AC component, and converting the quantized AC component into a brightness signal and a color signal. A third step of obtaining an AC lightness signal and an AC color signal by converting the signal into a signal, and for each of the predetermined units, an amplitude of at least one of the AC component, the AC lightness signal, and the AC color signal. A fourth step of determining which of the plurality of areas the predetermined unit belongs to according to the size; and for the AC lightness signal and / or the AC color signal,
The method includes a fifth step of performing different quantization for each area according to the determination result of the area, and a sixth step of creating flag information for identifying the determined area.

【0056】上記発明によれば、各コンポーネントの情
報を、所定の単位毎に直流成分および交流成分に分離
し、分離された交流成分を量子化し、量子化された交流
成分を、明度信号と色信号とに変換して交流明度信号と
交流色信号とを得て、所定の単位毎に、交流成分、交流
明度信号、交流色信号のうちの少なくとも1つの振幅の
大きさに従って、前述の所定の単位が複数の領域のうち
いずれの領域に属するかを判定し、交流明度信号および
/または交流色信号に対し、領域の判定結果に従って領
域毎に異なる量子化を行ない、判定された領域を識別す
るためのフラグ情報を作成する。
According to the above invention, information of each component is separated into a DC component and an AC component for each predetermined unit, the separated AC component is quantized, and the quantized AC component is converted into a brightness signal and a color signal. Into an AC signal, an AC color signal and an AC color signal, and for each predetermined unit, the AC component, the AC lightness signal, and the AC color signal according to the amplitude of at least one of the above-described predetermined values. It is determined which unit the unit belongs to among the plurality of regions, and the AC brightness signal and / or the AC color signal are subjected to different quantization for each region according to the region determination result, and the determined region is identified. Create flag information for

【0057】また、請求項34にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像の符号情報を復号化する復号化方
法において、前記符号情報を逆量子化して交流明度信
号、交流色信号、直流明度信号、および直流色信号を復
元する第1の工程と、前記交流明度信号および前記交流
色信号を逆色変換して交流信号を復元する第2の工程
と、前記直流明度信号および前記直流色信号を逆色変換
して直流信号を復元する第3の工程と、前記第1の逆色
変換手段で復元された交流信号を逆量子化する第4の工
程と、前記復元された直流信号および前記逆量子化され
た交流信号を逆位置相関変換して、前記カラー画像の各
コンポーネントを復元する第5の工程とを含むものであ
る。
According to a thirty-fourth aspect of the present invention, in the decoding method for decoding code information of a color image composed of a plurality of components which are color components constituting a color image, the code information is dequantized. A first step of restoring an AC lightness signal, an AC color signal, a DC lightness signal, and a DC color signal, and a second step of performing an inverse color conversion of the AC lightness signal and the AC color signal to restore an AC signal A third step of performing inverse color conversion on the DC lightness signal and the DC color signal to restore a DC signal; and a fourth step of inversely quantizing the AC signal restored by the first inverse color conversion unit. And a fifth step of performing an inverse position correlation transformation on the restored DC signal and the inversely quantized AC signal to restore each component of the color image.

【0058】上記発明によれば、符号情報を逆量子化し
て交流明度信号、交流色信号、直流明度信号、および直
流色信号を復元し、交流明度信号および交流色信号を逆
色変換して交流信号を復元し、直流明度信号および直流
色信号を逆色変換して直流信号を復元し、復元された交
流信号を逆量子化し、復元された直流信号および逆量子
化された交流信号を逆位置相関変換して、カラー画像の
各コンポーネントを復元する。
According to the above invention, the AC information signal, the AC color signal, the DC lightness signal, and the DC color signal are restored by dequantizing the code information, and the AC lightness signal and the AC color signal are inverse-color-converted to perform AC conversion. The signal is restored, the DC lightness signal and the DC color signal are inverse-color-converted to restore the DC signal, the restored AC signal is inversely quantized, and the restored DC signal and the inversely quantized AC signal are inverted. Correlation conversion is performed to restore each component of the color image.

【0059】また、請求項35にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像の符号情報を復号化する復号化方
法において、符号情報を逆量子化して交流明度信号、交
流色信号、直流明度信号、および直流色信号を復元する
第1の工程と、前記交流明度信号および前記交流色信号
を逆色変換して交流信号を復元する第2の工程と、前記
直流明度信号および前記直流色信号を逆色変換して直流
信号を復元する第3の工程と、前記復元された交流信号
を逆量子化する第4の工程と、前記復元された直流信号
および前記逆量子化された交流信号を逆位置相関変換し
て、前記カラー画像の各コンポーネントを復元する第5
の工程と、を含むものである。
According to a thirty-fifth aspect of the present invention, in the decoding method for decoding code information of a color image composed of a plurality of components which are color components constituting a color image, the code information is inversely quantized. A first step of restoring an AC lightness signal, an AC color signal, a DC lightness signal, and a DC color signal; and a second step of performing an inverse color conversion of the AC lightness signal and the AC color signal to restore an AC signal. A third step of performing inverse color conversion on the DC lightness signal and the DC color signal to restore a DC signal, a fourth step of inversely quantizing the restored AC signal, and the restored DC signal. And a fifth step of inversely correlating the inversely quantized AC signal to restore each component of the color image.
And the step of

【0060】上記発明によれば、符号情報を逆量子化し
て交流明度信号、交流色信号、直流明度信号、および直
流色信号を復元し、交流明度信号および交流色信号を逆
色変換して交流信号を復元し、直流明度信号および直流
色信号を逆色変換して直流信号を復元し、復元された交
流信号を逆量子化し、復元された直流信号および逆量子
化された交流信号を逆位置相関変換して前記カラー画像
の各コンポーネントを復元する。
According to the above invention, the AC information signal, the AC color signal, the DC lightness signal, and the DC color signal are restored by dequantizing the code information, and the AC lightness signal and the AC color signal are inverse-color-converted to perform AC conversion. The signal is restored, the DC lightness signal and the DC color signal are inverse-color-converted to restore the DC signal, the restored AC signal is inversely quantized, and the restored DC signal and the inversely quantized AC signal are inverted. The components of the color image are restored by correlation conversion.

【0061】また、請求項36にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像の符号情報を復号化する復号化方
法において、前記符号情報を逆量子化する第1の工程
と、前記逆量子化された情報を逆色変換する第2の工程
と、前記逆色変換手段で逆色変換された情報を逆BTC
変換して前記カラー画像の各コンポーネントを復元する
第3の工程と、を含むものである。上記発明によれば、
符号情報を逆量子化し、逆量子化された情報を逆色変換
し、逆色変換手段で逆色変換された情報を逆BTC変換
してカラー画像の各コンポーネントを復元する。
According to a thirty-sixth aspect of the present invention, in the decoding method for decoding code information of a color image composed of a plurality of components which are color components constituting a color image, the code information is dequantized. A second step of performing inverse color conversion of the inversely quantized information, and an inverse BTC of the information inversely converted by the inverse color conversion means.
Converting and restoring each component of the color image. According to the above invention,
The code information is inversely quantized, the inversely quantized information is inversely color-transformed, and the information subjected to the inverse color conversion by the inverse color conversion means is inversely BTC-transformed to restore each component of the color image.

【0062】また、請求項37にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されるカラー画像の符号情報を復号化する復号化方
法において、フラグ情報から符号情報が属する領域を判
定する第1の工程と、前記領域の判定結果に従って、前
記所定単位の符号情報を領域毎に異なる逆量子化を行な
って直流明度信号および直流色信号、並びに交流明度信
号および交流色信号を復元する第2の工程と、前記交流
明度信号および前記交流色信号を逆色変換して交流信号
を復元する第3の工程と、前記直流明度信号および前記
直流色信号を逆色変換して直流信号を復元する第4の工
程と、前記復元された交流信号を逆量子化する第5の工
程と、前記逆量子化された交流信号および復元された直
流信号を逆位置相関変換して、前記カラー画像の各コン
ポーネントを復元する第6の工程と、を含むものであ
る。
According to a thirty-seventh aspect of the present invention, in the decoding method for decoding code information of a color image composed of a plurality of components, each of which is a color component constituting a color image, the code information belongs to the flag information. A first step of judging an area, and performing a different inverse quantization on the code information of the predetermined unit for each area according to the judgment result of the area to obtain a DC lightness signal and a DC color signal, and an AC lightness signal and an AC color signal. A second step of restoring the AC lightness signal and the AC color signal, and a third step of restoring the AC signal by performing an inverse color conversion on the AC lightness signal and the AC color signal. A fourth step of restoring the DC signal, a fifth step of dequantizing the restored AC signal, and an inverse position phase transforming of the dequantized AC signal and the restored DC signal. Convert and is intended to include, a sixth step of restoring each component of the color image.

【0063】上記発明によれば、フラグ情報から符号情
報が属する領域を判定し、領域の判定結果に従って、前
記所定単位の符号情報を領域毎に異なる逆量子化を行な
って直流明度信号、直流色信号、交流明度信号、および
交流色信号を復元し、交流明度信号および交流色信号を
逆色変換して交流信号を復元し、直流明度信号および前
記直流色信号を逆色変換して直流信号を復元し、復元さ
れた交流信号を逆量子化し、逆量子化された交流信号お
よび復元された直流信号を逆位置相関変換して、カラー
画像の各コンポーネントを復元する。
According to the above invention, the area to which the code information belongs is determined from the flag information, and the code information of the predetermined unit is subjected to different inverse quantization for each area in accordance with the determination result of the area, so that the DC lightness signal and the DC color The signal, the AC light signal, and the AC color signal are restored, the AC light signal and the AC color signal are inverse-color-converted to restore the AC signal, and the DC light signal and the DC color signal are inverse-color-converted to convert the DC signal. The restored AC signal is inversely quantized, and the inversely quantized AC signal and the restored DC signal are subjected to inverse positional correlation transformation to restore each component of the color image.

【0064】また、請求項38にかかる発明は、カラー
画像を構成する各色成分である複数のコンポーネントで
構成されたカラー画像の符号情報を復号化する復号化方
法において、フラグ情報から符号情報が属する領域を判
定する第1の工程と、前記領域判定の結果に従って、前
記所定単位の符号情報を領域毎に異なる逆量子化を行な
って直流信号、交流色信号、および交流色信号を生成す
る第2の工程と、前記交流明度信号および前記交流色信
号を逆色変換して交流信号を復元する第3の工程と、前
記復元された交流信号を逆量子化する第4の工程と、前
記復元された直流信号および逆量子化された交流信号を
逆位置相関変換して、前記カラー画像の各コンポーネン
トを復元する第5の工程と、を含むものである。
According to a thirty-eighth aspect of the present invention, in a decoding method for decoding code information of a color image composed of a plurality of components, each of which is a color component constituting a color image, the code information belongs to the flag information. A first step of determining an area, and a second step of performing a different inverse quantization on the code information of the predetermined unit for each area according to a result of the area determination to generate a DC signal, an AC color signal, and an AC color signal. A third step of performing an inverse color conversion of the AC lightness signal and the AC color signal to restore the AC signal; a fourth step of inversely quantizing the restored AC signal; and And a fifth step of performing inverse positional correlation conversion on the DC signal and the inversely quantized AC signal to restore each component of the color image.

【0065】上記発明によれば、フラグ情報から符号情
報が属する領域を判定し、領域の判定の結果に従って、
所定単位の符号情報を領域毎に異なる逆量子化を行なっ
て直流信号、交流色信号、および交流色信号を生成し、
交流明度信号および交流色信号を逆色変換して交流信号
を復元し、復元された交流信号を逆量子化し、復元され
た直流信号および逆量子化された交流信号を逆位置相関
変換して、カラー画像の各コンポーネントを復元する。
According to the above invention, the area to which the code information belongs is determined from the flag information, and according to the result of the area determination,
A DC signal, an AC chrominance signal, and an AC chrominance signal are generated by performing a different inverse quantization on the code information of a predetermined unit for each region,
The AC lightness signal and the AC color signal are inverse-color-converted to restore the AC signal, the restored AC signal is inversely quantized, and the restored DC signal and the inversely quantized AC signal are inversely position-correlated transformed. Restore each component of the color image.

【0066】また、請求項39にかかる発明は、請求項
26〜請求項38のいずれか1つに記載の発明の各工程
を実行するためのプログラムを記録したものである。上
記発明によれば、記録媒体に記録されたプログラムをコ
ンピュータにより実行して、請求項26〜請求項38の
いずれか1つに記載の発明の各工程を実現する。
According to a thirty-ninth aspect of the present invention, there is recorded a program for executing each step of the invention according to any one of the twenty-sixth to thirty-eighth aspects. According to the above invention, the program recorded on the recording medium is executed by a computer to realize each step of the invention according to any one of claims 26 to 38.

【0067】[0067]

【発明の実施の形態】以下、本発明の好適な実施の形態
を図1〜図39を参照して詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below in detail with reference to FIGS.

【0068】本明細書において、「明度信号と色信号に
変換」することを単に「色変換」とし、よってRGB色
を変換する場合のみならず、周波数変換係数を「明度信
号と色信号に分離するのと同じ変換」で変換することも
「色変換」とし、そのような変換をする回路を「色変換
部」または「色変換回路」とする。無彩画像に対しては
色信号に対応する信号が0となる点で通常の色変換と共
通するからである。
In the present specification, “converting into a lightness signal and a color signal” is simply referred to as “color conversion”, and therefore, not only when converting RGB colors, but also when converting a frequency conversion coefficient into a lightness signal and a color signal. The conversion using the same conversion is also referred to as “color conversion”, and a circuit that performs such conversion is referred to as a “color conversion unit” or a “color conversion circuit”. This is because an achromatic image is common to normal color conversion in that a signal corresponding to a color signal becomes 0.

【0069】また、本明細書において、「量子化」と
は、広く情報を削減する手段をいい、例えば単純なビッ
ト削減やテーブル変換によりビット数を減らす手段の
他、情報の全てを破棄する場合も量子化と記述する。ま
た、本明細書では、HL、LH、HHを総称して「H」
と記載することがあり、例えば「YH」はYHL、YL
H、YHHの総称である。
In this specification, the term "quantization" refers to means for widely reducing information. For example, means for reducing the number of bits by simple bit reduction or table conversion, or when all information is discarded. Is also described as quantization. In this specification, HL, LH, and HH are collectively referred to as “H”.
For example, "YH" means YHL, YL
H, YHH.

【0070】図1は、本実施の形態にかかるデジタルカ
ラー複写機の信号処理系の構成を示すブロック図であ
る。ここでは、デジタルカラー複写機において、スキャ
ナから読み込まれたカラー画像データを符号化する場合
および符号化された符号情報を復号化する場合について
説明する。
FIG. 1 is a block diagram showing a configuration of a signal processing system of a digital color copying machine according to the present embodiment. Here, a case will be described in which a digital color copier encodes color image data read from a scanner and decodes encoded code information.

【0071】図1に示すデジタルカラー複写機は、原稿
のカラー画像データ(R、G、B)を読み取るスキャナ
401と、スキャナ401から入力されるカラー画像デ
ータ(R、G、B)を符号化(圧縮)する符号化器40
2と、符号化器402で符号化された圧縮符号(符号情
報)を格納するページメモリ403と、ページメモリ4
03に格納された符号化された圧縮符号(符号情報)を
復号化する復号化器404と、復号化器404で復号化
されたカラー画像データに対して、フィルタ処理・色変
換(RGB→CMYK変換)・階調処理等の処理を施し
て、書き込み系に出力するフィルタ・階調処理部405
とを備えている。
The digital color copying machine shown in FIG. 1 reads a color image data (R, G, B) of a document by a scanner 401 and encodes the color image data (R, G, B) inputted from the scanner 401. (Compressing) encoder 40
2, a page memory 403 for storing the compressed code (code information) encoded by the encoder 402, and a page memory 4
03, a decoder 404 for decoding the coded compression code (code information) stored in the storage unit 03, and filtering / color conversion (RGB → CMYK) on the color image data decoded by the decoder 404. A filter / gradation processing unit 405 that performs processing such as conversion) / gradation processing and outputs the result to the writing system
And

【0072】つぎに、上記デジタル複写機の信号処理系
の動作を説明する。スキャナ401から読み込まれたR
GB3色のコンポーネントからなる画像データは、符号
化器402で符号化(圧縮)され、ページメモリ403
に格納される。本実施例では、画像の回転・編集等の便
宜のために、画像の符号化方法としてメモリへのアクセ
スが容易な固定長符号方式を採用している。ここで、コ
ンポーネントとは、RGBやCMYK等のカラー画像を
構成する各色成分をいう。ページメモリ内の画像データ
は必要に応じ編集パネル406に読み出され編集が行わ
れる。書き込み時(作像時)には、符号化器402にて
圧縮されページメモリ403に格納された圧縮符号(符
号情報)は、ページメモリ403から2×2の画素ブロ
ック単位で読み出され、復号化器404で復号化され、
フィルタ・階調処理部405でフィルタ処理、RGB−
CMYK変換、階調処理等が施された後に書き込み系へ
と転送される。
Next, the operation of the signal processing system of the digital copying machine will be described. R read from the scanner 401
Image data composed of components of three colors of GB is encoded (compressed) by an encoder 402, and stored in a page memory 403.
Is stored in In this embodiment, for the sake of convenience such as rotation and editing of an image, a fixed-length code system that allows easy access to a memory is adopted as an image encoding method. Here, the component refers to each color component forming a color image such as RGB or CMYK. The image data in the page memory is read out to the editing panel 406 and edited as needed. At the time of writing (at the time of image formation), the compressed code (code information) compressed by the encoder 402 and stored in the page memory 403 is read from the page memory 403 in units of 2 × 2 pixel blocks, and decoded. 404,
Filter processing by filter / gradation processing unit 405, RGB-
After being subjected to CMYK conversion, gradation processing, etc., it is transferred to the writing system.

【0073】以下、図1の符号化器402と復号化器4
04の実施の形態1〜実施の形態6を詳細に説明する。
Hereinafter, the encoder 402 and the decoder 4 shown in FIG.
The first to sixth embodiments of the fourth embodiment will be described in detail.

【0074】(実施の形態1)図2は、符号化器402
の実施の形態1を示すブロック図である。図2に示す符
号化器402は、スキャナ401からn×m単位(例え
ば、2×2画素ブロック単位)で入力されるR、G、B
色のコンポーネント(例えば、各色1画素8ビット)か
らなる画像データを夫々一時的に格納するR、G、B色
のn×mバッファ501、502、503と、R、G、
B色n×mバッファ501、502、503に格納され
た各コンポーネント(RGB)毎に位置相関を利用した
変換(以下「位置相関変換」)を行って、各色毎に直流
成分と交流成分に分離し、直流成分を色変換部507に
出力する一方、交流成分を交流成分量子化部508に出
力するR色、G色、B色位置相関変換部504、50
5、506と、R色、G色、B色位置相関変換部50
4、505、506から入力される各コンポーネントの
直流成分を色変換(明度・色分離)して、直流明度信号
と直流色信号を生成して、量子化部510に出力する色
変換部507とを備えている。
(Embodiment 1) FIG.
FIG. 3 is a block diagram showing Embodiment 1 of the present invention. The encoder 402 illustrated in FIG. 2 receives R, G, and B input from the scanner 401 in units of n × m (for example, in units of 2 × 2 pixel blocks).
R, G, and B color n × m buffers 501, 502, and 503 for temporarily storing image data composed of color components (for example, 8 bits for each pixel of each color);
Conversion using position correlation (hereinafter referred to as “position correlation conversion”) is performed for each component (RGB) stored in the n × m buffers 501, 502, and 503 of the B color to separate a DC component and an AC component for each color. Then, while outputting the DC component to the color conversion unit 507, the R, G, and B color position correlation conversion units 504 and 50 output the AC component to the AC component quantization unit 508.
5, 506 and R, G, B color position correlation conversion unit 50
A color conversion unit 507 that performs color conversion (brightness / color separation) on DC components of each component input from 4, 505, and 506 to generate a DC lightness signal and a DC color signal, and outputs the DC lightness signal and the DC color signal to the quantization unit 510; It has.

【0075】また、図2に示す符号化器402は、R
色、G色、B色位置相関変換部504、505、506
から入力される各コンポーネントの交流成分を、第1段
階の量子化を施して色変換部509に出力する交流成分
量子化部508と、交流成分量子化部508から入力さ
れる第1段階目の量子化が施された各コンポーネントの
交流成分を色変換(明度・色分離)して、交流明度信号
と交流色信号を生成し、量子化部510に出力する色変
換部509と、色変換部509から入力される直流明度
信号と直流色信号を量子化し、また、色変換部509か
ら入力される交流明度信号と交流色信号に対して第2段
階目の量子化を施して、符号化部511に出力する量子
化部510と、量子化部510で量子化された情報(2
×2画素ブロック単位)の固定長符号を作成してページ
メモリ403に格納する符号化部511とを備えてい
る。
The encoder 402 shown in FIG.
Color, G, and B color position correlation conversion units 504, 505, and 506
The AC component quantization unit 508 that performs the first-stage quantization on the AC component of each component input from the AC component and outputs the result to the color conversion unit 509, and the first-stage quantization that is input from the AC component quantization unit 508. A color conversion unit 509 that performs color conversion (brightness / color separation) on the AC component of each of the quantized components to generate an AC brightness signal and an AC color signal, and outputs the generated signal to the quantization unit 510; The DC lightness signal and the DC color signal input from the color conversion unit 509 are quantized, and the AC lightness signal and the AC color signal input from the color conversion unit 509 are subjected to a second-stage quantization, and are encoded. 511, and information (2) quantized by the quantization unit 510.
And an encoding unit 511 that creates a fixed-length code of (× 2 pixel block units) and stores it in the page memory 403.

【0076】次に、上記図2の符号化器402の符号化
方法を説明する。図2において、スキャナ401から読
み込まれたR、G、B色のコンポーネント(例えば、2
×2画素ブロック単位、各色1画素8ビット)からなる
画像データは、R、G、B色n×mバッファ501、5
02、503に入力し、一時的に格納される。
Next, an encoding method of the encoder 402 of FIG. 2 will be described. In FIG. 2, components of R, G, and B colors (for example, 2
× 2 pixel block units, each pixel has 8 bits per pixel), the R, G, and B color nxm buffers 501, 5
02, 503 and temporarily stored.

【0077】R色、G色、B色位置相関変換部504、
505、506は、R、G、B色のn×mバッファ50
1、502、503に格納された各コンポーネント(R
GB)毎に位置相関変換を行って、各色毎に直流成分L
LR、LLG、LLBと交流成分HR、HG、HBに分
離し、直流成分LLR、LLG、LLBを色変換部50
7に出力する一方、交流成分HR、HG、HBを交流成
分量子化部508に出力する。
The R, G, and B color position correlation conversion unit 504,
Reference numerals 505 and 506 denote n × m buffers 50 of R, G and B colors.
1, 502, and 503 (R
GB) to perform a position correlation conversion to obtain a DC component L for each color.
LR, LLG, LLB and the AC components HR, HG, HB are separated, and the DC components LLR, LLG, LLB are separated by the color conversion unit 50.
7, while the AC components HR, HG, and HB are output to the AC component quantization unit 508.

【0078】ここで、位置相関変換としては、例えば、
ウェーブレット変換の一種であるHarrWavele
t変換(以下「ハール変換」と呼ぶ)を2次元で用いる
ことができる。2次元のハール変換を具体的に説明す
る。2次元のハール変換は、2×2画素ブロック単位で
変換が行われ、図3は2×2画素ブロックの例(R、
G、B)を示す。本実施の形態では、図3に示すよう
に、RGB毎に画素ブロックを切り出した後に、RGB
各色毎に図4の式に示すようなハール変換を行う。ハー
ル変換の結果、2×2画素ブロックの画像情報はLL、
HL、LH、HHの4係数に変換される。このうちLL
係数は直流成分であり、HL、LH、HH係数は交流成
分である。
Here, as the position correlation conversion, for example,
HarrWavele, a type of wavelet transform
A t-transform (hereinafter called "Haar transform") can be used in two dimensions. The two-dimensional Haar transform will be specifically described. The two-dimensional Haar transform is performed in units of 2 × 2 pixel blocks, and FIG. 3 shows an example of a 2 × 2 pixel block (R,
G, B). In the present embodiment, as shown in FIG. 3, after a pixel block is cut out for each of RGB, RGB
The Haar transform as shown in the equation of FIG. 4 is performed for each color. As a result of the Haar transform, the image information of the 2 × 2 pixel block is LL,
It is converted into four coefficients of HL, LH and HH. LL
The coefficients are DC components, and the HL, LH, and HH coefficients are AC components.

【0079】なお、本実施の形態では、位置相関変換
(直流成分と交流成分とに分離する手段)として、ハー
ル変換を使用した場合を説明したが、本発明はこれに限
られるものではなく、位置相関変換として、DCT変
換、スラント変換、アダマール変換等の直交変換や周波
数変換の総称としてのサブバンド変換、さらには画像濃
度が局所的には階調変化が穏やかであることを利用した
ブロック符号化等も適用可能である。
In the present embodiment, the case where the Haar transform is used as the position correlation transform (means for separating into a DC component and an AC component) has been described. However, the present invention is not limited to this. As a position correlation transform, a sub-band transform as a generic term of orthogonal transform such as DCT transform, Slant transform, Hadamard transform, and frequency transform, and a block code utilizing image density that has a moderate gradation change locally. And the like are also applicable.

【0080】但し、本実施の形態のように符号情報がデ
ジタルカラー複写機の内部のメモリ(ページメモリ40
3)に格納され、複数回アクセスされるような使用形態
においては、隣接する画素ブロックの情報を参照して変
換を行なうような変換、いわゆるオーバーラップ変換は
好ましくない。すなわち、メモリに格納された符号情報
に複数回アクセスして複数部数の画像を形成するような
場合には、オーバーラップ変換で作成された固定長符号
を用いると、復号化対象である符号の他に参照に必要な
符号にもアクセスしなければならないため、装置内部で
の転送効率が数分の1に低下してしまう。これを回避す
るためにバッファメモリを多く設ければアクセス回数は
減り転送効率は向上するが、今度はメモリコストが向上
してしまう。かかる実情により、オーバーラップしない
変換を用いることが望ましい。オーバーラップしない変
換手段としては、離散コサイン(DCT)変換やハール
ウェーブレット変換等があるが、ハールウェーブレット
変換は、その変換の容易さから特に好ましい。
However, as in the present embodiment, the code information is stored in an internal memory (page memory 40) of the digital color copying machine.
In the usage form stored in 3) and accessed a plurality of times, conversion in which conversion is performed with reference to information of adjacent pixel blocks, that is, overlap conversion is not preferable. That is, in a case where the code information stored in the memory is accessed a plurality of times to form a plurality of copies of an image, the use of a fixed-length code created by the overlap conversion makes it possible to obtain a code other than the code to be decoded. In addition, the code required for reference must be accessed, so that the transfer efficiency inside the device is reduced to a fraction. If a large number of buffer memories are provided to avoid this, the number of accesses is reduced and the transfer efficiency is improved, but the memory cost is increased this time. Under such circumstances, it is desirable to use non-overlapping transforms. Non-overlapping transform means include a discrete cosine (DCT) transform and a Haar wavelet transform. The Haar wavelet transform is particularly preferable because of its ease of transformation.

【0081】交流成分量子化部508は、入力される各
コンポーネントの交流成分HR、HG、HBを、第1段
階の量子化を施して色変換部509に出力する。交流成
分量子化部508における第1段階の量子化では、例え
ば、交流成分HL、LH、HHのうち、HHを削除す
る。HH係数は、画像の斜めエッジに対応する係数であ
り、ハール係数のうちで最も視覚的重要度が低い係数で
あるため、この係数を削減しても画質劣化はそれほど目
立たないからである。
The AC component quantization section 508 subjects the input AC components HR, HG, and HB of each component to first-stage quantization and outputs the result to the color conversion section 509. In the first-stage quantization in the AC component quantization unit 508, for example, HH is deleted from the AC components HL, LH, and HH. This is because the HH coefficient is a coefficient corresponding to the oblique edge of the image and has the lowest visual significance among the Haar coefficients. Therefore, even if this coefficient is reduced, the image quality deterioration is not so noticeable.

【0082】色変換部509は、交流成分量子化部50
8から入力される第1段階目の量子化が施された各コン
ポーネントの交流成分を色変換(明度・色分離)して、
交流明度信号YHと交流色信号UH、VHを生成し、量
子化部510に出力する。また、色変換部507は、R
色、G色、B色位置相関変換部504、505、506
から入力される各コンポーネントの直流成分LLR、L
LG、LLBを色変換(明度・色分離)して、直流明度
信号YLLと直流色信号ULL、VLLを生成して、量
子化部510に出力する。
The color conversion unit 509 includes an AC component quantization unit 50
8 is subjected to color conversion (brightness / color separation) of the AC component of each component that has been subjected to the first stage quantization and
An AC lightness signal YH and AC color signals UH and VH are generated and output to the quantization unit 510. Further, the color conversion unit 507
Color, G, and B color position correlation conversion units 504, 505, and 506
DC components LLR, L of each component input from
LG and LLB are color-converted (lightness / color separation) to generate DC lightness signal YLL and DC color signals ULL and VLL, and output them to quantization section 510.

【0083】上述の色変換部507、509で行なう色
変換は、図5に示す式でYUV変換を行う。図5におい
て、得られた係数のうち、Yzが「交流明度信号」であ
り、Uz、Vzが「交流色信号」である。なお、本発明
の色変換はこれに限られるものではなく、Lab、YI
Q、YCrCb等の変換を用いても同様な効果を得るこ
とができる。これらの変換は通常RGB色信号に対して
行ない、その結果として無彩画像では色信号が0となる
ような変換であるが、これと同じ形の変換式を例えばR
GB各色の交流成分に対して適用した場合にも、やはり
無彩画像では色信号に応する値は0となる。かかる事情
から、本明細書では、RGB信号に対して行なう場合の
みならず、交流成分や直流成分等の画像の構成要素一般
に対してこれらの変換を行うことも「明度信号と色信号
とに変換」すると記載する。
The color conversion performed by the above-described color conversion units 507 and 509 is a YUV conversion using the equation shown in FIG. In FIG. 5, among the obtained coefficients, Yz is an “AC lightness signal”, and Uz and Vz are “AC color signals”. Note that the color conversion of the present invention is not limited to this, and Lab, YI
A similar effect can be obtained by using a conversion of Q, YCrCb, or the like. These conversions are usually performed on the RGB color signals, and as a result, the color signals become 0 in the achromatic image.
Also when applied to the AC component of each color of GB, the value corresponding to the color signal is 0 in an achromatic image. Under such circumstances, in this specification, not only the case of performing the conversion on the RGB signal but also the general conversion of the image components such as the AC component and the DC component is referred to as “the conversion into the brightness signal and the color signal”. ".

【0084】量子化部510は、色変換部507から入
力される直流明度信号YLLと直流色信号ULL、VL
Lを量子化し、また、色変換部509から入力される交
流明度信号YHと交流色信号UH、VHに対して第2段
階目の量子化を施して、符号化部511に出力する。
The quantizing section 510 includes a DC lightness signal YLL input from the color converting section 507 and DC color signals ULL and VL.
L is quantized, a second-stage quantization is performed on the AC lightness signal YH and the AC color signals UH and VH input from the color conversion unit 509, and the result is output to the encoding unit 511.

【0085】「直流明度信号」YLLと「直流色信
号」ULL、VLLの量子化については、「直流明度信
号」YLLに関してはビット切り捨てにより5ビットに
線形量子化するものとし、「直流色信号」ULL、VL
Lに関しては、非線形量子化により5ビットに量子化す
るものとする。ここで非線形量子化は、「直流色信号」
ULL、VLLの絶対値が小さい部分は細かく、絶対値
が大きい部分は粗く量子化するものとする。このような
非線形量子化を行なう理由は、「直流色信号」ULL、
VLLは色変換により0の近辺に情報が集中しており、
かつ0の近辺の数値が少し変化すると色味に大きく影響
するという事情があるため、0の近辺を細かく量子化し
ないと視覚上劣化が目立ってしまうためである。図36
〜図38は、「直流色信号」ULL、VLLを非線形量
子化する場合の非線形量子化テーブルの一例を示す図で
ある。
As for the quantization of the “DC lightness signal” YLL and the “DC color signal” ULL and VLL, the “DC lightness signal” YLL is linearly quantized to 5 bits by truncating bits, and the “DC color signal” ULL, VL
L is quantized to 5 bits by non-linear quantization. Here, the non-linear quantization is "DC color signal"
It is assumed that a portion having a small absolute value of ULL and VLL is finely quantized, and a portion having a large absolute value is coarsely quantized. The reason for performing such non-linear quantization is as follows: “DC color signal” ULL,
In VLL, information is concentrated around 0 by color conversion,
In addition, a slight change in the numerical value near 0 greatly affects the tint. Therefore, unless the value near 0 is finely quantized, visual deterioration becomes conspicuous. FIG.
FIG. 38 to FIG. 38 are diagrams illustrating an example of a non-linear quantization table in the case of non-linearly quantizing the “DC color signals” ULL and VLL.

【0086】「交流明度信号」であるYz(z=H
L、LH、HH)をベクトル量子化し、「交流色信号」
であるUz、Vzについてはベクトル量子化した後にY
zのベクトルとの比を符号化するものとする。
Yz (z = H) which is an “AC lightness signal”
L, LH, HH) are vector-quantized to obtain an "AC color signal".
Uz and Vz are vector quantized and then Y
Assume that the ratio of the z to the vector is encoded.

【0087】まず、「交流明度信号」であるYz(z=
HL、LH、HH)のベクトル量子化を詳細に説明す
る。最初に、「交流明度信号」からなるベクトルYH=
(YHL、YLH)を作成した後(本実施例では交流成
分量子化部508においてHHは削減されていることに
よりYHHは常に0である)、図6の量子化テーブルに
従って、「交流明度信号」からなるベクトルYH=(Y
HL、YLH)をベクトル量子化する。図6に示す量子
化テーブルは、13値4ビットにベクトル量子化する場
合を示している。
First, Yz (z = z = AC lightness signal)
HL, LH, HH) will be described in detail. First, a vector YH = “AC brightness signal”
After creating (YHL, YLH) (in this embodiment, YHH is always 0 because HH is reduced in the AC component quantization unit 508), the “AC brightness signal” is obtained according to the quantization table of FIG. Vector YH = (Y
HL, YLH). The quantization table shown in FIG. 6 shows a case where vector quantization is performed on 13-valued 4 bits.

【0088】ここで、ベクトル量子化を行うメリット
は、各交流成分毎にスカラー量子化をする場合と比べて
符号化効率が格段に良いことである。例えば、画質に重
要な縦エッジ・横エッジを劣化させないで残したい場合
に、ベクトル量子化の場合は、図7(A)に示すよう
に、13値4ビットで必要なエッジが残せるのに対し、
スカラー量子化の場合は、図7(B)に示すように、4
9値6ビットもの情報を必要とし、かつ49値の中には
出現頻度が非常に低いベクトル(例えば(YHL、YL
H)=(64、64)等、YHLもYLHも大きな値を
持つもの)も含まれるため、符号化効率が悪くなってし
まう。ベクトル量子化は、具体的には、全てのベクトル
とベクトルYHとの距離を算出し、最も距離が小さなベ
クトルを選ぶものとする。
Here, the advantage of performing vector quantization is that the coding efficiency is much better than when scalar quantization is performed for each AC component. For example, when it is desired to leave the vertical and horizontal edges important for image quality without deteriorating, in the case of vector quantization, as shown in FIG. ,
In the case of scalar quantization, as shown in FIG.
Vectors requiring as much as 9 bits and 6 bits of information and having very low appearance frequencies in 49 values (for example, (YHL, YL)
H) = (64, 64), etc., both YHL and YLH have large values), so that the coding efficiency deteriorates. In the vector quantization, specifically, the distance between all the vectors and the vector YH is calculated, and the vector having the smallest distance is selected.

【0089】なお、高周波成分をベクトル量子化すると
きは、ベクトルの長さが量子化前よりも短くなるような
ベクトルを選ぶと網点部のモアレ(周期的な模様上の劣
化)がおきにくい。例えば、(44、0、0)というベ
クトルに対して量子化値候補が(48、0、0)と(3
2、0、0)であるとき、距離的に近いのは(48、
0、0)の方でも、量子化値(32、0、0)を選んだ
方が網点部のモアレは発生しない。したがって、網点部
のモアレを考慮する場合は、量子化の閾値を量子化値の
中間地点よりも大きめに設定することにしても良い。
When the high-frequency component is vector-quantized, if a vector whose length is shorter than that before quantization is selected, moiré (periodic pattern deterioration) of a halftone dot portion hardly occurs. . For example, for a vector (44, 0, 0), quantization value candidates are (48, 0, 0) and (3
When (2, 0, 0) is (48,
Even when the quantization value (32, 0, 0) is selected, moire does not occur in the halftone dot portion. Therefore, when considering the moiré of the halftone dot portion, the quantization threshold may be set to be larger than the intermediate point of the quantization value.

【0090】つぎに、「交流色信号」であるUz、Vz
のベクトル量子化について説明する。「交流色信号」で
あるUz、Vzのベクトル量子化する場合には、上述し
たように、Yzのベクトルとの比を符号化する。これ
は、一般に「交流明度信号」と「交流色信号」の構造は
同一ブロック内では類似していることを利用した量子化
方法である。
Next, Uz and Vz which are "AC color signals"
Will be described. When quantizing the vectors of Uz and Vz, which are “AC color signals”, the ratio with the vector of Yz is encoded as described above. This is a quantization method using the fact that the structures of the “AC lightness signal” and the “AC color signal” are similar in the same block.

【0091】「交流色信号」であるUz、Vzのベクト
ル量子化を図8を参照して説明する。図8は、「交流色
信号」であるUz、Vzのベクトル量子化を説明するた
めの説明図である。
Vector quantization of Uz and Vz, which are “AC color signals”, will be described with reference to FIG. FIG. 8 is an explanatory diagram for explaining vector quantization of Uz and Vz that are “AC color signals”.

【0092】例えば、図8の(1100)に示すよう
な、ブロック内に縦方向に相異なる2色の境界線がある
ような場合、RGB各色の情報(1101)をハール変
換し(1102)、交流成分を色変換する(1103)
と、「交流明度信号」ベクトルと「交流色信号」ベクト
ルは互いに比例関係にある。すなわちYH=nu×U
H、YH=nv×UHである。ただしYH、UH、VH
はベクトルであって、YH=(YHL、YLH)、UH
=(UHL、ULH)、VH=(VHL、VLH)であ
り、nu、nvは定数である。なお、上記2つのベクト
ルは、本例ではHH成分が0なので2次元ベクトルとな
っているが、本来的には3次元ベクトルYH=(YH
L、YLH、YHH)等となる。
For example, when there are two different color boundaries in the vertical direction in the block as shown in (1100) in FIG. 8, the information (1101) of each color of RGB is Haar transformed (1102), Color conversion of AC component (1103)
And the “AC lightness signal” vector and the “AC color signal” vector are in a proportional relationship with each other. That is, YH = nu × U
H, YH = nv × UH. However, YH, UH, VH
Is a vector, YH = (YHL, YLH), UH
= (UHL, ULH), VH = (VHL, VLH), and nu and nv are constants. Note that the two vectors are two-dimensional vectors because the HH component is 0 in this example, but originally, the three-dimensional vector YH = (YH
L, YLH, YHH).

【0093】そこで、この比例係数nu、nvを量子化
すれば(1105)、効率的な量子化を行うことができ
る。このようなベクトル同士の比例関係は、ブロック内
の互いに異なる色の数が2色以下の場合には常になりた
ち、2×2画素ブロックという小さなブロックの中に3
色以上の色が混在する場合は稀であることから、有効な
量子化法である。しかし、実際にはスキャン揺らぎ等に
より色にわずかな揺らぎが生じ、完全な比例関係は成り
立たない場合も多い。そこで、本実施の形態では、以下
のように比を符号化する。
Therefore, if the proportional coefficients nu and nv are quantized (1105), efficient quantization can be performed. Such a proportional relationship between vectors is always obtained when the number of different colors in a block is two or less, and 3 in a small block of 2 × 2 pixel blocks.
This is an effective quantization method, since it is rare that a mixture of colors equal to or more than one color is used. However, in practice, slight fluctuations occur in colors due to scan fluctuations and the like, and in many cases, a perfect proportional relationship does not hold. Therefore, in the present embodiment, the ratio is encoded as follows.

【0094】すなわち、まず、YHをベクトル量子化
し、YHとUHとのなす角θを内積計算により求め、
θが閾値よりも0度に近い、あるいは180度に近け
ればYHとUHは比例しているものとみなし、θが0度
に近い場合には、|YH|/|UH|をθが180度に
近い場合には、−|YH|/|UH|を比例値nuとす
る。ここで、例えば|YH|はベクトルであるYH=
(YHL、YLH)の長さの意味であり、|YH|=√
(YHL*YHL+YLH*YLH)である。また、適
切な閾値は機械精度によっても異なり、スキャン揺らぎ
等が大きな機械では比例関係にあるとみなされにくいた
めに閾値を大きめにとる必要がある。θが、YHとU
Hとは比例しているものとみなせない値である場合に
は、比例係数を0として符号化する。最後に比例係数
を図9のテーブルに従い量子化する。Vについても同
様に行なう。図9より、比例係数はU、V各5値、あ
わせて25値5ビットに収められる。
That is, first, YH is vector-quantized, and the angle θ between YH and UH is obtained by inner product calculation.
If θ is closer to 0 degrees or 180 degrees than the threshold value, it is considered that YH and UH are proportional. If θ is closer to 0 degrees, | YH | / | UH | In the case where the value is close to, − | YH | / | UH | is set to the proportional value nu. Here, for example, | YH | is a vector YH =
(YHL, YLH) means | YH | = √
(YHL * YHL + YLH * YLH). Further, an appropriate threshold value differs depending on the machine accuracy, and it is difficult for a machine having a large scan fluctuation or the like to be regarded as having a proportional relationship, so that the threshold value needs to be set to a relatively large value. θ is YH and U
If H is a value that cannot be regarded as proportional, it is encoded with the proportionality coefficient set to 0. Finally, the proportional coefficient is quantized according to the table of FIG. The same applies to V. As shown in FIG. 9, the proportional coefficient is stored in 5 bits of 25 values each including U and V.

【0095】符号化部511は、量子化部510で量子
化された情報(2×2画素単位)を纏めて固定長符号を
作成してページメモリ403に格納する。図10は固定
長符号のフォーマットの一例を示している。図10に示
すように、量子化・符号化部510、511等の量子化
の結果、「直流明度信号」YLLと「直流色信号」UL
L、VLLは各5ビットに、(ベクトル)YHは4ビッ
トに、(ベクトル)UHおよび(ベクトル)VHは5ビ
ットにまとめあげられ、これらを併せると24ビットの
固定長符号を得ることができる。圧縮前の画像が4画素
×3色×8ビット=96ビットであったので、本実施例
では圧縮率1/4の圧縮ができたことになる。
The encoding section 511 creates a fixed-length code by combining the information (in units of 2 × 2 pixels) quantized by the quantization section 510 and stores it in the page memory 403. FIG. 10 shows an example of a fixed-length code format. As shown in FIG. 10, as a result of quantization by the quantization / encoding units 510 and 511, the “DC lightness signal” YLL and the “DC color signal” UL
L and VLL are grouped into 5 bits, (vector) YH is grouped into 4 bits, (vector) UH and (vector) VH are grouped into 5 bits, and when they are combined, a fixed length code of 24 bits can be obtained. Since the image before compression was 4 pixels × 3 colors × 8 bits = 96 bits, the compression rate of 4 was achieved in this embodiment.

【0096】以上説明したように、実施の形態1の符号
化部によれば、画像データのR、G、B色のコンポーネ
ント(例えば、各色1画素8ビット)毎に位置相関変換
を行い、その後、色変換部で色変換を行うこととしたの
で、符号化回路の簡易化・量子化の簡略化を図ることが
できる。
As described above, according to the encoding unit of the first embodiment, the position correlation conversion is performed for each of the R, G, and B components of the image data (for example, 8 bits per pixel for each color). Since the color conversion is performed by the color conversion unit, the coding circuit can be simplified and the quantization can be simplified.

【0097】また、実施の形態1の符号化部によれば、
位置相関変換としてハール変換を行うこととしたので、
簡単な構成で位置位相変換を行うことが可能となる。ま
た、交流成分量子化部508では、画像の斜めエッジに
対応する係数(HH係数)を削除することとしたので、
ハール変換のうち最も視覚的に重要度の低い係数である
ため、削除しても画質劣化に対して影響が少ないという
効果を奏する。
According to the encoding unit of the first embodiment,
Since we decided to perform Haar transform as position correlation transformation,
Position / phase conversion can be performed with a simple configuration. Further, the AC component quantization unit 508 deletes the coefficient (HH coefficient) corresponding to the oblique edge of the image.
Since this coefficient is the least visually significant among the Haar transforms, it has the effect that even if it is deleted, it has little effect on image quality degradation.

【0098】以下、実施の形態1の符号化器402の効
果を従来技術との比較で具体的に説明する。実施の形態
1の符号化器402では、従来技術に比して、「情報の
強い偏りが処理の上流で生じる」というメリットが存在
する。すなわち、画像の位置的相関は各コンポーネント
の色同士の相関よりも一般に強いため、位置的相関を用
いた変換を処理の上流で行なうと、その時点で各種量子
化が可能となる。
Hereinafter, the effect of the encoder 402 according to the first embodiment will be specifically described in comparison with the related art. The encoder 402 according to the first embodiment has an advantage that “a strong bias of information occurs upstream of processing” as compared with the related art. That is, since the positional correlation of the image is generally stronger than the correlation between the colors of the components, if the conversion using the positional correlation is performed upstream of the processing, various quantizations can be performed at that time.

【0099】具体的には、図2の交流成分量子化部50
8において、まずHH係数を量子化しているのが、この
第1段階の量子化によりHH係数についての色変換回路
を削減できる。図11(A)は、従来法の色変換回路お
よびハール変換回路の必要数を示してある。色変換回路
については2×2画素分の4回路が、ハール変換回路に
ついてはYUV分の3回路が必要となる。これに対し
て、図11(B)が本実施の形態の場合である。HH係
数を量子化により削減してしまうため、HH係数用の色
変換を行なう必要がなくなり、色変換回路の数が1つ削
減できる。
More specifically, the AC component quantization unit 50 shown in FIG.
In H.8, the HH coefficients are quantized first. The first-stage quantization can reduce the number of color conversion circuits for the HH coefficients. FIG. 11A shows the required numbers of the conventional color conversion circuits and Haar conversion circuits. The color conversion circuit requires four circuits for 2 × 2 pixels, and the Haar conversion circuit requires three circuits for YUV. On the other hand, FIG. 11B shows the case of this embodiment. Since the HH coefficient is reduced by quantization, it is not necessary to perform color conversion for the HH coefficient, and the number of color conversion circuits can be reduced by one.

【0100】また、交流成分量子化部508の量子化
を、上述のように、1つの係数全体を削るのではなく、
係数の下位ビットを削減するだけでも、色変換回路が扱
うビット数を削減でき、処理効率を向上させることがで
きる。例えば、もともと9ビット、9ビット、10ビッ
トの深さを持つHL、LH、HH係数の下位ビットをH
L、LH係数については2ビット、HH係数については
3ビット削減した後に色変換を行なうと、色変換回路が
扱うビット数は7ビット、7ビット、7ビットで済む。
この場合の色変換回路およびハール変換回路の必要数を
図11(C)に示す。
Further, as described above, the quantization of the AC component quantization unit 508 is not performed by deleting one coefficient as a whole.
Even if only the lower bits of the coefficient are reduced, the number of bits handled by the color conversion circuit can be reduced, and the processing efficiency can be improved. For example, the lower bits of the HL, LH, and HH coefficients originally having a depth of 9 bits, 9 bits, and 10 bits are represented by H
If the color conversion is performed after reducing the L and LH coefficients by 2 bits and the HH coefficient by 3 bits, the number of bits handled by the color conversion circuit is only 7 bits, 7 bits, and 7 bits.
FIG. 11C shows the required numbers of color conversion circuits and Haar conversion circuits in this case.

【0101】これに対し、従来の方法、例えば特開平6
−245070号公報の方式では、まず色変換を行なっ
た後、明度信号および色信号を直流成分と交流成分とに
分解するものであるが、色信号の成分はその絶対値が小
さな値ほど視覚上重要な意味を持ち、下位ビットを削る
と薄い地の色が消えてしまうなどの不具合が生じてしま
うため、色変換前に量子化をすることはできない。例え
ば、色信号U、Vがそれぞれ「3」の値の場合に、2ビ
ット量子化した後にハール変換を行なった場合には、量
子化の時点で色味が消えてしまう。またこの不具合を回
避するために従来法でU、V係数に対し非線形量子化を
用いることも考えられるが、この場合、後段で得られる
ハールウェーブレット変換係数が量子化に対し敏感とな
り、少しの量子化が大きな劣化につながるために効率が
悪いという問題がある。
On the other hand, the conventional method, for example,
According to the method disclosed in Japanese Patent No. 245070, color conversion is first performed, and then a brightness signal and a color signal are decomposed into a DC component and an AC component. It has an important meaning, and if the lower bits are deleted, a problem such as disappearing of the color of a light background occurs, so that quantization cannot be performed before color conversion. For example, when the color signals U and V each have a value of “3”, if the Haar transform is performed after performing 2-bit quantization, the color will disappear at the time of quantization. In order to avoid this problem, it is conceivable to use non-linear quantization for the U and V coefficients in the conventional method. In this case, however, the Haar wavelet transform coefficient obtained in the subsequent stage becomes sensitive to the quantization, However, there is a problem that efficiency is poor because the conversion leads to large deterioration.

【0102】一般に、色味の劣化を防止するには色信号
の直流成分を保存すればよい。本実施例では、直流成分
は正確に色変換して色味を保ちながら、交流成分に関し
ては、ある程度量子化させた後に色変換しているので、
回路規模を縮小できる。
Generally, in order to prevent color deterioration, the DC component of a color signal may be stored. In the present embodiment, the DC component is color-converted after being quantized to some extent while the DC component is color-converted accurately while maintaining the tint while the AC component is maintained.
Circuit size can be reduced.

【0103】このように、本実施の形態では、従来の方
式と比べ符号化効率を落とすことなく回路規模縮小の効
果が得られる。ここで、従来の方式と比べ符号化効率を
落とすことなくとは、位置的相関と色的相関を共に利用
する点で従来法式と同等の情報局在効果が得られるとい
う意味である。特に、本実施例の場合はハール変換も色
変換も共に線形変換であるため、量子化を考慮しなけれ
ば、両変換の順序に関係なく変換係数の値は全く同じに
なる。
As described above, in this embodiment, the effect of reducing the circuit scale can be obtained without lowering the coding efficiency as compared with the conventional method. Here, “without lowering the coding efficiency as compared with the conventional method” means that an information localization effect equivalent to the conventional method can be obtained in that both the positional correlation and the color correlation are used. In particular, in the case of the present embodiment, since both the Haar transform and the color transform are linear transforms, the values of the transform coefficients are exactly the same irrespective of the order of the two transforms without considering the quantization.

【0104】図12は、復号化器404の実施の形態1
を示すブロック図である。図12に示す実施の形態1の
復号化器404は実施の形態1の符号化器402で符号
化された圧縮符号を復号化するためのものである。図1
2に示す復号化器404は、符号分割部521と、逆量
子化部522、逆色変換部523と、逆色変換部52
4、交流成分逆量子化部525と、R色位置相関逆変換
部526、G色位置相関逆変換部527、B色位置相関
逆変換部528と、復元R色n×mバッファ529、復
元G色n×mバッファ530、復元B色n×mバッファ
531とを備えている。
FIG. 12 shows Embodiment 1 of the decoder 404.
FIG. A decoder 404 according to the first embodiment shown in FIG. 12 is for decoding the compressed code encoded by the encoder 402 according to the first embodiment. Figure 1
2 includes a code division unit 521, an inverse quantization unit 522, an inverse color conversion unit 523, and an inverse color conversion unit 52.
4. AC component inverse quantization unit 525, R color position inverse correlation unit 526, G color position inverse correlation unit 527, B color position inverse correlation unit 528, restored R color nxm buffer 529, restored G A color nxm buffer 530 and a restored B color nxm buffer 531 are provided.

【0105】つぎに、図12の復号化器404の復号化
方法を詳細に説明する。符号化器402にて圧縮されペ
ージメモリ403に格納された圧縮符号(図10参照)
は、作像時にページメモリ403から2×2の画素ブロ
ック単位で読み出され、復号化器404で復号化され、
フィルタ・階調処理部405でフィルタ処理等が施され
た後に書き込み系へと転送される。
Next, the decoding method of the decoder 404 in FIG. 12 will be described in detail. A compressed code compressed by the encoder 402 and stored in the page memory 403 (see FIG. 10)
Is read from the page memory 403 in units of 2 × 2 pixel blocks at the time of image formation, and is decoded by the decoder 404.
After being subjected to filter processing and the like by the filter / gradation processing unit 405, the data is transferred to the writing system.

【0106】符号分割部521は、ページメモリ403
に格納された2×2の画素ブロックの圧縮符号(図10
参照)を符号構成にしたがって、YLL、ULL、VL
L、YH、UH、VHに振り分け、逆量子化部522に
出力する。逆量子化部522は、符号分割部521から
入力される圧縮符号YLL、ULL、VLL、YH、U
H、VHを逆量子化する。
The code division unit 521 is provided in the page memory 403
The compression code of the 2 × 2 pixel block stored in
YLL, ULL, VL according to the code configuration.
The signal is distributed to L, YH, UH, and VH, and output to the inverse quantization unit 522. The inverse quantization unit 522 includes a compression code YLL, ULL, VLL, YH, U
H and VH are inversely quantized.

【0107】具体的には、逆量子化部522は、YLL
5ビットの下位に3ビットを付加して8ビットとし、U
LL、VLLについては符号化側の非線形量子化の逆変
換を行うテーブルを用いて9ビットに復元する。なお、
ここでYLL5ビットの下位に3ビットを付加する際に
はビットシフトによって単に「000」を付加すると濃
度が低下するので、中間値である「100」を付加する
のが望ましい。この点を詳述すると、例えば、23=1
0111という値の下位2ビットを削除(=4で割る)
して101と符号化し、復号化時に下位2ビットに00
を加えると10100=20となるが、4の中間値2を
下位に加えると10110=23となり、一般的に、中
間値を復元する方が濃度変化は少なく、S/N比を向上
させることが可能となる。
More specifically, the inverse quantization unit 522 calculates
By adding 3 bits to the lower part of 5 bits to make 8 bits, U
LL and VLL are restored to 9 bits by using a table for performing inverse transform of nonlinear quantization on the encoding side. In addition,
Here, when adding 3 bits to the lower order of 5 bits of YLL, simply adding “000” by bit shift lowers the density, so it is desirable to add an intermediate value of “100”. To explain this point in detail, for example, 23 = 1
Delete lower 2 bits of value 0111 (divide by 4)
And the lower 2 bits are 00 when decoding.
Is added, 10100 = 20. However, adding the intermediate value 2 of 4 to the lower order results in 10110 = 23. In general, restoring the intermediate value results in less change in density and improvement in the S / N ratio. It becomes possible.

【0108】また、逆量子化部522は、YHについて
は符号値に従い、上記図6のテーブルを使用してベクト
ルを復元する。UH、VHについては25値の符号から
符号化時とは逆の手順でnu、nvを復元する。
The inverse quantization unit 522 restores the vector using the table shown in FIG. 6 according to the code value for YH. For UH and VH, nu and nv are restored from the 25-value code in the reverse procedure to that at the time of encoding.

【0109】逆色変換部523は、復元後の直流明度信
号YLL、直流色信号ULL、VLLをYUV変換の逆
変換を施し、復元されたLLR、LLG、LLBをR色
位置相関逆変換部526、G色位置相関逆変換部52
7、B色位置相関逆変換部528に夫々出力する。
The inverse color conversion unit 523 performs inverse conversion of YUV conversion on the restored DC lightness signal YLL, DC color signals ULL, VLL, and converts the restored LLR, LLG, LLB into an R color position correlation inverse conversion unit 526. , G color position correlation inverse transform unit 52
7. Output to the B color position correlation inverse transform unit 528, respectively.

【0110】逆色変換部524は、復元後の交流明度信
号YH、交流色信号UH、VHをYUV変換の逆変換を
施し、復元されたHR、HG、HBを交流成分逆量子化
部525に出力する。交流成分逆量子化部525は、復
元されたHR、HG、HBを逆量子化(この場合、各色
にHH=0を加える)して、R色位置相関逆変換部52
6、G色位置相関逆変換部527、B色位置相関逆変換
部528に夫々出力する。
The inverse color conversion section 524 performs the inverse conversion of the YUV conversion on the restored AC lightness signal YH and AC color signals UH and VH, and outputs the restored HR, HG and HB to the AC component inverse quantization section 525. Output. The AC component inverse quantization unit 525 inversely quantizes the restored HR, HG, and HB (in this case, adds HH = 0 to each color), and converts the R color position correlation inverse transform unit 52.
6. Output to the G color position correlation inverse conversion unit 527 and the B color position correlation inverse conversion unit 528, respectively.

【0111】R色、G色、B色位置相関逆変換部52
6、527、528は、復元された(LLR、HR)、
(LLG、HG)、(LLB、HB)を夫々、ハールウ
ェーブレット変換の逆変換を施し、復元R色、復元G
色、復元B色n×mバッファ529、530、531に
夫々格納する。以上のようにして、2×2の画素ブロッ
ク単位で復元がなされる。なお、大量のメモリを使用可
能である場合には、各逆変換をテーブル参照方式で行え
ば処理時間が短縮できる。
R, G, B color position correlation inverse conversion section 52
6, 527, 528 are restored (LLR, HR),
(LLG, HG) and (LLB, HB) are each subjected to the inverse transform of the Haar wavelet transform to obtain a restored R color and a restored G
The color and the restored B color are stored in the nxm buffers 529, 530 and 531, respectively. As described above, restoration is performed in units of 2 × 2 pixel blocks. If a large amount of memory can be used, the processing time can be reduced by performing each inverse conversion in a table reference method.

【0112】以上説明したように、上記実施の形態1の
復号化部によれば、実施の形態1の符号化器402で符
号化した符号情報を復元することが可能となる。
As described above, according to the decoding unit of the first embodiment, it is possible to restore the code information encoded by the encoder 402 of the first embodiment.

【0113】(実施の形態2)図13は、符号化器40
2の実施の形態2を示すブロック図である。実施の形態
2の符号化器402が、実施の形態1の符号化器402
(図2)と異なる点は、実施の形態1の符号化器402
では、直流成分を明度信号と色信号とに分離する構成と
したが、実施の形態2の符号化器402は、直流成分を
明度信号と色信号に分離しない構成とした。実施の形態
2の符号化器402は、実施の形態1(図2)で、色変
換部507を削除した構成となっており、他の部分の機
能は実施の形態1(図2)とほぼ同様である。
(Embodiment 2) FIG.
FIG. 9 is a block diagram showing a second embodiment of the present invention. The encoder 402 according to the second embodiment is different from the encoder 402 according to the first embodiment.
The difference from FIG. 2 is that the encoder 402 of the first embodiment is different.
Although the configuration is such that the DC component is separated into the brightness signal and the color signal, the encoder 402 according to the second embodiment does not separate the DC component into the brightness signal and the color signal. The encoder 402 according to the second embodiment has a configuration in which the color conversion unit 507 is deleted from the first embodiment (FIG. 2), and the functions of other parts are almost the same as those of the first embodiment (FIG. 2). The same is true.

【0114】図13に示す符号化器402は、スキャナ
401からn×m単位(例えば、2×2画素ブロック単
位)で入力されるR、G、B色のコンポーネント(例え
ば、各色1画素8ビット)からなる画像データを夫々一
時的に格納するR、G、B色のn×mバッファ601、
602、603と、R、G、B色のn×mバッファ60
1、602、603に格納された各コンポーネント(R
GB)毎に位置相関を利用した変換(以下「位置相関変
換」)を行って、各色毎に直流成分と交流成分に分離
し、直流成分を量子化部610に出力する一方、交流成
分を交流成分量子化部608に出力するR色、G色、B
色位置相関変換部604、605、606とを備えてい
る。
The encoder 402 shown in FIG. 13 has R, G, and B components (for example, 8 bits per pixel for each color) input from the scanner 401 in n × m units (for example, 2 × 2 pixel block units). ), N, m buffers 601 of R, G, and B colors for temporarily storing image data
602 and 603 and n × m buffers 60 for R, G and B colors
1, 602, and 603 (R
GB), a conversion using position correlation (hereinafter referred to as “position correlation conversion”) is performed to separate a DC component and an AC component for each color, and the DC component is output to the quantization unit 610, while the AC component is converted to an AC component. R color, G color, B output to the component quantization unit 608
Color position correlation conversion units 604, 605, and 606 are provided.

【0115】また、図13に示す符号化器402は、R
色、G色、B色位置相関変換部604、605、606
から入力される各コンポーネントの交流成分を、第1段
階の量子化を施して色変換部609に出力する交流成分
量子化部608と、交流成分量子化部608から入力さ
れる第1段階目の量子化が施された各コンポーネントの
交流成分を色変換(明度・色分離)して、交流明度信号
と交流色信号を生成し、量子化部610に出力する色変
換部609と、R色、G色、B色位置相関変換部60
4、605、606から入力される直流信号を量子化
し、また、色変換部609から入力される交流明度信号
と交流色信号に対して第2段階目の量子化を施して、符
号化部611に出力する量子化部610と、量子化部6
10で量子化された情報(2×2画素単位)を纏めて固
定長符号を作成してページメモリ403に格納する符号
化部611とを備えている。
The encoder 402 shown in FIG.
Color, G, B color position correlation conversion units 604, 605, 606
The AC component quantization unit 608 that performs the first-stage quantization on the AC component of each component input from the first component and outputs the result to the color conversion unit 609, and the first-stage quantization that is input from the AC component quantization unit 608. A color conversion unit 609 that performs color conversion (brightness / color separation) on the quantized AC component of each component to generate an AC lightness signal and an AC color signal, and outputs the signal to the quantization unit 610; G color, B color position correlation conversion unit 60
4, 605, and 606, and quantizes the AC signal and the AC color signal input from the color conversion unit 609 in the second stage. And a quantization unit 610 that outputs the
An encoding unit 611 that creates a fixed-length code by combining the information (in units of 2 × 2 pixels) quantized in 10 and stores the code in the page memory 403.

【0116】次に、上記図13の符号化器402の符号
化方法を詳細に説明する。スキャナ401から読み込ま
れたR、G、B色のコンポーネント(例えば、2×2画
素ブロック単位、各色1画素8ビット)からなる画像デ
ータは、R、G、B色のn×mバッファ601、60
2、603に入力し、一時的に格納される。
Next, the encoding method of the encoder 402 shown in FIG. 13 will be described in detail. Image data composed of R, G, and B color components (for example, 2 × 2 pixel block units, each pixel of 8 bits) read from the scanner 401 is composed of R × G, B color n × m buffers 601 and 60.
2, 603 and stored temporarily.

【0117】R色、G色、B色位置相関変換部604、
605、606は、R、G、B色のn×mバッファ60
1、602、603に格納された各コンポーネント(R
GB)毎に位置相関変換を行って、各色毎に直流成分L
LR、LLG、LLBと交流成分HR、HG、HBに分
離し、直流成分LLR、LLG、LLBを量子化部61
0に出力する一方、交流成分HR、HG、HBを交流成
分量子化部608に出力する。位置相関変換としては、
実施の形態1と同様に、ハール変換を使用する。
The R, G, and B color position correlation conversion unit 604,
Reference numerals 605 and 606 denote n × m buffers 60 for R, G, and B colors.
1, 602, and 603 (R
GB) to perform a position correlation conversion to obtain a DC component L for each color.
LR, LLG, LLB and AC components HR, HG, HB are separated, and the DC components LLR, LLG, LLB are quantized by the quantization unit 61.
While outputting to 0, the AC components HR, HG, HB are output to the AC component quantization unit 608. As the position correlation conversion,
As in the first embodiment, the Haar transform is used.

【0118】交流成分量子化部608は、入力される各
コンポーネントの交流成分HR、HG、HBを、第1段
階の量子化を施して色変換部609に出力する。交流成
分量子化部608における第1段階の量子化では、もと
もと9ビット、9ビット、10ビットの深さを持つH
L、LH、HH係数の下位ビットをHL、LH係数につ
いては2ビット、HH係数については3ビット削減する
(図11(C)参照)。
The AC component quantization section 608 subjects the input AC components HR, HG, HB of each component to quantization at the first stage, and outputs the result to the color conversion section 609. In the first-stage quantization in the AC component quantization unit 608, H having a depth of 9 bits, 9 bits, and 10 bits is originally used.
The lower bits of the L, LH, and HH coefficients are reduced by 2 bits for the HL and LH coefficients and 3 bits for the HH coefficient (see FIG. 11C).

【0119】色変換部609は、交流成分量子化部60
8から入力される第1段階目の量子化が施された各コン
ポーネントの交流成分を色変換(明度・色分離)して、
交流明度信号YHと交流色信号UH、VHを生成し、量
子化部610に出力する。色変換は実施の形態1と同様
にYUV変換を行う。
The color conversion unit 609 includes an AC component quantization unit 60
8 is subjected to color conversion (brightness / color separation) of the AC component of each component that has been subjected to the first stage quantization and
An AC lightness signal YH and AC color signals UH and VH are generated and output to the quantization unit 610. For color conversion, YUV conversion is performed as in the first embodiment.

【0120】量子化部610は、R色、G色、B色位置
相関変換部604、605、606から入力される直流
信号LLR、LLG、LLBを量子化して、符号化部6
11に出力する。具体的には、量子化部610は、RG
Bの直流成分LLR、LLG、LLBを各5ビットに線
形量子化する。また、量子化部610は色変換部609
から入力される交流明度信号YHと交流色信号UH、V
Hに対して、第2段階目の量子化を施して、符号化部6
11に出力する。第2段階目の量子化は実施の形態1と
同様のベクトル量子化を行う。
The quantization section 610 quantizes the DC signals LLR, LLG, LLB inputted from the R, G, B color position correlation conversion sections 604, 605, 606, and
11 is output. Specifically, the quantization unit 610 outputs
The DC components LLR, LLG, and LLB of B are linearly quantized into 5 bits each. Further, the quantization unit 610 includes a color conversion unit 609.
AC brightness signal YH and AC color signals UH, V
H is subjected to a second-stage quantization, and the encoding unit 6
11 is output. The second stage quantization performs the same vector quantization as in the first embodiment.

【0121】符号化部611は、量子化部610で量子
化された情報(2×2画素ブロック単位)を纏めて固定
長符号を作成してページメモリ403に格納する。図1
5は固定長符号のフォーマットの一例を示している。実
施の形態1と同様に24ビットの固定長符号が作成され
る。
The coding section 611 creates a fixed-length code by combining the information (in units of 2 × 2 pixel blocks) quantized by the quantization section 610 and stores it in the page memory 403. Figure 1
5 shows an example of a fixed-length code format. As in the first embodiment, a 24-bit fixed length code is created.

【0122】以上説明したように、実施の形態2の符号
化部によれば、各コンポーネントの直流成分に対して色
変換を行わない構成としたので、実施の形態1の効果
(「情報の強い偏りが処理の上流で生じる」)に加え
て、以下のような回路規模縮小の効果を奏する。
As described above, according to the encoding unit of the second embodiment, since the color conversion is not performed on the DC component of each component, the effect of the first embodiment (“the strong information Bias occurs upstream of processing "), and the following circuit scale reduction effect is achieved.

【0123】色信号の直流成分を量子化するための量
子化テーブルが不要となる。色信号の直流成分は、絶対
値が小さな値ほど重要な意味を持つため、通常これを量
子化する時には非線形な量子化を行なう必要がある。か
かる非線形量子化を行う非量子化量子テーブルの一例を
図14に示す。非線形量子化を行う方法としては、計算
で行う方法と、変換テーブルを用いて行う方法とがあ
る。しかし、前者は処理速度が遅く、後者は処理速度は
速いが変換テーブルを機械の中に用意する必要がありコ
スト高である。このような困難は、明度信号と色信号と
いう2つの性質の異なる直流成分を量子化するために生
じる困難である。これに対し、実施の形態2の符号化部
では、各色の直流成分は色変換を行なわないために直流
成分の量子化は全て単純なビット削減方式で行なうこと
ができ、非線形量子化のためのテーブル等を用意する必
要はない。
A quantization table for quantizing the DC component of the color signal becomes unnecessary. The smaller the absolute value of the DC component of the color signal is, the more significant the value is. Therefore, it is usually necessary to perform nonlinear quantization when quantizing the DC component. FIG. 14 shows an example of a non-quantized quantization table for performing such non-linear quantization. As a method of performing nonlinear quantization, there are a method of performing calculation and a method of using a conversion table. However, the former has a slower processing speed, and the latter has a faster processing speed, but requires a conversion table in the machine, which is costly. Such difficulty is caused by quantizing DC components having two different properties, that is, a brightness signal and a color signal. On the other hand, in the encoding unit according to the second embodiment, since the DC component of each color is not subjected to color conversion, quantization of the DC component can be all performed by a simple bit reduction method. There is no need to prepare a table or the like.

【0124】直流成分の色変換を行わないので、直流
成分用の色変換回路が不要となる。図16は、実施の形
態2の符号化部における色変換回路およびハール変換回
路の必要数を示している。同図に示すように、直流成分
用の色変換回路が不要となる。
Since the color conversion of the DC component is not performed, the color conversion circuit for the DC component becomes unnecessary. FIG. 16 illustrates the required numbers of color conversion circuits and Haar conversion circuits in the encoding unit according to the second embodiment. As shown in the figure, a color conversion circuit for a DC component is not required.

【0125】なお、実施の形態2の符号化部では、直流
成分を色変換しないために、最終的に得られる情報の局
在効果としては直流成分に関してはやや弱い。しかし、
固定長圧縮の場合には必ずしもこのデメリットが大きい
とはいえない。何故ならば、高精細な色再現が求められ
るカラー複写機においては、色信号といえどもその直流
成分を大幅に削除することは画質上許されない場合が多
く、結局、明度信号と色信号の直流成分のビット数が大
幅に変わることはないからである。
In the encoding unit according to the second embodiment, since the DC component is not subjected to color conversion, the localization effect of the finally obtained information is slightly weak for the DC component. But,
In the case of fixed-length compression, this disadvantage is not necessarily large. Because, in a color copier that requires high-definition color reproduction, it is often not possible to significantly remove the DC component of color signals, even in terms of image quality. This is because the number of bits of the component does not change significantly.

【0126】一般的に行われる符号化法においても、色
信号の交流成分に関しては破棄してしまうこともある
(いわゆるサブサンプリング)が、直流成分はあまり量
子化しない。このため、直流成分を色変換しないデメリ
ットよりもむしろ非線形量子化テーブルや色変換回路を
1つ削減できるといった回路規模縮小メリットの方が大
きい場合も多い。
In the commonly used encoding method, the AC component of the color signal may be discarded (so-called subsampling), but the DC component is not quantized much. For this reason, in many cases, the merit of circuit scale reduction such as the reduction of one nonlinear quantization table and one color conversion circuit is larger than the disadvantage of not performing color conversion of a DC component.

【0127】なお、実施の形態2の符号化器402で
は、交流成分量子化部608を削除することにしても良
い。この場合、実施の形態1の説明で述べた「上流での
情報の強い偏り」による効果は存在しないが、上述の効
果、の効果を奏する。
In the encoder 402 according to the second embodiment, the AC component quantization section 608 may be omitted. In this case, although there is no effect due to the “strong bias of information upstream” described in the description of the first embodiment, the above-described effect can be obtained.

【0128】図17は、復号化器404の実施の形態2
を示すブロック図である。図17に示す実施の形態2の
復号化器404は実施の形態2の符号化器402で符号
化された圧縮符号を復号化するためのものである。図1
7に示す復号化器404は、符号分割部621と、逆量
子化部622、逆色変換部624と、交流成分逆量子化
部625と、R色位置相関逆変換部626、G色位置相
関逆変換部627、B色位置相関逆変換部628と、復
元R色n×mバッファ629、復元G色n×mバッファ
630、復元B色n×mバッファ631とを備えてい
る。
FIG. 17 shows a second embodiment of the decoder 404.
FIG. A decoder 404 according to the second embodiment shown in FIG. 17 is for decoding the compressed code encoded by the encoder 402 according to the second embodiment. Figure 1
7 includes a code division unit 621, an inverse quantization unit 622, an inverse color conversion unit 624, an AC component inverse quantization unit 625, an R color position correlation inverse conversion unit 626, and a G color position correlation An inverse transform unit 627, a B color position correlation inverse transform unit 628, a restored R color nxm buffer 629, a restored G color nxm buffer 630, and a restored B color nxm buffer 631 are provided.

【0129】つぎに、図17の復号化器404の復号化
方法を説明する。符号化器402にて圧縮されページメ
モリ403に格納された圧縮符号(図15参照)は、作
像時にページメモリ403から2×2の画素ブロック単
位で読み出され、復号化器404で復号化され、フィル
タ・階調処理部405でフィルタ処理等が施された後に
書き込み系へと転送される。
Next, the decoding method of the decoder 404 in FIG. 17 will be described. The compressed code (see FIG. 15) compressed by the encoder 402 and stored in the page memory 403 is read from the page memory 403 in units of 2 × 2 pixel blocks at the time of image formation, and decoded by the decoder 404. Then, after being subjected to filter processing and the like by the filter / gradation processing unit 405, the data is transferred to the writing system.

【0130】符号分割部621は、2×2の画素ブロッ
クの圧縮符号(図15参照)を符号構成にしたがって、
LLR、LLG、LLB、(ベクトル)YH、(ベクト
ル)UH(ベクトル)VHに振り分け、逆量子化部62
2に出力する。逆量子化部622は、符号分割部621
から入力される圧縮符号LLR、LLG、LLB、(ベ
クトル)YH、(ベクトル)UH(ベクトル)VHを逆
量子化する。
The code division unit 621 converts the compression code of the 2 × 2 pixel block (see FIG. 15) according to the code configuration.
LLR, LLG, LLB, (vector) YH, (vector) UH (vector) VH, and the inverse quantization unit 62
Output to 2. The inverse quantization unit 622 includes a code division unit 621
The compression codes LLR, LLG, LLB, (vector) YH and (vector) UH (vector) VH input from are dequantized.

【0131】具体的には、逆量子化部622は、LL
R、LLG、LLBを9ビットに復元して、R色位置相
関逆変換部626、G色位置相関逆変換部627、B色
位置相関逆変換部628に夫々出力する。また、逆量子
化部622は、YHについては符号値に従い、上記図6
のテーブルを使用してベクトルを復元し、また、UH、
VHについては25値の符号から符号化時とは逆の手順
でnu、nvを復元して逆色変換部624に出力する。
More specifically, the inverse quantization unit 622 calculates LL
The R, LLG, and LLB are restored to 9 bits and output to the R color position correlation inverse transform unit 626, G color position correlation inverse transform unit 627, and B color position correlation inverse transform unit 628, respectively. In addition, the inverse quantization unit 622 determines the YH according to the code value,
And reconstruct the vector using the table in UH,
With regard to VH, nu and nv are restored from the 25-value code in the reverse procedure to that at the time of encoding, and output to the inverse color conversion unit 624.

【0132】逆色変換部624は、復元後の交流明度信
号YH、交流色信号UH、VHをYUV変換の逆変換を
施し、復元されたHR、HG、HBを交流成分逆量子化
部625に出力する。交流成分逆量子化部625は、復
元されたHR、HG、HBを逆量子化(この場合、各色
にHH=0を加える)して、R色位置相関逆変換部62
6、G色位置相関逆変換部627、B色位置相関逆変換
部628に夫々出力する。
The inverse color conversion unit 624 performs the inverse conversion of the YUV conversion on the restored AC lightness signal YH and AC color signals UH and VH, and outputs the restored HR, HG and HB to the AC component inverse quantization unit 625. Output. The AC component inverse quantization unit 625 inversely quantizes the restored HR, HG, HB (in this case, adds HH = 0 to each color), and converts the R color position correlation inverse transform unit 62.
6. Output to the G color position correlation inverse conversion unit 627 and the B color position correlation inverse conversion unit 628, respectively.

【0133】R色、G色、B色位置相関逆変換部62
6、627、628は、復元された(LLR、HR)、
(LLG、HG)、(LLB、HB)を夫々、ハールウ
ェーブレット変換の逆変換を施し、復元R色、復元G
色、復元B色n×mバッファ629、630、631に
格納する。以上のようにして、2×2の画素ブロック単
位で復元がなされる。なお、大量のメモリを使用可能な
場合は、各逆変換をテーブル参照方式で行えば処理時間
を短縮することが可能となる。
R, G, B color position correlation inverse conversion section 62
6, 627, 628 are restored (LLR, HR),
(LLG, HG) and (LLB, HB) are each subjected to the inverse transform of the Haar wavelet transform to obtain a restored R color and a restored G
The color and the restored B color are stored in the nxm buffers 629, 630 and 631. As described above, restoration is performed in units of 2 × 2 pixel blocks. When a large amount of memory can be used, the processing time can be reduced by performing each inverse conversion by a table reference method.

【0134】以上説明したように、実施の形態2の復号
化部によれば、実施の形態2の符号化器402で符号化
した符号情報を復元することが可能となる。
As described above, according to the decoding unit of the second embodiment, it is possible to restore the code information coded by the encoder 402 of the second embodiment.

【0135】(実施の形態3)図18は、符号化器40
2の実施の形態3を示すブロック図である。実施の形態
3の符号化器402が、実施の形態1の符号化器402
(図2)と異なる点は、実施の形態1の符号化器402
では、交流成分を明度信号と色信号とに分離する構成と
したが、実施の形態3の符号化器402は、交流成分を
明度信号と色信号に分離しないで、交流成分を量子化す
る構成とした。実施の形態3の符号化器402は、実施
の形態1の符号化部(図2)で、色変換部509を削除
した構成となっており、他の部分の機能は実施の形態1
の符号化器402(図2)とほぼ同様である。
(Embodiment 3) FIG.
FIG. 13 is a block diagram showing a third embodiment of the present invention. The encoder 402 according to the third embodiment is different from the encoder 402 according to the first embodiment.
The difference from FIG. 2 is that the encoder 402 of the first embodiment is different.
Although the configuration is such that the AC component is separated into the brightness signal and the color signal, the encoder 402 according to the third embodiment quantizes the AC component without separating the AC component into the brightness signal and the color signal. And The encoder 402 according to the third embodiment has a configuration in which the color conversion unit 509 is deleted from the encoding unit (FIG. 2) according to the first embodiment, and the functions of the other units are the same as those according to the first embodiment.
Is substantially the same as the encoder 402 (FIG. 2).

【0136】図18に示す符号化器402は、スキャナ
401からn×m単位(例えば、2×2画素ブロック単
位)で入力されるR、G、B色のコンポーネント(例え
ば、各色1画素8ビット)からなる画像データを夫々一
時的に格納するR、G、B色のn×mバッファ701、
702、703と、R、G、B色のn×mバッファ70
1、702、703に格納された各コンポーネント(R
GB)毎に位置相関変換を行って、各色毎に直流成分と
交流成分に分離し、直流成分を色変換部707に出力す
る一方、交流成分を交流成分量子化部708に出力する
R色、G色、B色位置相関変換部704、705、70
6とを備えている。
The encoder 402 shown in FIG. 18 has R, G, and B components (for example, 8 bits per pixel for each color) input from the scanner 401 in n × m units (for example, 2 × 2 pixel block units). ), An n × m buffer 701 of R, G, and B colors for temporarily storing image data
702, 703 and n × m buffers 70 of R, G, B colors
1, (702, 703)
GB) for each color, to separate a DC component and an AC component for each color, and to output the DC component to the color conversion unit 707, while outputting the AC component to the AC component quantization unit 708; G color, B color position correlation conversion units 704, 705, 70
6 is provided.

【0137】また、図18に示す符号化器402は、R
色、G色、B色位置相関変換部704、705、706
から入力される各コンポーネントの直流成分を色変換し
て、直流明度信号と直流色信号に分離して量子化部71
0に出力する色変換部707と、R色、G色、B色位置
相関変換部704、705、706から入力される各コ
ンポーネントの交流成分を、第1段階の量子化を施して
量子化部710に出力する交流成分量子化部708と、
色変換部707から入力される直流明度信号と直流色信
号を量子化し、また、交流成分量子化部708から入力
される交流信号に対して第2段階目の量子化を施して、
符号化部711に出力する量子化部710と、量子化部
710で量子化された情報(2×2画素単位)を纏めて
固定長符号を作成してページメモリ403に格納する符
号化部711とを備えている。
Further, the encoder 402 shown in FIG.
Color, G, and B color position correlation conversion units 704, 705, and 706
The DC component of each component input from the color conversion unit is color-converted, separated into a DC lightness signal and a DC color signal, and
The AC component of each component input from the color conversion unit 707 outputting to 0 and the R, G, and B color position correlation conversion units 704, 705, and 706 is subjected to a first-stage quantization to perform a quantization process. An AC component quantization unit 708 that outputs the signal to an AC component quantizing unit 710;
The DC brightness signal and the DC color signal input from the color conversion unit 707 are quantized, and the AC signal input from the AC component quantization unit 708 is subjected to a second-stage quantization,
A quantizing unit 710 that outputs to the encoding unit 711 and an encoding unit 711 that creates a fixed-length code by combining the information (in units of 2 × 2 pixels) quantized by the quantization unit 710 and stores the code in the page memory 403. And

【0138】次に、上記図18の符号化器402の動作
を詳細に説明する。図18において、スキャナ401か
ら読み込まれたR、G、B色のコンポーネント(例え
ば、2×2画素ブロック単位、各色1画素8ビット)か
らなる画像データは、R、G、B色のn×mバッファ7
01、702、703に入力し、一時的に格納される。
Next, the operation of the encoder 402 shown in FIG. 18 will be described in detail. In FIG. 18, image data composed of components of R, G, and B colors (for example, 2 × 2 pixel block units, 8 bits for each pixel of each color) read from the scanner 401 is nxm of R, G, and B colors. Buffer 7
01, 702, and 703, and are temporarily stored.

【0139】R色、G色、B色位置相関変換部704、
705、706は、R、G、B色のn×mバッファ70
1、702、703に格納された各コンポーネント(R
GB)毎に位置相関変換を行って、各色毎に直流成分L
LR、LLG、LLBと交流成分HR、HG、HBに分
離し、直流成分LLR、LLG、LLBを色変換部70
7に出力する一方、交流成分HR、HG、HBを交流成
分量子化部708に出力する。位置相関変換としては、
実施の形態1と同様に、ハール変換を使用する。
The R, G, and B color position correlation conversion unit 704,
Reference numerals 705 and 706 denote n × m buffers 70 for R, G, and B colors.
1, (702, 703)
GB) to perform a position correlation conversion to obtain a DC component L for each color.
LR, LLG, LLB and AC components HR, HG, HB are separated, and the DC components LLR, LLG, LLB are separated into color conversion units 70.
7, while the AC components HR, HG, HB are output to an AC component quantization unit 708. As the position correlation conversion,
As in the first embodiment, the Haar transform is used.

【0140】交流成分量子化部708は、入力される各
コンポーネントの交流成分HR、HG、HBを、第1段
階の量子化を施して量子化部710に出力する。交流成
分量子化部708における第1段階の量子化では、もと
もと9ビット、9ビット、10ビットの深さを持つH
L、LH、HH係数の下位ビットをHL、LH係数につ
いては2ビット、HH係数については3ビット削減する
(図11(C)参照)。
The AC component quantization section 708 subjects the input AC components HR, HG, HB of each component to first-stage quantization and outputs the result to the quantization section 710. In the first-stage quantization in the AC component quantization unit 708, an H having a depth of 9 bits, 9 bits, and 10 bits is originally used.
The lower bits of the L, LH, and HH coefficients are reduced by 2 bits for the HL and LH coefficients and 3 bits for the HH coefficient (see FIG. 11C).

【0141】色変換部707は、R色、G色、B色位置
相関変換部704、705、706から入力される各コ
ンポーネントの直流成分LLR、LLG、LLBを色変
換(明度・色分離)して、直流明度信号YLLと直流色
信号ULL、VLLを生成して、量子化部710に出力
する。
The color conversion unit 707 performs color conversion (brightness / color separation) on the DC components LLR, LLG, and LLB of each component input from the R, G, and B color position correlation conversion units 704, 705, and 706. Then, a DC lightness signal YLL and DC color signals ULL and VLL are generated and output to the quantization unit 710.

【0142】量子化部710は、色変換部707から入
力される直流明度信号YLLと直流色信号ULL、VL
Lを量子化し、また、交流成分量子化部708から入力
される交流信号HR、HG、HBに対して第2段階目の
量子化を施して、符号化部711に出力する。ここで、
交流成分の第2段階目の量子化としては、G色の交流成
分HGをベクトル量子化し、またR、B色の交流成分H
R、HBについてはG色の交流成分との比を量子化す
る。
The quantizing section 710 includes a DC lightness signal YLL input from the color converting section 707 and DC color signals ULL and VL.
L is quantized, and the AC signals HR, HG, and HB input from the AC component quantization unit 708 are subjected to the second-stage quantization, and are output to the encoding unit 711. here,
As the second stage quantization of the AC component, the G color AC component HG is vector-quantized, and the R and B color AC components H
For R and HB, the ratio with the AC component of G color is quantized.

【0143】符号化部711は、量子化部710で量子
化された情報(2×2画素単位)を纏めて固定長符号を
作成してページメモリ403に格納する。図19は固定
長符号のフォーマットの一例を示している。実施の形態
1と同様に24ビットの固定長符号が作成される。
The coding section 711 creates a fixed-length code by combining the information (in units of 2 × 2 pixels) quantized by the quantization section 710 and stores it in the page memory 403. FIG. 19 shows an example of a fixed-length code format. As in the first embodiment, a 24-bit fixed length code is created.

【0144】以上説明したように、実施の形態3の符号
化部によれば、交流成分を明度信号と色信号とに分離し
ないため、実施の形態1の効果(上流での情報の強い偏
り)に加えて、交流成分用の色変換回路が不要となると
いう回路規模を縮小することが可能となる。図20は、
実施の形態3の符号化部における色変換回路およびハー
ル変換回路の必要数を示している。同図に示すように、
交流成分用の色変換回路が不要となる。
As described above, according to the encoding unit of the third embodiment, since the AC component is not separated into the brightness signal and the chrominance signal, the effect of the first embodiment (strong bias of information at the upstream). In addition, it is possible to reduce the circuit scale that eliminates the need for a color conversion circuit for AC components. FIG.
19 illustrates the required numbers of color conversion circuits and Haar conversion circuits in the encoding unit according to the third embodiment. As shown in the figure,
A color conversion circuit for an AC component is not required.

【0145】ここで、実施の形態1において存在した
「交流明度信号」と「交流色信号」の間にある交流成分
ベクトルの比例関係は、そもそもR、G、B各色の交流
成分ベクトルの比例関係に由来するものである。従って
この比例関係もまた、実施の形態1で述べたようにブロ
ック内に2色以下の色しかない場合に常に成り立つ。よ
って、交流成分同士の比例関係を用いても実施の形態1
と同様に交流成分を効率よく圧縮できることになる。
Here, the proportional relationship between the AC component vectors existing between the “AC lightness signal” and the “AC color signal” in the first embodiment is the proportional relationship between the AC component vectors of the R, G, and B colors. It is derived from. Therefore, this proportional relationship always holds when there are only two or less colors in the block as described in the first embodiment. Therefore, the first embodiment can be used even if the proportional relationship between AC components is used.
In the same manner as described above, the AC component can be efficiently compressed.

【0146】なお、実施の形態3においては、量子化部
710でG色の交流成分HGをベクトル量子化し、また
R、B色の交流成分HR、HBについてはG色の交流成
分との比を量子化することとしたが、G色はエッジを有
さないが、R、B色はエッジを有する場合に、3色とも
エッジが消えてしまうという問題がある。これを解消す
るため、例えば3色のうちでもっともエッジが大きな色
(特定色と呼ぶ)をベクトル量子化し、他の色は特定色
のベクトルとの比を量子化することにしても良い。
In the third embodiment, the G color AC component HG is vector-quantized by the quantization section 710, and the ratio of the R and B color AC components HR and HB to the G color AC component is determined. Although quantization is performed, if the G color has no edge, but the R and B colors have an edge, there is a problem that the edges disappear in all three colors. In order to solve this, for example, the color having the largest edge (referred to as a specific color) among the three colors may be vector-quantized, and the ratio of the other colors to the vector of the specific color may be quantized.

【0147】この場合、固定長符号に2ビットを加え、
どの色が特定色となっているのかを示す必要がある。ま
た、2×2ブロック単位ではなくより大きなブロック、
例えば4×4ブロック単位で特定色を決めることもでき
る。この場合には4つの2×2ブロックにつき2ビット
の特定色を示す符号が付くので、結果として4つの2×
2ブロック単位で固定長符号が作成されることになる。
In this case, 2 bits are added to the fixed length code, and
It is necessary to indicate which color is a specific color. Also, instead of 2 × 2 block units, larger blocks,
For example, a specific color can be determined in units of 4 × 4 blocks. In this case, since a code indicating a specific color of 2 bits is attached to four 2 × 2 blocks, four 2 × 2 blocks are consequently obtained.
A fixed-length code is created in units of two blocks.

【0148】(実施の形態4)図21は、図1の符号化
部の実施の形態4を示すブロック図である。実施の形態
4では、実施の形態1の符号化部(図2)では、R色、
G色、B色位置相関変換部504、505、506が位
置相関変換として周波数変換(ハール変換等)を行う構
成であるのに対して、BTC変換を行う場合を説明す
る。
(Embodiment 4) FIG. 21 is a block diagram showing Embodiment 4 of the encoding unit in FIG. In the fourth embodiment, the encoding unit (FIG. 2) of the first embodiment uses R color,
A case will be described where the G and B color position correlation conversion units 504, 505, and 506 perform frequency conversion (Haar conversion and the like) as position correlation conversion, but perform BTC conversion.

【0149】図21は、符号化器402の実施の形態1
を示すブロック図である。図21に示す符号化器402
は、R、G、B色のn×mバッファ801、802、8
03と、R色、G色、B色位置相関変換部804、80
5、806と、色変換部807、色変換部809と、量
子化部810と、符号化部811とを備えている。
FIG. 21 is a diagram showing Embodiment 1 of the encoder 402.
FIG. Encoder 402 shown in FIG.
Are n × m buffers 801, 802, 8 of R, G, B colors
03 and R, G, and B color position correlation conversion units 804 and 80
5, 806, a color conversion unit 807, a color conversion unit 809, a quantization unit 810, and an encoding unit 811.

【0150】BTC変換は、特開平10−257331
号公報の段落番号(0151)に示されているように、
公知の固定長圧縮技術であり、例えば4×4画素のブロ
ック毎に画像を平均濃度データLA(8ビット)、階調
幅指標データLD(8ビット)、4×4ブロック内で各
画素値を量子化した場合の量子化値データφ(各2ビッ
ト)へと変換する方法である。
The BTC conversion is described in JP-A-10-257331.
As shown in paragraph number (0151) of the publication,
This is a known fixed-length compression technology. For example, an image is quantized for each block of 4 × 4 pixels by average density data LA (8 bits), gradation width index data LD (8 bits), and each pixel value in 4 × 4 blocks. This is a method of converting into quantized value data φ (2 bits each) when it is converted.

【0151】つぎに、図21の符号化器402の符号化
方法を説明する。4×4画素単位でR色、G色、B色n
×mバッファ801、802、803に夫々読み込まれ
た各色の画素データは、R色、G色、B色位置相関変換
部804、805、806で夫々BTC変換されて、L
A、LD、φが生成される。以下、X色のLA係数をL
AX、X色のLD係数をLDX、X色のφ係数をφXと
略記する(X=R、G、B)。
Next, an encoding method of the encoder 402 in FIG. 21 will be described. R color, G color, B color n in 4 × 4 pixel units
The pixel data of each color read into the × m buffers 801, 802, and 803 are respectively BTC-converted by the R, G, and B color position correlation conversion units 804, 805, and 806, and the L
A, LD, and φ are generated. Hereinafter, the LA coefficient of the X color is represented by L
The LD coefficients of AX and X are abbreviated as LDX, and the φ coefficient of X is abbreviated as φX (X = R, G, B).

【0152】色変換部807は、R色、G色、B色位置
相関変換部804、805、806から入力される(L
AR)、(LAG、LDG)、(LAB)をLDを色変
換して、(YLA、YLD)、(ULA、VLA)、
(ULD、VLD)を量子化部810に出力する。ま
た、色変換部809は、R色、G色、B色位置相関変換
部804、805、806から入力される(φR)、
(φG)、(φB)を色変換して、(Yφ)、(Uφ、
Vφ)を量子化部810に出力する。
The color conversion unit 807 is input from the R, G, and B color position correlation conversion units 804, 805, and 806 (L
AR), (LAG, LDG), and (LAB) by color-converting the LD into (YLA, YLD), (ULA, VLA),
(ULD, VLD) are output to the quantization unit 810. Also, the color conversion unit 809 is input from the R, G, and B color position correlation conversion units 804, 805, and 806 (φR),
(ΦG) and (φB) are color-converted into (Yφ), (Uφ,
Vφ) to the quantization unit 810.

【0153】色変換は下式により行われ、色変換後の係
数を以下のように略記する。 YZ=(ZR+2*ZG+ZB)/4 UZ=ZR−ZG VZ=ZB−ZG (Z=LA、LD、φ)
The color conversion is performed by the following equation, and the coefficients after the color conversion are abbreviated as follows. YZ = (ZR + 2 * ZG + ZB) / 4 UZ = ZR-ZG VZ = ZB-ZG (Z = LA, LD, φ)

【0154】量子化部810では、入力される(YL
A、YLD)、(ULA、VLA)、(ULD、VL
D)、(Yφ)、(Uφ、Vφ)を量子化して符号化部
811に出力する。具体的には、YLA、YLDについ
ては、各8ビットのまま量子化されずに符号化部811
へと送られる。ULA、ULD、VLA、VLDは後述
する図25に示す非エッジ部においてULL、VLLを
6ビットに非線形量子化するのと同じ方法で各6ビット
に量子化される。また、Yφは量子化されずに32ビッ
トのまま符号化部811へと送られる。Uφ、Vφは1
6次元ベクトルとして扱われ、Yφとの正規化された内
積の絶対値が充分1に近い場合、例えばUφについては
|Yφ・Uφ|>0.8×|Yφ||Uφ|である場合
には、比例関係にある、すなわち、Yφ=nu×Uφと
みなして、比例定数nu=|Uφ|/|Yφ|を量子化
する。他方、|Yφ・Uφ|が0.8以下の場合には、
比例してないとみなして、nu=0として量子化する。
Vφについても同様である。比例定数nu、nvは、各
々−2.0〜2.0の値を−2.0、−1.98、−
1.96、、、0、、、、1.96、1.98、2.0
と0.02単位に区切った201値8ビットの値を取る
こととする。
The quantizer 810 receives the input (YL
A, YLD), (ULA, VLA), (ULD, VL
D), (Yφ), and (Uφ, Vφ) are quantized and output to the encoding unit 811. Specifically, the encoding unit 811 for YLA and YLD is not quantized with each bit being 8 bits.
Sent to. The ULA, ULD, VLA, and VLD are quantized to 6 bits in the same manner as the non-linear quantization of ULL and VLL to 6 bits in a non-edge portion shown in FIG. In addition, Yφ is sent to the encoding unit 811 without being quantized, leaving 32 bits. Uφ and Vφ are 1
If it is treated as a 6-dimensional vector and the absolute value of the normalized inner product with Yφ is sufficiently close to 1, for example, for Uφ, | Yφ · Uφ |> 0.8 × | Yφ || Uφ | Assuming that Yφ = nu × Uφ, the proportional constant nu = | Uφ | / | Yφ | is quantized. On the other hand, when | Yφ · Uφ | is 0.8 or less,
Assuming that it is not proportional, quantization is performed with nu = 0.
The same applies to Vφ. The proportionality constants nu and nv are respectively -2.0, -1.98,-
1.96, ..., 0, ..., 1.96, 1.98,2.0
And an 8-bit value of 201 values divided into 0.02 units.

【0155】符号化部811は、量子化部810で量子
化された情報(4×4画素ブロック単位)を纏めて固定
長符号を作成してページメモリ403に格納する。この
ようにYLA、YLD=各8ビット、ULA、ULD、
VLA、VLD=各6ビット、Yφ=32ビット、U
φ、Vφ=各8ビットと符号化されたために、固定長符
号全体では4×4画素ブロックが88ビットに圧縮され
約4分の1の固定長圧縮が達成される。
The encoding section 811 creates a fixed-length code by combining the information (in units of 4 × 4 pixel blocks) quantized by the quantization section 810 and stores it in the page memory 403. Thus, YLA, YLD = 8 bits each, ULA, ULD,
VLA, VLD = 6 bits each, Yφ = 32 bits, U
Since each of φ and Vφ is coded as 8 bits, the 4 × 4 pixel block is compressed to 88 bits in the entire fixed length code, and a fixed length compression of about の is achieved.

【0156】実施の形態4の符号化部によれば、BTC
変換自体が量子化を含むために色変換前に量子化部は設
けていないが、処理の上流側で位置相関変換であるBT
Cを行っているため、色変換部に送られるφはビット数
が2ビットに低減されている。これにより、色変換回路
の入力ビット数を低減可能である。
According to the encoding unit of the fourth embodiment, BTC
Although the quantization itself is not provided before the color conversion because the conversion itself includes the quantization, the BT which is the position correlation conversion on the upstream side of the processing is used.
Since C is performed, the number of bits of φ sent to the color conversion unit is reduced to 2 bits. Thereby, the number of input bits of the color conversion circuit can be reduced.

【0157】図22は、復号化器404の実施の形態4
を示すブロック図である。図22に示す実施の形態4の
復号化器404は実施の形態4の符号化器402で符号
化された圧縮符号を復号化するためのものである。図2
2に示す復号化器404は、符号分割部821と、逆量
子化部822、逆色変換部823と、逆色変換部82
4、R色位置相関逆変換部826、G色位置相関逆変換
部827、B色位置相関逆変換部828と、復元R色、
G色、B色n×mバッファ829、830、831とを
備えている。
FIG. 22 shows Embodiment 4 of the decoder 404.
FIG. A decoder 404 according to the fourth embodiment shown in FIG. 22 is for decoding the compressed code encoded by the encoder 402 according to the fourth embodiment. FIG.
2 includes a code division unit 821, an inverse quantization unit 822, an inverse color conversion unit 823, and an inverse color conversion unit 82.
4. R color position correlation inverse conversion section 826, G color position correlation inverse conversion section 827, B color position correlation inverse conversion section 828,
G and B color nxm buffers 829, 830, 831 are provided.

【0158】図22に示す復号化器404の復号化方法
を説明する。符号分割部821は、ページメモリ403
に格納された符号情報(4×4画素ブロック単位)を、
(YLA、YLD)、(ULA、VLA)、(ULD、
VLD)、(Yφ)、(Uφ、Vφ)に振り分けて逆量
子化部822に出力する。逆量子化部822は、(YL
A、YLD)、(ULA、VLA)、(ULD、VL
D)、(Yφ)、(Uφ、Vφ)を逆量子化して、逆量
子化後の(YLA、YLD)、(ULA、VLA)、
(ULD、VLD)を逆色変換部823に出力する一
方、逆量子化後の(Yφ)、(Uφ、Vφ)を逆色変換
部824に出力する。
The decoding method of the decoder 404 shown in FIG. 22 will be described. The code division unit 821 is used for the page memory 403
The code information (4 × 4 pixel block unit) stored in
(YLA, YLD), (ULA, VLA), (ULD,
VLD), (Yφ), and (Uφ, Vφ) and output to the inverse quantization unit 822. The inverse quantization unit 822 calculates (YL
A, YLD), (ULA, VLA), (ULD, VL
D), (Yφ), (Uφ, Vφ) are inversely quantized, and (YLA, YLD), (ULA, VLA),
(ULD, VLD) is output to the inverse color conversion unit 823, and (Yφ) and (Uφ, Vφ) after inverse quantization are output to the inverse color conversion unit 824.

【0159】逆色変換部823は、入力される(YL
A、YLD)、(ULA、VLA)、(ULD、VL
D)に対して、色変換部807の色変換の逆色変換を施
して、(LAR)、(LAG、LDG)、(LAB)を
復元して、R色位置相関逆変換部826、G色位置相関
逆変換部827、B色位置相関逆変換部828に夫々出
力する。また、逆色変換部824は、入力される(Y
φ)、(Uφ、Vφ)に対して、逆色変換部804の逆
色変換を施して、(φR)、(φG)、(φB)を復元
して、R色位置相関逆変換部826、G色位置相関逆変
換部827、B色位置相関逆変換部828に夫々出力す
る。
The inverse color conversion unit 823 receives the input (YL)
A, YLD), (ULA, VLA), (ULD, VL
D), inverse color conversion of the color conversion of the color conversion unit 807 is performed to restore (LAR), (LAG, LDG), and (LAB), and the R color position correlation inverse conversion unit 826, G color The signals are output to the position correlation inverse transform unit 827 and the B color position correlation inverse transform unit 828 respectively. Also, the inverse color conversion unit 824 receives the input (Y
φ) and (Uφ, Vφ) are subjected to inverse color conversion by the inverse color conversion unit 804 to restore (φR), (φG), and (φB), and the R color position correlation inverse conversion unit 826, The signals are output to the G color position correlation inverse transform unit 827 and the B color position correlation inverse transform unit 828, respectively.

【0160】R色位置相関逆変換部826、G色位置相
関逆変換部827、B色位置相関逆変換部828は、
(LAR)と(φR)、(LAG、LDG)と(φ
G)、(LAB)と(φB)に対して、逆BTC変換を
施して、復元R色、復元G色、復元B色n×mバッファ
829、830、831に格納する。以上のようにし
て、4×4の画素ブロック単位で復元がなされる。
The R color position correlation inverse conversion section 826, G color position correlation inverse conversion section 827, and B color position correlation inverse conversion section 828
(LAR) and (φR), (LAG, LDG) and (φ
G), (LAB) and (φB) are subjected to inverse BTC conversion, and stored in the restored R color, restored G color, restored B color n × m buffers 829, 830, 831. As described above, restoration is performed in units of 4 × 4 pixel blocks.

【0161】上記実施の形態4の復号化部によれば、実
施の形態4の符号化器402で符号化した符号情報を復
元することが可能となる。
According to the decoding unit of the fourth embodiment, it is possible to restore the code information encoded by the encoder 402 of the fourth embodiment.

【0162】(実施の形態5)図23は、符号化器40
2の実施の形態5を示すブロック図である。実施の形態
5の符号化器402は実施の形態1の符号化器402
(図2)に領域判断部を付加したものである。
(Embodiment 5) FIG.
FIG. 16 is a block diagram showing a second embodiment 5; The encoder 402 according to the fifth embodiment is different from the encoder 402 according to the first embodiment.
(FIG. 2) is obtained by adding an area determination unit.

【0163】図23に示す符号化器402は、スキャナ
401からn×m単位(例えば、2×2画素ブロック単
位)で入力されるR、G、B色のコンポーネント(例え
ば、各色1画素8ビット)からなる画像データを夫々一
時的に格納するR、G、B色のn×mバッファ901、
902、903と、R、G、B色n×mバッファ90
1、902、903に格納された各コンポーネント(R
GB)毎に位置相関変換を行って、各色毎に直流成分と
交流成分に分離し、直流成分を色変換部907に出力す
る一方、交流成分を交流成分量子化部908に出力する
R色、G色、B色位置相関変換部904、905、90
6と、R色、G色、B色位置相関変換部904、90
5、906から入力される各コンポーネントの直流成分
を色変換(明度・色分離)して、直流明度信号と直流色
信号を生成して、量子化部910に出力する色変換部9
09とを備えている。
An encoder 402 shown in FIG. 23 has R, G, and B components (for example, 8 bits per pixel for each color) input from the scanner 401 in n × m units (for example, 2 × 2 pixel block units). ), Nxm buffers 901 of R, G, and B colors for temporarily storing image data
902, 903 and R × G, B color n × m buffer 90
1, 902, and 903 (R
GB) for each color, to separate a DC component and an AC component for each color, output the DC component to the color conversion unit 907, and output the R color to output the AC component to the AC component quantization unit 908; G color, B color position correlation conversion units 904, 905, 90
6 and the R, G, and B color position correlation conversion units 904 and 90
5, a color conversion unit 9 that performs color conversion (brightness / color separation) of the DC component of each component input from the components 906 to generate a DC lightness signal and a DC color signal, and outputs the signal to the quantization unit 910.
09.

【0164】また、図23に示す符号化器402は、R
色、G色、B色位置相関変換部904、905、906
から入力される各コンポーネントの交流成分を、第1段
階の量子化を施して色変換部909に出力する交流成分
量子化部908と、交流成分量子化部908から入力さ
れる第1段階目の量子化が施された各コンポーネントの
交流成分を色変換(明度・色分離)して、交流明度信号
と交流色信号を生成して、交流明度信号と交流色信号を
量子化部910に出力するとともに、交流明度信号を領
域判断部912に出力する色変換部909と、色変換部
909から入力される交流明度信号に基づいて領域判定
を行って、領域判定結果を量子化部910に出力すると
ともに、領域フラグを符号化部911に出力する領域判
断部912と、領域判定結果に従って、色変換部907
から入力される直流明度信号と直流色信号を量子化し、
また、色変換部909から入力される交流明度信号と交
流色信号に対して第2段階目の量子化を施して、符号化
部911に出力する量子化部910と、量子化部910
で量子化された情報(2×2画素ブロックの単位)を纏
めて固定長符号を作成してページメモリ403に格納す
る符号化部911とを備えている。
The encoder 402 shown in FIG.
Color, G, B color position correlation conversion units 904, 905, 906
, An AC component quantizer 908 that performs a first-stage quantization of the AC components of the components input from the first component and outputs the result to the color converter 909, and a first-stage quantizer that is input from the AC component quantizer 908. The AC component of each of the quantized components is subjected to color conversion (lightness / color separation) to generate an AC lightness signal and an AC color signal, and output the AC lightness signal and the AC color signal to the quantization unit 910. At the same time, a color conversion unit 909 that outputs an AC brightness signal to the region determination unit 912, and a region determination is performed based on the AC brightness signal input from the color conversion unit 909, and a region determination result is output to the quantization unit 910. At the same time, a region determination unit 912 that outputs a region flag to the encoding unit 911, and a color conversion unit 907 according to the region determination result.
Quantizes the DC brightness signal and DC color signal input from
A second-stage quantization is performed on the AC lightness signal and the AC color signal input from the color conversion unit 909, and the quantization unit 910 outputs the result to the encoding unit 911.
And a coding unit 911 that creates a fixed-length code by combining the information (units of 2 × 2 pixel blocks) quantized by the above and stores it in the page memory 403.

【0165】次に、上記図23の符号化器402の符号
化方法を詳細に説明する。スキャナ401から読み込ま
れたR、G、B色のコンポーネント(例えば、2×2画
素ブロック単位、各色1画素8ビット)からなる画像デ
ータは、R、G、B色のn×mバッファ901、90
2、903に夫々入力し、一時的に格納される。
Next, the encoding method of the encoder 402 shown in FIG. 23 will be described in detail. Image data composed of R, G, and B color components (for example, 2 × 2 pixel block units, each pixel of 8 bits) read from the scanner 401 is an n × m buffer 901, 90 of R, G, and B colors.
2 and 903 and are temporarily stored.

【0166】R色、G色、B色位置相関変換部904、
905、906は、R、G、B色のn×mバッファ90
1、902、903に格納された各コンポーネント(R
GB)毎に位置相関変換を行って、各色毎に直流成分L
LR、LLG、LLBと交流成分HR、HG、HBに分
離し、直流成分LLR、LLG、LLBを色変換部90
7に出力する一方、交流成分HR、HG、HBを交流成
分量子化部908に出力する。ここで、位置相関変換と
しては、実施の形態1と同様に、ハール変換を行う。
The R, G, and B color position correlation conversion unit 904,
905 and 906 are n × m buffers 90 of R, G and B colors
1, 902, and 903 (R
GB) to perform a position correlation conversion to obtain a DC component L for each color.
LR, LLG, LLB and AC components HR, HG, HB are separated, and DC components LLR, LLG, LLB are converted into a color conversion unit 90.
7, while the AC components HR, HG, HB are output to an AC component quantization unit 908. Here, as the position correlation conversion, the Haar transform is performed as in the first embodiment.

【0167】交流成分量子化部908は、入力される各
コンポーネントの交流成分HR、HG、HBを、第1段
階の量子化を施して色変換部909に出力する。交流成
分量子化部908における第1段階の量子化では、例え
ば、交流成分HL、LH、HHのうち、HHを削除す
る。
The AC component quantization section 908 performs the first-stage quantization of the input AC components HR, HG, and HB of each component and outputs the result to the color conversion section 909. In the first-stage quantization in the AC component quantization unit 908, for example, HH is deleted from the AC components HL, LH, and HH.

【0168】色変換部909は、交流成分量子化部90
8から入力される第1段階目の量子化が施された各コン
ポーネントの交流成分を色変換(明度・色分離)して、
交流明度信号YHと交流色信号UH、VHを生成し、交
流明度信号YHおよび交流色信号UH、VHを量子化部
910に出力するとともに、交流明度信号YHを領域判
断部に出力する。
The color conversion section 909 includes an AC component quantization section 90
8 is subjected to color conversion (brightness / color separation) of the AC component of each component that has been subjected to the first stage quantization and
It generates an AC lightness signal YH and AC color signals UH and VH, outputs the AC lightness signal YH and the AC color signals UH and VH to the quantization unit 910, and outputs the AC lightness signal YH to the area determination unit.

【0169】また、色変換部907は、R色、G色、B
色位置相関変換部904、905、906から入力され
る各コンポーネントの直流成分LLR、LLG、LLB
を色変換(明度・色分離)して、直流明度信号YLLと
直流色信号ULL、VLLを生成して、量子化部910
に出力する。
The color conversion unit 907 determines whether the R, G, B
DC components LLR, LLG, LLB of each component input from the color position correlation conversion units 904, 905, 906
Is subjected to color conversion (lightness / color separation) to generate a DC lightness signal YLL and DC color signals ULL and VLL, and a quantization unit 910.
Output to

【0170】領域判断部912は、色変換部909から
入力される交流明度信号YHを用いて領域判断を行な
う。具体的には、領域判断は、YHの振幅が所定値以上
の場合は、その2×2ブロックをエッジ領域、それ以外
の場合は非エッジ領域とする。ここで、エッジ領域とは
ブロック内の濃度変化が激しい領域であり、このような
領域においてはブロック内の平均階調を保存するよりも
解像度を保存する方が重要である。他方、非エッジ領域
とはブロック内の階調変化がなだらかな領域であり、こ
のような領域においては解像度を保存するよりもブロッ
ク内の平均階調を保存する方が重要である。
The area determining section 912 makes an area determination using the AC lightness signal YH input from the color conversion section 909. Specifically, in the area determination, when the amplitude of YH is equal to or larger than a predetermined value, the 2 × 2 block is determined to be an edge area, and otherwise, a non-edge area. Here, the edge area is an area in which the density change in the block is drastic. In such an area, it is more important to save the resolution than to save the average gradation in the block. On the other hand, a non-edge area is an area in which gradation change in a block is gradual, and in such an area, it is more important to save the average gradation in the block than to save the resolution.

【0171】「YHの振幅が所定値以上」か否かの判定
は、具体的には、YHを構成するYHL、YLHのうち
いずれか1つの係数の絶対値が16以上であればそのブ
ロックを「エッジ領域」とし、それ以外の領域を「非エ
ッジ領域」と判定する。YHのみを用いてUH、VHを
用いないのは、YHは交流成分の平均値に近い係数であ
り、HR、HG、HBのエッジが反映されているからで
ある。YHのみを用いて領域判断を行うと、判定に使う
のは2つの条件「|YHL|>15」、「|YLH|>
15」で済むため、判定を簡易に行うことが可能とな
る。ここで|a|はaの絶対値である。領域判断部91
2は、領域判断結果を量子化部910に出力するととも
に、領域フラグを符号化部911に出力する。
The determination as to whether or not “the amplitude of YH is equal to or more than a predetermined value” is made, specifically, when the absolute value of one of the coefficients YHL and YLH constituting YH is 16 or more, the block is determined. An “edge area” is determined, and other areas are determined as “non-edge areas”. The reason why UH and VH are not used and only YH is used is that YH is a coefficient close to the average value of the AC component and reflects the edges of HR, HG and HB. When area determination is performed using only YH, two conditions “| YHL |> 15” and “| YLH |> are used for the determination.
15 ", the determination can be made easily. Here, | a | is the absolute value of a. Area determination unit 91
2 outputs the region determination result to the quantization unit 910 and outputs the region flag to the encoding unit 911.

【0172】量子化部910は、領域判断部912から
の領域判断結果を受けて、エッジ部と非エッジ部とで異
なる量子化を行い、符号化部911は量子化後のビット
をまとめて圧縮符号を生成する。図25は圧縮符号のフ
ォーマットを示している。具体的には、エッジ部はYL
L、ULL、VLL各5ビット、YH4ビット13値、
UH、VHは合わせて25値5ビットに纏めてる。ただ
し、高周波成分の振幅が必ず16以上であるのでエッジ
領域において、(YHL、YLH、YHH)=(0、
0、0)は不要となり、高周波成分のベクトルは図24
のような16値を選べばよく、未使用符号がなくなり効
率がよい。
The quantizing section 910 receives the area judgment result from the area judging section 912 and performs different quantization for the edge portion and the non-edge portion, and the encoding section 911 collectively compresses the quantized bits. Generate a sign. FIG. 25 shows the format of the compression code. Specifically, the edge portion is YL
L, ULL, VLL 5 bits each, YH 4 bits 13 values,
UH and VH are combined into 25 values and 5 bits. However, since the amplitude of the high frequency component is always 16 or more, (YHL, YLH, YHH) = (0,
0, 0) becomes unnecessary, and the vector of the high-frequency component is
It is sufficient to select 16 values as in the following, and there is no unused code, and the efficiency is high.

【0173】この結果、エッジ領域は階調性は粗いが解
像度が比較的保たれた24ビットの圧縮符号に変換され
る。一方非エッジ部は、図25に示すように、YLLに
ついては下位の1ビットを削除して7ビットとし、UL
L、VLLについてはエッジ部のULL、VLLと同様
に非線形量子化を行い、各6ビットにまとめる。
As a result, the edge area is converted to a 24-bit compression code whose gradation is coarse but whose resolution is relatively maintained. On the other hand, in the non-edge portion, as shown in FIG.
For L and VLL, nonlinear quantization is performed in the same manner as for the ULL and VLL at the edge portion, and the L and VLL are combined into 6 bits.

【0174】非線形量子化はテーブル参照方式を用いて
行い、エッジ部と非エッジ部の非線形量子化テーブルと
しては違うテーブルを用いる。また、非エッジ部はブロ
ック内に振幅16以上の高周波成分が存在しない領域で
あるので略平坦な領域とみなすことができることを考慮
し、高周波成分はすべて破棄する。最後に、残った5ビ
ットは、注目ブロックがエッジ領域、非エッジ領域のい
ずれに属するものかを復号化側で認識するための領域フ
ラグとして用いる。
The non-linear quantization is performed using a table reference method, and different tables are used as the non-linear quantization tables for the edge portion and the non-edge portion. The non-edge portion is a region in which no high-frequency component having an amplitude of 16 or more exists in the block, so that it can be regarded as a substantially flat region, and all high-frequency components are discarded. Finally, the remaining 5 bits are used as an area flag for the decoding side to recognize whether the target block belongs to an edge area or a non-edge area.

【0175】具体的には、エッジ領域でUH、VHをあ
らわす5ビットの符号と同じ位置(例えば図25のよう
に、24ビットの圧縮符号中下位5ビット)に、エッジ
領域でUH、VHを表す25値では使わない値を領域フ
ラグとして用いる。本例では、領域フラグとして「00
000」を用い、一方UH、VHを表す25値としては
「00001〜11001」を用いる。これにより、圧
縮符号の下位5ビットを見れば復号側で領域判断ができ
るようになる。また、非エッジ領域は解像度は低いが比
較的階調性の保たれた24ビットの圧縮符号となる。
More specifically, UH and VH are set in the edge area at the same position as the 5-bit code representing UH and VH in the edge area (for example, as shown in FIG. 25, the lower 5 bits in the 24-bit compression code). A value that is not used in the expressed 25 values is used as an area flag. In this example, “00” is set as the area flag.
000 ", while" 00001 to 11001 "are used as the 25 values representing UH and VH. This makes it possible to determine the area on the decoding side by looking at the lower 5 bits of the compression code. The non-edge area is a 24-bit compression code having a low resolution but relatively maintaining gradation.

【0176】この結果、エッジ・非エッジの各領域で重
要な情報を保存した符号が得られることになり、画質劣
化の少ない圧縮が達成できる。また領域にかかわらず2
4ビットの固定長符号が得られることになり、メモリア
クセスが容易で回転等の編集に優れた圧縮符号が得られ
る。さらに符号の転送は一般に1又は数バイト単位で行
われるために、24ビット=3バイトときりの良い本例
の符号は転送時における制御が容易である。
As a result, a code in which important information is stored in each of the edge and non-edge areas can be obtained, and compression with less deterioration in image quality can be achieved. 2 regardless of the area
As a result, a 4-bit fixed-length code can be obtained, and a compressed code that is easy to access in memory and that is excellent in editing such as rotation can be obtained. Further, since the transfer of the code is generally performed in units of one or several bytes, the code of the present example, which is often 24 bits = 3 bytes, is easy to control at the time of transfer.

【0177】なお、領域フラグの選択の仕方であるが、
本例のように、UH、VHを表す25値のうち出現頻度
が高いものに対応する符号値と領域フラグとを相関の高
い符号値とすると2次圧縮を行う必要が生じた場合に有
利である。具体的には、複数ページの画像を複数部出力
する場合に備えてプリンターによってはページメモリの
他にさらにHDDを設けることがある。かかる構成にす
ることにより、ページメモリに格納した固定長符号を2
次圧縮してあるいは固定長符号のままHDDに格納して
おき、これを順次読み出すことで複数ページの画像を電
子ソートしつつ複数部出力することが可能となる。
The method of selecting the area flag is as follows.
As in this example, if the code value corresponding to the one with a high appearance frequency and the region flag among the 25 values representing UH and VH are set to a code value having a high correlation, this is advantageous in a case where it is necessary to perform the secondary compression. is there. Specifically, an HDD may be further provided in addition to the page memory depending on the printer in case of outputting a plurality of images of a plurality of pages. With such a configuration, the fixed-length code stored in the page memory
The next compression or fixed length code is stored in the HDD and sequentially read out, so that a plurality of pages of images can be electronically sorted and a plurality of copies can be output.

【0178】かかる構成は、アクセスが早いが高価であ
るRAMと、アクセスは遅いがメモリ単価が安いHDD
とを組み合わせることで高速かつ大量の電子ソートを達
成するものである。かかる構成において固定長符号に2
次圧縮をかける場合、領域分離型の固定長符号を用いる
と領域の混在により符号間の相関が低下し2次圧縮率が
悪くなる傾向がある。これに対し、エッジ領域において
出現頻度の比較的高い、小さい比例値に対応する符号値
と、非エッジ領域に出現する領域フラグとを相関の高い
符号とすることで、この2次圧縮率の低下を少しでも低
減できる。
[0178] Such a configuration includes a RAM that is fast to access but expensive, and an HDD that is slow to access but low in unit cost of memory.
And achieves high-speed and large-volume electronic sorting. In such a configuration, 2
In the case of performing secondary compression, if a fixed-length code of an area separation type is used, the correlation between codes is reduced due to the mixture of areas, and the secondary compression ratio tends to deteriorate. On the other hand, the code value corresponding to the small proportional value having a relatively high appearance frequency in the edge area and the area flag appearing in the non-edge area are set to a code having a high correlation, so that the secondary compression rate is reduced. Can be reduced even a little.

【0179】なお、領域フラグは、フラグ用の1ビット
を圧縮符号中に用意して用いても良いし、本例のよう
に、他の領域で何か意味のある係数として用いられてい
るビットの中で不使用の値をフラグにしても良い。すな
わち、領域フラグは、フラグ専用のビットを用いても良
いし、係数値を表す符号と一体に構成しても良い。ここ
で、一体に構成するとは、例えば3ビット8値の符号の
うちその符号値が0ならば領域A、符号値が1ならば領
域B、符号値が2〜7ならば領域Cでありかつ2〜7の
それぞれの数値が係数値を表すといった、あるビット列
が領域を表すとともに係数値をも表すような符号の構成
を指す。いずれを用いるかは各領域におけるビット配分
をどのように配分するかによるが、このビット配分は現
像装置のγ特性等に影響されるためにシステム毎に異な
る。このため、システムに最適なビット配分を前提に、
最適な領域フラグの埋め込み方を決定すれば良い。
As the area flag, one bit for the flag may be prepared in the compression code and used, or a bit used as a meaningful coefficient in another area as in this example. The unused value may be flagged. That is, the area flag may use a bit dedicated to the flag, or may be configured integrally with a code representing a coefficient value. Here, to configure integrally, for example, in a 3-bit 8-value code, if the code value is 0, the area is A; if the code value is 1, the area is B; if the code value is 2 to 7, the area is C; This refers to a code configuration in which a certain bit string represents a region and also represents a coefficient value, such that each numerical value of 2 to 7 represents a coefficient value. Which one to use depends on how the bit allocation in each area is allocated, but this bit allocation is different for each system because it is affected by the γ characteristics of the developing device and the like. Therefore, assuming the optimal bit distribution for the system,
What is necessary is just to determine the optimal method of embedding the area flag.

【0180】なお、領域判定の結果を交流成分量子化部
における量子化にも反映させたい場合は、HR、HG、
HBを用いて判定を行えばよい。図26は、HR、H
G、HBを用いて領域判定を行う場合の符号化部の構成
を示すブロック図である。図26に示す符号化部の構成
および機能は図23の符号化部とほぼ同様であるので、
異なる点についてのみ説明する。図26において、領域
判断部1012は、R色位置相関変換部1004、10
05、1006から入力される交流成分HR、HG、H
Bに基づいて2×2画素ブロックの領域(エッジ領域・
非エッジ領域)を判断し、判断結果を量子化部1010
とともに、交流成分量子化部1008にも出力する。交
流成分量子化部1008は、領域判定の結果に基づい
て、交流成分の量子化を行う。
When it is desired to reflect the result of the area determination on the quantization in the AC component quantization unit, HR, HG,
The determination may be made using HB. FIG. 26 shows HR, H
It is a block diagram which shows the structure of the encoding part at the time of performing area determination using G and HB. The configuration and function of the encoding unit shown in FIG. 26 are almost the same as those of the encoding unit in FIG.
Only the differences will be described. In FIG. 26, an area determination unit 1012 includes R color position correlation conversion units 1004,
05, 1006, AC components HR, HG, H
B, a 2 × 2 pixel block area (edge area
(Non-edge area) and determines the result of the
At the same time, it also outputs to the AC component quantization unit 1008. AC component quantization section 1008 quantizes the AC component based on the result of the area determination.

【0181】上記図23の符号化器402の領域判断部
912は、領域判断をエッジ領域、非エッジ領域の2段
階で行っているが、領域判断を多段階(3段階以上)に
行うことにしても良い。以下、領域判断部912が領域
判断を多段階に行う場合を説明する。
The region determination unit 912 of the encoder 402 in FIG. 23 performs the region determination in two stages of the edge region and the non-edge region. However, the region determination is performed in multiple stages (three or more stages). May be. Hereinafter, a case where the area determination unit 912 performs the area determination in multiple stages will be described.

【0182】例えば、図27(A)のような画像では、
あるブロックは図27(B)のように非エッジと判断さ
れるブロックであり、また、あるブロックは図27
(C)のようにエッジと判断されるブロックであるた
め、2つの領域が細かく混在してしまう。このような混
在が起こると、図27(B)、(C)から明らかなよう
に、復元画像の網点部の濃度が非エッジ部においては
「46」、エッジ部においては「36」と異なる値にな
ると同時に、ブロック全体の平均濃度も「23.5」か
ら「20」へと低下する。この結果、網点の一部に色が
濃い部分が点在したり、ざらつきが発生することがあ
る。このざらつきは特にカラー原稿では色の変化を伴っ
て表れるために目立ちやすい。なお、図27では、色変
換を考慮しない例で説明したが、色変換を行い色変換係
数の量子化を行うと一般的にはこの差はより広がる。
For example, in an image as shown in FIG.
A certain block is a block determined to be a non-edge as shown in FIG. 27B, and a certain block is a block shown in FIG.
Since the block is determined to be an edge as in (C), the two regions are finely mixed. When such a mixture occurs, as is clear from FIGS. 27B and 27C, the density of the halftone portion of the restored image is different from “46” in the non-edge portion and “36” in the edge portion. At the same time, the average density of the entire block also decreases from “23.5” to “20”. As a result, dark portions may be scattered in some of the halftone dots, or roughness may occur. This roughness is particularly noticeable in a color original because it appears with a change in color. In FIG. 27, an example in which color conversion is not taken into account has been described. However, if color conversion is performed and color conversion coefficients are quantized, this difference generally becomes wider.

【0183】そこで、エッジ領域と非エッジ領域との間
に「低エッジ領域」を設け、多段階に領域を混在させる
ことでかかる劣化を低減する。低エッジ領域は、ブロッ
ク内にエッジがあるが高周波成分の振幅がそれほど激し
くはない領域であり、本例では、以下のように3つの領
域を判断するものとする。
Therefore, a "low edge region" is provided between the edge region and the non-edge region, and the deterioration is reduced by mixing the regions in multiple stages. The low edge area is an area in which an edge is present in the block but the amplitude of the high frequency component is not so intense. In this example, three areas are determined as follows.

【0184】 |YHL|>60 又は |YLH|>60 → エッジ領域 |YHL|<16 かつ |YLH|<16 → 非エッジ領域 それ以外 → 低エッジ領域│YHL│> 60 or │YLH│> 60 → edge area │YHL│ <16 and │YLH│ <16 → non-edge area Other → low edge area

【0185】図28に、本例における各領域での固定長
符号のビット配分(フォーマット)を示す。図29はエ
ッジ領域と低エッジ領域のベクトルテーブルの一例を示
す。非エッジ領域のビット配分および各ビットの内容
は、図25に示したものと同じである。また、エッジ領
域のビット配分も図25に示したものと同じであるが、
YHベクトルの内容は、図29(A)に示すものであ
る。本例のエッジ領域は高周波係数の振幅が大きいため
にベクトルの成分も大きな値を含んでいる。「低エッジ
領域」の固定長符号のビット配分は、図28に示すよう
に、エッジ領域と非エッジ領域の中間的なビット配分と
なっている。すなわち、YLLは6ビットであり、その
1ビット分をYHベクトルの3ビットとすることで吸収
している。ここで、YLLは色変換の結果得られる8ビ
ットのYLLの下位2ビットを削除することで6ビット
とし、また、YHベクトルは図29(B)に示すベクト
ルに量子化することで3ビットとする。本例ではエッジ
領域と低エッジ領域とを分離して異なるベクトルテーブ
ルを用いているので各領域に適したベクトルをきめ細か
く設定できる利点もある。
FIG. 28 shows the bit allocation (format) of fixed-length codes in each area in this example. FIG. 29 shows an example of the vector table of the edge area and the low edge area. The bit distribution of the non-edge area and the contents of each bit are the same as those shown in FIG. The bit distribution of the edge area is the same as that shown in FIG.
The contents of the YH vector are as shown in FIG. Since the amplitude of the high-frequency coefficient is large in the edge region of this example, the vector component also includes a large value. As shown in FIG. 28, the bit allocation of the fixed-length code in the “low edge area” is an intermediate bit allocation between the edge area and the non-edge area. That is, YLL is 6 bits, and one bit is absorbed by setting it to 3 bits of the YH vector. Here, YLL is reduced to 6 bits by deleting lower 2 bits of 8-bit YLL obtained as a result of color conversion, and YH vector is reduced to 3 bits by quantizing to a vector shown in FIG. I do. In this example, since the edge region and the low edge region are separated and different vector tables are used, there is also an advantage that a vector suitable for each region can be set finely.

【0186】本例における各領域の判別は固定長符号の
下位5ビットで行い、エッジ領域でUH、VHを表す2
5値では使わない値を領域フラグとして用いる。本例で
は非エッジ領域の領域フラグとして「00000」を用
い、低エッジ領域の領域フラグとしては「00001」
を用い、他方、UH、VHを表す25値としては「00
010〜11010」を用いる。これによれば、圧縮符
号の下位5ビットを見れば復号側で領域判断ができるよ
うになる。かかる3段階の領域判定を行う場合の符号化
器のブロック構成は図23と同様にすることができる。
In this example, each area is determined by the lower 5 bits of the fixed-length code, and the edge area represents UH and VH.
A value that is not used in five values is used as an area flag. In this example, “00000” is used as the area flag of the non-edge area, and “00001” is used as the area flag of the low-edge area.
On the other hand, as the 25 values representing UH and VH, “00” is used.
010 to 11010 ". According to this, the region on the decoding side can be determined by looking at the lower 5 bits of the compression code. The block configuration of the encoder for performing such three-stage area determination can be the same as that in FIG.

【0187】本例のように、多段階に領域を分離するこ
とで、領域の混在による画質劣化の低減が可能であるこ
とを図30を参照して説明する。説明の簡易化のために
色変換を考慮しないで説明すると、同図に示す2×2画
素ブロックは、低エッジ領域と判定されるために、エッ
ジ領域と判定された場合と比較してLL成分が正確に再
現され、これにより復元された網点部の濃度が、「3
8」と原画像に近くなるとともにブロック全体としても
平均濃度が「22」と原画像の平均濃度「23.5」に
近くなる。このように、本例では領域の混在による画質
劣化を低減することが可能となる。
Referring to FIG. 30, it will be described that the image quality deterioration due to the mixture of the regions can be reduced by separating the regions in multiple stages as in this example. Explaining without considering color conversion for the sake of simplicity, the 2 × 2 pixel block shown in FIG. 11 is determined to be a low edge area, so that the LL component is compared with a case where it is determined to be an edge area. Is accurately reproduced, and the density of the halftone portion restored by this is “3
8 ", which is close to the original image, and the average density of the entire block is" 22 ", which is close to the average density of the original image," 23.5 ". As described above, in this example, it is possible to reduce image quality deterioration due to the mixture of regions.

【0188】図39は、復号化器404の実施の形態5
を示すブロック図である。図39に示す実施の形態5の
復号化器404は実施の形態5の符号化器402(図2
3)で符号化された圧縮符号を復号化するためのもので
ある。図39に示す復号化器404は、符号分割部92
1と、逆量子化部922、領域判断部932、逆色変換
部923、逆色変換部924、交流成分逆量子化部92
5と、R色位置相関逆変換部926、G色位置相関逆変
換部927、B色位置相関逆変換部928と、復元R色
n×mバッファ929、復元G色n×mバッファ93
0、復元B色n×mバッファ931とを備えている。
FIG. 39 shows a fifth embodiment of the decoder 404.
FIG. The decoder 404 of the fifth embodiment shown in FIG. 39 is different from the encoder 402 of the fifth embodiment (see FIG. 2).
This is for decoding the compressed code encoded in 3). The decoder 404 shown in FIG.
1, an inverse quantization unit 922, an area determination unit 932, an inverse color conversion unit 923, an inverse color conversion unit 924, and an AC component inverse quantization unit 92
5, an R color position correlation inverse converter 926, a G color position inverse correlation converter 927, a B color position inverse correlation converter 928, a restored R color nxm buffer 929, and a restored G color nx m buffer 93
0, a restored B color nxm buffer 931.

【0189】つぎに、図39の復号化器404の復号化
方法を説明する。符号分割部921は、ページメモリ4
03に格納されている、2×2の画素ブロックの圧縮符
号(図25参照)の下位5ビットを参照して、その5ビ
ットが「00000」ならば非エッジ領域として、それ
以外ならばエッジ領域として、圧縮符号を符号構成にし
たがって、YLL、ULL、VLL、(ベクトル)Y
H、(ベクトル)UH(ベクトル)VHに振り分けて逆
量子化部922に出力し、また、領域フラグを領域判断
部932に出力する。領域判断部932は、符号分割部
921から入力される領域フラグに基づいてエッジ領域
・非エッジ領域の判断を行い、領域判断結果を逆量子化
部922に出力する。
Next, a decoding method of the decoder 404 in FIG. 39 will be described. The code division unit 921 is provided in the page memory 4
With reference to the lower 5 bits of the compression code (see FIG. 25) of the 2 × 2 pixel block stored in No. 03, if the 5 bits are “00000”, the area is a non-edge area; YLL, ULL, VLL, (vector) Y
H, (vector) UH (vector) VH, and outputs the result to the inverse quantization unit 922, and outputs the area flag to the area determination unit 932. The region determination unit 932 determines an edge region / non-edge region based on the region flag input from the code division unit 921, and outputs a region determination result to the inverse quantization unit 922.

【0190】逆量子化部922は、領域判断部923の
領域判断結果を参照しつつ逆量子化を行い、復元後の直
流明度信号YLL、直流色信号ULL、VLLを逆色変
換部923に出力する一方、復元後の交流明度信号Y
H、交流色信号UH、VHを逆色変換部924に出力す
る。具体的には、エッジ部においてはYLL5ビットの
下位に3ビットを付加して8ビットとし、ULL、VL
Lについては符号化側の非線形量子化の逆変換を行うテ
ーブルを用いて9ビットに復元する。なお、ここでYL
L5ビットの下位に3ビットを付加する際にはビットシ
フトによって単に「000」を付加すると濃度が低下す
るので、中間値である「100」を付加するのが望まし
い。また、YHについては符号値に従い、図6の13の
ベクトルを復元する。UH、VHについては25値の符
号から復号化時とは逆の手順でnu、nvを復元する。
The inverse quantization unit 922 performs inverse quantization with reference to the area determination result of the area determination unit 923, and outputs the restored DC lightness signal YLL, DC color signals ULL, and VLL to the inverse color conversion unit 923. On the other hand, the restored AC lightness signal Y
H, and outputs the AC color signals UH and VH to the inverse color conversion unit 924. Specifically, in the edge portion, 3 bits are added to the lower order of 5 bits of YLL to make 8 bits, and ULL, VL
L is restored to 9 bits using a table for performing inverse transform of nonlinear quantization on the encoding side. Here, YL
When three bits are added to the lower part of the L5 bit, simply adding “000” by bit shift lowers the density, so it is desirable to add an intermediate value of “100”. For YH, the vector 13 in FIG. 6 is restored according to the code value. For UH and VH, nu and nv are restored from the 25-value code in the reverse procedure to that at the time of decoding.

【0191】他方、非エッジ部については、YLL7ビ
ットの下位に1ビットを付加して8ビットとし、UL
L、VLLについては符号化側の非線形量子化の逆変換
を行うテーブルを用いて9ビットに復元する。
On the other hand, with respect to the non-edge portion, one bit is added to the lower part of the YLL 7 bits to make 8 bits,
L and VLL are restored to 9 bits using a table for performing inverse transform of nonlinear quantization on the encoding side.

【0192】逆色変換部923は、復元後の直流明度信
号YLL、直流色信号ULL、VLLをYUV変換の逆
変換を施し、復元されたLLR、LLG、LLBをR色
位置相関逆変換部926、G色位置相関逆変換部92
7、B色位置相関逆変換部928に夫々出力する。
The inverse color conversion unit 923 performs the inverse conversion of the YUV conversion on the restored DC lightness signal YLL, DC color signals ULL, VLL, and converts the restored LLR, LLG, LLB into the R color position correlation inverse conversion unit 926. , G color position correlation inverse conversion unit 92
7. Output to the B color position correlation inverse transform unit 928, respectively.

【0193】逆色変換部924は、復元後の交流明度信
号YH、交流色信号UH、VHをYUV変換の逆変換を
施し、復元されたHR、HG、HBを交流成分逆量子化
部925に出力する。交流成分逆量子化部925は、復
元されたHR、HG、HBを逆量子化(この場合、各色
にHH=0を加える)して、R色位置相関逆変換部92
6、G色位置相関逆変換部927、B色位置相関逆変換
部928に夫々出力する。
The inverse color conversion unit 924 performs the inverse conversion of the YUV conversion on the restored AC lightness signal YH and AC color signals UH and VH, and outputs the restored HR, HG, HB to the AC component inverse quantization unit 925. Output. The AC component inverse quantization unit 925 inversely quantizes the restored HR, HG, and HB (in this case, adds HH = 0 to each color), and performs an R color position correlation inverse transformation unit 92.
6. Output to the G color position correlation inverse transform unit 927 and the B color position correlation inverse transform unit 928, respectively.

【0194】R色、G色、B色位置相関逆変換部92
6、927、928は、復元された(LLR、HR)、
(LLG、HG)、(LLB、HB)を夫々、ハールウ
ェーブレット変換の逆変換を施し、復元R色、復元G
色、復元B色n×mバッファ929、930、931に
格納する。以上のようにして、2×2の画素ブロック単
位で復元がなされる。なお、大量のメモリを使用可能で
ある場合には、各逆変換をテーブル参照方式で行えば処
理時間が短縮できる。
R, G, B color position correlation inverse conversion section 92
6, 927 and 928 are restored (LLR, HR),
(LLG, HG) and (LLB, HB) are each subjected to the inverse transform of the Haar wavelet transform to obtain a restored R color and a restored G
The color and the restored B color are stored in the nxm buffers 929, 930 and 931. As described above, restoration is performed in units of 2 × 2 pixel blocks. If a large amount of memory can be used, the processing time can be reduced by performing each inverse conversion in a table reference method.

【0195】以上説明したように、上記実施の形態5の
復号化部によれば、実施の形態5の符号化器402で符
号化した符号情報を復元することが可能となる。図31
は、図26の構成の符号化部で符号化された符号情報を
復元するための復号化部の構成を示すブロック図であ
る。
As described above, according to the decoding section of the fifth embodiment, it is possible to restore the code information coded by the encoder 402 of the fifth embodiment. FIG.
FIG. 27 is a block diagram showing a configuration of a decoding unit for restoring code information encoded by the encoding unit having the configuration of FIG. 26.

【0196】(実施の形態6)図32は、符号化器40
2の実施の形態6を示すブロック図である。実施の形態
6の符号化器402は実施の形態2の符号化器402
(図13)に領域判断部を付加した構成(実施の形態5
で色変換部を削除した構成)となっている。直流成分を
直流明度信号と直流色信号に分離しない以外は、実施の
形態5と同様な構成であるため、詳細な説明は省略す
る。
(Embodiment 6) FIG.
It is a block diagram showing Embodiment 6 of 2nd. The encoder 402 according to the sixth embodiment is different from the encoder 402 according to the second embodiment.
(FIG. 13) Configuration in which an area determination unit is added (Embodiment 5)
In which the color conversion unit is deleted). Except that the DC component is not separated into a DC lightness signal and a DC chrominance signal, the configuration is the same as that of the fifth embodiment, and a detailed description is omitted.

【0197】図32に示す符号化器402は、スキャナ
401からn×m単位(例えば、2×2画素ブロック単
位)で入力されるR、G、B色のコンポーネント(例え
ば、各色1画素8ビット)からなる画像データを夫々一
時的に格納するR、G、B色のn×mバッファ110
1、1102、1103と、R、G、B色のn×mバッ
ファ1101、1102、1103に格納された各コン
ポーネント(RGB)毎に位置相関を利用した変換(以
下「位置相関変換」)を行って、各色毎に直流成分と交
流成分に分離し、直流成分を量子化部1110に出力す
る一方、交流成分を交流成分量子化部1108に出力す
るR色、G色、B色位置相関変換部1104、110
5、1106とを備えている。
The encoder 402 shown in FIG. 32 has R, G, and B components (for example, 8 bits per pixel for each color) input from the scanner 401 in n × m units (for example, 2 × 2 pixel block units). ), An n × m buffer 110 of R, G and B colors for temporarily storing image data consisting of
Conversion using position correlation (hereinafter, “position correlation conversion”) is performed for each of the components (RGB) stored in the n × m buffers 1101, 1102, and 1103 for R, G, and B colors. R, G, and B color position correlation converters that separate the DC component and the AC component for each color and output the DC component to the quantization unit 1110, while outputting the AC component to the AC component quantization unit 1108. 1104, 110
5 and 1106.

【0198】また、図32に示す符号化器402は、R
色、G色、B色位置相関変換部1104、1105、1
106から入力される各コンポーネントの交流成分を、
第1段階の量子化を施して色変換部1109に出力する
交流成分量子化部1108と、交流成分量子化部110
8から入力される第1段階目の量子化が施された各コン
ポーネントの交流成分を色変換(明度・色分離)して、
交流明度信号と交流色信号を生成して、交流明度信号と
交流色信号を量子化部1110に出力するとともに、交
流明度信号を領域判断部1112に出力する色変換部1
109と、色変換部1109から入力される交流明度信
号に基づいて領域判定を行って、領域判定結果を量子化
部1110に出力するとともに、領域フラグを符号化部
1111に出力する領域判断部1112と、領域判断結
果に従って、R色、G色、B色位置相関変換部110
4、1105、1106から入力される直流信号を量子
化し、また、色変換部1109から入力される交流明度
信号と交流色信号に対して第2段階目の量子化を施し
て、符号化部1111に出力する量子化部1110と、
量子化部1110で量子化された情報(2×2画素単
位)を纏めて固定長符号を作成してページメモリ403
に格納する符号化部1111とを備えている。
The encoder 402 shown in FIG.
Color, G, B color position correlation conversion units 1104, 1105, 1
The AC component of each component input from 106 is
An AC component quantization unit 1108 that performs the first-stage quantization and outputs the result to the color conversion unit 1109;
8 is subjected to color conversion (brightness / color separation) of the AC component of each component that has been subjected to the first stage quantization and
A color conversion unit 1 that generates an AC lightness signal and an AC color signal, outputs the AC lightness signal and the AC color signal to the quantization unit 1110, and outputs the AC lightness signal to the area determination unit 1112.
Region determination unit 1112 that performs region determination based on AC brightness signal input from color conversion unit 1109 and outputs a region determination result to quantization unit 1110 and outputs a region flag to encoding unit 1111 According to the region determination result, the R, G, and B color position correlation conversion unit 110
4, 1105, and 1106, quantizes the DC signal input from the color conversion unit 1109, and performs the second-stage quantization on the AC lightness signal and the AC color signal input from the color conversion unit 1109. A quantization unit 1110 that outputs
The information quantized by the quantization unit 1110 (in units of 2 × 2 pixels) is combined into a fixed-length code, and the page memory 403 is created.
And an encoding unit 1111 for storing the information.

【0199】実施の形態6の符号化器402によれば、
直流成分を色変換しないで量子化するので、非線形量子
化テーブルが符号化側のみならず、復号化側でも不要で
あり、直流成分については量子化/逆量子化ともビット
シフトのみで良いため回路構成を簡素化できる。
According to the encoder 402 of the sixth embodiment,
Since the DC component is quantized without color conversion, a non-linear quantization table is unnecessary not only on the encoding side but also on the decoding side, and the DC component requires only bit shift for both quantization and inverse quantization. The configuration can be simplified.

【0200】なお、領域判定の結果を交流成分量子化部
における量子化にも反映させたい場合は、HR、HG、
HBを用いて判定を行えばよい。図33は、HR、H
G、HBを用いて領域判定を行う場合の符号化部の構成
を示すブロック図である。図33に示す符号化部の構成
および機能は図32の符号化部とほぼ同様であるので、
異なる点についてのみ説明する。図33において、領域
判断部1212は、R色位置相関変換部1204、12
05、1206から入力される交流成分HR、HG、H
Bに基づいて2×2画素ブロックの領域(エッジ領域・
非エッジ領域)を判断し、判断結果を量子化部1210
とともに、交流成分量子化部1208にも出力する。交
流成分量子化部1208は、領域判定の結果に基づい
て、交流成分の量子化を行う。
When it is desired to reflect the result of the area determination in the quantization performed by the AC component quantization unit, HR, HG,
The determination may be made using HB. FIG. 33 shows HR, H
It is a block diagram which shows the structure of the encoding part at the time of performing area determination using G and HB. The configuration and function of the encoding unit shown in FIG. 33 are almost the same as those of the encoding unit in FIG.
Only the differences will be described. In FIG. 33, the area determination unit 1212 includes R color position correlation conversion units 1204 and 1204.
05, 1206, AC components HR, HG, H
B, a 2 × 2 pixel block area (edge area
(Non-edge area) and determines the result of the
At the same time, the signal is also output to an AC component quantization unit 1208. The AC component quantization unit 1208 quantizes the AC component based on the result of the area determination.

【0201】図34は、復号化器404の実施の形態6
を示すブロック図である。図34に示す実施の形態6の
復号化器404は実施の形態6の符号化器402で符号
化された圧縮符号を復号化するためのものである。図3
4に示す復号化器404は、符号分割部1121と、逆
量子化部1122、領域判断部1132、逆色変換部1
124、交流成分逆量子化部1125と、R色位置相関
逆変換部1126、G色位置相関逆変換部1127、B
色位置相関逆変換部1128と、復元R色n×mバッフ
ァ1129、復元G色n×mバッファ1130、復元B
色n×mバッファ1131とを備えている。図35は、
図33の構成の符号化部で符号化された符号情報を復元
するための復号化部の構成を示すブロック図である。
FIG. 34 shows Embodiment 6 of the decoder 404.
FIG. A decoder 404 according to the sixth embodiment shown in FIG. 34 is for decoding the compressed code encoded by the encoder 402 according to the sixth embodiment. FIG.
4 includes a code division unit 1121, an inverse quantization unit 1122, an area determination unit 1132, and an inverse color conversion unit 1
124, an AC component inverse quantization section 1125, an R color position correlation inverse conversion section 1126, a G color position correlation inverse conversion section 1127, B
Color position correlation inverse transform unit 1128, restored R color nxm buffer 1129, restored G color nxm buffer 1130, restored B
And a color n × m buffer 1131. FIG.
FIG. 34 is a block diagram illustrating a configuration of a decoding unit for restoring code information coded by the coding unit having the configuration of FIG. 33.

【0202】上述の実施の形態1〜実施の形態6の符号
化器402および復号化器404の符号化方法および復
号化方法は、予め用意されたプログラムをパーソナルコ
ンピュータ、ワークステーションや画像形成装置等のコ
ンピュータ(CPU等)で実行することにしても良い。
このプログラムは、ハードディスク、フロッピー(登録
商標)ディスク、CD−ROM、MO、DVD等のコン
ピュータが読取可能な記録媒体から読み出されることに
よって実行される。また、このプログラムは、上記記録
媒体を介して、また伝送媒体として、インターネット等
のネットワークを介して配布することができる。
The encoding method and the decoding method of the encoder 402 and the decoder 404 of the above-described first to sixth embodiments can be implemented by using a program prepared in advance by using a personal computer, a workstation, an image forming apparatus, or the like. May be executed by a computer (CPU or the like).
This program is executed by being read from a computer-readable recording medium such as a hard disk, a floppy (registered trademark) disk, a CD-ROM, an MO, and a DVD. Further, this program can be distributed via the recording medium and as a transmission medium via a network such as the Internet.

【0203】なお、本発明は上記した実施の形態に限定
されるものではなく、発明の要旨を変更しない範囲で適
宜変形して実行可能である。
[0203] The present invention is not limited to the above-described embodiments, and can be carried out with appropriate modifications without departing from the spirit of the invention.

【0204】[0204]

【発明の効果】以上説明したように、請求項1にかかる
符号化装置によれば、第1の変換手段は各コンポーネン
トの情報を画像の1次元または2次元の位置的相関を用
いて情報量に偏りが生じるように変換し、第2の変換手
段は第1の変換手段による変換後の情報に対して変換を
行ない、明度信号と色信号を得て、量子化手段は、第1
の変換手段および/または第2の変換手段の変換により
得られた係数に対し量子化を行なうこととしたので、色
変換の前に各コンポーネントの位置的相関をまず利用
し、次いで色変換を行なうことにより、符号化回路の簡
易化・量子化の簡略化を図ることができる。
As described above, according to the coding apparatus of the first aspect, the first converting means converts the information of each component into an information amount using the one-dimensional or two-dimensional positional correlation of the image. , And the second converting means converts the information after the conversion by the first converting means to obtain a lightness signal and a color signal.
Quantization is performed on the coefficients obtained by the conversion means and / or the second conversion means. Therefore, before the color conversion, the positional correlation of each component is first used, and then the color conversion is performed. This makes it possible to simplify the encoding circuit and the quantization.

【0205】また、請求項2にかかる符号化装置によれ
ば、分離手段は各コンポーネントの情報を所定の単位毎
に直流成分と交流成分とに分離し、変換手段は分離手段
により分離された交流成分を明度信号と色信号とに変換
して交流明度信号と交流色信号を得て、量子化手段は変
換手段により得られた交流明度信号および/または交流
色信号を量子化することとしたので、各色の直流成分は
色変換を行なわないため、直流成分の量子化は全て単純
なビット削減方式で行なうことができ、非線形量子化の
ためのテーブル等を用意する必要がなくなる。また、直
流成分は色変換しないため、直流成分の色変換用の回路
を削減できる。
According to the coding apparatus of the present invention, the separating means separates the information of each component into a DC component and an AC component for each predetermined unit, and the converting means converts the AC component separated by the separating means. The components are converted into a lightness signal and a color signal to obtain an AC lightness signal and an AC color signal, and the quantizing means quantizes the AC lightness signal and / or the AC color signal obtained by the conversion means. Since the DC components of each color are not subjected to color conversion, the quantization of the DC components can all be performed by a simple bit reduction method, and there is no need to prepare a table or the like for nonlinear quantization. Further, since the DC component is not color-converted, the circuit for DC component color conversion can be reduced.

【0206】また、請求項3にかかる符号化装置によれ
ば、分離手段は各コンポーネントの情報を所定の単位毎
に直流成分と交流成分とに分離し、交流成分量子化手段
は分離手段により分離された交流成分を量子化し、第1
の変換手段は分離手段により分離された直流成分を明度
信号と色信号とに変換して直流明度信号と直流色信号を
得て、第2の変換手段は第1の量子化手段により量子化
された交流成分を、明度信号と色信号とに変換して交流
明度信号と交流色信号を得て、量子化手段は第2の変換
手段により変換された交流明度信号および/または交流
色信号を量子化することとしたので、従来の方式と比べ
符号化効率を落とすことなく回路規模を縮小することが
できる。
According to the encoding apparatus of the third aspect, the separating means separates the information of each component into a DC component and an AC component for each predetermined unit, and the AC component quantizing means separates the information by the separating means. Quantized AC component
The converting means converts the DC component separated by the separating means into a brightness signal and a chrominance signal to obtain a DC lightness signal and a DC color signal, and the second converting means is quantized by the first quantizing means. The AC component is converted into a brightness signal and a chrominance signal to obtain an AC brightness signal and an AC chrominance signal, and the quantization means quantizes the AC brightness signal and / or the AC chrominance signal converted by the second conversion means. Therefore, the circuit scale can be reduced without lowering the coding efficiency as compared with the conventional method.

【0207】また、請求項4にかかる符号化装置によれ
ば、分離手段は各コンポーネントの情報を所定の単位毎
に直流成分と交流成分とに分離し、変換手段は分離手段
で分離された直流成分を明度信号と色信号とに変換して
直流明度信号と直流色信号を得て、量子化手段は分離手
段で分離された交流成分を量子化することとしたので、
分離手段で分離された交流信号をそのまま量子化手段で
量子化するので、符号化回路の簡易化・量子化の簡略化
を図ることができる。
According to the encoding apparatus of the fourth aspect, the separating means separates information of each component into a DC component and an AC component for each predetermined unit, and the converting means converts the DC component separated by the separating means. Since the components are converted into a brightness signal and a color signal to obtain a DC brightness signal and a DC color signal, and the quantizing means quantizes the AC component separated by the separating means,
Since the AC signal separated by the separating means is quantized as it is by the quantizing means, the encoding circuit can be simplified and the quantization can be simplified.

【0208】また、請求項5にかかる符号化装置によれ
ば、請求項2または請求項3に記載の発明において、量
子化手段は、交流明度信号および/または交流色信号を
量子化する際に、ベクトル量子化を行なうこととしたの
で、請求項2または請求項3に記載の発明の効果に加え
て、処理効率を向上させることができる。
According to the coding apparatus of claim 5, in the invention of claim 2 or claim 3, the quantizing means performs quantization when the AC brightness signal and / or the AC color signal are quantized. , Vector quantization is performed, so that the processing efficiency can be improved in addition to the effect of the second or third aspect of the present invention.

【0209】また、請求項6にかかる符号化装置によれ
ば、請求項2、請求項3、または請求項5に記載の発明
において、量子化手段は、交流明度信号および交流色信
号を量子化する際に、交流明度信号と交流色信号の比率
を量子化することとしたので、請求項2、請求項3、ま
たは請求項5に記載の発明の効果に加えて、より処理効
率を向上させることができる。
According to the coding apparatus of claim 6, in the invention of claim 2, 3, or 5, the quantization means quantizes the AC brightness signal and the AC chrominance signal. In doing so, the ratio between the AC lightness signal and the AC color signal is quantized, so that the processing efficiency is further improved in addition to the effect of the invention described in claim 2, claim 3, or claim 5. be able to.

【0210】また、請求項7にかかる符号化装置によれ
ば、請求項4に記載の発明において、量子化手段は、交
流成分のうち、最もエッジが大きな特定色についてベク
トル量子化し、他の色は当該特定色のベクトルとの比を
量子化することとしたので、請求項4にかかる発明の効
果に加えて、圧縮時にエッジが消える不具合を解消する
ことが可能となる。
[0210] According to the coding apparatus of the seventh aspect, in the invention of the fourth aspect, the quantizing means vector-quantizes the specific color having the largest edge among the AC components, and converts the other color into another color. Quantizes the ratio with the vector of the specific color, so that in addition to the effect of the invention according to claim 4, it is possible to eliminate the disadvantage that edges disappear during compression.

【0211】また、請求項8にかかる符号化装置によれ
ば、請求項2〜請求項7のいずれか1つに記載の発明に
おいて、量子化手段は、ベクトル量子化する場合には、
閾値を量子化値の中間地点よりも大きめに設定すること
としたので、請求項2〜請求項7のいずれか1つに記載
の発明において、請求項2〜請求項7のいずれか1つに
記載の発明の効果に加えて、網点部のモアレの発生を防
止することが可能となる。
[0211] According to the encoding apparatus of the eighth aspect, in the invention according to any one of the second to seventh aspects, when the quantization means performs vector quantization,
Since the threshold value is set to be larger than the intermediate point of the quantization value, in the invention according to any one of claims 2 to 7, according to any one of claims 2 to 7, In addition to the effects of the invention described above, it is possible to prevent the occurrence of moire at the halftone dot portion.

【0212】また、請求項9にかかる符号化装置によれ
ば、請求項3に記載の発明において、交流成分量子化手
段は、交流成分の1つの係数または全係数の下位ビット
を削除して量子化を行うこととしたので、請求項3に記
載の発明の効果に加えて、色変換回路を小規模化するこ
とが可能となる。
According to the encoding apparatus of the ninth aspect, in the invention of the third aspect, the AC component quantizing means deletes one coefficient of the AC component or lower-order bits of all the coefficients to perform the quantization. Therefore, in addition to the effect of the third aspect, it is possible to reduce the size of the color conversion circuit.

【0213】また、請求項10にかかる符号化装置によ
れば、請求項9に記載の発明において、交流成分量子化
手段は、画像の斜めエッジに対応する係数を削除するこ
ととしたので、請求項9に記載の発明の効果に加えて、
画質劣化させることなくデータ量を低減させることが可
能となる。
According to the encoding apparatus of the tenth aspect, in the invention of the ninth aspect, the AC component quantization means deletes the coefficient corresponding to the oblique edge of the image. In addition to the effects of the invention described in item 9,
It is possible to reduce the data amount without deteriorating the image quality.

【0214】また、請求項11にかかる符号化装置によ
れば、請求項2〜請求項10のいずれか1つに記載の発
明において、分離手段は、変換単位である所定の単位内
部の画素のみを参照して変換を行うこととしたので、請
求項2〜請求項10のいずれか1つに記載の発明の効果
に加えて、メモリへのアクセス回数を低減でき転送効率
を向上させることができる。
[0214] According to the encoding apparatus of the eleventh aspect, in the invention according to any one of the second to tenth aspects, the separating means may include only pixels within a predetermined unit which is a conversion unit. , The conversion is performed with reference to the above. In addition to the effect of the invention according to any one of the second to tenth aspects, the number of accesses to the memory can be reduced and the transfer efficiency can be improved. .

【0215】また、請求項12にかかる符号化装置によ
れば、請求項11に記載の発明において、分離手段は、
ハールウェーブレット変換を行うこととしたので、請求
項11に記載の発明の効果に加えて、変換が容易とな
る。
[0215] According to the encoding apparatus of the twelfth aspect, in the invention of the eleventh aspect, the separating means includes:
Since the Haar wavelet transform is performed, the transform is facilitated in addition to the effect of the invention described in claim 11.

【0216】また、請求項13にかかる符号化装置によ
れば、変換手段は各コンポーネントの情報を所定の単位
毎にBTC変換し、色変換手段はBTC変換された情報
を色変換し、量子化手段は色変換手段で色変換された情
報を量子化することとしたので、符号化回路の簡易化・
量子化の簡略化を図ることができる。
Further, according to the encoding apparatus of the present invention, the conversion means performs BTC conversion on the information of each component for each predetermined unit, and the color conversion means performs the color conversion on the BTC converted information, and performs the quantization. Since the means is to quantize the information color-converted by the color conversion means, the coding circuit can be simplified.
The quantization can be simplified.

【0217】また、請求項14にかかる符号化装置によ
れば、第1の変換手段は各コンポーネントの情報を、所
定の単位毎に画像の1次元または2次元の位置的相関を
用いて情報量に偏りが生じるように変換し、第2の変換
手段は第1の変換手段による変換後の情報に対し変換を
行ない、第2の変換手段は明度信号と色信号とを得て、
領域判定手段は所定の単位毎に画像の領域を判定し、量
子化手段は第1の変換手段および/または第2の変換手
段の変換により得られた係数に対し、領域判定手段の判
定結果に従い領域毎に異なる量子化を行ない、フラグ情
報作成手段は領域判定手段により判定された領域を識別
するためのフラグ情報を作成することとしたので、符号
化回路の簡易化・量子化の簡略化を図ることができると
ともに、画質劣化の少ない圧縮が可能となる。
Further, according to the encoding apparatus of the present invention, the first converting means converts the information of each component into an information amount using a one-dimensional or two-dimensional positional correlation of an image for each predetermined unit. The second conversion means converts the information after conversion by the first conversion means, and the second conversion means obtains a lightness signal and a color signal,
The area determining means determines the area of the image for each predetermined unit, and the quantizing means determines a coefficient obtained by the first converting means and / or the second converting means according to the determination result of the area determining means. Since different quantization is performed for each area, and the flag information creation means creates flag information for identifying the area determined by the area determination means, simplification of the encoding circuit and quantization can be simplified. The compression can be performed with less deterioration of the image quality.

【0218】また、請求項15にかかる符号化装置によ
れば、分離手段は各コンポーネントの情報を、所定の単
位毎に直流成分および交流成分に分離し、第1の量子化
手段は分離手段により分離された交流成分を量子化し、
変換手段は第1の量子化手段により量子化された交流成
分を、明度信号と色信号とに変換して交流明度信号と交
流色信号とを得て、領域判定手段は所定の単位毎に、交
流成分、交流明度信号、および交流色信号のうち少なく
とも1つの振幅の大きさに従って、所定の単位が複数の
領域のうちいずれの領域に属するかを判定し、第2の量
子化手段は交流明度信号および/または交流色信号に対
し、領域判定手段の判定結果に従って領域毎に異なる量
子化を行ない、フラグ情報作成手段は領域判定手段によ
り判定された領域を識別するためのフラグ情報を作成す
ることとしたので、符号化回路の簡易化・量子化の簡略
化を図ることができるとともに、領域の判定を正確に行
うことが可能となり、画質劣化の少ない圧縮が可能とな
る。
Further, according to the coding apparatus of the present invention, the separating means separates the information of each component into a DC component and an AC component for each predetermined unit, and the first quantizing means uses the separating means. Quantize the separated AC component,
The conversion unit converts the AC component quantized by the first quantization unit into a brightness signal and a color signal to obtain an AC brightness signal and an AC color signal, and the area determination unit performs, for each predetermined unit, According to the magnitude of at least one of the AC component, the AC brightness signal, and the AC chrominance signal, it is determined which of the plurality of areas the predetermined unit belongs to, and the second quantizing means determines the AC brightness. The signal and / or the AC color signal are subjected to different quantization for each area according to the determination result of the area determination means, and the flag information creation means creates flag information for identifying the area determined by the area determination means. Therefore, the encoding circuit can be simplified and the quantization can be simplified, the area can be determined accurately, and compression with less image quality deterioration can be performed.

【0219】また、請求項16にかかる符号化装置によ
れば、請求項15に記載の発明において、第2の量子化
手段は、振幅の大きさが小さい領域ほど、交流明度信号
または交流色信号を粗く量子化することとしたので、請
求項15に記載の発明の効果に加えて、領域に応じた画
質劣化の少ない圧縮を行うことが可能となる。
According to the encoding apparatus of the sixteenth aspect, in the invention of the fifteenth aspect, the second quantizing means may include an AC lightness signal or an AC chrominance signal in a region having a smaller amplitude. Is coarsely quantized, so that in addition to the effect of the invention described in claim 15, it is possible to perform compression with less image quality deterioration depending on the region.

【0220】また、請求項17にかかる符号化装置によ
れば、請求項14〜請求項16のいずれか1つに記載の
発明において、領域判定手段は、エッジ領域と非エッジ
領域を判定することとしたので、請求項14〜請求項1
6のいずれか1つに記載の発明の効果に加えて、エッジ
領域と非エッジ領域に応じた圧縮が可能となる。
[0220] According to the encoding apparatus of claim 17, in the invention according to any one of claims 14 to 16, the area judging means judges an edge area and a non-edge area. Claims 14 to 1
In addition to the effect of the invention described in any one of the above items 6, compression according to the edge region and the non-edge region can be performed.

【0221】また、請求項18にかかる符号化装置によ
れば、請求項14〜請求項16のいずれか1つに記載の
発明において、領域判定手段は、n(nは3以上の整
数)段階の領域を判定することとしたので、領域の混在
による画質劣化を低減させることが可能となる。
According to the coding apparatus of the eighteenth aspect, in the invention according to any one of the fourteenth to sixteenth aspects, the area determining means may be arranged in n (n is an integer of 3 or more) steps. Is determined, it is possible to reduce image quality deterioration due to the mixture of regions.

【0222】また、請求項19にかかる符号化装置によ
れば、請求項14〜請求項18のいずれか1つに記載の
発明において、フラグ情報はフラグ専用のビット、また
は、係数値を表す符号と一体に構成されることとしたの
で、請求項14〜請求項18のいずれか1つに記載の発
明の効果に加えて、フラグ情報を簡素化することが可能
となる。
[0222] According to the coding apparatus of claim 19, in the invention according to any one of claims 14 to 18, the flag information is a flag-only bit or a code representing a coefficient value. Since the flag information is configured integrally, the flag information can be simplified in addition to the effect of the invention according to any one of claims 14 to 18.

【0223】また、請求項20にかかる符号化装置によ
れば、請求項1〜請求項19のいずれか1つに記載の発
明において、符号情報として固定長符号を生成すること
としたので、請求項1〜請求項19のいずれか1つに記
載の発明の効果に加えて、処理効率を向上させることが
できる。
According to the encoding apparatus of the twentieth aspect, in the invention according to any one of the first to nineteenth aspects, a fixed length code is generated as code information. In addition to the effects of the invention described in any one of the items 1 to 19, the processing efficiency can be improved.

【0224】また、請求項21にかかる復号化装置によ
れば、逆量子化手段は符号情報を逆量子化して交流明度
信号、交流色信号、直流明度信号、および直流色信号を
復元し、第1の逆色変換手段は交流明度信号および交流
色信号を逆色変換して交流信号を復元し、第2の逆色変
換手段は直流明度信号および直流色信号を逆色変換して
直流信号を復元し、交流逆量子化手段は第1の逆色変換
手段で復元された交流信号を逆量子化し、逆位置相関変
換手段は第2の逆色変換手段で復元された直流信号およ
び交流逆量子化手段で逆量子化された交流信号を逆位置
相関変換して、カラー画像の各コンポーネントを復元す
ることとしたので、簡易な回路構成および復元方法で符
号情報の復元が可能となる。
According to the decoding apparatus of the present invention, the inverse quantization means inversely quantizes the code information to restore the AC lightness signal, the AC chrominance signal, the DC lightness signal, and the DC chrominance signal. The first inverse color conversion means reversely converts the AC lightness signal and the AC color signal to restore the AC signal, and the second inverse color conversion means reversely converts the DC lightness signal and the DC color signal to convert the DC signal. The AC inverse quantization means inversely quantizes the AC signal restored by the first inverse color conversion means, and the inverse position correlation conversion means restores the DC signal and AC inverse quantum information restored by the second inverse color conversion means. Since the AC signal that has been inversely quantized by the converting means is inversely correlated, and each component of the color image is restored, the code information can be restored by a simple circuit configuration and a restoring method.

【0225】また、請求項22にかかる復号化装置によ
れば、逆量子化手段は符号情報を逆量子化して交流明度
信号、交流色信号、および直流信号を復元し、第1の逆
量子化手段は交流明度信号および交流色信号を逆色変換
して交流信号を復元し、交流逆量子化手段は第1の逆色
変換手段で復元された交流信号を逆量子化し、逆位置相
関変換手段は直流信号および交流逆量子化手段で逆量子
化された交流信号を逆位置相関変換してカラー画像の各
コンポーネントを復元することとしたので、簡易な回路
構成および復元方法で符号情報の復元が可能となる。
According to the decoding apparatus of the present invention, the inverse quantization means inversely quantizes the code information to restore the AC brightness signal, the AC chrominance signal, and the DC signal, and performs the first inverse quantization. The means reversely converts the AC lightness signal and the AC color signal to restore the AC signal, and the AC inverse quantization means inversely quantizes the AC signal restored by the first inverse color conversion means, and performs inverse position correlation conversion means. Is to restore each component of the color image by inverse position correlation transform of the DC signal and the AC signal inversely quantized by the AC inverse quantization means, so that the code information can be restored by a simple circuit configuration and a restoration method. It becomes possible.

【0226】また、請求項23にかかる復号化装置によ
れば、逆量子化手段は符号情報を逆量子化し、逆色変換
手段は逆量子化手段で逆量子化された情報を逆色変換
し、逆BTC手段は逆色変換手段で逆色変換された情報
を逆BTC変換してカラー画像の各コンポーネントを復
元することとしたので、簡易な回路構成および復元方法
で符号情報の復元が可能となる。
According to the decoding apparatus of the present invention, the inverse quantization means inversely quantizes the code information, and the inverse color conversion means performs inverse color conversion on the information inversely quantized by the inverse quantization means. Since the inverse BTC means restores each component of the color image by performing inverse BTC conversion on the information subjected to the inverse color conversion by the inverse color conversion means, the code information can be restored by a simple circuit configuration and a restoring method. Become.

【0227】また、請求項24にかかる復号化装置によ
れば、領域判定手段はフラグ情報から符号情報が属する
領域を判定し、逆量子化手段は領域判定手段の判定結果
に従って、所定単位の符号情報を領域毎に異なる逆量子
化を行ない、直流明度信号、直流色信号、交流明度信
号、および交流色信号を復元し、第1の逆色変換手段は
交流明度信号および交流色信号を逆色変換して交流信号
を復元し、第2の逆色変換手段は直流明度信号および前
記直流色信号を逆色変換して直流信号を復元し、交流逆
量子化手段は、第1の逆色変換手段で復元された交流信
号を逆量子化し、逆位置変換手段は第2の逆色変換手段
で復元された直流信号および交流逆量子化手段で逆量子
化された交流信号を逆位置相関変換して、カラー画像の
各コンポーネントを復元することとしたので、簡易な回
路構成および復元方法で符号情報の復元が可能となる。
According to the decoding apparatus of the present invention, the area determining means determines the area to which the code information belongs from the flag information, and the inverse quantizing means determines the code of the predetermined unit according to the determination result of the area determining means. The information is subjected to different inverse quantization for each area to restore the DC lightness signal, the DC color signal, the AC lightness signal, and the AC color signal, and the first inverse color conversion means reversely colors the AC lightness signal and the AC color signal. The second inverse color conversion means performs inverse color conversion of the DC lightness signal and the DC color signal to restore the DC signal, and the AC inverse quantization means performs first inverse color conversion. Means for inversely quantizing the AC signal reconstructed by the means, and the inverse position transforming means performs inverse position correlation transform of the DC signal restored by the second inverse color transforming means and the AC signal inversely quantized by the AC inverse quantizing means. Each component of the color image Since it was decided to original restoration code information can be a simple circuit configuration and restore.

【0228】また、請求項25にかかる復号化装置によ
れば、領域判定手段はフラグ情報から符号情報が属する
領域を判定し、逆量子化手段は領域判定手段の判定結果
に従って、所定単位の符号情報を領域毎に異なる逆量子
化を行ない、直流明度信号、直流色信号、交流明度信
号、および交流色信号を復元し、第1の逆色変換手段は
交流明度信号および交流色信号を逆色変換して交流信号
を復元し、逆位置変換手段は、逆量子化手段で復元され
た直流信号および第1の逆色変換手段で復元された交流
信号を逆位置相関変換して、カラー画像の各コンポーネ
ントを復元することとしたので、簡易な回路構成および
復元方法で符号情報の復元が可能となる。
According to the decoding apparatus of the present invention, the area determining means determines the area to which the code information belongs from the flag information, and the inverse quantizing means determines the code of the predetermined unit according to the result of the determination by the area determining means. The information is subjected to different inverse quantization for each area to restore a DC lightness signal, a DC color signal, an AC lightness signal, and an AC color signal, and the first inverse color conversion means performs inverse color conversion on the AC lightness signal and the AC color signal. Transforming the AC signal, and the inverse position conversion means performs inverse position correlation conversion of the DC signal restored by the inverse quantization means and the AC signal restored by the first inverse color conversion means, thereby converting the color image. Since each component is restored, code information can be restored with a simple circuit configuration and a restoring method.

【0229】また、請求項26にかかる復号化装置によ
れば、請求項21〜請求項25のいずれか1つに記載の
発明において、逆量子化手段は、直流明度信号を復元す
る場合に中間値で復元することとしたので、請求項21
〜請求項25のいずれか1つに記載の発明の効果に加え
て、濃度変化を少なくでき、S/N比を向上させること
が可能となる。
Further, according to the decoding apparatus of the twenty-sixth aspect, in the invention of any one of the twenty-first to twenty-fifth aspects, the inverse quantization means includes an intermediate quantization means for restoring the DC brightness signal. Claim 21 because restoration is performed using values.
In addition to the effects of the invention described in any one of the twenty-fifth to twenty-fifth aspects, a change in concentration can be reduced and the S / N ratio can be improved.

【0230】また、請求項27にかかる符号化方法によ
れば、各コンポーネントの情報を画像の1次元または2
次元の位置的相関を用いて情報量に偏りが生じるように
変換し、変換後の情報に対し変換を行ない明度信号と色
信号を得て、得られた係数に対し量子化を行なうことと
したので、符号化工程の簡易化・量子化の簡略化を図る
ことができる。
According to the coding method of the twenty-seventh aspect, the information of each component is stored in a one-dimensional or two-dimensional image.
Using the dimensional positional correlation, the information is transformed so that the amount of information is biased, the transformed information is transformed to obtain a brightness signal and a color signal, and the obtained coefficients are quantized. Therefore, it is possible to simplify the encoding process and the quantization.

【0231】また、請求項28にかかる符号化方法によ
れば、各コンポーネントの情報を所定の単位毎に直流成
分と交流成分とに分離し、分離された交流成分を明度信
号と色信号とに変換して交流明度信号と交流色信号を得
て、交流明度信号および/または交流色信号を量子化す
ることとしたので、直流成分は色変換しないため、直流
成分の色変換用の工程を削減できる。
According to the encoding method of the twenty-eighth aspect, information of each component is separated into a DC component and an AC component for each predetermined unit, and the separated AC component is converted into a brightness signal and a color signal. Since the AC brightness signal and / or the AC color signal are obtained by conversion and the AC brightness signal and / or the AC color signal are quantized, the DC component is not color-converted, so that the process for color conversion of the DC component is reduced. it can.

【0232】また、請求項29にかかる符号化方法によ
れば、各コンポーネントの情報を所定の単位毎に直流成
分と交流成分とに分離し、分離された交流成分を量子化
し、分離された直流成分を明度信号と色信号とに変換し
て直流明度信号と直流色信号を得て、量子化された交流
成分を、明度信号と色信号とに変換して交流明度信号と
交流色信号を得て、さらに、変換された交流明度信号お
よび/または交流色信号を量子化することとしたので、
従来の方式と比べ符号化効率を落とすことなく処理工程
を少なくすることができる。
According to the encoding method of the present invention, information of each component is separated into a DC component and an AC component for each predetermined unit, the separated AC component is quantized, and the separated DC component is quantized. The components are converted into a brightness signal and a color signal to obtain a DC brightness signal and a DC color signal, and the quantized AC component is converted into a brightness signal and a color signal to obtain an AC brightness signal and an AC color signal. Further, since the converted AC lightness signal and / or AC color signal are quantized,
The number of processing steps can be reduced without lowering the coding efficiency as compared with the conventional method.

【0233】また、請求項30にかかる符号化方法によ
れば、各コンポーネントの情報を所定の単位毎に直流成
分と交流成分とに分離し、分離された直流成分を明度信
号と色信号とに変換して直流明度信号と直流色信号を得
て、分離された交流信号を量子化することとしたので、
符号化工程の簡易化・量子化の簡略化を図ることができ
る。
According to the encoding method of the present invention, information of each component is separated into a DC component and an AC component for each predetermined unit, and the separated DC component is converted into a brightness signal and a color signal. After converting to obtain the DC brightness signal and the DC color signal, and quantizing the separated AC signal,
It is possible to simplify the encoding process and the quantization.

【0234】また、請求項31にかかる符号化方法によ
れば、各コンポーネントの情報を所定の単位毎にBTC
変換し、BTC変換された情報を色変換し、色変換され
た情報を量子化することとしたので、符号化工程の簡易
化・量子化の簡略化を図ることができる。
According to the encoding method of the present invention, the information of each component is stored in the BTC for each predetermined unit.
Since the converted and BTC-converted information is color-converted and the color-converted information is quantized, the encoding process can be simplified and the quantization can be simplified.

【0235】また、請求項32にかかる符号化方法によ
れば、各コンポーネントの情報を、所定の単位毎に画像
の1次元又は2次元の位置的相関を用いて情報量に偏り
が生じるように変換し、変換後の情報に対し変換を行な
い、明度信号と色信号とを得て、所定の単位毎に画像の
領域を判定し、変換により得られた係数に対し、領域の
判定結果に従い領域毎に異なる量子化を行なう第4の工
程と、判定された領域を識別するためのフラグ情報を作
成することとしたので、符号化工程の簡易化・量子化の
簡略化を図ることができるとともに、画質劣化の少ない
圧縮が可能となる。
[0235] According to the encoding method of the present invention, information of each component is determined so that an information amount is biased by using one-dimensional or two-dimensional positional correlation of an image for each predetermined unit. Perform conversion, perform conversion on the converted information, obtain a brightness signal and a color signal, determine the area of the image for each predetermined unit, and, based on the coefficient obtained by the conversion, determine the area according to the area determination result. Since the fourth step of performing different quantization every time and the flag information for identifying the determined area are created, the encoding step can be simplified and the quantization can be simplified. Thus, compression with less deterioration in image quality can be performed.

【0236】また、請求項33にかかる符号化方法によ
れば、各コンポーネントの情報を、所定の単位毎に直流
成分および交流成分に分離し、分離された交流成分を量
子化し、量子化された交流成分を、明度信号と色信号と
に変換して交流明度信号と交流色信号とを得て、所定の
単位毎に、直流成分、交流明度信号、交流色信号のうち
の少なくとも1つの振幅の大きさに従って、前述の所定
の単位が複数の領域のうちいずれの領域に属するかを判
定し、交流明度信号および/または交流色信号に対し、
領域の判定結果に従って領域毎に異なる量子化を行な
い、判定された領域を識別するためのフラグ情報を作成
することとしたので、符号化工程の簡易化・量子化の簡
略化を図ることができるとともに、領域の判定を正確に
行うことが可能となり、画質劣化の少ない圧縮が可能と
なる。
According to the encoding method of the present invention, the information of each component is separated into a DC component and an AC component for each predetermined unit, and the separated AC component is quantized. The AC component is converted into a brightness signal and a chrominance signal to obtain an AC brightness signal and an AC chrominance signal. For each predetermined unit, the amplitude of at least one of the DC component, the AC brightness signal, and the AC chrominance signal is obtained. According to the size, it is determined which of the plurality of areas the predetermined unit belongs to, and the AC lightness signal and / or the AC color signal are determined.
Since different quantization is performed for each area according to the area determination result and flag information for identifying the determined area is created, it is possible to simplify the encoding process and the quantization. At the same time, it is possible to accurately determine the area, and it is possible to perform compression with little deterioration in image quality.

【0237】また、請求項34にかかる復号化方法によ
れば、符号情報を逆量子化して交流明度信号、交流色信
号、直流明度信号、および直流色信号を復元し、交流明
度信号および交流色信号を逆色変換して交流信号を復元
し、直流明度信号および直流色信号を逆色変換して直流
信号を復元し、復元された交流信号を逆量子化し、復元
された直流信号および逆量子化された交流信号を逆位置
相関変換して、カラー画像の各コンポーネントを復元す
ることとしたので、簡易な復号化工程および復元方法で
符号情報の復元が可能となる。
Further, according to the decoding method of the present invention, the AC information signal, the AC chrominance signal, the DC luminosity signal and the DC chrominance signal are restored by dequantizing the code information, and the AC luminosity signal and the AC chrominance signal are restored. The signal is inverse-color-converted to restore the AC signal, the DC brightness signal and the DC color signal are inverse-color-converted to restore the DC signal, the restored AC signal is inversely quantized, and the restored DC signal and inverse quantum Since the converted AC signal is subjected to inverse positional correlation conversion to restore each component of the color image, it is possible to restore the code information by a simple decoding process and a simple restoration method.

【0238】また、請求項35にかかる復号化方法によ
れば、符号情報を逆量子化して交流明度信号、交流色信
号、直流信号を復元し、交流明度信号および交流色信号
を逆色変換して交流信号を復元し、復元された交流信号
を逆量子化し、復元された直流信号および逆量子化され
た交流信号を逆位置相関変換してカラー画像の各コンポ
ーネントを復元することとしたので、簡易な復号化工程
および復元方法で符号情報の復元が可能となる。
According to the decoding method of the present invention, the code information is inversely quantized to restore the AC lightness signal, the AC color signal, and the DC signal, and the AC lightness signal and the AC color signal are subjected to the inverse color conversion. Since the AC signal is restored, the restored AC signal is inversely quantized, and the restored DC signal and the inversely quantized AC signal are subjected to inverse positional correlation to restore each component of the color image. Code information can be restored by a simple decoding process and a simple restoration method.

【0239】また、請求項36にかかる復号化方法によ
れば、符号情報を逆量子化し、逆量子化された情報を逆
色変換し、逆色変換手段で逆色変換された情報を逆BT
C変換してカラー画像の各コンポーネントを復元するこ
ととしたので、簡易な復号化工程および復元方法で符号
情報の復元が可能となる。
According to the decoding method of the present invention, the code information is inversely quantized, the inversely quantized information is subjected to inverse color conversion, and the information subjected to inverse color conversion by the inverse color conversion means is subjected to inverse BT conversion.
Since each component of the color image is restored by performing the C conversion, it is possible to restore the code information by a simple decoding process and a simple restoration method.

【0240】また、請求項37にかかる復号化方法によ
れば、フラグ情報から符号情報が属する領域を判定し、
領域の判定結果に従って、所定単位の符号情報を領域毎
に異なる逆量子化を行なって直流明度信号、直流色信
号、交流明度信号、および交流色信号を復元し、交流明
度信号および交流色信号を逆色変換して交流信号を復元
し、直流明度信号および直流色信号を逆色変換して直流
信号を復元し、復元された交流信号を逆量子化し、逆量
子化された交流信号および復元された直流信号を逆位置
相関変換して、カラー画像の各コンポーネントを復元す
ることとしたので、簡易な復号化工程および復元方法で
符号情報の復元が可能となる。
According to the decoding method of the present invention, the area to which the code information belongs is determined from the flag information,
According to the area determination result, a predetermined unit of code information is subjected to different inverse quantization for each area to restore a DC lightness signal, a DC color signal, an AC lightness signal, and an AC color signal, and the AC lightness signal and the AC color signal are reconstructed. Invert color conversion to restore the AC signal, DC brightness signal and DC color signal to inverse color conversion to restore the DC signal, inversely quantized the restored AC signal, inverse quantized AC signal and restored Since each component of the color image is restored by performing the inverse position correlation conversion on the DC signal, the code information can be restored by a simple decoding process and a simple restoration method.

【0241】また、請求項38にかかる復号化方法によ
れば、フラグ情報から符号情報が属する領域を判定し、
領域判定の結果に従って、所定単位の符号情報を領域毎
に異なる逆量子化を行なって、直流信号、交流明度信
号、および交流色信号を生成し、交流明度信号および交
流色信号を逆色変換して交流信号を復元し、復元された
交流信号を逆量子化し、復元された直流信号および逆量
子化された交流信号を逆位置相関変換して、カラー画像
の各コンポーネントを復元することとしたので、簡易な
復号化工程および復元方法で符号情報の復元が可能とな
る。
According to the decoding method of the present invention, the area to which the code information belongs is determined from the flag information,
In accordance with the result of the region determination, a predetermined unit of code information is subjected to different inverse quantization for each region to generate a DC signal, an AC brightness signal, and an AC color signal, and perform an inverse color conversion on the AC brightness signal and the AC color signal. Since the AC signal is restored, the restored AC signal is inversely quantized, and the restored DC signal and the inversely quantized AC signal are subjected to inverse positional correlation transformation to restore each component of the color image. It is possible to restore the code information by a simple decoding process and a simple restoring method.

【0242】また、請求項39にかかる記録媒体によれ
ば、記録媒体に記録されたプログラムをコンピュータに
より実行して、請求項27〜請求項38のいずれか1つ
に記載の発明の各工程を実現することとしたので、記録
媒体に記録されたプログラムを実行することにより、請
求項27〜請求項38のいずれか1つに記載の発明の各
工程を実現することが可能となる。
Further, according to the recording medium of claim 39, the program recorded on the recording medium is executed by a computer to execute each step of the invention according to any one of claims 27 to 38. Since the present invention is realized, it is possible to realize each step of the invention according to any one of claims 27 to 38 by executing a program recorded on a recording medium.

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

【図1】本実施の形態にかかるデジタルカラー複写機の
信号処理系を示すブロック図である。
FIG. 1 is a block diagram showing a signal processing system of a digital color copying machine according to an embodiment.

【図2】実施の形態1の符号化器を示すブロック図であ
る。
FIG. 2 is a block diagram illustrating an encoder according to the first embodiment.

【図3】2×2画素ブロック単位で行う2次元のハール
変換を示した図である。
FIG. 3 is a diagram illustrating a two-dimensional Haar transform performed in units of 2 × 2 pixel blocks.

【図4】ハール変換の式を示した図である。FIG. 4 is a diagram showing an expression of the Haar transform.

【図5】色変換の式を示した図である。FIG. 5 is a diagram showing a color conversion equation.

【図6】ベクトル量子化テーブルの一例を示す図であ
る。
FIG. 6 is a diagram illustrating an example of a vector quantization table.

【図7】ベクトル量子化とスカラ量子化を比較した図で
ある。
FIG. 7 is a diagram comparing vector quantization and scalar quantization.

【図8】交流明度信号ベクトルと交流色信号ベクトルの
比率の量子化の概念を説明する図である。
FIG. 8 is a diagram illustrating the concept of quantization of the ratio between an AC lightness signal vector and an AC color signal vector.

【図9】比率の量子化値の例を示した図である。FIG. 9 is a diagram illustrating an example of a quantization value of a ratio.

【図10】実施の形態1で得られる固定長符号の例を示
した図である。
FIG. 10 is a diagram illustrating an example of a fixed-length code obtained in the first embodiment.

【図11】従来技術の回路規模とこの実施例における回
路規模を比較した図である。
FIG. 11 is a diagram comparing the circuit scale of the prior art with the circuit scale in this embodiment.

【図12】実施の形態1の復号化器の構成を示すブロッ
ク図である。
FIG. 12 is a block diagram illustrating a configuration of a decoder according to the first embodiment.

【図13】実施の形態2の符号化器を示すブロック図で
ある。
FIG. 13 is a block diagram showing an encoder according to the second embodiment.

【図14】色信号の直流成分の非線形量子化の概念を示
した図である。
FIG. 14 is a diagram illustrating a concept of nonlinear quantization of a DC component of a color signal.

【図15】実施の形態2で得られる固定長符号を示した
図である。
FIG. 15 is a diagram showing fixed-length codes obtained in the second embodiment.

【図16】実施の形態2の回路規模を説明する図であ
る。
FIG. 16 is a diagram illustrating a circuit scale according to the second embodiment.

【図17】実施の形態2の復号化器の構成を示すブロッ
ク図である。
FIG. 17 is a block diagram illustrating a configuration of a decoder according to the second embodiment.

【図18】実施の形態3の符号化器を示すブロック図で
ある。
FIG. 18 is a block diagram illustrating an encoder according to a third embodiment.

【図19】実施の形態3で得られる固定長符号を示した
図である。
FIG. 19 is a diagram illustrating fixed-length codes obtained in the third embodiment.

【図20】実施の形態3の回路規模を説明する図であ
る。
FIG. 20 is a diagram illustrating a circuit scale according to the third embodiment.

【図21】実施の形態4の符号化器の構成を示すブロッ
ク図である。
FIG. 21 is a block diagram illustrating a configuration of an encoder according to a fourth embodiment.

【図22】実施の形態4の復号化器の構成を示すブロッ
ク図である。
FIG. 22 is a block diagram illustrating a configuration of a decoder according to Embodiment 4.

【図23】実施の形態5の符号化器の構成を示すブロッ
ク図である。
FIG. 23 is a block diagram illustrating a configuration of an encoder according to the fifth embodiment.

【図24】ベクトルテーブルの一例を示す図である。FIG. 24 is a diagram illustrating an example of a vector table.

【図25】実施の形態5で得られる固定長符号を示した
図である。
FIG. 25 is a diagram illustrating fixed-length codes obtained in the fifth embodiment.

【図26】実施の形態5の符号化器の別の構成を示すブ
ロック図である。
FIG. 26 is a block diagram showing another configuration of the encoder according to the fifth embodiment.

【図27】領域判定を他段階に行う場合を説明するため
の説明図である。
FIG. 27 is an explanatory diagram for describing a case where region determination is performed at another stage.

【図28】固定長符号の一例を示す図である。FIG. 28 is a diagram illustrating an example of a fixed-length code.

【図29】エッジ領域と低エッジ領域のベクトルテーブ
ルの一例を示す。
FIG. 29 shows an example of a vector table of an edge area and a low edge area.

【図30】領域の混在による画質劣化の低減を説明する
ための説明図である。
FIG. 30 is an explanatory diagram for explaining reduction of image quality deterioration due to mixture of regions.

【図31】実施の形態5の復号化器の別の構成を示すブ
ロック図である。
FIG. 31 is a block diagram showing another configuration of the decoder according to the fifth embodiment.

【図32】実施の形態6の符号化器の構成を示すブロッ
ク図である。
FIG. 32 is a block diagram illustrating a configuration of an encoder according to Embodiment 6.

【図33】実施の形態6の符号化器の別の構成を示すブ
ロック図である。
FIG. 33 is a block diagram showing another configuration of the encoder according to the sixth embodiment.

【図34】実施の形態6の復号化器の構成を示すブロッ
ク図である。
FIG. 34 is a block diagram illustrating a configuration of a decoder according to the sixth embodiment.

【図35】実施の形態6の復号化器の別の構成を示すブ
ロック図である。
FIG. 35 is a block diagram showing another configuration of the decoder according to the sixth embodiment.

【図36】色差低周波の非線形量子化テーブル(5ビッ
ト)の一例を示す図である。
FIG. 36 is a diagram illustrating an example of a color difference low frequency nonlinear quantization table (5 bits).

【図37】色差低周波の非線形量子化テーブル(6ビッ
ト)の一例を示す図である。
FIG. 37 is a diagram illustrating an example of a low-frequency color difference nonlinear quantization table (6 bits).

【図38】色差低周波の非線形量子化テーブル(7ビッ
ト)の一例を示す図である。
FIG. 38 is a diagram illustrating an example of a color difference low-frequency nonlinear quantization table (7 bits).

【図39】実施の形態5の復号化器の構成を示すブロッ
ク図である。
FIG. 39 is a block diagram showing a configuration of a decoder according to the fifth embodiment.

【図40】従来の均等色空間に基づくカラー画像の符号
化を説明する図である。
FIG. 40 is a diagram illustrating encoding of a color image based on a conventional uniform color space.

【図41】従来技術のカラー画像の符号化を説明する図
である。
FIG. 41 is a diagram illustrating encoding of a conventional color image.

【図42】従来技術のカラー画像の符号化を説明する図
である。
FIG. 42 is a diagram illustrating encoding of a conventional color image.

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

401 スキャナ 402 符号化器 403 ページメモリ 404 復号化器 405 フィルタ・階調処理部 406 編集パネル 501 R色n×mバッファ 502 G色n×mバッファ 503 B色n×mバッファ 504 R色位置相関変換部 505 G色位置相関変換部 506 B色位置相関変換部 507 色変換部 508 交流成分量子化部 509 色変換部 510 量子化部 511 符号化部 521 符号分割部 522 逆量子化部 523 逆色変換部 524 逆色変換部 525 交流成分逆量子化部 526 R色位置相関逆変換部 527 G色位置相関逆変換部 528 B色位置相関逆変換部 529 復元R色n×mバッファ 530 復元G色n×mバッファ 531 復元B色n×mバッファ Reference numeral 401 Scanner 402 Encoder 403 Page memory 404 Decoder 405 Filter / gradation processing unit 406 Editing panel 501 R color n × m buffer 502 G color n × m buffer 503 B color n × m buffer 504 R color position correlation conversion Unit 505 G color position correlation conversion unit 506 B color position correlation conversion unit 507 Color conversion unit 508 AC component quantization unit 509 Color conversion unit 510 Quantization unit 511 Encoding unit 521 Code division unit 522 Inverse quantization unit 523 Inverse color conversion Unit 524 Inverse color conversion unit 525 AC component inverse quantization unit 526 R color position correlation inverse conversion unit 527 G color position correlation inverse conversion unit 528 B color position correlation inverse conversion unit 529 Restored R color n × m buffer 530 Restored G color n × m buffer 531 Restored B color n × m buffer

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 11/04 H04N 7/133 Z (72)発明者 山崎 由希子 東京都大田区中馬込1丁目3番6号 株式 会社リコー内 Fターム(参考) 5C057 AA01 AA07 CC04 EA01 EA02 EA07 ED10 EF01 EF05 EL01 EM07 EM17 GG01 GH03 GH05 GJ01 GJ02 GJ04 GJ09 5C059 KK08 MA21 MA22 MA23 MA24 MA28 MA41 MC18 MC30 MC32 MC34 PP01 PP15 PP16 PP22 PP23 RC12 SS20 SS26 SS28 TA45 TA55 TC02 TC31 TD09 UA02 UA05 UA39 5C077 LL17 MP08 PP27 PP28 PP31 PP32 PP33 PP36 PP47 PP49 PP68 PQ08 PQ12 RR05 RR21 TT06 5C078 BA54 BA57 BA58 CA01 CA27 DA01 DA02 DB00 5J064 AA02 BA13 BA16 BB13 BC01 BC16 BD06 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification FI FI Theme Court ゛ (Reference) H04N 11/04 H04N 7/133 Z (72) Inventor Yukiko Yamazaki 1-3-6 Nakamagome, Ota-ku, Tokyo No. F-term in Ricoh Co., Ltd. SS28 TA45 TA55 TC02 TC31 TD09 UA02 UA05 UA39 5C077 LL17 MP08 PP27 PP28 PP31 PP32 PP33 PP36 PP47 PP49 PP68 PQ08 PQ12 RR05 RR21 TT06 5C078 BA54 BA57 BA58 CA01 CA27 DA01 DA02 DB00 5J064 AA02 BC13 BC16 BC13

Claims (39)

【特許請求の範囲】[Claims] 【請求項1】 カラー画像を構成する各色成分である複
数のコンポーネントで構成されるカラー画像を圧縮して
符号情報を生成する符号化装置において、 各コンポーネントの情報を画像の1次元または2次元の
位置的相関を用いて情報量に偏りが生じるように変換す
る第1の変換手段と、 前記第1の変換手段による変換後の情報に対し変換を行
ない、明度信号と色信号を得る第2の変換手段と、 前記第1の変換手段および/または前記第2の変換手段
の変換により得られた係数に対し量子化を行なう量子化
手段と、 を備えたことを特徴とする符号化装置。
1. An encoding apparatus for compressing a color image composed of a plurality of components, each of which is a color component constituting a color image, to generate code information, comprising the steps of: A first conversion unit for converting the information amount so as to be biased by using the positional correlation; and a second conversion unit for converting the information converted by the first conversion unit to obtain a brightness signal and a color signal. An encoding apparatus comprising: a transforming unit; and a quantizing unit that quantizes a coefficient obtained by the transformation by the first transforming unit and / or the second transforming unit.
【請求項2】 カラー画像を構成する各色成分である複
数のコンポーネントで構成されるカラー画像を圧縮して
符号情報を生成する符号化装置において、 各コンポーネントの情報を所定の単位毎に直流成分と交
流成分とに分離する分離手段と、 前記分離手段により分離された交流成分を、明度信号と
色信号とに変換して交流明度信号と交流色信号を得る変
換手段と、 前記変換手段により得られた交流明度信号および/また
は交流色信号を量子化する量子化手段と、 を備えたことを特徴とするカラー画像の符号化装置。
2. An encoding apparatus for compressing a color image composed of a plurality of components, each of which is a color component constituting a color image, to generate code information, comprising the steps of: A separating unit that separates the AC component into an AC component; a converting unit that converts the AC component separated by the separating unit into a brightness signal and a color signal to obtain an AC brightness signal and an AC color signal; And a quantizing means for quantizing the AC lightness signal and / or the AC color signal.
【請求項3】 カラー画像を構成する各色成分である複
数のコンポーネントで構成されるカラー画像を圧縮して
符号情報を生成する符号化装置において、 各コンポーネントの情報を所定の単位毎に直流成分と交
流成分とに分離する分離手段と、 前記分離手段により分離された交流成分を量子化する交
流成分量子化手段と、 前記分離手段により分離された直流成分を明度信号と色
信号とに変換して直流明度信号と直流色信号を得る第1
の変換手段と、 前記第1の量子化手段により量子化された交流成分を、
明度信号と色信号とに変換して交流明度信号と交流色信
号を得る第2の変換手段と、 前記第2の変換手段により変換された交流明度信号およ
び/または交流色信号を量子化する量子化手段と、 を備えたことを特徴とするカラー画像の符号化装置。
3. An encoding apparatus for compressing a color image composed of a plurality of components, each of which is a color component constituting a color image, to generate code information, comprising the steps of: Separating means for separating the AC component into AC components, AC component quantizing means for quantizing the AC components separated by the separating means, and converting the DC components separated by the separating means into a brightness signal and a color signal. First to obtain DC lightness signal and DC color signal
And an AC component quantized by the first quantizing means,
Second conversion means for converting the lightness signal and the color signal into an AC lightness signal and an AC color signal, and a quantum for quantizing the AC lightness signal and / or the AC color signal converted by the second conversion means. An encoding device for a color image, comprising: encoding means.
【請求項4】 カラー画像を構成する各色成分である複
数のコンポーネントで構成されるカラー画像を圧縮する
カラー画像の符号化装置において、 各コンポーネントの情報を所定の単位毎に直流成分と交
流成分とに分離する分離手段と、 前記分離手段で分離された直流成分を明度信号と色信号
とに変換して直流明度信号と直流色信号を得る変換手段
と、 前記分離手段で分離された交流成分を量子化する量子化
手段と、 を備えたことを特徴とするカラー画像の符号化装置。
4. A color image encoding apparatus for compressing a color image composed of a plurality of components, each of which is a color component constituting a color image, wherein information of each component is converted into a DC component and an AC component for each predetermined unit. Separating means for converting the DC component separated by the separating means into a brightness signal and a color signal to obtain a DC lightness signal and a DC color signal; andthe AC component separated by the separating means. A color image encoding device, comprising: a quantization unit that performs quantization.
【請求項5】 前記量子化手段は、交流明度信号および
/または交流色信号を量子化する際に、ベクトル量子化
を行なうことを特徴とする請求項2または請求項3に記
載の符号化装置。
5. The encoding apparatus according to claim 2, wherein said quantization means performs vector quantization when quantizing the AC lightness signal and / or the AC chrominance signal. .
【請求項6】 前記量子化手段は、交流明度信号および
交流色信号を量子化する際に、交流明度信号と交流色信
号の比率を量子化することを特徴とする請求項2、請求
項3、または請求項5に記載の符号化装置。
6. The apparatus according to claim 2, wherein said quantizing means quantizes a ratio between the AC lightness signal and the AC color signal when quantizing the AC lightness signal and the AC color signal. Or the encoding device according to claim 5.
【請求項7】 前記量子化手段は、前記交流成分のう
ち、最もエッジが大きな特定色についてベクトル量子化
し、他の色は当該特定色のベクトルとの比を量子化する
ことを特徴とする請求項4に記載のカラー画像の符号化
装置。
7. The method according to claim 1, wherein said quantizing means quantizes a vector of a specific color having the largest edge among said AC components, and quantizes a ratio of another color to a vector of the specific color. Item 5. An apparatus for encoding a color image according to Item 4.
【請求項8】 前記量子化手段は、ベクトル量子化する
場合には、閾値を量子化値の中間地点よりも大きめに設
定することを特徴とする請求項2〜請求項7のいずれか
1つに記載の符号化装置。
8. The apparatus according to claim 2, wherein said quantization means sets a threshold value larger than an intermediate point of the quantization value when performing vector quantization. An encoding device according to claim 1.
【請求項9】 前記交流成分量子化手段は、1つの係数
または全係数の下位ビットを削除して量子化を行うこと
を特徴とする請求項3に記載の符号化装置。
9. The encoding apparatus according to claim 3, wherein said AC component quantization means performs quantization by deleting lower bits of one coefficient or all coefficients.
【請求項10】 前記交流成分量子化手段は、画像の斜
めエッジに対応する係数を削除することを特徴とする請
求項3に記載の符号化装置。
10. The encoding apparatus according to claim 3, wherein said AC component quantization means deletes a coefficient corresponding to an oblique edge of an image.
【請求項11】 前記分離手段は、変換単位である所定
の単位内部の画素のみを参照して変換を行うことを特徴
とする請求項2〜請求項10のいずれか1つに記載の符
号化装置。
11. The encoding apparatus according to claim 2, wherein the separation unit performs the conversion with reference to only a pixel in a predetermined unit that is a conversion unit. apparatus.
【請求項12】 前記分離手段は、ハールウェーブレッ
ト変換を行うことを特徴とする請求項11に記載の符号
化装置。
12. The encoding apparatus according to claim 11, wherein said separating means performs a Haar wavelet transform.
【請求項13】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像を圧縮し
て符号情報を生成するカラー画像の符号化装置におい
て、 各コンポーネントの情報を所定の単位毎にBTC変換す
る変換手段と、 前記BTC変換された情報を色変換する色変換手段と、 前記色変換手段で色変換された情報を量子化する量子化
手段と、 を備えたことを特徴とするカラー画像の符号化装置。
13. A color image encoding apparatus for compressing a color image composed of a plurality of components, each of which is a color component constituting a color image, to generate code information, comprising the steps of: A color comprising: a conversion unit for performing BTC conversion; a color conversion unit for performing color conversion on the BTC-converted information; and a quantization unit for quantizing information that has been color-converted by the color conversion unit. Image encoding device.
【請求項14】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像を圧縮し
て符号情報を生成するカラー画像の符号化装置におい
て、 各コンポーネントの情報を、所定の単位毎に画像の1次
元または2次元の位置的相関を用いて情報量に偏りが生
じるように変換する第1の変換手段と、 前記第1の変換手段による変換後の情報に対し変換を行
ない、明度信号と色信号とを得る第2の変換手段と、 前記所定の単位毎に画像の領域を判定する領域判定手段
と、 前記第1の変換手段および/または前記第2の変換手段
の変換により得られた係数に対し、前記領域判定手段の
判定結果に従い領域毎に異なる量子化を行なう量子化手
段と、 前記領域判定手段により判定された領域を識別するため
のフラグ情報を作成するフラグ情報作成手段と、 を備えたことを特徴とするカラー画像の符号化装置。
14. A color image coding apparatus for generating code information by compressing a color image composed of a plurality of components, each of which is a color component of a color image, comprising the steps of: First conversion means for converting the information amount so as to cause a bias using the one-dimensional or two-dimensional positional correlation of the image; and performing conversion on the information converted by the first conversion means, A second conversion unit that obtains a signal and a color signal; an area determination unit that determines an area of an image for each of the predetermined units; and a conversion unit that obtains a signal and a color signal. Quantizing means for performing different quantization on each of the areas according to the determination result of the area determining means, and flag information for identifying the area determined by the area determining means are created. Encoding device of a color image, characterized in that it includes a flag information generating means, the that.
【請求項15】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像を圧縮し
て符号情報を生成する符号化装置において、 各コンポーネントの情報を、所定の単位毎に直流成分お
よび交流成分に分離する分離手段と、 前記分離手段により分離された交流成分を量子化する第
1の量子化手段と、 前記第1の量子化手段により量子化された交流成分を、
明度信号と色信号とに変換して交流明度信号と交流色信
号とを得る変換手段と、 前記所定の単位毎に、前記交流成分、前記交流明度信
号、および前記交流色信号のうち少なくとも1つの振幅
の大きさに従って、前記所定の単位が複数の領域のうち
いずれの領域に属するのかを判定する領域判定手段と、 前記交流明度信号および/または前記交流色信号に対
し、前記領域判定手段の判定結果に従って領域毎に異な
る量子化を行なう第2の量子化手段と、 前記領域判定手段により判定された領域を識別するため
のフラグ情報を作成するフラグ情報作成手段と、 を備えたことを特徴とする符号化装置。
15. An encoding apparatus for compressing a color image composed of a plurality of components, each of which is a color component constituting a color image, to generate code information, comprising the steps of: Separation means for separating the AC component separated by the separation means, a first quantization means for quantizing the AC component separated by the separation means, and an AC component quantized by the first quantization means.
Conversion means for converting into a brightness signal and a color signal to obtain an AC brightness signal and an AC color signal; and for each of the predetermined units, at least one of the AC component, the AC brightness signal, and the AC color signal Area determining means for determining which of the plurality of areas the predetermined unit belongs to in accordance with the magnitude of the amplitude; and determining the AC lightness signal and / or the AC color signal by the area determining means. A second quantization unit that performs different quantization for each region according to the result; and a flag information creation unit that creates flag information for identifying the region determined by the region determination unit. Encoding device.
【請求項16】 前記第2の量子化手段は、前記振幅の
大きさが小さい領域ほど、前記交流明度信号または前記
交流色信号を粗く量子化することを特徴とする請求項1
5に記載の符号化装置。
16. The apparatus according to claim 1, wherein the second quantizing means coarsely quantizes the AC lightness signal or the AC chrominance signal in a region where the amplitude is smaller.
6. The encoding device according to 5.
【請求項17】 前記領域判定手段は、エッジ領域と非
エッジ領域を判定することを特徴とする請求項14〜請
求項16のいずれか1つに記載の符号化装置。
17. The encoding apparatus according to claim 14, wherein the area determination unit determines an edge area and a non-edge area.
【請求項18】 前記領域判定手段は、n(nは3以上
の整数)段階の領域を判定することを特徴とする請求項
14〜請求項17のいずれか1つに記載の符号化装置。
18. The encoding apparatus according to claim 14, wherein said area determination means determines an area of n stages (n is an integer of 3 or more).
【請求項19】 前記フラグ情報はフラグ専用のビット
であり、または係数値を表す符号と一体に構成されるこ
とを特徴とする請求項14〜請求項18のいずれか1つ
に記載の符号化装置。
19. The encoding according to claim 14, wherein the flag information is a flag-only bit, or is integrated with a code representing a coefficient value. apparatus.
【請求項20】 前記符号情報として固定長符号を生成
することを特徴とする請求項1〜請求項19のいずれか
1つに記載の符号化装置。
20. The encoding apparatus according to claim 1, wherein a fixed length code is generated as the code information.
【請求項21】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像の符号情
報を復号化する復号化装置において、 前記符号情報を逆量子化して交流明度信号、交流色信
号、直流明度信号、および直流色信号を復元する逆量子
化手段と、 前記交流明度信号および前記交流色信号を逆色変換して
交流信号を復元する第1の逆色変換手段と、 前記直流明度信号および前記直流色信号を逆色変換して
直流信号を復元する第2の逆色変換手段と、 前記第1の逆色変換手段で復元された交流信号を逆量子
化する交流逆量子化手段と、 前記第2の逆色変換手段で復元された直流信号および前
記交流逆量子化手段で逆量子化された交流信号を逆位置
相関変換して、前記カラー画像の各コンポーネントを復
元する逆位置相関変換手段と、 を備えたことを特徴とする復号化装置。
21. A decoding device for decoding code information of a color image composed of a plurality of components, each of which is a color component of a color image, comprising: an AC lightness signal; an AC color signal; An inverse quantization means for restoring a DC lightness signal and a DC color signal; a first inverse color conversion means for inversely transforming the AC lightness signal and the AC color signal to restore an AC signal; Second inverse color conversion means for performing inverse color conversion on a signal and the DC color signal to restore a DC signal, and AC inverse quantization means for inverse quantizing the AC signal restored by the first inverse color conversion means And an inverse position for inversely correlating the DC signal restored by the second inverse color conversion means and the AC signal inversely quantized by the AC inverse quantization means to restore each component of the color image. correlation Decoding apparatus characterized by comprising: a conversion means.
【請求項22】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像の符号情
報を復号化する復号化装置において、 前記符号情報を逆量子化して交流明度信号、交流色信
号、および直流信号を復元する逆量子化手段と、 前記交流明度信号および前記交流色信号を逆色変換して
交流信号を復元する第1の逆色変換手段と、 前記第1の逆色変換手段で復元された交流信号を逆量子
化する交流逆量子化手段と、 前記直流信号および前記交流逆量子化手段で逆量子化さ
れた交流信号を逆位置相関変換して前記カラー画像の各
コンポーネントを復元する逆位置相関変換手段と、 を備えたことを特徴とする復号化装置。
22. A decoding device for decoding code information of a color image composed of a plurality of components, each of which is a color component constituting a color image, wherein the code information is inversely quantized to obtain an AC lightness signal and an AC color signal. And an inverse quantization means for restoring a DC signal; a first inverse color conversion means for inverse color transforming the AC lightness signal and the AC color signal to restore an AC signal; and a first inverse color conversion means. AC inverse quantization means for inversely quantizing the AC signal restored in the above, and each component of the color image by performing inverse position correlation conversion of the DC signal and the AC signal inversely quantized by the AC inverse quantization means. A decoding device, comprising: an inverse position correlation conversion means for restoring.
【請求項23】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像の符号情
報を復号化する復号化装置において、 前記符号情報を逆量子化する逆量子化手段と、 前記逆量子化手段で逆量子化された情報を逆色変換する
逆色変換手段と、 前記逆色変換手段で逆色変換された情報を逆BTC変換
して前記カラー画像の各コンポーネントを復元する逆B
TC手段と、 を備えたことを特徴とする復号化装置。
23. A decoding device for decoding code information of a color image composed of a plurality of components, each of which is a color component of a color image, comprising: an inverse quantization means for inversely quantizing the code information; Inverse color conversion means for performing inverse color conversion on the information inversely quantized by the inverse quantization means; and inverse BTC conversion of the information inversely color converted by the inverse color conversion means to restore each component of the color image. B
A decoding device comprising: TC means.
【請求項24】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像の符号情
報を復号化する復号化装置において、 フラグ情報から符号情報が属する領域を判定する領域判
定手段と、 前記領域判定手段の判定結果に従って、前記所定単位の
符号情報を領域毎に異なる逆量子化を行なって直流明度
信号、直流色信号、交流明度信号、および交流色信号を
復元する逆量子化手段と、 前記交流明度信号および前記交流色信号を逆色変換して
交流信号を復元する第1の逆色変換手段と、 前記直流明度信号および前記直流色信号を逆色変換して
直流信号を復元する第2の逆色変換手段と、 前記第1の逆色変換手段で復元された交流信号を逆量子
化する交流逆量子化手段と、 前記第2の逆色変換手段で復元された直流信号および前
記交流逆量子化手段で逆量子化された交流信号を逆位置
相関変換して、前記カラー画像の各コンポーネントを復
元する逆位置相関変換手段と、 を備えたことを特徴とする復号化装置。
24. A decoding apparatus for decoding code information of a color image composed of a plurality of components, each of which is a color component constituting a color image, comprising: An inverse quantization means for performing a different inverse quantization of the predetermined unit of code information for each area in accordance with the determination result of the area determination means to restore a DC lightness signal, a DC color signal, an AC lightness signal, and an AC color signal. First inverse color conversion means for performing inverse color conversion on the AC lightness signal and the AC color signal to restore an AC signal; and inverse color conversion on the DC lightness signal and the DC color signal to restore a DC signal. A second inverse color conversion means for converting the AC signal restored by the first inverse color conversion means, an AC inverse quantization means for inversely quantizing the AC signal restored by the first inverse color conversion means, and a DC signal restored by the second inverse color conversion means. Signal and the inverse AC signal quantized by the AC inverse quantizing means are inversely correlated, and inverse position correlation converting means for restoring each component of the color image is provided. apparatus.
【請求項25】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像の符号情
報を復号化する復号化装置において、 フラグ情報から符号情報が属する領域を判定する領域判
定手段と、 前記領域判定手段の判定結果に従って、所定単位の符号
情報を領域毎に異なる逆量子化を行なって、直流信号、
交流明度信号、および交流色信号を復元する逆量子化手
段と、 前記交流明度信号および前記交流色信号を逆色変換して
交流信号を復元する第1の逆色変換手段と、 前記逆量子化手段で復元された直流信号および前記第1
の逆色変換手段で復元された交流信号を逆位置相関変換
して、前記カラー画像の各コンポーネントを復元する逆
位置相関変換手段と、 を備えたことを特徴とする復号化装置。
25. A decoding device for decoding code information of a color image composed of a plurality of components, each of which is a color component of a color image, comprising: an area determination unit for determining an area to which the code information belongs from flag information; According to the determination result of the area determination means, performs a different inverse quantization of the code information of a predetermined unit for each area, DC signal,
Inverse quantization means for restoring an AC lightness signal and an AC color signal; first inverse color transformation means for effecting an inverse color transformation on the AC lightness signal and the AC color signal to restore an AC signal; and the inverse quantization. DC signal restored by means and said first signal
And a inverse position correlation conversion unit for performing inverse position correlation conversion on the AC signal restored by the inverse color conversion unit to restore each component of the color image.
【請求項26】 前記逆量子化手段は、前記直流明度信
号を復元する場合に中間値で復元することを特徴とする
請求項21〜請求項25のいずれか1つに記載の復号化
装置。
26. The decoding apparatus according to claim 21, wherein said inverse quantization means restores the DC brightness signal with an intermediate value when restoring the DC brightness signal.
【請求項27】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像を圧縮し
て符号情報を生成する符号化方法において、 前記各コンポーネントの情報を画像の1次元または2次
元の位置的相関を用いて情報量に偏りが生じるように変
換する第1の工程と、 前記第1の工程による変換後の情報に対し変換を行な
い、明度信号と色信号を得る第2の工程と、 前記第1の工程および/または前記第2の工程の変換に
より得られた係数に対し量子化を行なう第3の工程と、 を含むことを特徴とする符号化方法。
27. An encoding method for compressing a color image composed of a plurality of components, each of which is a color component constituting a color image, to generate code information, wherein the information of each component is one-dimensional or two-dimensional And a second step of converting the information converted in the first step to obtain a lightness signal and a color signal. And a third step of performing quantization on the coefficients obtained by the conversion in the first step and / or the second step.
【請求項28】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像を圧縮し
て符号情報を生成する符号化方法において、 前記各コンポーネントの情報を所定の単位毎に直流成分
と交流成分とに分離する第1の工程と、 前記分離された交流成分を、明度信号と色信号とに変換
して交流明度信号と交流色信号を得る第2の工程と、 前記交流明度信号および/または前記交流色信号を量子
化する第3の工程と、 を含むことを特徴とする符号化方法。
28. An encoding method for compressing a color image composed of a plurality of components, each of which is a color component constituting a color image, to generate code information, wherein the information of each component is converted into a DC component for each predetermined unit. A first step of separating the separated AC component into a brightness signal and a color signal to obtain an AC brightness signal and an AC color signal; and the AC brightness signal. And / or a third step of quantizing the AC color signal.
【請求項29】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像を圧縮し
て符号情報を生成する符号化方法において、 前記各コンポーネントの情報を所定の単位毎に直流成分
と交流成分とに分離する第1の工程と、 前記分離された交流成分を量子化する第2の工程と、 前記分離された直流成分を明度信号と色信号とに変換し
て直流明度信号と直流色信号を得る第3の工程と、 前記量子化された交流成分を、明度信号と色信号とに変
換して交流明度信号と交流色信号を得る第4の工程と、 前記変換された交流明度信号および/または交流色信号
を量子化する第5の工程と、 を含むことを特徴とする符号化方法。
29. An encoding method for generating code information by compressing a color image composed of a plurality of components, each of which is a color component constituting a color image, comprising the steps of: A second step of quantizing the separated AC component, a DC step of converting the separated DC component into a brightness signal and a color signal, and a DC brightness signal. A third step of obtaining a DC color signal; a fourth step of converting the quantized AC component into a brightness signal and a color signal to obtain an AC brightness signal and an AC color signal; A fifth step of quantizing the brightness signal and / or the AC chrominance signal.
【請求項30】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像を圧縮し
て符号情報を生成する符号化方法において、 前記各コンポーネントの情報を所定の単位毎に直流成分
と交流成分とに分離する第1の工程と、 前記分離された直流成分を明度信号と色信号とに変換し
て直流明度信号と直流色信号を得る第2の工程と、 前記分離された交流信号を量子化する第3の工程と、 を含むことを特徴とする符号化方法。
30. An encoding method for compressing a color image composed of a plurality of components, each of which is a color component constituting a color image, to generate code information, comprising the steps of: A first step of separating the separated DC component into a brightness signal and a color signal to obtain a DC brightness signal and a DC color signal; and the separated AC component. A third step of quantizing the signal.
【請求項31】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像を圧縮し
て符号情報を得る符号化方法において、 前記各コンポーネントの情報を所定の単位毎にBTC変
換する第1の工程と、 前記BTC変換された情報を色変換する第2の工程と、 前記色変換された情報を量子化する第3の工程と、 を含むことを特徴とする符号化方法。
31. An encoding method for obtaining code information by compressing a color image composed of a plurality of components, each of which is a color component constituting a color image, wherein the information of each component is subjected to BTC conversion for each predetermined unit. A coding method comprising: a first step; a second step of performing color conversion on the BTC-converted information; and a third step of quantizing the color-converted information.
【請求項32】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像を圧縮し
て符号情報を生成する符号化方法において、 前記各コンポーネントの情報を、所定の単位毎に画像の
1次元又は2次元の位置的相関を用いて情報量に偏りが
生じるように変換する第1の工程と、 前記第1の変換手段による変換後の情報に対し変換を行
ない、明度信号と色信号とを得る第2の工程と、 前記所定の単位毎に画像の領域を判定する第3の工程
と、 前記第2の工程および/または前記第3の工程の変換に
より得られた係数に対し、前記領域の判定結果に従い領
域毎に異なる量子化を行なう第4の工程と、 前記判定された領域を識別するためのフラグ情報を作成
する第5の工程と、 を含むことを特徴とする符号化方法。
32. An encoding method for compressing a color image composed of a plurality of components, each of which is a color component constituting a color image, to generate code information, comprising the steps of: A first step of performing conversion so as to cause a bias in the amount of information using the one-dimensional or two-dimensional positional correlation of the following; and performing a conversion on the information converted by the first conversion unit to obtain a brightness signal and a color. A second step of obtaining a signal; a third step of determining an image area for each of the predetermined units; and a coefficient obtained by the conversion of the second step and / or the third step. A fourth step of performing different quantization for each area according to the determination result of the area, and a fifth step of creating flag information for identifying the determined area. Method.
【請求項33】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像を圧縮し
て符号情報を生成する符号化方法において、 前記各コンポーネントの情報を、所定の単位毎に直流成
分および交流成分に分離する第1の工程と、 前記分離された交流成分を量子化する第2の工程と、 前記量子化された交流成分を、明度信号と色信号とに変
換して交流明度信号と交流色信号とを得る第3の工程
と、 前記所定の単位毎に、前記交流成分、前記交流明度信
号、および前記交流色信号のうちの少なくとも1つの振
幅の大きさに従って、前記所定の単位が複数の領域のう
ちいずれの領域に属するかを判定する第4の工程と、 前記交流明度信号および/または前記交流色信号に対
し、前記領域の判定結果に従って領域毎に異なる量子化
を行なう第5の工程と、 前記判定された領域を識別するためのフラグ情報を作成
する第6の工程と、 を含むことを特徴とするカラー画像の符号化方法。
33. An encoding method for compressing a color image composed of a plurality of components, each of which is a color component of a color image, to generate code information, comprising: A first step of separating the AC component into a component and an AC component; a second step of quantizing the separated AC component; and converting the quantized AC component into a brightness signal and a color signal to obtain an AC brightness. A third step of obtaining a signal and an AC color signal; and, for each of the predetermined units, the AC component, the AC brightness signal, and the AC color signal according to the magnitude of at least one of the amplitudes of the AC color signal. A fourth step of determining to which of the plurality of regions the unit belongs; and for the AC lightness signal and / or the AC color signal, each of the regions is different according to the determination result of the region. Fifth step and, the determined sixth step and the encoding method of a color image, characterized in that it comprises a creating flag information for identifying the area to be that quantization.
【請求項34】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像の符号情
報を復号化する復号化方法において、 前記符号情報を逆量子化して交流明度信号、交流色信
号、直流明度信号、および直流色信号を復元する第1の
工程と、 前記交流明度信号および前記交流色信号を逆色変換して
交流信号を復元する第2の工程と、 前記直流明度信号および前記直流色信号を逆色変換して
直流信号を復元する第3の工程と、 前記復元された交流信号を逆量子化する第4の工程と、 前記復元された直流信号および前記逆量子化された交流
信号を逆位置相関変換して、前記カラー画像の各コンポ
ーネントを復元する第5の工程と、 を含むことを特徴とする復号化方法。
34. A decoding method for decoding code information of a color image composed of a plurality of components, each of which is a color component constituting a color image, wherein the code information is inversely quantized to obtain an AC lightness signal and an AC color signal. A first step of restoring a DC lightness signal and a DC color signal; a second step of performing an inverse color conversion of the AC lightness signal and the AC color signal to restore an AC signal; A third step of performing inverse color conversion on the DC color signal to restore the DC signal, a fourth step of inversely quantizing the restored AC signal, and the restored DC signal and the inversely quantized A fifth step of performing inverse position correlation conversion on the AC signal to restore each component of the color image.
【請求項35】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像の符号情
報を復号化する復号化方法において、 符号情報を逆量子化して交流明度信号、交流色信号、お
よび直流信号を復元する第1の工程と、 前記交流明度信号および前記交流色信号を逆色変換して
交流信号を復元する第2の工程と、 前記復元された交流信号を逆量子化する第3の工程と、 前記復元された直流信号および前記逆量子化された交流
信号を逆位置相関変換して、前記カラー画像の各コンポ
ーネントを復元する第4の工程と、 を備えたことを特徴とする復号化方法。
35. A decoding method for decoding code information of a color image composed of a plurality of components, each of which is a color component of a color image, comprising: an AC brightness signal, an AC color signal, And a first step of restoring a DC signal; a second step of inversely converting the AC lightness signal and the AC color signal to restore an AC signal; and a second step of inversely quantizing the restored AC signal. And a fourth step of performing an inverse position correlation transform of the restored DC signal and the inversely quantized AC signal to restore each component of the color image. The decoding method to use.
【請求項36】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像の符号情
報を復号化する復号化方法において、 前記符号情報を逆量子化する第1の工程と、 前記逆量子化された情報を逆色変換する第2の工程と、 前記逆色変換手段で逆色変換された情報を逆BTC変換
して前記カラー画像の各コンポーネントを復元する第3
の工程と、 を含むことを特徴とする復号化方法。
36. A decoding method for decoding code information of a color image composed of a plurality of components that are color components forming a color image, wherein: a first step of dequantizing the code information; A second step of performing inverse color conversion on the inversely quantized information; and a third step of performing inverse BTC conversion on the information inversely color-converted by the inverse color conversion unit to restore each component of the color image.
And a decoding method.
【請求項37】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されるカラー画像の符号情
報を復号化する復号化方法において、 フラグ情報から符号情報が属する領域を判定する第1の
工程と、 前記領域の判定結果に従って、前記所定単位の符号情報
を領域毎に異なる逆量子化を行なって、直流明度信号、
直流色信号、交流明度信号および交流色信号を復元する
第2の工程と、 前記交流明度信号および前記交流色信号を逆色変換して
交流信号を復元する第3の工程と、 前記直流明度信号および前記直流色信号を逆色変換して
直流信号を復元する第4の工程と、 前記復元された交流信号を逆量子化する第5の工程と、 前記逆量子化された交流信号および復元された直流信号
を逆位置相関変換して、前記カラー画像の各コンポーネ
ントを復元する第6の工程と、 を含むことを特徴とする復号化方法。
37. A decoding method for decoding code information of a color image composed of a plurality of components which are color components constituting a color image, wherein a first step of determining an area to which the code information belongs from flag information. And, according to the determination result of the area, performing a different inverse quantization of the code information of the predetermined unit for each area, a DC brightness signal,
A second step of restoring a DC color signal, an AC lightness signal, and an AC color signal; a third step of performing inverse color conversion of the AC lightness signal and the AC color signal to restore an AC signal; And a fourth step of inverse-color-converting the DC color signal to restore a DC signal; a fifth step of inversely quantizing the restored AC signal; and a step of dequantizing the restored AC signal and the restored AC signal. A sixth step of performing inverse positional correlation conversion on the DC signal and restoring each component of the color image.
【請求項38】 カラー画像を構成する各色成分である
複数のコンポーネントで構成されたカラー画像の符号情
報を復号化する復号化方法において、 フラグ情報から符号情報が属する領域を判定する第1の
工程と、 前記領域判定の結果に従って、所定単位の符号情報を領
域毎に異なる逆量子化を行なって、直流信号、交流明度
信号、および交流色信号を生成する第2の工程と、 前記交流明度信号および前記交流色信号を逆色変換して
交流信号を復元する第3の工程と、 前記復元された交流信号を逆量子化する第4の工程と、 前記復元された直流信号および逆量子化された交流信号
を逆位置相関変換して、前記カラー画像の各コンポーネ
ントを復元する第5の工程と、 を含むことを特徴とする復号化方法。
38. A decoding method for decoding code information of a color image composed of a plurality of components, each color component constituting a color image, wherein a first step of determining an area to which the code information belongs from flag information And a second step of performing a different inverse quantization on the code information of a predetermined unit for each area according to the result of the area determination to generate a DC signal, an AC brightness signal, and an AC color signal; and A third step of performing an inverse color conversion of the AC color signal to restore an AC signal; a fourth step of inversely quantizing the restored AC signal; and a step of inversely quantizing the restored DC signal and inversely quantized. A fifth step of performing inverse positional correlation conversion on the AC signal to restore each component of the color image.
【請求項39】 前記請求項26〜請求項38のいずれ
か1つに記載の発明の各工程を実行するためのプログラ
ムを記録したことを特徴とするコンピュータが読取可能
な記録媒体。
39. A computer-readable recording medium on which a program for executing each step of the invention according to any one of claims 26 to 38 is recorded.
JP2000137826A 1999-05-10 2000-05-10 Encoding device, decoding device, encoding method, decoding method, and computer-readable recording medium for executing the method Expired - Fee Related JP3999442B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000137826A JP3999442B2 (en) 1999-05-10 2000-05-10 Encoding device, decoding device, encoding method, decoding method, and computer-readable recording medium for executing the method

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP11-129147 1999-05-10
JP12914799 1999-05-10
JP2000-131322 2000-04-28
JP2000131322 2000-04-28
JP2000137826A JP3999442B2 (en) 1999-05-10 2000-05-10 Encoding device, decoding device, encoding method, decoding method, and computer-readable recording medium for executing the method

Publications (2)

Publication Number Publication Date
JP2002016808A true JP2002016808A (en) 2002-01-18
JP3999442B2 JP3999442B2 (en) 2007-10-31

Family

ID=27315886

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000137826A Expired - Fee Related JP3999442B2 (en) 1999-05-10 2000-05-10 Encoding device, decoding device, encoding method, decoding method, and computer-readable recording medium for executing the method

Country Status (1)

Country Link
JP (1) JP3999442B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005081539A1 (en) * 2004-02-23 2005-09-01 Nec Corporation 2-dimensional signal encoding/decoding method and device
JP2008017295A (en) * 2006-07-07 2008-01-24 Ntt Docomo Inc Color image coding method, device, and program, and color image decoding method, device, and program
JP2010232712A (en) * 2009-03-25 2010-10-14 Victor Co Of Japan Ltd Data compression apparatus, data decompression apparatus, and display device mounted with them
JP2018148379A (en) * 2017-03-03 2018-09-20 株式会社リコー Image processing device, image processing method, and image processing program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005081539A1 (en) * 2004-02-23 2005-09-01 Nec Corporation 2-dimensional signal encoding/decoding method and device
JPWO2005081539A1 (en) * 2004-02-23 2008-04-24 日本電気株式会社 Two-dimensional signal encoding/decoding method and apparatus
JP4665898B2 (en) * 2004-02-23 2011-04-06 日本電気株式会社 Two-dimensional signal encoding / decoding method and apparatus
US8031951B2 (en) 2004-02-23 2011-10-04 Nec Corporation 2-dimensional signal encoding/decoding method and device
US8265402B2 (en) 2004-02-23 2012-09-11 Nec Corporation 2 dimensional signal encoding/decoding method and device
JP2008017295A (en) * 2006-07-07 2008-01-24 Ntt Docomo Inc Color image coding method, device, and program, and color image decoding method, device, and program
JP2010232712A (en) * 2009-03-25 2010-10-14 Victor Co Of Japan Ltd Data compression apparatus, data decompression apparatus, and display device mounted with them
JP2018148379A (en) * 2017-03-03 2018-09-20 株式会社リコー Image processing device, image processing method, and image processing program

Also Published As

Publication number Publication date
JP3999442B2 (en) 2007-10-31

Similar Documents

Publication Publication Date Title
KR100351654B1 (en) Transform-domain correction of real-domain errors
US6788811B1 (en) Coding apparatus, decoding apparatus, coding method, decoding method, amd computer-readable recording medium for executing the methods
US6256415B1 (en) Two row buffer image compression (TROBIC)
US20070053429A1 (en) Color video codec method and system
JP2001136526A (en) Method for image processing, device thereof and storage medium
US8041135B2 (en) Image encoding apparatus and control method thereof
US6563946B2 (en) Image processing apparatus and method
JP2004533181A (en) Selective chrominance decimation for digital images
KR100357658B1 (en) Reduced-error processing of transformed digital data
JP2001086345A (en) Image processor and method of image processing
US7702161B2 (en) Progressive differential motion JPEG codec
JP3999442B2 (en) Encoding device, decoding device, encoding method, decoding method, and computer-readable recording medium for executing the method
US7146055B2 (en) Image processing decompression apparatus and method of using same different scaling algorithms simultaneously
JP2002077657A (en) Apparatus of image processing, method thereof and recording medium
JP3732674B2 (en) Color image compression method and color image compression apparatus
JP3824259B2 (en) Encoding method, decoding method, encoding device, decoding device, and recording medium
US7103102B2 (en) Bit stream code lookup table for an MPEG-4 code word
JP3199786B2 (en) Image processing device
Thierschmann et al. Scalable DSP architecture for high-speed color document compression
JP3295126B2 (en) Image encoding apparatus and method
JP2940913B2 (en) Color image data encoding device
Miremadi Lossy Image Compression
Klassen et al. Color correcting JPEG compressed images
JP2698641B2 (en) Color image data encoding method and decoding method
JP3382556B2 (en) Image encoding apparatus and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040727

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060728

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060801

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061002

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070809

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100817

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100817

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110817

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110817

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120817

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120817

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130817

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees