JPH04225693A - Encoder - Google Patents

Encoder

Info

Publication number
JPH04225693A
JPH04225693A JP2407726A JP40772690A JPH04225693A JP H04225693 A JPH04225693 A JP H04225693A JP 2407726 A JP2407726 A JP 2407726A JP 40772690 A JP40772690 A JP 40772690A JP H04225693 A JPH04225693 A JP H04225693A
Authority
JP
Japan
Prior art keywords
quantization
activity
block
quantization table
orthogonal transformation
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
Application number
JP2407726A
Other languages
Japanese (ja)
Inventor
Rumi Tsubota
坪田 留美
Yasuhiko Yamane
靖彦 山根
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2407726A priority Critical patent/JPH04225693A/en
Publication of JPH04225693A publication Critical patent/JPH04225693A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To divide a picture signal into blocks and to efficiently encode each block in a coder in which a picture data is coded through orthogonal transformation to implement data compression. CONSTITUTION:A picture signal divided into blocks is subjected to orthogonal transform at a DCT section 101, the result is stored tentatively in a buffer memory 102, an activity calculation section 105 calculates the activity of each block and a quantity table in response to the activity is generated through a quantization factor control section 106 by an arithmetic section 107 based on a quantization table 108. Quantization of each block is implemented at a quantization section 103 by using the generated quantization table and the result is coded by a coding section 104.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は画像データを直交変換し
、量子化した変換係数を符号化することによりデータ圧
縮を行う符号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an encoding device that compresses data by orthogonally transforming image data and encoding quantized transform coefficients.

【0002】0002

【従来の技術】近年、画像データの処理において帯域圧
縮などの目的から各種符号化方式が検討され、その1つ
として直交変換を用いた方式が実用化されている。
2. Description of the Related Art In recent years, various encoding methods have been studied for purposes such as band compression in processing image data, and one of them is a method using orthogonal transformation.

【0003】静止画像の符号化方式として、画像に相関
性があることに着目して、画像データをN×N画素のブ
ロックに分割し、N×N画素からなるブロック内のデー
タに離散コサイン変換(DCT)などの直交変換を施し
た後に、量子化を行い得られた変換係数を符号化して圧
縮する方式がある。図8に従来の符号化装置のブロック
図を示し、図9に離散コサイン変換の変換係数の特徴を
示す。図9は、N×Nの2次元のブロックの画素に対し
て、離散コサイン変換を施した場合の変換係数であり、
斜線の部分はその数値の大きな部分である。画像のよう
に低周波成分が多いブロックの変換係数は、ブロックの
左上に数値の大きいものが集中する。画像の場合には低
周波成分に重要な情報が集中する。このような変換係数
を量子化する場合は低周波成分の変換係数は細かく量子
化し、高周波成分の変換係数は、粗く量子化する。符号
化装置としては図8に示すように、構成要素として30
1は入力された画像データに直交変換を施して変換係数
を得るDCT部、302はDCT部301で直交変換し
て得られた変換係数を一時記憶するバッファメモリ、3
04は量子化テーブル、303は量子化テーブル304
を用いてバッファメモリ302に一時記憶されている変
換係数を量子化する量子化部、305は量子化部303
によって量子化された変換係数を符号化する符号化部で
ある。
[0003] As a still image encoding method, focusing on the fact that images have correlation, image data is divided into blocks of N×N pixels, and data in the blocks of N×N pixels is subjected to discrete cosine transformation. There is a method of performing orthogonal transform such as (DCT) and then quantizing and encoding and compressing the obtained transform coefficients. FIG. 8 shows a block diagram of a conventional encoding device, and FIG. 9 shows characteristics of transform coefficients of discrete cosine transform. FIG. 9 shows transform coefficients when discrete cosine transform is applied to pixels of a two-dimensional block of N×N,
The shaded area is the area where the numerical value is large. The transform coefficients of blocks with many low frequency components, such as images, are concentrated in the upper left corner of the block. In the case of images, important information is concentrated in low frequency components. When such transform coefficients are quantized, the transform coefficients of low frequency components are quantized finely, and the transform coefficients of high frequency components are quantized coarsely. The encoding device has 30 components as shown in FIG.
1 is a DCT unit that performs orthogonal transformation on input image data to obtain transformation coefficients; 302 is a buffer memory that temporarily stores the transformation coefficients obtained by orthogonally transforming the DCT unit 301;
04 is a quantization table, 303 is a quantization table 304
305 is a quantization unit 303 that quantizes the transform coefficients temporarily stored in the buffer memory 302 using
This is an encoding unit that encodes the transform coefficients quantized by .

【0004】以下、図8の動作を説明する。入力された
画像データはN×Nのブロックに分割される。ブロック
化された画像データはDCT部301で直交変換され、
得られた変換係数はバッファメモリ302に一時記憶さ
れる。この変換係数は量子化テーブル304を用いて量
子化部303で量子化される。得られた結果は符号部3
05で符号化される。以降この処理を画像を分割した全
ブロックに対して施す。
The operation of FIG. 8 will be explained below. The input image data is divided into N×N blocks. The blocked image data is orthogonally transformed in the DCT unit 301,
The obtained conversion coefficients are temporarily stored in buffer memory 302. This transform coefficient is quantized by a quantization unit 303 using a quantization table 304. The obtained result is code part 3
05. Thereafter, this process is applied to all blocks into which the image has been divided.

【0005】[0005]

【発明が解決しようとする課題】上記の符号化装置にお
いて、量子化をする際に全ブロックに対して同一の量子
化テーブルが用いられている。ところが、各ブロックは
それぞれ周波数成分の分布が異なるため、同一の量子化
テーブルを用いて全ブロックの量子化を行うと符号化効
率が悪くなる。
In the above encoding device, the same quantization table is used for all blocks during quantization. However, since each block has a different distribution of frequency components, if all blocks are quantized using the same quantization table, encoding efficiency will deteriorate.

【0006】本発明はかかる点に留意し、ブロックごと
に効率的に符号化を行う符号化装置を提供しようとする
ものである。
[0006] The present invention takes this point into consideration and attempts to provide an encoding device that efficiently encodes each block.

【0007】[0007]

【課題を解決するための手段】本発明の上記目的を達成
するために第1の発明として画像データに直交変換を施
す直交変換手段と、この直交変換手段で得られた結果を
一時記憶する係数記憶手段と、ブロック内の画像の細か
さを表わすアクティビティを算出するアクティビティ算
出手段と、ブロック内の各係数の量子化ステップ幅を制
御する第一の量子化テーブルを記憶するテーブル記憶手
段と、この第一の量子化テーブルに量子化ファクターを
乗じて第二の量子化テーブルを得る演算手段と、アクテ
ィビティにより前記量子化ファクターを得る量子化ファ
クター制御手段と、第二の量子化テーブルを用いて係数
記憶手段内の係数を量子化する量子化手段を有し、各ブ
ロックごとにアクティビティを算出し、このアクティビ
ティにより量子化ファクターを得、この量子化ファクタ
ーと第一の量子化テーブルにより第二の量子化テーブル
を得、この第二の量子化テーブルでブロックの量子化を
行う符号化装置である。
[Means for Solving the Problems] In order to achieve the above-mentioned objects of the present invention, as a first invention, orthogonal transformation means for performing orthogonal transformation on image data, and coefficients for temporarily storing the results obtained by this orthogonal transformation means a storage means, an activity calculation means for calculating an activity representing the fineness of an image in the block, a table storage means for storing a first quantization table for controlling the quantization step width of each coefficient in the block; a calculation means for multiplying the first quantization table by a quantization factor to obtain a second quantization table; a quantization factor control means for obtaining the quantization factor by an activity; It has a quantization means for quantizing the coefficients in the storage means, calculates an activity for each block, obtains a quantization factor by this activity, and calculates a second quantization factor by using this quantization factor and the first quantization table. This is an encoding device that obtains a quantization table and quantizes a block using this second quantization table.

【0008】また、第2の発明として画像データに直交
変換を施す直交変換手段と、この直交変換手段で得られ
た結果を一時記憶する係数記憶手段と、直交変換手段で
得られた結果よりブロック内のアクティビティを算出す
るアクティビティ算出手段と、ブロック内の各係数の量
子化ステップ幅を制御する第一の量子化テーブルを記憶
するテーブル記憶手段と、第一の量子化テーブルに量子
化ファクターを乗じて第二の量子化テーブルを得る演算
手段と、アクティビティにより前記量子化ファクターを
得る量子化ファクター制御手段と、第二の量子化テーブ
ルを用いて係数記憶手段の係数を量子化する量子化手段
を有し、各ブロックごとにアクティビティを算出し、こ
のアクティビティにより量子化ファクターを得、この量
子化ファクターと第一の量子化テーブルにより第二の量
子化テーブルを得、第二の量子化テーブルでブロックの
量子化を行う符号化装置である。
[0008] A second aspect of the invention further includes orthogonal transformation means for performing orthogonal transformation on image data, coefficient storage means for temporarily storing the results obtained by the orthogonal transformation means, and coefficient storage means for temporarily storing the results obtained by the orthogonal transformation means. activity calculation means for calculating the activity in the block; table storage means for storing a first quantization table for controlling the quantization step width of each coefficient in the block; quantization factor control means for obtaining the quantization factor according to the activity; and quantization means for quantizing the coefficients of the coefficient storage means using the second quantization table. calculate the activity for each block, obtain a quantization factor by this activity, obtain a second quantization table by this quantization factor and the first quantization table, and calculate the block by the second quantization table. This is an encoding device that performs quantization.

【0009】[0009]

【作用】上記構成の本発明の符号化装置は、入力された
画像データをブロックに分割し、ブロックごとのアクテ
ィビティをアクティビティ算出手段により算出し、この
アクティビティに応じて第一の量子化テーブルを演算手
段により第二の量子化テーブルを作成する。この第二の
量子化テーブルを用いて、直交変換手段で直交変換され
て得られた変換係数を量子化する。これにより、ブロッ
クごとのアクティビティに応じて量子化テーブルを変え
て最適な量子化が行われ、効率良く符号化が可能となる
[Operation] The encoding device of the present invention having the above configuration divides input image data into blocks, calculates the activity of each block by the activity calculation means, and calculates the first quantization table according to this activity. A second quantization table is created by the means. Using this second quantization table, the transform coefficients obtained by orthogonal transformation by the orthogonal transform means are quantized. As a result, optimal quantization is performed by changing the quantization table according to the activity of each block, and efficient encoding becomes possible.

【0010】0010

【実施例】以下、図を用いて本発明の実施例を説明する
。図1に、本発明の第一の実施例における符号化装置の
ブロック図を示す。図1に示すように構成要素として1
01は入力された画像データに直交変換を施して変換係
数を得る直交変換手段としてのDCT部、102はDC
T部101で直交変換して得られた変換係数を一時記憶
する係数記憶手段としてのバッファメモリ、105は画
像データよりブロック内のアクティビティを算出するア
クティビティ算出手段としてのアクティビティ算出部、
106はアクティビティ算出部105で得られたアクテ
ィビティより量子化ステップを制御する量子化ファクタ
ー制御手段としての量子化ファクター制御部、108は
第一の量子化テーブルである量子化テーブル、107は
量子化ファクター制御部106で得られた量子化ファク
ターと量子化テーブル108との演算を行う演算手段で
ある演算部、103は演算部107で得られた第二の量
子化テーブルである量子化テーブルを用いてバッファメ
モリ102に一時記憶されている変換係数を量子化する
量子化手段としての量子化部、104は量子化部103
で得られた変換係数を符号化する符号化部である。 以下、図1の動作を詳細に説明する。
[Embodiments] Hereinafter, embodiments of the present invention will be explained with reference to the drawings. FIG. 1 shows a block diagram of an encoding device according to a first embodiment of the present invention. 1 as a component as shown in Figure 1.
01 is a DCT unit that performs orthogonal transformation on input image data to obtain transformation coefficients; 102 is a DC
a buffer memory as a coefficient storage means for temporarily storing the transform coefficients obtained by orthogonal transformation in the T section 101; an activity calculation section 105 as an activity calculation means for calculating the activity in the block from the image data;
106 is a quantization factor control unit as a quantization factor control means that controls the quantization step based on the activity obtained by the activity calculation unit 105; 108 is a quantization table that is a first quantization table; 107 is a quantization factor A calculation unit 103 is a calculation unit that performs calculations between the quantization factor obtained by the control unit 106 and the quantization table 108, and a calculation unit 103 uses the quantization table, which is the second quantization table obtained by the calculation unit 107. A quantization section 104 serves as a quantization means for quantizing the transform coefficients temporarily stored in the buffer memory 102; 104 is a quantization section 103;
This is an encoding unit that encodes the transform coefficients obtained in . The operation of FIG. 1 will be explained in detail below.

【0011】ここで、アクティビティ算出部105では
(数1)に示すような演算が行われる。(数1)は、8
×8画素のブロックの精細度を示している。(数1)に
おいて、i,jはそれぞれ画像における横方向,縦方向
の位置、l,mはブロック内における画像データの横方
向,縦方向の位置を示している。アクティビティACT
は画像により各ブロックで異なる。たとえば、ブロック
が画像の輪郭部にあればACTは大きくなり、平坦部に
あれば小さくなる。
[0011] Here, the activity calculation unit 105 performs the calculation shown in (Equation 1). (Math. 1) is 8
It shows the definition of a block of ×8 pixels. In (Equation 1), i and j indicate the horizontal and vertical positions in the image, respectively, and l and m indicate the horizontal and vertical positions of the image data within the block. Activity ACT
differs for each block depending on the image. For example, if the block is on the edge of the image, the ACT will be large, and if the block is on the flat part, the ACT will be small.

【0012】0012

【数1】[Math 1]

【0013】ただし、x:ブロック内の画素DC:ブロ
ック(i,j)の平均値である。
[0013] where x: pixel in block DC: average value of block (i, j).

【0014】つぎに、図1の量子化ファクター制御部1
06の回路動作を図2を用いて詳細に説明する。図2は
量子化ファクターを4種類設定することができる場合を
示す。図2に示すように構成要素として、401はしき
い値を設定するしきい値設定部、402は入力されたア
クティビティαとしきい値設定部401で設定されたし
きい値とを比較する比較部、404〜407は量子化フ
ァクターを設定する量子化ファクター設定部、403は
比較部402で決定された結果に応じて量子化ファクタ
ーを選択するセレクタ部である。入力されたアクティビ
ティαは、比較器402でしきい値設定部401に設定
してあるしきい値と比較される。セレクタ部403は比
較部402の結果に応じて量子化ファクター設定部40
4〜407から1つ選択し、量子化ファクターを出力す
る。
Next, the quantization factor control section 1 in FIG.
The circuit operation of 06 will be explained in detail using FIG. FIG. 2 shows a case where four types of quantization factors can be set. As shown in FIG. 2, the components include a threshold setting section 401 that sets a threshold, and a comparison section 402 that compares the input activity α with the threshold set by the threshold setting section 401. , 404 to 407 are quantization factor setting units that set quantization factors, and 403 is a selector unit that selects a quantization factor according to the result determined by the comparison unit 402. The input activity α is compared by a comparator 402 with a threshold value set in a threshold setting unit 401 . The selector unit 403 selects the quantization factor setting unit 40 according to the result of the comparison unit 402.
Select one from 4 to 407 and output the quantization factor.

【0015】また、図1の演算部107の回路動作を量
子化テーブルを用いて詳細に説明する。
Further, the circuit operation of the arithmetic unit 107 in FIG. 1 will be explained in detail using a quantization table.

【0016】[0016]

【表1】[Table 1]

【0017】[0017]

【表2】[Table 2]

【0018】(表1)および(表2)で示している値は
8×8画素のブロックに対応した量子化テーブルで、テ
ーブル内の各要素でそれぞれブロック内で同位置にある
画像データを除算する。(表1)は量子化テーブル10
8に設定する値であり、(表2)は量子化ファクター制
御部106からの出力が1/2の場合の演算結果である
。図1は、(表2)の量子化テーブルを用いてバッファ
メモリ102の変換係数の量子化を行う。
[0018] The values shown in (Table 1) and (Table 2) are quantization tables corresponding to blocks of 8 x 8 pixels, and the image data at the same position in the block is divided by each element in the table. do. (Table 1) is the quantization table 10
(Table 2) is the calculation result when the output from the quantization factor control unit 106 is 1/2. In FIG. 1, the transform coefficients in the buffer memory 102 are quantized using the quantization table shown in Table 2.

【0019】なお、アクティビティ算出部105におい
て各ブロックを任意のサブブロックに分割することもで
きる。たとえば、各ブロックを図3に示すように4つの
サブブロック分割し、(数2)を用いて各サブブロック
ごとにアクティビティを求め、それらを加算することで
より正確にブロックのアクティビティを算出することが
でき、ブロックに適合した量子化ファクターの設定がで
き、効率良く圧縮できる。
Note that the activity calculation unit 105 can also divide each block into arbitrary subblocks. For example, each block can be divided into four subblocks as shown in Figure 3, the activity for each subblock can be calculated using (Equation 2), and the activity of the block can be calculated more accurately by adding them. It is possible to set the quantization factor suitable for the block, and it is possible to compress efficiently.

【0020】[0020]

【数2】[Math 2]

【0021】(数2)においてi,jは画像におけるブ
ロックの横方向,縦方向の位置、l,mはブロック内に
おける画像データの横方向、縦方向の位置を示している
。また、(数2)における第1項は図3のサブブロック
0、第2項は図3のサブブロック1、第3項は図3のサ
ブブロック2、第4項は図3のサブブロック3のアクテ
ィビティ値をそれぞれ示している。
In (Equation 2), i and j indicate the horizontal and vertical positions of the block in the image, and l and m indicate the horizontal and vertical positions of the image data within the block. Also, the first term in (Equation 2) is subblock 0 in FIG. 3, the second term is subblock 1 in FIG. 3, the third term is subblock 2 in FIG. 3, and the fourth term is subblock 3 in FIG. The activity values of each are shown.

【0022】以上に示したように、本発明により得られ
た量子化テーブルで量子化を行う符号化効率が向上する
。以下図を用いて説明する。図4に変換係数の符号化方
法、図5に本発明と従来例の量子化後の係数とその符号
化について示す。図4において、変換係数を符号化する
場合は図に示すようなジグザグスキャンを行い、一次元
の変換係数列になおしてゼロの係数の続く長さ(ゼロラ
ン)と非ゼロの組合せを符号化する。図5において、白
丸はゼロの変換係数、黒丸は非ゼロの変換係数を示す、
従来では図5(a)に示すように変換係数aまでと変換
係数bまでとブロックの終端までのゼロラン3つの符号
で構成されていた。それに対して本発明では図5(b)
に示すように変換係数aまでとブロックの終端までのゼ
ロラン2つの符号で構成されるようになる。このように
本発明により、符号化効率の向上が図れる。
As shown above, the coding efficiency of performing quantization using the quantization table obtained according to the present invention is improved. This will be explained below using figures. FIG. 4 shows a method of encoding transform coefficients, and FIG. 5 shows coefficients after quantization and their encoding in the present invention and a conventional example. In Figure 4, when encoding transform coefficients, a zigzag scan is performed as shown in the figure, and the combination of continuous length of zero coefficients (zero run) and non-zero is encoded by converting it into a one-dimensional transform coefficient sequence. . In FIG. 5, white circles indicate zero conversion coefficients, and black circles indicate non-zero conversion coefficients.
Conventionally, as shown in FIG. 5(a), the code consists of three zero-run codes up to transform coefficient a, up to transform coefficient b, and up to the end of the block. On the other hand, in the present invention, FIG. 5(b)
As shown in the figure, the code is composed of two zero-run codes, one up to the transform coefficient a and the other up to the end of the block. As described above, according to the present invention, encoding efficiency can be improved.

【0023】本発明の第二の実施例における符号化装置
のブロック図を示す。同図に示すように構成要素として
201は入力された画像データに直交変換を施して変換
係数を得るDCT部、202はDCT部201で直交変
換して得られた変換係数を一時記憶するバッファメモリ
、205はDCT部201で直交変換して得られた変換
係数よりブロック内のアクティビティを算出するアクテ
ィビティ算出部、206はアクティビティ算出部205
で得られたアクティビティより量子化ステップを制御す
る量子化ファクター制御部、208は量子化テーブル、
207は量子化ファクター制御部206で得られた量子
化ファクターと量子化テーブル208との演算を行う演
算部、203は演算部207で得られた量子化テーブル
を用いてバッファメモリ202に一時記憶されている変
換係数を量子化する量子化部、204は量子化部203
で得られた変換係数を符号化する符号化部である。 以下、図6の構成要素の関連動作を詳細に説明する。
A block diagram of an encoding device in a second embodiment of the present invention is shown. As shown in the figure, 201 is a DCT unit that performs orthogonal transformation on input image data to obtain transformation coefficients, and 202 is a buffer memory that temporarily stores the transformation coefficients obtained by orthogonal transformation in the DCT unit 201. , 205 is an activity calculation unit that calculates the activity within a block from the transform coefficient obtained by orthogonal transformation in the DCT unit 201, and 206 is an activity calculation unit 205.
208 is a quantization table, which controls the quantization step based on the activity obtained in
207 is a calculation unit that performs calculations between the quantization factor obtained by the quantization factor control unit 206 and the quantization table 208; 203 is a calculation unit that uses the quantization table obtained by the calculation unit 207 to temporarily store data in the buffer memory 202; A quantization unit 204 is a quantization unit 203 that quantizes the transform coefficients.
This is an encoding unit that encodes the transform coefficients obtained in . The related operations of the components shown in FIG. 6 will be described in detail below.

【0024】アクティビティ算出部205においては、
バッファメモリ202に一時記憶されている変換係数に
対して領域を任意に設定し、その領域に含まれる変換係
数の平均二乗値を算出する。図7に領域設定の一例を示
す。図7はブロック内の変換係数を表わし、左上の部分
の方向に情報が集中している。この場合は、図7の斜線
部分の変換係数の平均二乗値を算出し、その値をアクテ
ィビティの値とする。
[0024] In the activity calculation unit 205,
An area is arbitrarily set for the transform coefficients temporarily stored in the buffer memory 202, and the mean square value of the transform coefficients included in that area is calculated. FIG. 7 shows an example of area setting. FIG. 7 shows transform coefficients within a block, and information is concentrated in the direction of the upper left part. In this case, the mean square value of the conversion coefficients in the shaded area in FIG. 7 is calculated, and that value is used as the activity value.

【0025】量子化ファクター制御部206では、図1
の量子化ファクター制御部106と同様な処理を行い、
アクティビティ算出部205で算出されたアクティビテ
ィ値に応じて量子化ファクターを設定し、出力する。
In the quantization factor control section 206, as shown in FIG.
Performs the same processing as the quantization factor control unit 106 of
A quantization factor is set according to the activity value calculated by the activity calculation unit 205 and output.

【0026】演算部207では、図1の演算部107と
同様な処理を行い、量子化ファクター制御部206から
の出力に応じて量子化テーブルを生成して量子化部20
3で量子化する。
The calculation unit 207 performs the same processing as the calculation unit 107 in FIG. 1, generates a quantization table according to the output from the quantization factor control unit 206,
Quantize with 3.

【0027】なお、第一,第二の実施例ともに直交変換
に離散コサイン変換を用いて説明したが、アダマール変
換など他の直交変換においても同様な効果を有すること
は言うまでもない。
Although the first and second embodiments have been described using discrete cosine transform as the orthogonal transform, it goes without saying that other orthogonal transforms such as Hadamard transform can have similar effects.

【0028】[0028]

【発明の効果】以上の説明より明らかなように、本発明
の符号化装置は直交変換手段と、ブロックごとのアクテ
ィビティに応じた量子化テーブルを得る演算手段を備え
ることにより以下の効果を有する。
As is clear from the above description, the encoding apparatus of the present invention has the following effects by providing orthogonal transformation means and arithmetic means for obtaining a quantization table according to the activity of each block.

【0029】(1)各ブロックのアクティビティに応じ
て量子化テーブルを変えて量子化するので、効率良く符
号化できる。
(1) Since quantization is performed by changing the quantization table according to the activity of each block, efficient encoding is possible.

【0030】(2)処理がブロック単位であるので、ア
クティビティの演算と符号処理が並列に行えるので、高
速に処理できる。
(2) Since processing is performed in blocks, activity calculations and code processing can be performed in parallel, resulting in high-speed processing.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の第一の実施例の符号化装置のブロック
FIG. 1 is a block diagram of an encoding device according to a first embodiment of the present invention.

【図2】同実施例の量子化ファクター制御部のブロック
[Figure 2] Block diagram of the quantization factor control unit of the same embodiment

【図3】同実施例における画像信号の各ブロックのサブ
ブロックへの分割の概念図
[Fig. 3] Conceptual diagram of division of each block of an image signal into subblocks in the same embodiment.

【図4】同実施例における符号化の説明のための変換係
数配列パターン図
[Fig. 4] Transform coefficient array pattern diagram for explaining encoding in the same embodiment.

【図5】同実施例における符号化例を示す変換係数配列
パターン図
[Fig. 5] Transform coefficient array pattern diagram showing an encoding example in the same embodiment.

【図6】本発明の第二の実施例の符号化装置のブロック
FIG. 6 is a block diagram of an encoding device according to a second embodiment of the present invention.

【図7】同実施例の動作の説明のための変換係数配列パ
ターン図
[Fig. 7] Conversion coefficient array pattern diagram for explaining the operation of the same embodiment.

【図8】従来の符号化装置のブロック図[Fig. 8] Block diagram of a conventional encoding device

【図9】同従来
例の動作を説明するための変換係数配列パターン図
[Fig. 9] A conversion coefficient array pattern diagram for explaining the operation of the conventional example.

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

101  DCT部 102  バッファメモリ 103  量子化部 105  アクティビティ算出部 106  量子化ファクター制御部 107  演算部 108  量子化テーブル 101 DCT section 102 Buffer memory 103 Quantization section 105 Activity calculation section 106 Quantization factor control section 107 Arithmetic unit 108 Quantization table

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】画像データをN×N画素(Nは自然数)の
ブロックに分割し、その画像データに直交変換を施す直
交変換手段と、前記直交変換手段で得られた結果を一時
記憶する係数記憶手段と、前記画像データよりブロック
内の画像の細かさを表わすアクティビティを算出するア
クティビティ算出手段と、前記ブロック内の各係数の量
子化ステップ幅を制御する第一の量子化テーブルを記憶
するテーブル記憶手段と、前記第一の量子化テーブルに
量子化ファクターを乗じて第二の量子化テーブルを得る
演算手段と、アクティビティにより前記量子化ファクタ
ーを得る量子化ファクター制御手段と、前記第二の量子
化テーブルを用いて前記係数記憶手段内の係数を量子化
する量子化手段を具備し、前記アクティビティ算出手段
により各ブロックごとにアクティビティを算出し、前記
アクティビティを用いて前記量子化ファクター制御手段
により量子化ファクターを得、前記量子化ファクターと
第一の量子化テーブルを用いて前記演算手段により第二
の量子化テーブルを得、前記第二の量子化テーブルを用
いて前記量子化手段により前記ブロックの量子化を行う
ようにしてなる符号化装置。
1. Orthogonal transformation means for dividing image data into blocks of N×N pixels (N is a natural number) and performing orthogonal transformation on the image data, and coefficients for temporarily storing the results obtained by the orthogonal transformation means. a storage means, an activity calculation means for calculating an activity representing the fineness of an image in the block from the image data, and a table for storing a first quantization table for controlling the quantization step width of each coefficient in the block. a storage means, an arithmetic means for multiplying the first quantization table by a quantization factor to obtain a second quantization table, a quantization factor control means for obtaining the quantization factor by an activity; quantization means for quantizing the coefficients in the coefficient storage means using a quantization table, the activity calculation means calculates an activity for each block, and the quantization factor control means uses the activity to quantize the coefficients. A quantization factor is obtained, a second quantization table is obtained by the calculation means using the quantization factor and the first quantization table, and a second quantization table is obtained by the quantization means using the second quantization table. An encoding device that performs quantization.
【請求項2】画像データをN×N画素(Nは自然数)の
ブロックに分割し、その画像データに直交変換を施す直
交変換手段と、前記直交変換手段で得られた結果を一時
記憶する係数記憶手段と、前記直交変換手段で得られた
結果よりブロック内のアクティビティを算出するアクテ
ィビティ算出手段と、前記ブロック内の各係数の量子化
ステップ幅を制御する第一の量子化テーブルを記憶する
テーブル記憶手段と、前記第一の量子化テーブルに量子
化ファクターを乗じて第二の量子化テーブルを得る演算
手段と、アクティビティにより前記量子化ファクターを
得る量子化ファクター制御手段と、前記第二の量子化テ
ーブルを用いて前記係数記憶手段内の係数を量子化する
量子化手段を具備し、前記アクティビティ算出手段によ
り各ブロックごとにアクティビティを算出し、前記アク
ティビティを用いて、前記量子化ファクター制御手段に
より量子化ファクターを得、前記量子化ファクターと第
一の量子化テーブルを用いて、前記演算手段により第二
の量子化テーブルを得、前記第二の量子化テーブルを用
いて、前記量子化手段により前記ブロックの量子化を行
うようにしてなる符号化装置。
2. Orthogonal transformation means for dividing image data into blocks of N×N pixels (N is a natural number) and performing orthogonal transformation on the image data, and coefficients for temporarily storing the results obtained by the orthogonal transformation means. a storage means, an activity calculation means for calculating the activity in the block from the result obtained by the orthogonal transformation means, and a table for storing a first quantization table for controlling the quantization step width of each coefficient in the block. a storage means, an arithmetic means for multiplying the first quantization table by a quantization factor to obtain a second quantization table, a quantization factor control means for obtaining the quantization factor by an activity; quantization means for quantizing the coefficients in the coefficient storage means using a quantization table, the activity calculation means calculates an activity for each block, and the quantization factor control means calculates an activity using the activity. A quantization factor is obtained, a second quantization table is obtained by the calculation means using the quantization factor and the first quantization table, and a second quantization table is obtained by the quantization means using the second quantization table. An encoding device configured to quantize the blocks.
JP2407726A 1990-12-27 1990-12-27 Encoder Pending JPH04225693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2407726A JPH04225693A (en) 1990-12-27 1990-12-27 Encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2407726A JPH04225693A (en) 1990-12-27 1990-12-27 Encoder

Publications (1)

Publication Number Publication Date
JPH04225693A true JPH04225693A (en) 1992-08-14

Family

ID=18517280

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2407726A Pending JPH04225693A (en) 1990-12-27 1990-12-27 Encoder

Country Status (1)

Country Link
JP (1) JPH04225693A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09172641A (en) * 1995-12-21 1997-06-30 Nec Corp Moving image coder

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02264585A (en) * 1989-04-05 1990-10-29 Nec Corp Encoding system for picture signal
JPH02305272A (en) * 1989-05-19 1990-12-18 Ricoh Co Ltd Picture encoding method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02264585A (en) * 1989-04-05 1990-10-29 Nec Corp Encoding system for picture signal
JPH02305272A (en) * 1989-05-19 1990-12-18 Ricoh Co Ltd Picture encoding method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09172641A (en) * 1995-12-21 1997-06-30 Nec Corp Moving image coder

Similar Documents

Publication Publication Date Title
US10045034B2 (en) System and method for using pattern vectors for video and image coding and decoding
US5953460A (en) Image encoding method and an image encoder wherein a one-dimensional signal having the fastest energy conversion rate is selected and outputted as a coded signal
RU2567988C2 (en) Encoder, method of encoding data, decoder, method of decoding data, system for transmitting data, method of transmitting data and programme product
JPH07107300A (en) Picture encoding device
JPH07123269A (en) Corder for picture signal
KR920005014A (en) Image data restoration method and device
JPH04225693A (en) Encoder
JPH1175182A (en) Method and system for compressing moving image information
US5825422A (en) Method and apparatus for encoding a video signal based on inter-block redundancies
JPH04247770A (en) Picture data compression method, picture data compression device and picture data restoring device
JPH0670175A (en) Method and device for encoding picture data
JP3344720B2 (en) Image data recording apparatus and method
JPH07240922A (en) Image encoder/recoder
JP2934741B2 (en) Orthogonal transform coding device
JPH0310486A (en) Moving picture encoder
JP3232160B2 (en) Encoding device and method
JP2820807B2 (en) Image data encoding method
JP2880269B2 (en) Image data compression method and apparatus
JP2616229B2 (en) Image data compression device
JP3014200B2 (en) Image data encoding apparatus and encoding method
JPH0595484A (en) Picture compressor and its method
JPH04271664A (en) Picture data compressor and picture data decoder
JP3216741B2 (en) Image coding method
JPH03192878A (en) Picture data compressor
JPH0449778A (en) Method of encoding picture