Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3191950B2 - Image coding device - Google Patents
[go: Go Back, main page]

JP3191950B2 - Image coding device - Google Patents

Image coding device

Info

Publication number
JP3191950B2
JP3191950B2 JP10582791A JP10582791A JP3191950B2 JP 3191950 B2 JP3191950 B2 JP 3191950B2 JP 10582791 A JP10582791 A JP 10582791A JP 10582791 A JP10582791 A JP 10582791A JP 3191950 B2 JP3191950 B2 JP 3191950B2
Authority
JP
Japan
Prior art keywords
code amount
block
image
code
upper limit
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.)
Expired - Fee Related
Application number
JP10582791A
Other languages
Japanese (ja)
Other versions
JPH04334270A (en
Inventor
佐々木  寛
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.)
Olympus Corp
Original Assignee
Olympus Corp
Olympus Optical 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 Olympus Corp, Olympus Optical Co Ltd filed Critical Olympus Corp
Priority to JP10582791A priority Critical patent/JP3191950B2/en
Publication of JPH04334270A publication Critical patent/JPH04334270A/en
Application granted granted Critical
Publication of JP3191950B2 publication Critical patent/JP3191950B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Processing (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像の圧縮符号化を行
う画像符号化装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image encoding apparatus for compressing and encoding an image.

【0002】[0002]

【従来の技術】一般に画像の圧縮符号化を行なう際に、
一画面を予め定めた符号量以内で高効率化を図って符号
化したいという要求がある。
2. Description of the Related Art Generally, when performing compression encoding of an image,
There is a demand for encoding one screen with high efficiency within a predetermined code amount.

【0003】この要求に対して、特開平2−12469
0号公報、特開平2−262786号公報には、ブロッ
クおよび画像全体のアクティビティにより各ブロックの
割り当て符号量を設定し、各ブロックの符号化を行なう
時に、この割り当て符号量以内になるように、もし割り
当て符号量をオーバーしそうな時は、符号化を途中で打
ち切るという手法が提案されている。この時、各ブロッ
クの量子化を行なう時の量子化ステップ幅を決定する量
子化スケールが画像全体のアクティビティにより算出さ
れる。
In response to this request, Japanese Patent Application Laid-Open No.
No. 0 and Japanese Unexamined Patent Application Publication No. Hei 2-262786 disclose that the code amount assigned to each block is set according to the activity of the block and the entire image, and when the coding of each block is performed, the code amount is set to be within the assigned code amount. If the allocated code amount is likely to be exceeded, a method has been proposed in which the coding is discontinued halfway. At this time, a quantization scale that determines a quantization step width when performing quantization of each block is calculated based on the activity of the entire image.

【0004】また、本出願人が出願した特願平1−28
3761号に記載されている方式では、ブロックごとに
直交変換された変換係数を、暫定的な量子化ステップ幅
で量子化し、この量子化値に対してハフマン符号を割り
当て、ブロック内の符号量および画像全体の符号量が求
められている。
Further, Japanese Patent Application No. 1-28 filed by the present applicant has been filed.
In the system described in No. 3761, the transform coefficient orthogonally transformed for each block is quantized by a provisional quantization step width, a Huffman code is assigned to the quantized value, and the code amount in the block and The code amount of the entire image is obtained.

【0005】これらの符号量から各ブロックの割り当て
符号量および量子化スケール(初期設定量子化ステップ
幅に乗ずる係数)を設定し、これらの符号量を使って再
度ブロックごとに直交変換を行ない、さらに変換係数を
初期設定量子化ステップ幅に量子化スケールを乗じた量
子化ステップ幅を用いて量子化し、低周波数成分側から
ジグザグスキャンさせ、1次元に配列された量子化値を
DC成分から順番に符号化していき、各ブロックに割り
当てられた符号量をオーバーしそうな時は符号化を途中
で打ち切る。つまり高周波成分側から切り捨てたことに
なる。また各ブロックで余った符号量は、次に符号化さ
れるブロックの割り当て符号量に加算される。このよう
な画像符号化装置により一画面に要求した符号量以内で
の符号化が可能になる。
[0005] From these code amounts, the code amount allocated to each block and the quantization scale (coefficient by which the initial quantization step width is multiplied) are set, and the orthogonal transform is performed again for each block using these code amounts. The transform coefficients are quantized using the quantization step width obtained by multiplying the quantization scale by the default quantization step width, zigzag scanning is performed from the low frequency component side, and the quantized values arranged one-dimensionally are sequentially arranged from the DC component. Encoding is performed, and when the code amount allocated to each block is likely to be exceeded, the encoding is discontinued halfway. That is, it is cut off from the high frequency component side. The remaining code amount in each block is added to the allocated code amount of the next block to be coded. With such an image encoding device, encoding can be performed within the code amount required for one screen.

【0006】[0006]

【発明が解決しようとする課題】しかし、前述した画像
符号化装置では、画像内に高周波成分を多く含んだ微細
な構造が数多く存在する場合に、画面全体のアクティビ
ティあるいは暫定符号量が大きくなり、量子化スケール
も大きな値になる。
However, in the above-described image encoding apparatus, when there are many fine structures including many high-frequency components in an image, the activity of the entire screen or the provisional code amount increases. The quantization scale also has a large value.

【0007】また前述したような画像では、ブロックの
割り当て符号量に対してアクティビティあるいは暫定符
号量が多いブロックに大部分の符号量が割り当てられ、
アクティビティあるいは暫定符号量が少ないブロックに
はわずかしか割り当てられない。
In the above-described image, most of the code amount is allocated to a block having a large activity or provisional code amount with respect to the allocated code amount of the block.
Only a small amount is allocated to a block having a small activity or provisional code amount.

【0008】このように量子化スケールが大きい場合
に、初期設定量子化ステップ幅が低周波数成分では量子
化ステップ幅が小さく、高周波数成分では量子化ステッ
プ幅が大きくなるように重み付けられたものであって
も、この初期設定量子化ステップ幅に乗ずる量子化スケ
ールが大きいために、低周波数成分の量子化ステップ幅
が限度を越えて大きくなってしまい、低周波数成分の量
子化歪が大きくなる。またブロック割り当て符号量が少
ないと、高周波数成分だけではなく、視覚上重要な低い
周波数成分まで符号化されず、打ち切られてしまう。
As described above, when the quantization scale is large, the initial setting quantization step width is weighted so that the quantization step width is small for low frequency components and large for high frequency components. Even so, since the quantization scale by which the default quantization step width is multiplied is large, the quantization step width of the low-frequency component exceeds the limit and becomes large, and the quantization distortion of the low-frequency component increases. Also, if the block allocation code amount is small, not only high frequency components but also visually important low frequency components are not coded and are truncated.

【0009】このように符号化されたデータを復号した
時には、いわゆる“ブロック歪”と称されるブロック境
界での大きく不連続な段差が発生してしまい、非常に目
ざわりな劣化となってしまう。そこで本発明は、ブロッ
ク歪の発生を押え、視覚的に目ざわりな劣化を減少させ
る符号量制御を行う画像符号化装置を提供することを目
的とする。
When the data thus encoded is decoded, a large discontinuous step at a block boundary, which is called "block distortion", is generated, resulting in extremely remarkable deterioration. Therefore, an object of the present invention is to provide an image coding apparatus that controls the amount of code to suppress occurrence of block distortion and reduce visually noticeable deterioration.

【0010】[0010]

【課題を解決するための手段】本発明は上記目的を達成
するために、入力画像を複数の画素からなるブロックに
分割し、前記入力画像の符号量を制御するために、前記
ブロック及び入力画像全体の統計量及び情報量により生
成された割り当て符号量および量子化スケールを使っ
て、各ブロックを直交変換し、出力された変換係数を量
子化及び、符号化する画像符号化装置において、入力画
像の設定符号量に応じて量子化スケールの上限値を設定
する上限値設定手段とで構成される画像符号化装置が提
供される。
In order to achieve the above object, the present invention divides an input image into blocks each including a plurality of pixels, and controls the code amount of the input image by using the block and the input image. In an image coding apparatus for orthogonally transforming each block using an assigned code amount and a quantization scale generated based on the overall statistic and information amount, and quantizing and encoding output transform coefficients, an input image And an upper limit value setting means for setting an upper limit value of the quantization scale in accordance with the set code amount of the image encoding apparatus.

【0011】[0011]

【作用】以上のような構成の画像符号化装置によれば、
量子化スケールに対し上限値を設け、画像全体の統計
(情報)量によって予測されるこの量子化スケールが上
記上限値以内となる様にブロック内統計(情報)量の上
限値が算出され、その量以内とすることでブロックに割
り当てられる符号量がブロック内統計(情報)量の少な
いブロックに対して、前記処理を施さない時よりも多く
なり、また量子化スケールも上限値を越えないため量子
化歪がある程度以上大きくならない。
According to the image coding apparatus having the above configuration,
An upper limit value is set for the quantization scale, and the upper limit value of the statistical (information) amount in the block is calculated so that the quantization scale predicted by the statistical (information) amount of the entire image falls within the above upper limit value. When the amount is within the above range, the amount of code allocated to the block becomes larger than that when the above processing is not performed for a block with a small amount of statistical (information) in the block, and the quantization scale does not exceed the upper limit. The chemical strain does not increase more than a certain degree.

【0012】さらに上限値でブロック内統計量が制限さ
れたブロックは、前記処理を施さない時に比べて割り当
て符号量が減り、高周波成分の符号化打ち切りが早い段
階で行なわれる。
Further, in a block in which the intra-block statistic is restricted by the upper limit, the allocated code amount is reduced as compared with the case where the above processing is not performed, and the coding of the high frequency component is discontinued earlier.

【0013】[0013]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。図1は、本発明の実施例の画像符号化装置
の概略的な構成を示すブロック図である。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram illustrating a schematic configuration of an image encoding device according to an embodiment of the present invention.

【0014】まず、入力画像がフレームメモリ1へ格納
され、読出された画像データは所定のブロック単位で離
散コサイン変換部(DCT)2により変換が実行され
る。なお直交変換は離散コサイン変換に限られるもので
はなく、他の手法による直交変換であってもよい。そし
て前記フレームメモリ1から読出された画像データは変
換され、量子化器3に入力される。
First, an input image is stored in a frame memory 1, and the read image data is transformed by a discrete cosine transform unit (DCT) 2 in a predetermined block unit. Note that the orthogonal transform is not limited to the discrete cosine transform, and may be an orthogonal transform using another method. Then, the image data read from the frame memory 1 is converted and input to the quantizer 3.

【0015】次に重み付けされた初期設定量子化ステッ
プ幅を記憶してある量子化テーブル4と、スケールファ
クタ計算部5からの初期設定量子化スケールとを乗算す
ることで暫定量子化ステップ幅を求め、各変換係数に対
して、この暫定量子化ステップ幅を使用して、量子化が
行なわれる。そして量子化された変換係数のDC成分に
対しては、DC DPCM6へ入力され、前ブロックの
量子化後のDC成分との差分が計算される。
Next, a tentative quantizer step width is obtained by multiplying the quantization table 4 storing the weighted initial quantization step width and the default quantization scale from the scale factor calculator 5. The quantization is performed on each transform coefficient using the provisional quantizer step width. The DC component of the quantized transform coefficient is input to the DC DPCM 6, and the difference between the DC component and the quantized DC component of the previous block is calculated.

【0016】この差分値がDCハフマン符号化部7へ入
り、この入力値に対するハフマン符号の符号語の語長の
みがDCハフマン符号テーブル8より読み出され、符号
量算出部9へ出力される。
The difference value enters the DC Huffman coding unit 7, and only the word length of the Huffman code word corresponding to the input value is read from the DC Huffman code table 8 and output to the code amount calculation unit 9.

【0017】一方、量子化後の変換係数のAC成分は、
図4に示すように、低周波数成分側から順次、ジグザグ
スキャンして、2次元ハフマン符号化部10へ入力され
る。この2次元ハフマン符号化部10では入力されるジ
グザグスキャン順のAC成分の“0”ラン長が求めら
れ、この直後の“0”でない係数値とをまとめて1つの
ハフマン符号とする。この符号語の語長が、さらに、ブ
ロックの終りに来た場合には、OB符号語の語長が前
記2次元ハフマン符号部10より読み出され、前記符号
量算出部9に出力される。
On the other hand, the AC component of the quantized transform coefficient is
As shown in FIG. 4, zigzag scanning is sequentially performed from the low frequency component side, and input to the two-dimensional Huffman encoding unit 10. The two-dimensional Huffman encoding unit 10 obtains a run length of “0” of the input AC component in the zigzag scan order, and collects the immediately following coefficient value other than “0” into one Huffman code. Word length of the code word, further, when it came to the end of the block, the word length of the E OB code word is read from the two-dimensional Huffman coding unit 10, is output to the code amount calculating section 9 .

【0018】そして前記符号量算出部9は、入力された
各ブロックの符号語長を積算し、ブロック符号量として
ブロック符号量格納メモリ12と1パス符号量リミッタ
処理部13へ出力される。ブロック符号量格納メモリ1
2は各ブロック符号量が蓄積される。ここで、図2に前
記1パス符号量リミッタ処理部13の具体的な構成を示
し説明する。
The code amount calculator 9 adds up the codeword lengths of the input blocks and outputs the result to the block code amount storage memory 12 and the one-pass code amount limiter 13 as the block code amount. Block code amount storage memory 1
2 stores each block code amount. Here, a specific configuration of the one-pass code amount limiter 13 is shown in FIG. 2 and will be described.

【0019】まず、画面内の設定符号量CIが1パス目
の符号量制限値設定部21に入力され、図5に示したよ
うな、量子化スケールと符号量との関係をもとに、境界
上の値αuを上限値に設定する。ここで、図5は、
縦軸、横軸とも対数をとってある。この設定符号量CI
に対する初期設定量子化スケールαIの値は直線上か
ら求めることができる。ここで前記直線は、いろいろ
な画像に対して、前記量子化スケールと符号量との関係
を求めた時の平均である。
First, the code amount CI set in the screen is input to the code amount limit value setting unit 21 in the first pass, and based on the relationship between the quantization scale and the code amount as shown in FIG. The value αu on the boundary line b is set to the upper limit. Here, FIG.
Both the vertical and horizontal axes are logarithmic. This set code amount CI
Can be obtained from the straight line a . Here, the straight line a is an average when the relationship between the quantization scale and the code amount is obtained for various images.

【0020】前述した初期設定量子化スケールαI を使
って量子化された変換係数のブロック符号量が、ブロッ
ク符号量積算及び符号量発生頻度分布作成部22へ入力
され、ここで1画面分の総符号量が得られ、図3(a)
に示すようなブロック符号量の頻度分布表が作成され
る。
The block code amount of the transform coefficient quantized using the above-described initialization quantization scale α I is input to the block code amount integration and code amount generation frequency distribution creating unit 22, where one screen worth of image data is input. The total code amount is obtained, and FIG.
A frequency distribution table of the block code amount as shown in FIG.

【0021】ここでは、両面の総符号量Caが上限の符
号量Cuより大の時は、図3(a)の斜線部31の境界
値を図3(b)のようにブロック符号量の上限値とする
ことで、Ca≦Cuとすることができる。このようなブロ
ック符号量上限値をブロック符号量上限値算出と総符号
量算出部23で算出する。この具体的な手法としては、
図3(a)の斜線部31の符号量を次の(1)式
Here, when the total code amount Ca on both surfaces is larger than the upper limit code amount Cu, the boundary value of the hatched portion 31 in FIG. 3A is changed to the upper limit of the block code amount as shown in FIG. By setting the value, it is possible to satisfy Ca ≦ Cu. Such a block code amount upper limit value is calculated by the block code amount upper limit value calculation and the total code amount calculation unit 23. As a concrete method of this,
The code amount of the hatched portion 31 in FIG.

【0022】[0022]

【数1】 (ここで、C(t)は符号量tの時の頻度、xは上限値
であり、以下(1)式を“A”とおく)、のように示す
ことができる。この(1)式から、 Ca −A≦Cu …(2) を満す最大のxを求めることで行なわれる。このxが求
められたら、 Ca −A …(3) をスケールファクタ計算部へ出力し、またxの値がブロ
ック符号量リミッタ24へ出力される。
(Equation 1) (Here, C (t) is the frequency at the time of the code amount t, x is the upper limit, and the following expression (1) is referred to as “A”). This is performed by obtaining the maximum x satisfying the following equation: C a −A ≦ C u (2) When x is obtained, C a -A (3) is output to the scale factor calculation unit, and the value of x is output to the block code amount limiter 24.

【0023】このブロック符号量リミッタ24では、メ
モリに格納されたブロック符号量を上限値x以内に設定
し、図1に示した前記ブロック割り当て符号量算出部1
4に出力される。前記スケールファクタ計算部5では、
設定符号量と1パス符号量リミッタ処理部13の出力で
あるリミッタ処理後の総符号量Ca−Aとが入力され、
これらの量から予測量子化スケールが計算される。ここ
では、予測量子化スケールは、図5に示す直線aと平行
で座標(αI,Ca−A)を通る直線から計算される。前
記ブロック割り当て符号量算出部14では設定符号量
Iと1パス符号量リミッタ処理13で算出した総符号
Ca−Aとから、割り当てスケールβを算出する。β
=設定符号量CI/1パス符号量リミッタ処理部13で
算出した総符号量Ca−A
In the block code amount limiter 24, the block code amount stored in the memory is set within the upper limit x, and the block allocation code amount calculation unit 1 shown in FIG.
4 is output. In the scale factor calculation unit 5,
The set code amount and the total code amount Ca-A after the limiter processing, which is the output of the one-pass code amount limiter 13, are input.
From these quantities a predicted quantization scale is calculated. here
Then, the predicted quantization scale is calculated from a straight line parallel to the straight line a shown in FIG. 5 and passing through the coordinates (αI, Ca− A). In the block allocation code amount calculation unit 14, the set code amount C
And a total code amount Ca-A calculated in I and one pass code amount limiter processing unit 13 calculates an allocation scale beta. β
= Set code amount CI / 1 pass code amount limiter 13
Calculated total code amount Ca-A

【0024】この割り当てスケールβに、1パス符号量
リミッタ処理13から出力されるリミッタのかかったブ
ロック符号量を乗算することで、ブロック割り当て符号
量が算出される。算出されたこれらの値でブロック符号
量格納メモリ12のデータを書き換える。
By multiplying the allocation scale β by the block code amount subjected to the limiter output from the one-pass code amount limiter 13, the block allocation code amount is calculated. The data in the block code amount storage memory 12 is rewritten with these calculated values.

【0025】以上が、1パス目の処理であり、次に2パ
ス目の処理に移行する。2パス目の処理は、前記フレー
ムメモリ1に格納されている画像データを、1パス目の
処理と同様に、ブロックごとに取り出し、前記DCT2
でDCTが行なわれ、前記量子化器3で変換係数が量子
化される。この時の量子化ステップ幅は、1パス目で算
出した予測量子化スケールに初期設定量子化ステップ幅
を乗算したものが使われる。
The above is the processing of the first pass, and then the processing shifts to the processing of the second pass. In the second pass processing, the image data stored in the frame memory 1 is extracted for each block in the same manner as in the first pass processing, and the DCT 2
Perform DCT, and the quantizer 3 quantizes the transform coefficient. The quantization step width at this time is obtained by multiplying the predicted quantization scale calculated in the first pass by the default quantization step width.

【0026】そして量子化された変換係数の内、DC成
分が1パス目と同様に前ブロックのDC成分との差分が
取られ、この差分値に対応するハフマン符号語が、前記
DCハフマン符号化部7によって、前記DCハフマン符
号テーブル8から読み出され、このハフマン符号語が、
前記マルチプレクサ15に送られる。
Then, of the quantized transform coefficients, the difference between the DC component and the DC component of the previous block is obtained in the same manner as in the first pass, and the Huffman code word corresponding to this difference value is obtained by the DC Huffman coding. The Huffman code word is read from the DC Huffman code table 8 by the unit 7, and this Huffman code word is
The signal is sent to the multiplexer 15.

【0027】また変換係数のAC成分は、1パス目と同
様に低周波数成分から、図4のようなジグザグスキャン
順に前記2次元ハフマン符号化部10で、“0”ランと
その直後の“0”でない係数値とを1つにまとめ、これ
に対応するハフマン符号語を前記2次元ハフマン符号テ
ーブル11より読み出し、この符号語を前記マルチプレ
クサ15へ送る。さらに、前記DCハフマン符号化部8
及び、2次元ハフマン符号化部10で符号化された符号
語の語長が、前記符号量算出部9に入力され、ブロック
内の符号量が積算され(2パス目のブロック符号量:Σ
II(i))、前記ブロック符号量格納メモリ12に格
納されている現在の符号化中のブロックの割り当て符号
量Callot との比較が、切り捨て処理部16で行なわれ
る。ここで、図6に示されるように、インデックスiは
低周波数成分からジグザグスキャンされた変換係数の
“0”ラン長とその後の“0”以外の係数値とをひとか
たまりとした時のインデックス、ここでは、
As in the first pass, the AC component of the transform coefficient is processed by the two-dimensional Huffman encoding unit 10 in the zigzag scan order as shown in FIG. The coefficient values that are not "" are combined into one, the corresponding Huffman code word is read from the two-dimensional Huffman code table 11, and this code word is sent to the multiplexer 15. Further, the DC Huffman encoding unit 8
In addition, the word length of the codeword encoded by the two-dimensional Huffman encoding unit 10 is input to the code amount calculation unit 9 and the code amount in the block is integrated (the block code amount in the second pass: Σ).
C II (i)) The truncation processing unit 16 performs comparison with the allocated code amount Callot of the block currently being encoded stored in the block code amount storage memory 12. Here, as shown in FIG. 6, the index i is an index when a “0” run length of the transform coefficient zigzag-scanned from the low-frequency component and the subsequent coefficient values other than “0” are grouped. Then

【0028】[0028]

【数2】 となる最大のYまで符号化が行なわれ、それ以降は符号
化は行なわれず、係数を切り捨ててしまう。割り当て符
号量の余り
(Equation 2) , The coding is performed up to the maximum Y, and thereafter the coding is not performed, and the coefficients are discarded. Remainder of allocated code amount

【0029】[0029]

【数3】 (Equation 3)

【0030】を次のブロックの割り当て符号量に加え
る。また、前記マルチプレクサ15に入力したハフマン
符号語は、順番に伝送路へ出力される。この処理を画像
内の全ブロックに対して行い、画像を設定符号量内に符
号化することができる。
Is added to the code amount allocated to the next block. The Huffman codewords input to the multiplexer 15 are sequentially output to the transmission path. This process is performed on all blocks in the image, and the image can be encoded within the set code amount.

【0031】前述した処理は、1パス時の暫定符号量を
使って2パス時の符号量制御パラメータ(ブロック割り
当て符号量と量子化スケール)を算出するという他に1
パス時にアクティビティを求め、この値を使って符号量
制御パラメータを算出することでも、同様に実施するこ
とができる。
The above-described processing uses the provisional code amount for one pass to calculate the code amount control parameters (block allocation code amount and quantization scale) for two passes.
The same operation can be performed by obtaining an activity at the time of passing and calculating a code amount control parameter using this value.

【0032】以上詳述した本発明の動画像符号化装置
は、量子化スケールに上限値を設けて画像全体の統計量
によって予測される、該量子化スケールが、前記上限値
以内になるようなブロック内情報量の上限値が求めら
れ、その値以内に設定することで情報量が少ないブロッ
クでは、前記処理を行なわない時に比べて、ブロック割
り当て符号量が多く割り当てられ、さらに量子化スケー
ルが上限値を越えないため、前述したこれらのブロック
に対する量子化歪が、前記上限値を求めるという処理を
行なわない時に比べ小さく、ある程度の低周波数成分を
符号化できる符号量が割り当てられるため、統計(情
報)量の少ないブロックでは、しばしば発生するブロッ
ク歪が低減できる。なお、本発明は静止画像の符号化及
び同じ原理を用いた動画像符号化の双方に適用すること
もできる。また本発明は、前述した実施例に限定される
ものではなく、他にも発明の要旨を逸脱しない範囲で種
々の変形や応用が可能であることは勿論である。
The moving picture coding apparatus according to the present invention described in detail above provides an upper limit value for the quantization scale, which is predicted by the statistics of the entire image and which is within the above upper limit value. The upper limit value of the information amount in the block is obtained, and by setting the value within the value, a block having a smaller information amount is assigned a larger block allocation code amount than when the above processing is not performed, and the quantization scale is further increased. Since the value does not exceed the value, the quantization distortion for these blocks described above is smaller than when the process of obtaining the upper limit is not performed, and a code amount capable of coding a certain low-frequency component is assigned. ) With a small amount of blocks, block distortion that often occurs can be reduced. The present invention can be applied to both the encoding of a still image and the encoding of a moving image using the same principle. In addition, the present invention is not limited to the above-described embodiment, and it goes without saying that various modifications and applications are possible without departing from the spirit of the invention.

【0033】[0033]

【発明の効果】以上詳述したように本発明によれば、ブ
ロック歪の発生を押え、視覚的に目ざわりな劣化を減少
させる符号量制御を行う画像符号化装置を提供すること
ができる。
As described above in detail, according to the present invention, it is possible to provide an image coding apparatus which controls the amount of code to suppress the occurrence of block distortion and reduce visually noticeable deterioration.

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

【図1】図1は、本発明の実施例の画像符号化装置の概
略的な構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of an image encoding device according to an embodiment of the present invention.

【図2】図2は、図1に示す1パス符号量リミッタ処理
部の具体的な構成を示す図である。
FIG. 2 is a diagram illustrating a specific configuration of a one-pass code amount limiter processing unit illustrated in FIG. 1;

【図3】図3(a)は、ブロック符号量の頻度分布を示
す図、同図(b)はブロック上限値までの範囲のブロッ
ク符号量の頻度分布を示す図である。
FIG. 3A is a diagram illustrating a frequency distribution of a block code amount, and FIG. 3B is a diagram illustrating a frequency distribution of a block code amount in a range up to a block upper limit value.

【図4】図4は、ブロックを低周波数成分側から順次、
ジグザグスキャンする状態を示す図である。
FIG. 4 is a block diagram illustrating blocks in order from a low frequency component side;
It is a figure showing the state where a zigzag scan is performed.

【図5】図5は、量子化スケールと符号量との関係を示
す図である。
FIG. 5 is a diagram illustrating a relationship between a quantization scale and a code amount;

【図6】図6は、変換係数とインデックスをDC・AC
成分を低周波数成分からジグザグ状にスキャンした順に
並べた構成を示す図である。
FIG. 6 is a diagram illustrating a DC / AC conversion coefficient and an index;
FIG. 6 is a diagram illustrating a configuration in which components are arranged in a zigzag scan order from low frequency components.

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

1…フレームメモリ、2…離散コサイン変換部(DC
T)、3…量子化器、4…量子化テーブル、5…スケー
ルファクタ計算部、6…DC DPCM、7…DCハフ
マン符号化部、8…DCハフマン符号テーブル、9…符
号量算出部、10…2次元ハフマン符号化部、11…2
次元ハフマン符号テーブル、12…ブロック符号量格納
メモリ、13…1パス符号量リミッタ処理部、14…ブ
ロック割り当て符号量算出部、15…マルチプレクサ、
16…切り捨て処理部、21…1パス目の符号量制限値
設定部、22…ブロック符号量積算及び符号量発生頻度
分布作成部、23…ブロック符号量上限値算出と総符号
量算出部、24…ブロック符号量リミッタ、31…斜線
部。
1. Frame memory, 2. Discrete cosine transform unit (DC
T), 3 quantizer, 4 quantization table, 5 scale factor calculation unit, 6 DC DPCM, 7 DC Huffman coding unit, 8 DC Huffman code table, 9 code amount calculation unit, 10 ... two-dimensional Huffman coding unit, 11 ... 2
Dimensional Huffman code table, 12: block code amount storage memory, 13: one-pass code amount limiter processing unit, 14: block allocation code amount calculation unit, 15: multiplexer,
16: truncation processing unit, 21: code amount limit value setting unit for the first pass, 22: block code amount integration and code amount occurrence frequency distribution creation unit, 23: block code amount upper limit value calculation and total code amount calculation unit, 24 ... Block code amount limiter, 31.

フロントページの続き (56)参考文献 特開 平2−222386(JP,A) 特開 平3−24889(JP,A) 根本啓次(他1名),”DCT符号化 方式の符号量制御方法”,電子情報通信 学会秋季全国大会講演論文集,財団法人 電子情報通信学会,1989年8月15日, D−45,分冊6,p.6−45 (58)調査した分野(Int.Cl.7,DB名) H04N 7/24 - 7/68 H04N 1/41 - 1/419 H03M 7/30 JICSTファイル(JOIS)Continuation of the front page (56) References JP-A-2-222386 (JP, A) JP-A-3-24889 (JP, A) Keiji Nemoto (1 other person), "Code amount control method of DCT coding method" , IEICE Autumn National Conference, Proceedings of the Institute of Electronics, Information and Communication Engineers, August 15, 1989, D-45, Volume 6, p. 6-45 (58) Field surveyed (Int.Cl. 7 , DB name) H04N 7/ 24-7/68 H04N 1/41-1/419 H03M 7/30 JICST file (JOIS)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力画像を複数の画素からなるブロック
に分割し、前記入力画像の符号量を制御するために、前
記ブロック及び入力画像全体の統計量により生成された
割り当て符号量及び量子化スケールを使って、各ブロッ
クを直交変換し、出力された変換係数を量子化及び符号
化する画像符号化装置において、 入力画像の設定符号量に応じて量子化スケールの上限値
を設定する上限値設定手段を具備することを特徴とする
画像符号化装置。
An input image is divided into blocks each including a plurality of pixels, and an allocated code amount and a quantization scale generated based on statistics of the blocks and the entire input image are used to control a code amount of the input image. In an image encoding device that orthogonally transforms each block using, and quantizes and encodes the output transform coefficients, an upper limit value setting that sets an upper limit value of a quantization scale according to a set code amount of an input image. An image encoding apparatus comprising:
JP10582791A 1991-05-10 1991-05-10 Image coding device Expired - Fee Related JP3191950B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10582791A JP3191950B2 (en) 1991-05-10 1991-05-10 Image coding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10582791A JP3191950B2 (en) 1991-05-10 1991-05-10 Image coding device

Publications (2)

Publication Number Publication Date
JPH04334270A JPH04334270A (en) 1992-11-20
JP3191950B2 true JP3191950B2 (en) 2001-07-23

Family

ID=14417891

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10582791A Expired - Fee Related JP3191950B2 (en) 1991-05-10 1991-05-10 Image coding device

Country Status (1)

Country Link
JP (1) JP3191950B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3373578A4 (en) * 2015-12-15 2019-04-24 Nippon Telegraph and Telephone Corporation IMAGE DIFFERENCE DETECTION DEVICE, METHOD FOR DETECTING IMAGE DIFFERENCE, AND COMPUTER PROGRAM

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
根本啓次(他1名),"DCT符号化方式の符号量制御方法",電子情報通信学会秋季全国大会講演論文集,財団法人 電子情報通信学会,1989年8月15日,D−45,分冊6,p.6−45

Also Published As

Publication number Publication date
JPH04334270A (en) 1992-11-20

Similar Documents

Publication Publication Date Title
JP3208039B2 (en) Image encoded data rate converter
JPH0595536A (en) High efficiency coded signal processor
JPH09130802A (en) Image compressing method
JPH07121120B2 (en) Data compression device
JP2516082B2 (en) Data compression device
JPH0832037B2 (en) Image data compression device
JP3681828B2 (en) Code amount control method and apparatus for image data
JP3191950B2 (en) Image coding device
JPH07203430A (en) Image coding device
JP2897563B2 (en) Image compression coding device
JPH03238970A (en) Conversion coding system
JP2003032680A (en) Image encoding apparatus, image encoding method, program code, and storage medium
JPH05276391A (en) Method for compressing picture and device therefor
JP2931328B2 (en) Image signal compression coding device
JP2935334B2 (en) Code amount control method
JP4041245B2 (en) Image encoding device
JP2938653B2 (en) Quantizer in video coding device
JP3015112B2 (en) Image processing method
JP3125615B2 (en) Image encoding device and image encoding / decoding device
JPH03192878A (en) Image data compression device
JP3001758B2 (en) Huffman encoding device and Huffman encoding method
JPH06284401A (en) Picture coder
JP2816168B2 (en) Image data compression device
JP2816169B2 (en) Image data compression device
JPH04208775A (en) Bit distribution encoding system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010501

LAPS Cancellation because of no payment of annual fees