JPH11298895A - Image coder and its method - Google Patents
Image coder and its methodInfo
- Publication number
- JPH11298895A JPH11298895A JP9374798A JP9374798A JPH11298895A JP H11298895 A JPH11298895 A JP H11298895A JP 9374798 A JP9374798 A JP 9374798A JP 9374798 A JP9374798 A JP 9374798A JP H11298895 A JPH11298895 A JP H11298895A
- Authority
- JP
- Japan
- Prior art keywords
- class
- dct
- quantization
- quantization step
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 19
- 238000013139 quantization Methods 0.000 claims abstract description 109
- 238000007405 data analysis Methods 0.000 abstract description 7
- 230000003247 decreasing effect Effects 0.000 abstract description 3
- 238000001514 detection method Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 9
- 238000004364 calculation method Methods 0.000 description 6
- 230000000903 blocking effect Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000009432 framing Methods 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、画像データを圧縮
符号化する画像符号化装置に関し、特に、量子化ひずみ
を低減し、より高品質に画像を符号化することができる
画像符号化装置とその方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image encoding apparatus for compressing and encoding image data, and more particularly to an image encoding apparatus capable of reducing quantization distortion and encoding an image with higher quality. Regarding the method.
【0002】[0002]
【従来の技術】画像を圧縮符号化する方法としては、た
とえばDCTなどの変換を行い、得られた変換係数を全
体のデータ量が所定の値以下に収まるように適応量子化
し、さらに可変長符号化を行うという方法が、一般的に
効率のよい符号化方法として用いられている。このよう
な方法で符号化を行う場合において、その量子化ステッ
プの決定方法は、たとえば、DCT後のACデータの最
大値を検出し、その最大値を所定の閾値と比較しクラス
ナンバを決定し、このクラスナンバとQナンバの所定の
組合せより、量子化後のデータ量が所定値以内になるよ
うな組合せを選択することにより決定される。2. Description of the Related Art As a method of compressing and encoding an image, for example, a transform such as DCT is performed, the obtained transform coefficient is adaptively quantized so that the total data amount is equal to or less than a predetermined value, and a variable length code is further encoded. Is generally used as an efficient encoding method. When encoding is performed by such a method, the quantization step is determined, for example, by detecting the maximum value of AC data after DCT, comparing the maximum value with a predetermined threshold, and determining the class number. The combination is determined by selecting a combination from the predetermined combination of the class number and the Q number such that the data amount after quantization is within a predetermined value.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、従来の
このようなDCTブロックのAC成分の最大値にのみ基
づいてクラスナンバを決定し、これにより量子化ステッ
プを決定する方法では、量子化ひずみが発生しやすく、
再生時に画質にひずみが発生しやすいという問題があっ
た。However, in the conventional method of determining the class number based only on the maximum value of the AC component of the DCT block and determining the quantization step, quantization distortion is generated. Easy to do,
There is a problem that image quality is likely to be distorted during reproduction.
【0004】したがって、本発明の目的は、量子化ひず
みをより少なくし、より高品質に画像を圧縮符号化する
ことができる画像符号化装置を提供することにある。ま
た、本発明の他の目的は、量子化ひずみをより少なく
し、より高品質に画像を圧縮符号化することができる画
像符号化方法を提供することにある。Accordingly, it is an object of the present invention to provide an image encoding apparatus capable of reducing the quantization distortion and compressing and encoding an image with higher quality. It is another object of the present invention to provide an image encoding method capable of reducing the quantization distortion and compressing and encoding an image with higher quality.
【0005】[0005]
【課題を解決するための手段】前記課題を解決するため
に、1DCT単位のAC成分量を解析し、これに基づい
てクラスナンバを補正することで、AC成分の最大値を
参照するだけの方法に比べて量子化ひずみを抑制するこ
とができるようにした。Means for Solving the Problems To solve the above-mentioned problems, a method in which the amount of AC component in one DCT unit is analyzed, and the class number is corrected based on the result, whereby only the maximum value of the AC component is referred to. Quantization distortion can be suppressed as compared with.
【0006】したがって、本発明の画像符号化装置は、
入力されたデジタル映像信号に対して、所定のDCTブ
ロックごとに離散コサイン変換(DCT)を行うDCT
手段と、前記DCTにより得られた係数のAC成分の最
大値に基づいて量子化クラスを選択するクラス選択手段
と、前記DCTにより得られた係数のAC成分の総和に
基づいて前記選択されたクラスを補正するクラス補正手
段と、前記補正されたクラスに基づいて、量子化ステッ
プを決定する量子化ステップ決定手段と、前記決定され
た量子化ステップに基づいて、前記DCTにより得られ
た係数を量子化する量子化手段とを有する。Therefore, the image encoding apparatus of the present invention
DCT that performs discrete cosine transform (DCT) on an input digital video signal for each predetermined DCT block
Means, class selection means for selecting a quantization class based on the maximum value of the AC component of the coefficient obtained by the DCT, and the selected class based on the sum of the AC components of the coefficient obtained by the DCT Class correction means for correcting the coefficient, a quantization step determining means for determining a quantization step based on the corrected class, and a coefficient obtained by the DCT based on the determined quantization step. And a quantizing means for transforming the data.
【0007】また、本発明の他の画像符号化装置は、入
力されたデジタル映像信号に対して、所定のDCTブロ
ックごとに離散コサイン変換(DCT)を行うDCT手
段と、前記DCTにより得られた係数のAC成分の最大
値に基づいて第1の量子化クラスを選択する第1のクラ
ス選択手段と、前記DCTにより得られた係数のAC成
分の総和に基づいて第2の量子化クラスを選択する第2
のクラス選択手段と、前記選択された第1の量子化クラ
スおよび前記選択された第2の量子化クラスのうち、量
子化ステップが小さくなる方のクラスを前記DCTによ
り得られた係数の量子化に供するクラスとして決定する
クラス決定手段と、前記決定されたクラスに基づいて、
量子化ステップを決定する量子化ステップ決定手段と、
前記決定された量子化ステップに基づいて、前記DCT
により得られた係数を量子化する量子化手段とを有す
る。Further, another image coding apparatus of the present invention is a DCT means for performing a discrete cosine transform (DCT) for each predetermined DCT block on an input digital video signal, and obtained by the DCT. First class selecting means for selecting a first quantization class based on the maximum value of the AC component of the coefficient, and selecting a second quantization class based on the sum of the AC components of the coefficient obtained by the DCT Second
Classifying means, and quantizing the coefficient obtained by the DCT by selecting the one of the selected first quantization class and the selected second quantization class that has a smaller quantization step. Class determining means for determining as a class to be provided, based on the determined class,
Quantization step determining means for determining a quantization step;
Based on the determined quantization step, the DCT
And a quantization means for quantizing the coefficient obtained by the above.
【0008】また、本発明の画像符号化方法は、入力さ
れたデジタル映像信号に対して、所定のDCTブロック
ごとに離散コサイン変換(DCT)を行い、前記DCT
により得られた係数のAC成分の最大値に基づいて量子
化クラスを選択し、前記DCTにより得られた係数のA
C成分の総和に基づいて前記選択されたクラスを補正
し、前記補正されたクラスに基づいて、量子化ステップ
を決定し、前記決定された量子化ステップに基づいて、
前記DCTにより得られた係数を量子化する。Further, in the image coding method according to the present invention, the input digital video signal is subjected to discrete cosine transform (DCT) for each predetermined DCT block, and the DCT is performed.
A quantization class is selected based on the maximum value of the AC component of the coefficient obtained by
Correcting the selected class based on the sum of the C components, determining a quantization step based on the corrected class, based on the determined quantization step,
The coefficients obtained by the DCT are quantized.
【0009】さらに、本発明の他の画像符号化方法は、
入力されたデジタル映像信号に対して、所定のDCTブ
ロックごとに離散コサイン変換(DCT)を行い、前記
DCTにより得られた係数のAC成分の最大値に基づい
て第1の量子化クラスを選択し、前記DCTにより得ら
れた係数のAC成分の総和に基づいて第2の量子化クラ
スを選択し、前記選択された第1の量子化クラスおよび
前記選択された第2の量子化クラスのうち、量子化ステ
ップが小さくなる方のクラスを前記DCTにより得られ
た係数の量子化に供するクラスとして決定し、前記決定
されたクラスに基づいて、量子化ステップを決定し、前
記決定された量子化ステップに基づいて、前記DCTに
より得られた係数を量子化する。Further, another image encoding method according to the present invention comprises:
The input digital video signal is subjected to a discrete cosine transform (DCT) for each predetermined DCT block, and a first quantization class is selected based on the maximum value of the AC component of the coefficient obtained by the DCT. , Selecting a second quantization class based on the sum of the AC components of the coefficients obtained by the DCT, among the selected first quantization class and the selected second quantization class, A class having a smaller quantization step is determined as a class to be used for quantization of the coefficient obtained by the DCT, and a quantization step is determined based on the determined class. , The coefficient obtained by the DCT is quantized.
【0010】[0010]
【発明の実施の形態】第1の実施の形態 本発明の第1の実施の形態について図1〜図4を参照し
て説明する。第1の実施の形態においては、画像データ
を所望の記録媒体に記録するために、画像を離散コサイ
ン変換(DCT)を用いて圧縮符号化する画像符号化装
置を例示して本発明を説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS First Embodiment A first embodiment of the present invention will be described with reference to FIGS. In the first embodiment, the present invention will be described by exemplifying an image encoding apparatus that compresses and encodes an image using a discrete cosine transform (DCT) in order to record image data on a desired recording medium. .
【0011】まず、その画像符号化装置の全体の構成に
ついて概略を説明する。図1は、その画像符号化装置の
構成を示すブロック図である。画像符号化装置10は、
アナログ/デジタル変換部11、ブロッキング部12、
シャッフリング部13、DCT部14、量子化部15、
可変長符号化部16、フレーミング部17、デシャッフ
リング部18および誤り訂正符号化部19を有する。First, the overall configuration of the image encoding apparatus will be briefly described. FIG. 1 is a block diagram showing the configuration of the image encoding device. The image encoding device 10 includes:
Analog / digital conversion unit 11, blocking unit 12,
Shuffling unit 13, DCT unit 14, quantization unit 15,
It has a variable length coding unit 16, a framing unit 17, a deshuffling unit 18, and an error correction coding unit 19.
【0012】このような構成の画像符号化装置10にお
いては、入力されたビデオデータは、アナログ/デジタ
ル変換部11でデジタル信号に変換され、ブロッキング
部12でビデオデータの各画素データをマクロブロック
に分割し、シャッフリング部13で、符号量を平均化す
るためにマクロブロック単位でシャッフリングを行い、
DCT部14で8×8DCTブロックごとに離散コサイ
ン変換(DCT)を行う。変換後のDCT係数は、ジグ
ザグスキャンにより読み取られ、量子化部15において
所定の領域ごとのDCT符号量に応じてクラス分けを
し、量子化テーブルにより量子化が行われる。そして、
可変長符号化部16で可変調符号化されて有効ビット数
を減少させ、、フレーミング部17およびデシャッフリ
ング部18を経て誤り訂正符号化部19に送られる。な
お、誤り訂正符号が付与された信号は、さらに変調され
るなどして、たとえば記録媒体に記録される。In the image coding apparatus 10 having such a configuration, the input video data is converted into a digital signal by an analog / digital conversion unit 11, and each pixel data of the video data is converted into a macroblock by a blocking unit 12. It divides and performs shuffling in a macroblock unit in order to average the code amount in the shuffling unit 13,
The DCT unit performs discrete cosine transform (DCT) for each 8 × 8 DCT block. The converted DCT coefficients are read by zigzag scan, and are classified in the quantization unit 15 according to the DCT code amount for each predetermined area, and quantization is performed using a quantization table. And
The variable-length coding section 16 modulates and codes the data, thereby reducing the number of effective bits, and sends the result to an error correction coding section 19 via a framing section 17 and a deshuffling section 18. The signal to which the error correction code is added is recorded on a recording medium, for example, after being further modulated.
【0013】次に、この画像符号化装置10の本発明に
係わる量子化部15について、図2を参照して説明す
る。図2は、量子化部15の構成を示すブロック図であ
る。量子化部15は、クラスナンバ決定部21、量子化
ナンバ見積り部22および量子化部23を有する。Next, the quantization section 15 of the image encoding apparatus 10 according to the present invention will be described with reference to FIG. FIG. 2 is a block diagram illustrating a configuration of the quantization unit 15. The quantization unit 15 includes a class number determination unit 21, a quantization number estimation unit 22, and a quantization unit 23.
【0014】クラスナンバ決定部21は、DCT部14
でDCT変換された8×8のDCTブロックごとの画像
データに対して、量子化ステップを決定するためのクラ
スナンバを決定し、量子化ナンバ見積り部22に出力す
る。なお、このクラスナンバ決定部21の構成について
は後に詳細に説明する。The class number determining unit 21 is a DCT unit 14
A class number for determining a quantization step is determined for the image data of each 8 × 8 DCT block that has been DCT-transformed in step (1), and is output to the quantization number estimation unit 22. The configuration of the class number determination unit 21 will be described later in detail.
【0015】量子化ナンバ見積り部22は、クラスナン
バ決定部21で決定されたクラスナンバに基づいて、た
とえば1ブロック当り3040ビット長のデータに圧縮
可能なように、量子化ステップを選択する。The quantization number estimating unit 22 selects a quantization step based on the class number determined by the class number determining unit 21 so that the data can be compressed to, for example, data having a length of 3040 bits per block.
【0016】量子化部23は、量子化ナンバ見積り部2
2で決定された量子化ステップに基づいて、DCT部1
4でDCT変換された8×8のDCTブロックごとの画
像データを順次量子化し、量子化した画像データを順次
可変長符号化部16に出力する。The quantization unit 23 includes a quantization number estimation unit 2
Based on the quantization step determined in step 2, the DCT unit 1
The image data for each 8 × 8 DCT block that has been DCT-transformed in step 4 is sequentially quantized, and the quantized image data is sequentially output to the variable-length encoding unit 16.
【0017】次に、クラスナンバ決定部21の構成につ
いて、図3を参照して説明する。図3は、クラスナンバ
決定部21の構成を示すブロック図である。クラスナン
バ決定部21は、AC成分MAX値検出部31、クラス
ナンバ選択部32、クラスナンバ補正部33およびクラ
ンスナンバ判定部36を有する。また、クラスナンバ補
正部33は、さらに、AC成分演算部34およびAC成
分データ解析部35を有する。Next, the configuration of the class number determining unit 21 will be described with reference to FIG. FIG. 3 is a block diagram showing the configuration of the class number determination unit 21. The class number determining unit 21 includes an AC component MAX value detecting unit 31, a class number selecting unit 32, a class number correcting unit 33, and a clath number determining unit 36. The class number correction unit 33 further includes an AC component calculation unit 34 and an AC component data analysis unit 35.
【0018】AC成分MAX値検出部31は、DCT部
14より入力されるDCTされた画像データの、8×8
の各DCTブロックごとに、そのDCTブロックのAC
成分の最大値を検出し、クラスナンバ選択部32に出力
する。なお、クラスナンバ決定部21に対しては、DC
T部14でDCT変換された8×8のDCTブロックご
との画像データは、図4に示すように、周波数成分の低
域成分から高域成分に順次ジグザグスキャンされて入力
されるものとする。The AC component MAX value detecting section 31 converts the DCT image data input from the DCT section 14 into 8 × 8
For each DCT block, the AC of that DCT block
The maximum value of the component is detected and output to the class number selection unit 32. Note that the class number determination unit 21 has a DC
It is assumed that the image data of each 8 × 8 DCT block that has been DCT-transformed by the T unit 14 is sequentially zigzag-scanned from a low-frequency component to a high-frequency component and input as shown in FIG.
【0019】クラスナンバ選択部32は、AC成分MA
X値検出部31より入力される各DCTブロックのAC
成分の最大値に基づいて、クラスナンバを選択し、クラ
ンスナンバ判定部36に出力する。クラスナンバ選択部
32においては、図示のごとく、AC成分の最大値が0
以上11以下の場合にはクラスナンバとして0を、AC
成分の最大値が12以上23以下の場合にはクラスナン
バとして1を、AC成分の最大値が24以上35以下の
場合にはクラスナンバとして2を、AC成分の最大値が
36以上の場合にはクラスナンバとして3を選択する。The class number selecting section 32 outputs the AC component MA
AC of each DCT block input from X value detecting section 31
The class number is selected based on the maximum value of the component, and is output to the clath number determination unit 36. In the class number selection unit 32, as shown in FIG.
If the number is 11 or less, 0 is set as the class number and AC
If the maximum value of the component is 12 or more and 23 or less, 1 is set as the class number. If the maximum value of the AC component is 24 or more and 35 or less, 2 is set as the class number. If the maximum value of the AC component is 36 or more, Selects 3 as the class number.
【0020】クラスナンバ補正部33のAC成分演算部
34は、DCT部14より入力されるDCTされた画像
データの、8×8の各DCTブロックごとに、そのDC
TブロックのAC成分の総和を算出し、AC成分データ
解析部35に出力する。The AC component calculation unit 34 of the class number correction unit 33 converts the DCT image data input from the DCT unit 14 into DCT blocks for each 8 × 8 DCT block.
The sum of the AC components of the T block is calculated and output to the AC component data analysis unit 35.
【0021】AC成分データ解析部35は、AC成分演
算部34より入力される各DCTブロックのAC成分の
総和を、予め定めた所定の閾値と比較し、入力されたA
C成分の総和の方が大きい場合には、その旨を表し、ク
ラスナンバの補正を指示する信号をクランスナンバ判定
部36に出力する。入力されたAC成分の総和がその閾
値以下だった場合には、クラスナンバの補正の指示は行
わない。The AC component data analyzer 35 compares the sum of the AC components of each DCT block input from the AC component calculator 34 with a predetermined threshold value, and
If the sum of the C components is larger, this is indicated, and a signal instructing the correction of the class number is output to the clath number judging unit 36. When the total sum of the input AC components is equal to or less than the threshold value, no instruction to correct the class number is issued.
【0022】クランスナンバ判定部36は、クラスナン
バ選択部32より入力されるクラスナンバに対して、ク
ラスナンバ補正部33のAC成分データ解析部35より
そのクラスナンバの補正を指示する信号が入力されてい
る場合には、たとえばそのクラスナンバを1つ小さくす
るなどして補正を行い、その結果得られたクラスナンバ
を量子化ナンバ見積り部22に出力する。クランスナン
バ判定部36は、AC成分データ解析部35よりクラス
ナンバの補正を指示する信号が入力されていない場合に
は、クラスナンバ選択部32より入力されたクラスナン
バをそのまま量子化ナンバ見積り部22に出力する。The class number determination unit 36 receives a signal from the AC component data analysis unit 35 of the class number correction unit 33 to instruct the class number input from the class number selection unit 32 to correct the class number. If so, the correction is performed by, for example, decreasing the class number by one, and the resulting class number is output to the quantization number estimation unit 22. When the signal instructing the correction of the class number is not input from the AC component data analysis unit 35, the clan number determination unit 36 sends the class number input from the class number selection unit 32 to the quantization number estimation unit 22 as it is. Output.
【0023】最後に、量子化部15の動作についてまと
めて説明する。DCT部14でDCT変換された画像デ
ータは、低域成分から高域成分に順次ジグザグスキャン
されてクラスナンバ決定部21に入力され、AC成分M
AX値検出部31で各DCTブロックごとにAC成分の
最大値が検出され、クラスナンバ選択部32でそのAC
成分の最大値が所定の閾値と比較されてクラスナンバが
選択される。一方で、クラスナンバ補正部33のAC成
分演算部34で、各DCTブロックごとに、そのDCT
ブロックのAC成分の総和を算出し、AC成分データ解
析部でその総和を予め定めた所定の閾値と比較し、入力
されたAC成分の総和の方が大きい場合には、クラスナ
ンバの補正を指示する信号をクランスナンバ判定部36
に出力する。Finally, the operation of the quantization unit 15 will be described. The image data DCT-transformed by the DCT unit 14 is sequentially zigzag scanned from a low-frequency component to a high-frequency component and input to the class number determination unit 21, where the AC component M
The AX value detector 31 detects the maximum value of the AC component for each DCT block, and the class number selector 32
The maximum value of the component is compared with a predetermined threshold to select a class number. On the other hand, in the AC component calculation unit 34 of the class number correction unit 33, the DCT
The sum of the AC components of the block is calculated, and the sum of the AC components is compared with a predetermined threshold by the AC component data analysis unit. If the sum of the input AC components is larger, an instruction to correct the class number is issued. The signal to be changed is determined by the clath number judging unit 36.
Output to
【0024】クランスナンバ判定部36は、この補正を
指示する信号が入力された場合には、クラスナンバ選択
部32で選択されたクラスナンバを1つ小さくするなど
して補正を行い、得られたクラスナンバを量子化ナンバ
見積り部22に出力する。そして、量子化ナンバ見積り
部23において、1DCTブロック当りの符号量が所定
量以下となるように、検出されたクラスナンバに基づい
て量子化ステップを決定し、この量子化ステップを用い
て量子化部24で量子化を行う。When a signal instructing this correction is input, the class number determining unit 36 corrects the class number selected by the class number selecting unit 32 by, for example, decreasing the class number by one. The number is output to the quantization number estimating unit 22. The quantization number estimating unit 23 determines a quantization step based on the detected class number so that the code amount per DCT block is equal to or less than a predetermined amount, and uses the quantization step to perform the quantization step. At 24, quantization is performed.
【0025】このように、本実施の形態の画像符号化装
置10においては、量子化部15のクラスナンバ決定部
21において、AC成分演算部34で各DCTブロック
ごとの画像データのAC成分の総和を求め、AC成分デ
ータ解析部35でそれを解析してクラスナンバを補正す
るようにしている。したがって、単純にAC成分の最大
値を用いた場合と比べて、量子化ひずみを低減でき、高
品質に画像を符号化することができる。As described above, in the image coding apparatus 10 according to the present embodiment, in the class number determination unit 21 of the quantization unit 15, the AC component calculation unit 34 calculates the total sum of the AC components of the image data for each DCT block. And the AC component data analyzer 35 analyzes it to correct the class number. Therefore, compared with the case where the maximum value of the AC component is simply used, the quantization distortion can be reduced, and the image can be encoded with high quality.
【0026】第2の実施の形態 本発明の第2の実施の形態について説明する。本発明の
第2の実施の形態として、第1の実施の形態と同じ構成
であるが、量子化部15のクラスナンバ決定部21にお
いて行われるクラスナンバの補正の方法が、前述した第
1の実施の形態とは異なる例を示す。画像符号化装置1
0および量子化部15の構成は前述した第1の実施の形
態と全く同じであるので、その説明は省略し、量子化部
15のクラスナンバ決定部21についてのみ説明する。 Second Embodiment A second embodiment of the present invention will be described. Although the second embodiment of the present invention has the same configuration as the first embodiment, the method of correcting the class number performed in the class number determination unit 21 of the quantization unit 15 is the same as the first embodiment described above. An example different from the embodiment will be described. Image encoding device 1
Since the configurations of 0 and the quantization unit 15 are exactly the same as those of the first embodiment described above, a description thereof will be omitted, and only the class number determination unit 21 of the quantization unit 15 will be described.
【0027】第2の実施の形態の画像符号化装置10の
AC成分MAX値検出部31は、DCT部14より入力
されるDCTされた8×8の各DCTブロックごとの画
像データに対して、図5に示すような4つのエリアを規
定し、その各エリアごとにAC成分の最大値を検出し、
クラスナンバ選択部32に出力する。The AC component MAX value detection unit 31 of the image encoding apparatus 10 according to the second embodiment converts the DCT-inputted image data of each 8 × 8 DCT block input from the DCT unit 14 into Four areas as shown in FIG. 5 are defined, and the maximum value of the AC component is detected for each area,
Output to the class number selection unit 32.
【0028】クラスナンバ選択部32は、AC成分MA
X値検出部31より入力される各DCTブロックの各エ
リアのAC成分の最大値に基づいて、第1の実施の形態
と同様の方法により予め定めた所定の閾値を参照して、
その各エリアごとにクラスナンバを選択し、クランスナ
ンバ判定部36に出力する。The class number selecting section 32 outputs the AC component MA
Based on the maximum value of the AC component of each area of each DCT block input from the X value detection unit 31, referring to a predetermined threshold value determined in the same manner as in the first embodiment,
The class number is selected for each area, and the selected class number is output to the clath number determination unit 36.
【0029】一方で、クラスナンバ補正部33のAC成
分演算部34は、DCT部14より入力されるDCTさ
れた画像データの8×8の各DCTブロックの、図5に
示すような各エリアごとに、AC成分の総和を算出し、
AC成分データ解析部35に出力する。On the other hand, the AC component calculation unit 34 of the class number correction unit 33 calculates the area of each of the 8 × 8 DCT blocks of the DCT image data input from the DCT unit 14 as shown in FIG. Then, the sum of the AC components is calculated,
Output to the AC component data analyzer 35.
【0030】AC成分データ解析部35は、AC成分演
算部34より入力される各DCTブロックの各エリアご
とのAC成分の総和に基づいて、クラスナンバ選択部3
2と同様の方法により、予め定めた所定の閾値を参照し
て、その各エリアごとの仮のクラスナンバを決定し、ク
ランスナンバ判定部36に出力する。The AC component data analysis unit 35, based on the sum of the AC components for each area of each DCT block input from the AC component calculation unit 34,
With reference to a predetermined threshold value determined in the same manner as in 2, the provisional class number for each area is determined and output to the clath number determination unit 36.
【0031】クランスナンバ判定部36は、各DCTブ
ロックの各エリアごとに、クラスナンバ選択部32より
入力されるクラスナンバと、AC成分データ解析部35
より入力される仮のクラスナンバとを比較し、量子化ス
テップが小さくなる方のクラスナンバを正規のクラスナ
ンバとして決定し、量子化ナンバ見積り部22に出力す
る。The class number determining unit 36 includes a class number input from the class number selecting unit 32 and an AC component data analyzing unit 35 for each area of each DCT block.
By comparing the input class number with the provisional class number, a class number having a smaller quantization step is determined as a normal class number, and is output to the quantization number estimating unit 22.
【0032】その結果、量子化ナンバ見積り部22は、
クラスナンバ決定部21で決定されたクラスナンバを参
照して、たとえば図6に示すようなテーブルを参照し
て、量子かステップを決定し、量子化部23に出力す
る。As a result, the quantization number estimating unit 22
With reference to the class number determined by the class number determination unit 21, for example, with reference to a table as shown in FIG. 6, the quantum or step is determined and output to the quantization unit 23.
【0033】このように、AC成分の最大値と、AC成
分の総和に基づいて、各々クラスナンバを求め、そのう
ち好ましい方を選ぶことにより、実質的にAC成分の最
大値のみにより決定されたクラスナンバを補正すること
ができ、本発明はこのような構成にしてもよい。そし
て、このような第2の実施の形態の画像符号化装置にお
いても単純にAC成分の最大値を用いた場合と比べて、
量子化ひずみを低減でき、高品質に画像を符号化するこ
とができる。As described above, the class numbers are respectively obtained based on the maximum value of the AC component and the sum total of the AC components, and by selecting the preferred one, the class number substantially determined only by the maximum value of the AC component is determined. The number can be corrected, and the present invention may have such a configuration. Further, even in the image encoding apparatus according to the second embodiment, compared with the case where the maximum value of the AC component is simply used,
Quantization distortion can be reduced, and an image can be encoded with high quality.
【0034】[0034]
【発明の効果】本発明の画像符号化装置およびその方法
によれば、量子化ひずみをより少なくし、高品質な状態
で画像を圧縮符号化することができる。According to the image encoding apparatus and method of the present invention, quantization distortion can be reduced and an image can be compression-encoded in a high quality state.
【図1】図1は、本発明の第1の実施の形態の画像符号
化装置の構成を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration of an image encoding device according to a first embodiment of the present invention.
【図2】図2は、図1に示した画像符号化装置の量子化
部の構成を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration of a quantization unit of the image encoding device illustrated in FIG. 1;
【図3】図3は、図2に示した量子化部のクラスナンバ
決定部の構成を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration of a class number determining unit of the quantization unit illustrated in FIG. 2;
【図4】図4は、ジグザグスキャンを説明するための図
である。FIG. 4 is a diagram for explaining a zigzag scan.
【図5】図5は、本発明の第2の実施の形態で用いる、
DCTブロック内のエリア分割を説明するための図であ
る。FIG. 5 is used in a second embodiment of the present invention;
FIG. 3 is a diagram for describing area division in a DCT block.
【図6】図6は、図2に示した量子化部の量子化ナンバ
見積り部で行われる量子化ステップの決定方法の一例を
示す図である。FIG. 6 is a diagram illustrating an example of a method of determining a quantization step performed by a quantization number estimating unit of the quantization unit illustrated in FIG. 2;
10…画像符号化装置、11…アナログ/デジタル変換
部、12…ブロッキング部、13…シャッフリング部、
14…DCT部、15…量子化部、16…可変長符号化
部、17…フレーミング部、18…デシャッフリング
部、19…誤り訂正符号化部、21…クラスナンバ決定
部、22…量子化ナンバ見積り部、23…量子化部、3
1…AC成分MAX値検出部、32…クラスナンバ選択
部、33…クラスナンバ補正部、34…AC成分演算
部、35…AC成分データ解析部、36…クランスナン
バ判定部10 image encoding device, 11 analog / digital conversion unit, 12 blocking unit, 13 shuffling unit,
14 DCT unit, 15 quantization unit, 16 variable length coding unit, 17 framing unit, 18 deshuffling unit, 19 error correction coding unit, 21 class number determination unit, 22 quantization number Estimating unit, 23 ... Quantizing unit, 3
1 AC component MAX value detector, 32 class number selector, 33 class number corrector, 34 AC component calculator, 35 AC component data analyzer, 36 clans number determiner
Claims (10)
定のDCTブロックごとに離散コサイン変換(DCT)
を行うDCT手段と、 前記DCTにより得られた係数のAC成分の最大値に基
づいて量子化クラスを選択するクラス選択手段と、 前記DCTにより得られた係数のAC成分の総和に基づ
いて前記選択されたクラスを補正するクラス補正手段
と、 前記補正されたクラスに基づいて、量子化ステップを決
定する量子化ステップ決定手段と、 前記決定された量子化ステップに基づいて、前記DCT
により得られた係数を量子化する量子化手段とを有する
画像符号化装置。An input digital video signal is subjected to discrete cosine transform (DCT) for each predetermined DCT block.
DCT means for performing quantization; class selection means for selecting a quantization class based on the maximum value of AC components of the coefficients obtained by the DCT; and the selection based on the sum of AC components of the coefficients obtained by the DCT. Class correction means for correcting the corrected class, quantization step determination means for determining a quantization step based on the corrected class, and DCT based on the determined quantization step
And a quantizing means for quantizing the coefficient obtained by the above.
クを所定の複数の領域に分割した各領域ごとに前記量子
化クラスを選択し、 前記クラス補正手段は、前記各領域ごとに前記選択され
たクラスを補正し、 前記量子化ステップ決定手段は、前記各領域ごとに前記
量子化ステップを決定する請求項1に記載の画像符号化
装置。2. The method according to claim 1, wherein the class selection unit selects the quantization class for each of the plurality of regions obtained by dividing the DCT block into a plurality of predetermined regions, and the class correction unit selects the quantization class for each of the regions. The image encoding device according to claim 1, wherein a class is corrected, and the quantization step determination unit determines the quantization step for each of the regions.
る可変長符号化手段をさらに有する請求項2に記載の画
像符号化装置。3. The image coding apparatus according to claim 2, further comprising a variable length coding unit for performing variable length coding on the quantized coefficient.
定のDCTブロックごとに離散コサイン変換(DCT)
を行い、 前記DCTにより得られた係数のAC成分の最大値に基
づいて量子化クラスを選択し、 前記DCTにより得られた係数のAC成分の総和に基づ
いて前記選択されたクラスを補正し、 前記補正されたクラスに基づいて、量子化ステップを決
定し、 前記決定された量子化ステップに基づいて、前記DCT
により得られた係数を量子化する画像符号化方法。4. A discrete cosine transform (DCT) for an input digital video signal for each predetermined DCT block
And selecting a quantization class based on the maximum value of the AC component of the coefficient obtained by the DCT, and correcting the selected class based on the sum of the AC components of the coefficient obtained by the DCT, A quantization step is determined based on the corrected class, and the DCT is determined based on the determined quantization step.
Image coding method for quantizing the coefficients obtained by the above.
に行い、 前記クラスの選択および前記量子化ステップの決定は、
DCTブロックを分割した所定の複数の領域ごとに行う
請求項4に記載の画像符号化方法。5. The correction of the class is performed for each DCT block, and the selection of the class and the determination of the quantization step include:
5. The image encoding method according to claim 4, wherein the method is performed for each of a plurality of predetermined areas obtained by dividing the DCT block.
定のDCTブロックごとに離散コサイン変換(DCT)
を行うDCT手段と、 前記DCTにより得られた係数のAC成分の最大値に基
づいて第1の量子化クラスを選択する第1のクラス選択
手段と、 前記DCTにより得られた係数のAC成分の総和に基づ
いて第2の量子化クラスを選択する第2のクラス選択手
段と、 前記選択された第1の量子化クラスおよび前記選択され
た第2の量子化クラスのうち、量子化ステップが小さく
なる方のクラスを前記DCTにより得られた係数の量子
化に供するクラスとして決定するクラス決定手段と、 前記決定されたクラスに基づいて、量子化ステップを決
定する量子化ステップ決定手段と、 前記決定された量子化ステップに基づいて、前記DCT
により得られた係数を量子化する量子化手段とを有する
画像符号化装置。6. A discrete cosine transform (DCT) for each predetermined DCT block with respect to an input digital video signal.
DCT means for performing the following; first class selecting means for selecting a first quantization class based on the maximum value of the AC component of the coefficient obtained by the DCT; and DCT means of the AC component of the coefficient obtained by the DCT. A second class selecting means for selecting a second quantization class based on the summation, wherein the quantization step is smaller among the selected first quantization class and the selected second quantization class. Class determining means for determining a class to be used as a class to be subjected to quantization of the coefficient obtained by the DCT; quantization step determining means for determining a quantization step based on the determined class; The DCT based on the quantized step
And a quantizing means for quantizing the coefficient obtained by the above.
のクラス選択手段は、前記DCTブロックを所定の複数
の領域に分割した各領域ごとに前記第1および第2の量
子化クラスを選択し、 前記クラス決定手段は、前記各領域ごとに前記クラスを
決定し、 前記量子化ステップ決定手段は、前記各領域ごとに前記
量子化ステップを決定する請求項6に記載の画像符号化
装置。7. The first class selecting means and the second class selecting means.
Class selecting means selects the first and second quantization classes for each area obtained by dividing the DCT block into a plurality of predetermined areas, and the class determining means selects the class for each of the areas. The image encoding apparatus according to claim 6, wherein the quantization step determination unit determines the quantization step for each of the regions.
る可変長符号化手段をさらに有する請求項7に記載の画
像符号化装置。8. The image coding apparatus according to claim 7, further comprising a variable length coding unit for performing variable length coding on the quantized coefficient.
定のDCTブロックごとに離散コサイン変換(DCT)
を行い、 前記DCTにより得られた係数のAC成分の最大値に基
づいて第1の量子化クラスを選択し、 前記DCTにより得られた係数のAC成分の総和に基づ
いて第2の量子化クラスを選択し、 前記選択された第1の量子化クラスおよび前記選択され
た第2の量子化クラスのうち、量子化ステップが小さく
なる方のクラスを前記DCTにより得られた係数の量子
化に供するクラスとして決定し、 前記決定されたクラスに基づいて、量子化ステップを決
定し、 前記決定された量子化ステップに基づいて、前記DCT
により得られた係数を量子化する画像符号化方法。9. A discrete cosine transform (DCT) for an input digital video signal for each predetermined DCT block
And selecting a first quantization class based on the maximum value of the AC component of the coefficient obtained by the DCT, and selecting a second quantization class based on the sum of the AC components of the coefficient obtained by the DCT. And among the selected first quantization class and the selected second quantization class, a class having a smaller quantization step is provided for quantization of the coefficient obtained by the DCT. A quantization step based on the determined class; and a DCT based on the determined quantization step.
Image coding method for quantizing the coefficients obtained by the above.
ラスの選択、前記クラスの決定および前記量子化ステッ
プの決定は、前記DCTブロックを分割した所定の複数
の領域ごとに行う請求項9に記載の画像符号化方法。10. The method according to claim 1, wherein the selection of the first class, the selection of the second class, the determination of the class, and the determination of the quantization step are performed for each of a plurality of predetermined regions obtained by dividing the DCT block. 10. The image encoding method according to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9374798A JPH11298895A (en) | 1998-04-06 | 1998-04-06 | Image coder and its method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9374798A JPH11298895A (en) | 1998-04-06 | 1998-04-06 | Image coder and its method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH11298895A true JPH11298895A (en) | 1999-10-29 |
Family
ID=14091027
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP9374798A Pending JPH11298895A (en) | 1998-04-06 | 1998-04-06 | Image coder and its method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH11298895A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011024085A (en) * | 2009-07-17 | 2011-02-03 | Fujitsu Ltd | Coding apparatus, coding method, and coding program |
US7908529B2 (en) | 1999-06-28 | 2011-03-15 | Kabushiki Kaisha Toshiba | Flash memory |
-
1998
- 1998-04-06 JP JP9374798A patent/JPH11298895A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7908529B2 (en) | 1999-06-28 | 2011-03-15 | Kabushiki Kaisha Toshiba | Flash memory |
JP2011024085A (en) * | 2009-07-17 | 2011-02-03 | Fujitsu Ltd | Coding apparatus, coding method, and coding program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0558016B1 (en) | Method and apparatus for encoding an image signal using a multi-stage quantizing number determiner | |
JP4249790B2 (en) | Computer-implemented method and recording medium for processing video images | |
JPH0583696A (en) | Picture encoding device | |
JP3097665B2 (en) | Time-lapse recorder with anomaly detection function | |
JPH0622292A (en) | Transmitter for digital picture signal | |
JP2000101846A (en) | Image information coder | |
JPH06303595A (en) | Method and device for generating variable length code table | |
JP3264043B2 (en) | Quantization control device and method | |
JP3581935B2 (en) | High efficiency coding device | |
US20040028128A1 (en) | Image processing apparatus and method, and image processing program | |
JPH11298895A (en) | Image coder and its method | |
US20030202712A1 (en) | Data compression | |
JP3132168B2 (en) | Video signal processing device | |
JP3211989B2 (en) | Orthogonal transform encoding device and decoding device | |
JP3726333B2 (en) | Quantization bit number conversion apparatus and method | |
JP3235761B2 (en) | High efficiency coding device | |
JP3232160B2 (en) | Encoding device and method | |
JPH05168001A (en) | Image coder | |
JP2872149B2 (en) | Image coding device | |
JP2669278B2 (en) | Video signal processing device | |
JP2897585B2 (en) | Image coding recording and playback device | |
JP3192436B2 (en) | Image decoding apparatus and method | |
JP2605351B2 (en) | High efficiency coding method and apparatus | |
JP2004159006A (en) | Image coder and image decoder, and image coding method and image decoding method | |
JP3200073B2 (en) | Image processing device |