JPH11103463A - Picture encoding method and storage medium - Google Patents

Picture encoding method and storage medium

Info

Publication number
JPH11103463A
JPH11103463A JP26213697A JP26213697A JPH11103463A JP H11103463 A JPH11103463 A JP H11103463A JP 26213697 A JP26213697 A JP 26213697A JP 26213697 A JP26213697 A JP 26213697A JP H11103463 A JPH11103463 A JP H11103463A
Authority
JP
Japan
Prior art keywords
block
image
pixels
encoding
blocks
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
JP26213697A
Other languages
Japanese (ja)
Inventor
Shinichi Matsui
紳一 松井
Takeshi Kasahara
毅 笠原
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP26213697A priority Critical patent/JPH11103463A/en
Publication of JPH11103463A publication Critical patent/JPH11103463A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/004Predictors, e.g. intraframe, interframe coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a picture encoding method and storage medium that selects a picture element sequence on the edge of a block adjacent to a block to be encoded out of a block picture element used for prediction, improves prediction precision by using an average value of the picture element sequence concerned and can improve encoding efficiency. SOLUTION: An input picture is divided into blocks, each block is converted into a DCT coefficient by a two-dimensional DCT transformation and further linear quantified, the DCT coefficient quantified is entropy encoded and made to be code data and, at the same time, decoded and converted to a decoded picture element value, and a local decode block is generated. Then, since blocks 5 and 16 are already completely reconstructed at the time of processing a block 17, it is possible to use an average value of one picture element sequence on the edge part of the blocks 5 and 16 indicated by hatched lines at the time of calculating predicted value, information on a picture element short in distance is reflected upon the predicted value, the precision of prediction is improved and encoding efficiency can be improved.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像符号化方法及
び記憶媒体に係り、詳細には、ブロック単位の符号化に
おける予測符号化の精度を向上させることにより符号化
効率を向上させる画像符号化方法及び記憶媒体に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image coding method and a storage medium, and more particularly to an image coding method for improving coding efficiency by improving the accuracy of predictive coding in block-based coding. The present invention relates to a method and a storage medium.

【0002】[0002]

【従来の技術】近時、マルチメディア関連の画像符号化
の国際標準化が急速に進められている。例えば、静止画
符号化標準であるJPEG(Joint Photographic Exper
ts Group)、動画の通信メディア用符号化標準である
H.263、動画の蓄積メディア用符号化標準であるM
PEG(Moving Picture Experts Group)等が挙げられ
る。これら各符号化方式には、それぞれの目的に合わせ
たビットレート(伝送速度)を実現する符号化アルゴリ
ズムが採用されている。
2. Description of the Related Art Recently, international standardization of multimedia-related image coding has been rapidly advanced. For example, JPEG (Joint Photographic Exper
ts Group), H.264, which is an encoding standard for video communication media. 263, M which is an encoding standard for moving image storage media
PEG (Moving Picture Experts Group) and the like. In each of these encoding methods, an encoding algorithm that realizes a bit rate (transmission rate) suited to each purpose is adopted.

【0003】例えば、JPEGは、大きな分類として2
つの圧縮方式に分けられる。第1の方式はDCT(Disc
rete Cosine Transform :離散コサイン変換)を基本と
した方式であり、第2の方式は2次元空間でDPCM
(Differential Pulse Code Modulation)を行うSpa
tial方式である。DCT方式は量子化を含むため一
般には完全に元の画像は再現されない非可逆符号化であ
るが、少ないビット数においても十分な復号画像品質を
得ることができる。一方Spatial方式は、圧縮率
は小さいが元の画像を完全に再現することが可能な可逆
符号化である。
[0003] For example, JPEG has two major classifications.
Compression methods. The first method is DCT (Disc
Rete Cosine Transform: Discrete Cosine Transform) The second method is DPCM in two-dimensional space
(Differential Pulse Code Modulation)
This is a tial method. Since the DCT method includes quantization, generally, the original image is irreversible encoding in which the original image is not completely reproduced. However, a sufficient decoded image quality can be obtained even with a small number of bits. On the other hand, the Spatial method is a reversible coding which has a small compression ratio but can completely reproduce an original image.

【0004】DCT方式では、入力画像はエンコーダ
(符号器)においてDCT変換、量子化、エントロピー
符号化が行われ符号データに変換される。まず、エンコ
ーダでは入力画像が8×8画素のブロックに分割され、
各ブロックが次式(1)の計算式にしたがって2次元D
CT変換される。
In the DCT method, an input image is subjected to DCT conversion, quantization, and entropy coding in an encoder (encoder), and is converted into coded data. First, the encoder divides the input image into 8 × 8 pixel blocks,
Each block is a two-dimensional D according to the following equation (1).
CT conversion is performed.

【0005】[0005]

【数1】 (Equation 1)

【0006】このDCT変換により8×8(64個)の
画素データは8×8(64個)のDCT係数に変換され
る。このDCT係数の行列の中の左上隅の係数はDC成
分と呼ばれ、ブロックデータの平均値である。また、残
りの63個の係数はAC成分と呼ばれる。64個のDC
T係数は各係数毎の量子化ステップサイズを定めた量子
化テーブルを用いて、係数位置毎に異なるステップサイ
ズで線形量子化される。
The DCT transform converts 8 × 8 (64) pixel data into 8 × 8 (64) DCT coefficients. The coefficient at the upper left corner in the matrix of DCT coefficients is called a DC component and is an average value of block data. The remaining 63 coefficients are called AC components. 64 DC
The T coefficient is linearly quantized with a different step size for each coefficient position using a quantization table that defines a quantization step size for each coefficient.

【0007】量子化されたDCT係数はエントロピー符
号化され符号データとなる。エントロピー符号化の方式
としてはハフマン符号化と算術符号化とがあり、それぞ
れDC成分とAC成分とで手順が異なる。ここでは、D
C成分の符号化についてDPCMを用いたエントロピー
符号化を行う場合について説明する。
[0007] The quantized DCT coefficients are entropy-encoded into code data. There are Huffman coding and arithmetic coding as methods of entropy coding, and the procedures differ for DC components and AC components, respectively. Here, D
A case where entropy encoding using DPCM is performed for encoding the C component will be described.

【0008】図10は、前述したような8×8画素のブ
ロックAijが複数並んでいる様子を示している。例え
ば、左上に位置するブロックA00から順にA01,A02,
A10,A11,・・・・と符号化されていくものとすれば、ブ
ロックA11を符号化する際には、すでにブロックA00,
A01,A02,A10は符号化されている状態である。この
とき、1次元のDPCMを行う場合にはブロックA11の
予測としてブロックA10の値を用い、2次元のDPCM
を行う場合にはブロックA11の予測として、例えば(A
10+A01+A00)/3等の値を用いていた。
FIG. 10 shows a state in which a plurality of blocks Aij of 8 × 8 pixels as described above are arranged. For example, from the block A00 located at the upper left, A01, A02,
.. A10, A11,..., If the block A11 is encoded, the blocks A00, A11,.
A01, A02, and A10 are in a coded state. At this time, when performing one-dimensional DPCM, the value of block A10 is used as prediction of block A11, and two-dimensional DPCM is performed.
Is performed, for example, (A
10 + A01 + A00) / 3.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、前述の
ように、ブロック毎の平均値(DC成分)を用いて、D
PCMを行う平均値符号化方法では、ブロックサイズが
大きくなると、例えば、図10においてブロックA00と
ブロックA11の距離が大きくなり、予測が十分に行われ
ないという課題があった。
However, as described above, using the average value (DC component) for each block, D
In the mean value encoding method that performs PCM, when the block size increases, for example, the distance between the block A00 and the block A11 in FIG. 10 increases, and there is a problem that the prediction is not sufficiently performed.

【0010】そこで、本発明の課題は、予測に用いられ
るブロックの画素の中から、符号化しようとするブロッ
クに隣接したブロックの縁の画素列を選択し、該画素列
の平均値を利用することにより予測精度を向上し、符号
化効率を向上させることが可能な画像符号化方法及び記
憶媒体を提供することである。
Accordingly, an object of the present invention is to select, from among the pixels of a block used for prediction, a pixel column at the edge of a block adjacent to a block to be encoded, and use the average value of the pixel column. Accordingly, it is an object of the present invention to provide an image coding method and a storage medium capable of improving prediction accuracy and improving coding efficiency.

【0011】[0011]

【課題を解決するための手段】請求項1記載の発明は、
画像を複数の画素によって構成される複数のブロックに
分割し、該ブロック単位で順次符号化処理を行う画像符
号化方法において、前記ブロックを符号化する際に、当
該符号化処理を行うブロックの近傍に位置し、既に符号
化処理されたブロック内の一部の画素の情報を予測値と
して用い、予測符号化を行うことを特徴としている。
According to the first aspect of the present invention,
In an image encoding method in which an image is divided into a plurality of blocks each including a plurality of pixels and an encoding process is sequentially performed in units of the blocks, when encoding the block, a neighborhood of a block in which the encoding process is performed is performed. And predictive coding is performed using information of some pixels in the block that has already been subjected to the coding process as a predicted value.

【0012】請求項1記載の発明の画像符号化方法によ
れば、画像を複数の画素によって構成される複数のブロ
ックに分割し、該ブロック単位で順次符号化処理を行う
画像符号化方法において、前記ブロックを符号化する際
に、当該符号化処理を行うブロックの近傍に位置し、既
に符号化処理されたブロック内の一部の画素の情報を予
測値として用い、予測符号化を行う。
According to the image encoding method of the present invention, an image is divided into a plurality of blocks each composed of a plurality of pixels, and the encoding process is sequentially performed in units of the blocks. When coding the block, predictive coding is performed using information of some pixels in the block which has been located near the block to be subjected to the coding process and has already been subjected to the coding process as a predicted value.

【0013】請求項5記載の発明は、コンピュータが実
行可能なプログラムを格納した記憶媒体であって、画像
を複数の画素によって構成される複数のブロックに分割
するコンピュータが実行可能なプログラムコードと、前
記ブロックを符号化する際に、当該符号化処理を行うブ
ロックの近傍に位置し、既に符号化処理されたブロック
内の一部の画素の情報を予測値として用い、予測符号化
を行うコンピュータが実行可能なプログラムコードと、
を含むプログラムを格納したことを特徴としている。
According to a fifth aspect of the present invention, there is provided a storage medium storing a computer-executable program, wherein the computer-executable program code for dividing an image into a plurality of blocks constituted by a plurality of pixels, When encoding the block, a computer that performs prediction encoding is located near a block to perform the encoding process, and uses information of some pixels in the already encoded block as a prediction value. Executable program code,
Is stored.

【0014】また、請求項2記載の発明のように、請求
項1記載の画像符号化方法において、前記予測値を得る
ための前記ブロック内の一部の画素は、該ブロック内に
おいて、当該符号化処理を行うブロックに隣接する一列
以上の画素列であることとしてもよい。
According to a second aspect of the present invention, in the image encoding method according to the first aspect, some pixels in the block for obtaining the predicted value are included in the code in the block. It may be one or more pixel rows adjacent to the block on which the conversion process is performed.

【0015】請求項1、2、及び5に記載の発明によれ
ば、予測に用いられるブロックの画素の中から、例え
ば、隣接するブロックの縁の一列の画素列等の、符号化
しようとするブロックの近傍に位置する一部の画素を選
択し、該画素の情報を予測値として利用することによ
り、距離的に近い画素の情報を予測値として採用するこ
ととなり、符号化の予測精度を向上し、符号化効率を向
上させることができる。
According to the first, second, and fifth aspects of the present invention, it is attempted to encode, for example, a pixel row at one edge of an adjacent block from pixels of a block used for prediction. By selecting some pixels located in the vicinity of the block and using the information of the pixels as predicted values, information of pixels that are close in distance is adopted as predicted values, thereby improving the prediction accuracy of encoding. Thus, the coding efficiency can be improved.

【0016】請求項3記載の発明は、画像を複数の画素
によって構成される複数のブロックに分割し、該ブロッ
ク単位で順次符号化処理を行う画像符号化方法におい
て、前記ブロックを符号化する際に、当該符号化処理を
行うブロックの近傍に位置し、既に符号化処理された各
ブロックにより構成される画像領域内において各方向へ
の画素値の変化度合いを比較して、この変化度合いの小
さい方向を算出し、前記画像領域内から前記算出した方
向に応じたブロックを選択して、このブロック内の一部
の画素の情報を予測値として用い、予測符号化を行うこ
とを特徴としている。
According to a third aspect of the present invention, there is provided an image encoding method for dividing an image into a plurality of blocks each composed of a plurality of pixels and sequentially performing an encoding process on a block-by-block basis. In the vicinity of the block to be subjected to the encoding process, the degree of change of the pixel value in each direction is compared in the image area constituted by the blocks which have already been subjected to the encoding process. The method is characterized in that a direction is calculated, a block corresponding to the calculated direction is selected from the image area, and prediction coding is performed using information of some pixels in the block as a prediction value.

【0017】請求項3記載の発明の画像符号化方法によ
れば、画像を複数の画素によって構成される複数のブロ
ックに分割し、該ブロック単位で順次符号化処理を行う
画像符号化方法において、前記ブロックを符号化する際
に、当該符号化処理を行うブロックの近傍に位置し、既
に符号化処理された各ブロックにより構成される画像領
域内において各方向への画素値の変化度合いを比較し
て、この変化度合いの小さい方向を算出し、前記画像領
域内から前記算出した方向に応じたブロックを選択し
て、このブロック内の一部の画素の情報を予測値として
用い、予測符号化を行う。
According to a third aspect of the present invention, there is provided an image encoding method for dividing an image into a plurality of blocks each including a plurality of pixels and sequentially performing an encoding process on a block basis. When encoding the block, the degree of change of the pixel value in each direction is compared in an image area which is located in the vicinity of the block to be subjected to the encoding processing and is configured by the blocks which have already been encoded. Then, a direction in which the degree of change is small is calculated, a block corresponding to the calculated direction is selected from within the image area, and information of some pixels in this block is used as a prediction value, and prediction encoding is performed. Do.

【0018】請求項6記載の発明は、コンピュータが実
行可能なプログラムを格納した記憶媒体であって、画像
を複数の画素によって構成される複数のブロックに分割
するコンピュータが実行可能なプログラムコードと、前
記ブロックを符号化する際に、当該符号化処理を行うブ
ロックの近傍に位置し、既に符号化処理された各ブロッ
クにより構成される画像領域内において各方向への画素
値の変化度合いを比較して、この変化度合いの小さい方
向を算出するコンピュータが実行可能なプログラムコー
ドと、前記画像領域内から前記算出した方向に応じたブ
ロックを選択して、このブロック内の一部の画素の情報
を予測値として用い、予測符号化を行うコンピュータが
実行可能なプログラムコードと、を含むプログラムを格
納したことを特徴としている。
According to a sixth aspect of the present invention, there is provided a storage medium storing a computer-executable program, wherein the computer-executable program code for dividing an image into a plurality of blocks constituted by a plurality of pixels, When encoding the block, the degree of change of the pixel value in each direction is compared in an image area which is located in the vicinity of the block to be subjected to the encoding processing and is configured by the blocks which have already been encoded. A program code executable by a computer for calculating a direction in which the degree of change is small, and a block corresponding to the calculated direction is selected from the image area, and information of some pixels in the block is predicted. Computer-executable program code for performing predictive encoding by using as a value, and storing a program including the program code. It is.

【0019】また、請求項4記載の発明のように、請求
項3記載の画像符号化方法において、前記変化度合いの
比較を垂直方向と水平方向について行い、前記予測値を
得るための前記ブロック内の一部の画素は、該ブロック
内において、当該符号化処理を行うブロックに隣接する
一列以上の画素列であることとしてもよい。
According to a fourth aspect of the present invention, in the image encoding method according to the third aspect, the degree of change is compared in a vertical direction and a horizontal direction to obtain the predicted value. May be one or more pixel columns adjacent to the block on which the encoding process is performed in the block.

【0020】請求項3、4、及び6に記載の発明によれ
ば、予測に用いられるブロックの画素の中から、例え
ば、隣接するブロックの縁の一列の画素列等の、符号化
しようとするブロックの近傍に位置し、最も予測誤差の
小さい方向の一部の画素を選択して、該画素の情報を予
測値として利用することにより、距離的に近く、予測誤
差のより小さい画素の情報を予測値として採用すること
となり、符号化の予測精度を向上し、符号化効率を向上
させることができる。
According to the third, fourth, and sixth aspects of the present invention, it is attempted to encode, for example, a pixel row at the edge of an adjacent block from pixels of a block used for prediction. By selecting some pixels located in the vicinity of the block and in the direction with the smallest prediction error and using the information of the pixels as prediction values, information of pixels that are closer in distance and have smaller prediction errors can be obtained. This is adopted as the prediction value, so that the prediction accuracy of the coding can be improved and the coding efficiency can be improved.

【0021】[0021]

【発明の実施の形態】以下、図1〜図9を参照して本発
明に係る画像符号化方法の実施の形態を詳細に説明す
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of an image encoding method according to the present invention will be described below in detail with reference to FIGS.

【0022】(第1の実施の形態)以下、図1〜図7を
参照して、本発明に係る画像符号化方法を適用した画像
符号化装置1について詳細に説明する。
(First Embodiment) Hereinafter, an image encoding apparatus 1 to which an image encoding method according to the present invention is applied will be described in detail with reference to FIGS.

【0023】まず構成を説明する。図1は、本実施の形
態における画像符号化装置1の構成を示すブロック図で
ある。図1において、画像符号化装置1は、制御部2、
入力装置3、RAM4、表示装置5、記憶装置6、及び
記憶媒体7によって構成され、各部はバス8により接続
されている。
First, the configuration will be described. FIG. 1 is a block diagram illustrating a configuration of an image encoding device 1 according to the present embodiment. In FIG. 1, an image encoding device 1 includes a control unit 2,
It comprises an input device 3, a RAM 4, a display device 5, a storage device 6, and a storage medium 7, and each unit is connected by a bus 8.

【0024】制御部2は、記憶装置6に記憶されている
当該画像符号化装置1に対応する各種アプリケーション
プログラムの中から指定されたアプリケーションプログ
ラム、入力装置3から入力される各種指示あるいはデー
タをRAM4内のワークメモリ4aに格納し、この入力
指示及び入力データに応じてRAM4内に格納したアプ
リケーションプログラムに従って各種処理を実行し、そ
の処理結果をRAM4内のワークメモリ4aに格納する
とともに、表示装置5に表示する。そして、ワークメモ
リ4aに格納した処理結果を入力装置3から入力指示さ
れる記憶装置6内の保存先に保存する。
The control unit 2 stores an application program specified from various application programs corresponding to the image encoding device 1 stored in the storage device 6 and various instructions or data input from the input device 3 into the RAM 4. In accordance with the input instruction and the input data, various processes are executed in accordance with the application program stored in the RAM 4, and the processing results are stored in the work memory 4 a in the RAM 4 and the display device 5. To be displayed. Then, the processing result stored in the work memory 4a is stored in a storage destination in the storage device 6 which is instructed to be input from the input device 3.

【0025】また、制御部2は、記憶装置6から、ある
いは、図示外の外部機器から通信回線を介して入力され
る画像データを符号化する処理を実行する。図2は、制
御部2によって実行される符号化処理の機能を示すブロ
ック図である。
The control unit 2 executes a process of encoding image data input from the storage device 6 or from an external device (not shown) via a communication line. FIG. 2 is a block diagram illustrating functions of the encoding process performed by the control unit 2.

【0026】図2において、制御部2は、入力画像を例
えば8×8画素のブロックに分割し、各ブロックを前記
式(1)の計算式に従って2次元DCT変換して、8×
8(64個)の画素データを8×8(64個)のDCT
係数に変換する。そして、制御部2は、64個のDCT
係数を各係数毎の量子化ステップサイズを定めた量子化
テーブルを用いて、係数位置毎に異なるステップサイズ
で線形量子化する。なお、ここでは、入力画像を8×8
画素のブロックに分割する場合を例としたが、ブロック
のサイズは任意である。
In FIG. 2, the control unit 2 divides an input image into blocks of, for example, 8 × 8 pixels, and performs a two-dimensional DCT transform on each block according to the equation (1) to obtain an 8 × 8 pixel.
8 × 64 (64) DCTs of 8 (64) pixel data
Convert to coefficients. Then, the control unit 2 has 64 DCTs.
The coefficients are linearly quantized with a different step size for each coefficient position using a quantization table that defines a quantization step size for each coefficient. Here, the input image is 8 × 8
The case of dividing into blocks of pixels has been described as an example, but the size of the blocks is arbitrary.

【0027】次いで、制御部2は、量子化したDCT係
数をエントロピー符号化して符号データとするととも
に、該量子化したDCT係数をローカルデコーダによっ
て復号化し、復号化された画素値に変換し、ローカルデ
コードブロックを生成する。そして、制御部2は、該ロ
ーカルデコードブロックの中から時間的に後に入力され
る画像データの予測値を計算する上で必要な、ブロック
の縁の画素列の平均値(DCT係数のDC成分)を求
め、RAM4内の予測値メモリ4bに格納する。
Next, the control unit 2 entropy-encodes the quantized DCT coefficient to generate code data, decodes the quantized DCT coefficient by a local decoder, converts the quantized DCT coefficient into a decoded pixel value, Generate a decode block. Then, the control unit 2 calculates an average value (DC component of a DCT coefficient) of a pixel row at an edge of the block, which is necessary for calculating a predicted value of image data input later in time from the local decode block. Is obtained and stored in the predicted value memory 4b in the RAM 4.

【0028】そして、時間的に後に入力される画像デー
タを符号化する際には、前記予測値メモリ4bに格納さ
れた平均値の中から、隣接するブロックの縁の画素列の
平均値を選択して、該平均値が複数存在する場合(左隣
と上隣等)には、更に所定の重みづけをするなどの演算
を行って予測値とし、該予測値と前記時間的に後に入力
される画像データのDCT係数との差分をとり、該差分
データを量子化して、以後同様の処理を繰り返す。
When encoding image data input later in time, the average value of the pixel row at the edge of the adjacent block is selected from the average values stored in the predicted value memory 4b. If there are a plurality of the average values (e.g., the left side and the upper side), a calculation such as weighting is further performed to obtain a predicted value. The difference between the image data and the DCT coefficient is obtained, the difference data is quantized, and the same processing is repeated thereafter.

【0029】入力装置3は、カーソルキー、数字入力キ
ー及び各種機能キー等を備えたキーボードと、ポインテ
ィングデバイスであるマウスと、を備え、キーボードで
押下されたキーの押下信号を制御部2に出力するととも
に、マウスによる操作信号を制御部2に出力する。
The input device 3 includes a keyboard provided with a cursor key, numeric input keys, various function keys, and the like, and a mouse as a pointing device, and outputs a key press signal of the keyboard to the control unit 2. At the same time, an operation signal from the mouse is output to the control unit 2.

【0030】RAM(Random Access Memory)4は、指
定されたアプリケーションプログラム、入力指示、入力
データ及び処理結果等を格納するワークメモリ4a、及
び時間的に後のブロックを予測するための、時間的に前
のブロックの縁の画素列の平均値を格納する予測値メモ
リ4bを有する。
A RAM (Random Access Memory) 4 is a work memory 4a for storing a designated application program, input instructions, input data, processing results, and the like, and a temporal memory for predicting a later block in time. It has a predicted value memory 4b for storing the average value of the pixel row at the edge of the previous block.

【0031】表示装置5は、CRT(Cathode Ray Tub
e)、液晶表示装置等により構成され、制御部2から入
力される表示制御信号にしたがって、表示データを表示
する。
The display device 5 is a CRT (Cathode Ray Tub).
e) It is constituted by a liquid crystal display device or the like, and displays display data according to a display control signal input from the control unit 2.

【0032】記憶装置6は、プログラムやデータ等が予
め記憶されている記憶媒体7を有しており、この記憶媒
体7は磁気的、光学的記録媒体、若しくは半導体メモリ
で構成されている。この記憶媒体7は記憶装置6に固定
的に設けたもの、若しくは着脱自在に装着するものであ
り、この記憶媒体7には当該画像符号化装置1に対応す
る各種アプリケーションプログラム、メニュー表示プロ
グラム、及び各処理プログラムで処理されたデータ等を
記憶する。
The storage device 6 has a storage medium 7 in which programs, data and the like are stored in advance, and this storage medium 7 is constituted by a magnetic or optical recording medium or a semiconductor memory. The storage medium 7 is fixedly provided in the storage device 6 or is detachably mounted. The storage medium 7 includes various application programs, menu display programs, and the like corresponding to the image encoding device 1. The data and the like processed by each processing program are stored.

【0033】また、この記憶媒体7に記憶するプログラ
ム、データ等は、通信回線等を介して接続された他の機
器から受信して記憶する構成にしてもよく、更に、通信
回線等を介して接続された他の機器側に上記記憶媒体7
を備えた記憶装置を設け、この記憶媒体7に記憶されて
いるプログラム、データ等を通信回線を介して使用する
構成にしてもよい。
The program, data, and the like stored in the storage medium 7 may be received and stored from another device connected via a communication line or the like. The storage medium 7 is stored in another connected device.
May be provided so that programs, data, and the like stored in the storage medium 7 are used via a communication line.

【0034】次に動作を説明する。図3は、表示装置5
の表示画面全体のイメージを示しており、分割したブロ
ックを左上から右下へ、図中に示す順序で順次符号化し
ていく様子を示した図である。当然ながら、符号化デー
タを復号化する際にも、同様の順序で左上のブロックか
ら完全に画像が再現されていくものとする。
Next, the operation will be described. FIG. 3 shows the display device 5.
3 is a diagram showing a state in which divided blocks are sequentially encoded from the upper left to the lower right in the order shown in the figure. Of course, when decoding the encoded data, it is assumed that the image is completely reproduced from the upper left block in the same order.

【0035】このような処理の流れの中にあって、図3
のブロック17を処理する際には、ブロック5,16は
すでにローカルデコーダによって完全に再構成されてい
るので、予測値を計算する際に、図4に斜線で示すよう
なブロック5,16の縁の部分の1画素列の平均値を利
用することができる。
In such a processing flow, FIG.
When processing the block 17, the blocks 5, 16 have already been completely reconstructed by the local decoder, so that when calculating the predicted values, the edges of the blocks 5, 16 as shown by hatching in FIG. Can be used.

【0036】このような隣接するブロックの縁の1画素
列の平均値を利用することにより、距離的に近い画素の
情報を予測値に反映することができ、予測精度が向上
し、符号化効率を向上することができる。
By using the average value of one pixel column at the edge of an adjacent block, information of pixels that are close in distance can be reflected in the predicted value, the prediction accuracy is improved, and the coding efficiency is improved. Can be improved.

【0037】以下に、上述した隣接するブロックの縁の
1画素列の平均値を利用した、平均値符号化について図
5、及び図6を参照して説明するが、ここでは、本発明
の原理を簡単に説明するため、図5に示すように、1つ
前(左隣)のブロックの縁の1画素列の平均値のみを利
用する場合について説明する。
Hereinafter, the average value encoding using the average value of one pixel column at the edge of the adjacent block will be described with reference to FIGS. 5 and 6. Here, the principle of the present invention will be described. In order to briefly explain the above, as shown in FIG. 5, a case will be described in which only the average value of one pixel column at the edge of the block immediately before (to the left) is used.

【0038】図6は、本発明の画像符号化方法を適用し
た画像符号化装置1による平均値符号化について説明す
るフローチャートである。なお、図6において、pre
_aveは予測値を表し、DCT(DCi )はブロック
iのDC成分を表し、DCT(ACi )はブロックiの
AC成分を表し、Q(X)はXの量子化データを表して
いる。
FIG. 6 is a flowchart for explaining mean value encoding by the image encoding apparatus 1 to which the image encoding method of the present invention is applied. In FIG. 6, pre
_Ave represents a predicted value, DCT (DCi) represents a DC component of block i, DCT (ACi) represents an AC component of block i, and Q (X) represents quantized data of X.

【0039】まず、制御部2は、pre_ave=P0
(予測値の初期値)、i=1として平均値符号化の初期
化を行った後(ステップS1)、ブロックi(i=1)
に対応するブロック1に対してDCT演算を行う(ステ
ップS2)。
First, the controller 2 sets pre_ave = P0
(Initial value of prediction value), after initialization of average coding is performed with i = 1 (step S1), block i (i = 1)
(Step S2).

【0040】次いで、制御部2は、Δ=DCT(DC1
)−P0 の計算により、DC成分の差分データを求め
(ステップS3)、この差分データΔ、及び他のDCT
係数(複数のDCT(AC1 ))を量子化して符号化す
る(ステップS4)。該符号化されたデータは、記憶装
置6の記憶媒体7に記憶されるとともに制御部2のロー
カルデコーダ機能によって復号化されてローカルデコー
ドブロックを構成する。
Next, the control unit 2 determines that Δ = DCT (DC1
) -P0 is calculated to obtain DC component difference data (step S3), and the difference data .DELTA.
The coefficients (a plurality of DCTs (AC1)) are quantized and coded (step S4). The encoded data is stored in the storage medium 7 of the storage device 6 and is decoded by the local decoder function of the control unit 2 to form a local decode block.

【0041】すなわち、制御部2は、量子化されたそれ
ぞれのデータQ(DCT(AC1 ))とQ(DCT(D
C1 ))(=Q(Δ)+Q(pre_ave))を逆量
子化し、更にDCTの逆変換であるIDCT演算を行っ
て、ローカルデコードブロックを生成する(ステップS
5)。
That is, the control unit 2 transmits the quantized data Q (DCT (AC1)) and Q (DCT (D
C1)) (= Q (Δ) + Q (pre_ave)) is inversely quantized, and an IDCT operation, which is an inverse transform of DCT, is performed to generate a local decode block (step S).
5).

【0042】従来は、該ローカルデコードブロックを構
成する全ての画素値の平均値(DC成分)をpre_a
veとして採用していたが、本実施の形態では、図5の
ブロック16において斜線で示す部分のような、次のブ
ロックと隣接する縁の画素列の平均値(DC成分)をp
re_aveとして採用し、iの値をインクリメントし
て(ステップS6)、該インクリメントされたiの値が
ブロック内の画素数よりも大きければブロック内の処理
を終えたとして当該ブロック内の符号化処理を終了し、
そうでなければ、次のブロックの符号化(ステップS2
〜ステップS6)へと移行する。
Conventionally, the average value (DC component) of all pixel values constituting the local decode block is defined as pre_a
However, in the present embodiment, the average value (DC component) of the pixel row on the edge adjacent to the next block, such as the shaded portion in block 16 in FIG.
The value of i is incremented (step S6), and if the incremented value of i is larger than the number of pixels in the block, the processing in the block is determined to be completed, and the encoding processing in the block is terminated. Finished,
Otherwise, the encoding of the next block (step S2
To step S6).

【0043】この図6のフローチャートの手順を基本と
し、適宜必要な演算を行うことによって図4のように2
つのブロックを参照することも可能である。また、本実
施の形態では、ブロック単位の符号化方法としてDCT
による場合を示したが、例えば、平均値分離型VQ(Ve
ctor Quantization :ベクトル量子化)等のその他の符
号化方法であってもよい。またその際、ブロックサイズ
として8×8,4×4,2×2等が混在する場合も考え
られるが、処理の順序を適切に決定すれば本発明の画像
符号化方法によって処理可能である。例えば、図7のよ
うな様々なブロックサイズが混在する場合にも、同図中
に示した番号順に処理することとすれば処理可能であ
る。
Based on the procedure of the flowchart in FIG. 6, the necessary calculations are performed as needed to
It is also possible to refer to one block. Also, in the present embodiment, DCT is used as a coding method in block units.
, The average value separation type VQ (Ve
Other coding methods such as ctor Quantization (vector quantization) may be used. At this time, 8 × 8, 4 × 4, 2 × 2, etc. may be mixed as the block size. However, if the processing order is appropriately determined, the image can be processed by the image encoding method of the present invention. For example, even when various block sizes are mixed as shown in FIG. 7, the processing can be performed if the processing is performed in the order of the numbers shown in FIG.

【0044】以上説明したように、本発明の画像符号化
方法を適用した第1の実施の形態の画像符号化装置によ
れば、制御部2は、入力画像を例えば8×8画素のブロ
ックに分割し、各ブロックを前記式(1)の計算式にし
たがって2次元DCT変換して、8×8(64個)の画
素データを8×8(64個)のDCT係数に変換する。
そして、制御部2は、64個のDCT係数を各係数毎の
量子化ステップサイズを定めた量子化テーブルを用い
て、係数位置毎に異なるステップサイズで線形量子化す
る。
As described above, according to the image encoding apparatus of the first embodiment to which the image encoding method of the present invention is applied, the control unit 2 converts the input image into a block of 8 × 8 pixels, for example. The block is divided, and each block is subjected to a two-dimensional DCT transform in accordance with the equation (1) to convert 8 × 8 (64) pixel data into 8 × 8 (64) DCT coefficients.
Then, the control unit 2 linearly quantizes the 64 DCT coefficients with a different step size for each coefficient position, using a quantization table that defines a quantization step size for each coefficient.

【0045】次いで、制御部2は、量子化したDCT係
数をエントロピー符号化して符号データとするととも
に、該量子化したDCT係数をローカルデコーダによっ
て復号化し、復号化された画素値に変換し、ローカルデ
コードブロックを生成する。そして、制御部2は、該ロ
ーカルデコードブロックの中から時間的に後に入力され
る画像データの予測値を計算する上で必要な、ブロック
の縁の画素列の平均値(DCT係数のDC成分)を求
め、RAM4内の予測値メモリ4bに格納する。
Next, the control unit 2 entropy-encodes the quantized DCT coefficient to generate code data, decodes the quantized DCT coefficient by a local decoder, converts the quantized DCT coefficient into a decoded pixel value, Generate a decode block. Then, the control unit 2 calculates an average value (DC component of a DCT coefficient) of a pixel row at an edge of the block, which is necessary for calculating a predicted value of image data input later in time from the local decode block. Is obtained and stored in the predicted value memory 4b in the RAM 4.

【0046】そして、時間的に後に入力される画像デー
タを符号化する際には、前記予測値メモリ4bに格納さ
れた平均値の中から、隣接するブロックの縁の画素列の
平均値を選択して、該平均値が複数存在する場合(左隣
と上隣等)には、更に所定の重みづけをするなどの演算
を行って予測値とし、該予測値と前記時間的に後に入力
される画像データのDCT係数との差分をとり、該差分
データを量子化して、以後同様の処理を繰り返す。
When encoding image data input later in time, the average value of the pixel row at the edge of the adjacent block is selected from the average values stored in the predicted value memory 4b. If there are a plurality of the average values (e.g., the left side and the upper side), a calculation such as weighting is further performed to obtain a predicted value. The difference between the image data and the DCT coefficient is obtained, the difference data is quantized, and the same processing is repeated thereafter.

【0047】したがって、予測に用いられるブロックの
画素の中から、符号化しようとするブロックに隣接した
ブロックの縁の画素列を選択し、該画素列の平均値を利
用することにより、距離的に近い画素の平均値を予測値
として採用することとなり、平均値符号化の予測精度を
向上し、符号化効率を向上させることが可能な画像符号
化方法を実現することができる。
Therefore, by selecting a pixel row at the edge of a block adjacent to the block to be coded from among the pixels of the block used for prediction and utilizing the average value of the pixel row, distance Since the average value of close pixels is adopted as the prediction value, it is possible to realize an image coding method capable of improving the prediction accuracy of the average value coding and improving the coding efficiency.

【0048】(第2の実施の形態)前述の第1の実施の
形態では、隣接するブロックの縁の画素列の平均値を利
用して予測値とする場合について説明したが、隣接する
ブロックの中で最も予測値として適したブロックを選択
して該選択されたブロックの縁の画素列の平均値を利用
することもできる。
(Second Embodiment) In the above-described first embodiment, a case has been described in which the prediction value is obtained by using the average value of the pixel row at the edge of the adjacent block. It is also possible to select a block that is most suitable as a prediction value from among them and use the average value of the pixel rows at the edge of the selected block.

【0049】そこで、本第2の実施の形態では、符号化
するブロックの左隣のブロックの縁の画素列の平均値を
予測値として採用するか、上隣のブロックの縁の画素列
を採用するかを所定の計算により判別して予測値を計算
する場合について説明する。
Therefore, in the second embodiment, the average value of the pixel row at the edge of the block on the left of the block to be coded is used as the predicted value, or the pixel row at the edge of the block on the upper right is used. The case where the predicted value is calculated by determining whether to perform the calculation by a predetermined calculation will be described.

【0050】以下に、本発明に係る画像符号化方法を適
用した第2の実施の形態の画像符号化装置について詳細
に説明する。なお、本第2の実施の形態における画像符
号化装置は、前記第1の実施の形態における画像符号化
装置1と基本的に略同様の構成をなすので、構成の図
示、並びに同一構成要素の説明を省略し、第1の実施の
形態と異なる部分のみ、図1、図8、及び図9を参照し
て以下に説明を行うものとする。
Hereinafter, an image encoding apparatus according to a second embodiment to which the image encoding method according to the present invention is applied will be described in detail. The image encoding device according to the second embodiment basically has substantially the same configuration as the image encoding device 1 according to the first embodiment. The description will be omitted, and only the portions different from the first embodiment will be described below with reference to FIGS. 1, 8, and 9.

【0051】制御部2は、時間的に後に入力される画像
データを符号化する際には、前記予測値メモリ4bに格
納された平均値の中から、隣接するブロックの縁の画素
列の平均値を選択して、該平均値が複数存在する場合
(左隣と上隣等)には、更に、すでにローカルデコード
ブロックが生成されているブロックの平均値を利用し
て、例えば横方向と縦方向の誤差を比較してより誤差の
小さい方向のブロックの縁の画素列の平均値を選択する
等して予測値とし、該予測値と前記時間的に後に入力さ
れる画像データのDCT係数との差分をとり、該差分デ
ータを量子化して、以後同様の処理を繰り返す。
When encoding the image data input later in time, the control unit 2 calculates the average value of the pixel row at the edge of the adjacent block from among the average values stored in the predicted value memory 4b. When a plurality of average values are selected (e.g., left and upper neighbors) by selecting a value, the average value of blocks for which local decode blocks have already been generated is further used, for example, in the horizontal and vertical directions. By comparing the errors in the directions and selecting the average value of the pixel row at the edge of the block in the direction in which the error is smaller, a predicted value is obtained. , The difference data is quantized, and the same processing is repeated thereafter.

【0052】次に動作を説明する。本第2の実施の形態
においても、図3は、表示装置5の表示画面全体のイメ
ージを示しており、分割したブロックを左上から右下
へ、図中に示す順序で順次符号化していく様子を示した
図である。当然ながら、符号化データを復号化する際に
も、同様の順序で左上のブロックから完全に画像が再現
されていくものとする。
Next, the operation will be described. Also in the second embodiment, FIG. 3 shows an image of the entire display screen of the display device 5, in which the divided blocks are sequentially encoded from the upper left to the lower right in the order shown in the figure. FIG. Of course, when decoding the encoded data, it is assumed that the image is completely reproduced from the upper left block in the same order.

【0053】このような処理の流れの中にあって、図3
のブロック17を処理する際にブロック4,5,16は
すでにローカルデコーダによって完全に再構成されてい
るので、予測値を計算する際に、図8に斜線で示すよう
なブロック4の下側の縁の画素列Aとブロック16の上
側の縁の画素列Bの誤差と、ブロック4の右側の縁の画
素列Cとブロック5の左側の縁の画素列Dの誤差とを比
較して、誤差の小さい方向(縦・横)に隣接するブロッ
クの縁の画素列の平均値を利用することができる。
In such a processing flow, FIG.
Since blocks 4, 5, and 16 have already been completely reconstructed by the local decoder when processing block 17 of FIG. The error between the pixel row A at the edge and the pixel row B at the upper edge of the block 16 is compared with the error between the pixel row C at the right edge of the block 4 and the pixel row D at the left edge of the block 5 to determine the error. The average value of the pixel row at the edge of the block adjacent in the direction (vertical / horizontal) in which is small can be used.

【0054】例えば、|C−D|≒0かつ|A−B|>
>0ならば、画像は縦方向に大きく変化していると予測
されるため、ブロック17の平均値の予測値としてブロ
ック5の下側の縁の画素列Fを用いることは望ましくな
い。そこで、誤差の小さい方向に隣接するブロック16
の右側の縁の画素列Eの平均値を利用することにより、
距離的に近く、予測誤差のより小さい画素の情報を予測
値に反映することができ、予測精度が更に向上し、符号
化効率を更に向上することができる。
For example, | CD | ≒ 0 and | AB |>
If> 0, the image is predicted to change greatly in the vertical direction, and it is not desirable to use the pixel row F at the lower edge of the block 5 as the predicted value of the average value of the block 17. Therefore, blocks 16 adjacent in the direction in which the error is small
By using the average value of the pixel row E on the right edge of
Information of pixels that are close in distance and have a small prediction error can be reflected in the prediction value, and the prediction accuracy can be further improved, and the coding efficiency can be further improved.

【0055】図9は、本発明の画像符号化方法を適用し
た画像符号化装置による平均値符号化について説明する
フローチャートである。なお、図9は、前記第1の実施
の形態について説明した図6のフローチャートにおける
ステップS1〜ステップS5と同様の処理を行った後、
ステップS6の代わりに行う処理を示している。また、
図9において、pre_aveは予測値を表し、Th1
は誤差が0に等しいと認められる所定の閾値を表し、T
h2は予測値として用いるには誤差が大きすぎると判別
する際の所定の閾値を表している。
FIG. 9 is a flowchart for explaining mean value encoding by the image encoding apparatus to which the image encoding method of the present invention is applied. Note that FIG. 9 shows the same processing as steps S1 to S5 in the flowchart of FIG. 6 described for the first embodiment,
The processing performed in place of step S6 is shown. Also,
In FIG. 9, pre_ave represents a predicted value, and Th1
Represents a predetermined threshold at which the error is considered equal to 0;
h2 represents a predetermined threshold value for determining that the error is too large to be used as a predicted value.

【0056】制御部2は、前記図6に示したステップS
1〜ステップS5の処理を実行後、図8に示す画素列A
の平均値(DCT係数のDC成分)と画素列Bの平均値
の誤差|A−B|、及び画素列Cの平均値と画素列Dの
平均値の誤差|C−D|を計算して、|C−D|<Th
1かつ|A−B|>Th2であるか否かを判別する(ス
テップS11)。そして、ステップS11において判別
する条件を満たしている、すなわち、画像が横方向には
大きな変化をせずに、縦方向に大きな変化をしている場
合には、pre_ave=E(画素列Eの平均値)とし
て(ステップS12)、続いてiの値をインクリメント
し(ステップS18)、図6のフローチャートに示すス
テップS7に移行する。
The control unit 2 performs the processing in step S shown in FIG.
After executing the processing of steps 1 to S5, the pixel row A shown in FIG.
Of the average value of the pixel row B and the average value of the pixel row B, and the error | CD− of the average value of the pixel row C and the average value of the pixel row D are calculated. , | CD | <Th
1 and | AB |> Th2 is determined (step S11). If the condition to be determined in step S11 is satisfied, that is, if the image does not change largely in the horizontal direction but changes greatly in the vertical direction, pre_ave = E (average of the pixel row E) (Step S12), then the value of i is incremented (Step S18), and the routine goes to Step S7 shown in the flowchart of FIG.

【0057】ステップS11において判別する条件を満
たさないときは、制御部2は、|A−B|<Th1かつ
|C−D|>Th2であるか否かを判別する(ステップ
S13)。そして、ステップS13において判別する条
件を満たしている、すなわち、画像が縦方向には大きな
変化をせずに、横方向に大きな変化をしている場合に
は、pre_ave=F(画素列Fの平均値)として
(ステップS14)、続いてiの値をインクリメントし
(ステップS18)、図6のフローチャートに示すステ
ップS7に移行する。
If the condition to be determined is not satisfied in step S11, the control section 2 determines whether or not | AB | <Th1 and | CD |> Th2 (step S13). If the condition to be determined in step S13 is satisfied, that is, if the image does not change greatly in the vertical direction but changes largely in the horizontal direction, pre_ave = F (average of the pixel row F) Value) (step S14), then the value of i is incremented (step S18), and the process proceeds to step S7 shown in the flowchart of FIG.

【0058】更に、ステップS13において判別する条
件を満たさないときは、制御部2は、|A−B|<Th
1かつ|C−D|<Th1であるか否かを判別する(ス
テップS15)。そして、ステップS15において判別
する条件を満たしている、すなわち、画像が縦方向、横
方向のいずれにも大きな変化をしていない場合には、p
re_ave=(E+F)/2(画素列EとFの平均
値)として(ステップS16)、続いてiの値をインク
リメントし(ステップS18)、図6のフローチャート
に示すステップS7に移行する。
Further, when the condition to be determined is not satisfied in step S13, the control unit 2 sets | AB | <Th
1 and | CD | <Th1 is determined (step S15). If the condition to be determined in step S15 is satisfied, that is, if the image has not changed greatly in either the vertical direction or the horizontal direction, p
Assuming that re_ave = (E + F) / 2 (the average value of the pixel rows E and F) (step S16), the value of i is incremented (step S18), and the process proceeds to step S7 shown in the flowchart of FIG.

【0059】更に、ステップS15において判別する条
件を満たさないときは、制御部2は、予め自由に設定さ
れた条件にしたがってpre_aveを計算して(ステ
ップS17)、続いてiの値をインクリメントし(ステ
ップS18)、図6のフローチャートに示すステップS
7に移行する。ステップS17において設定する条件
は、例えば、従来のように隣接するブロック全体の平均
値を用いる方法や、隣接する画素列の誤差の大きさに応
じた重み付けを行って予測値を計算する方法等、様々な
方法が考えられる。
Further, when the condition to be determined is not satisfied in step S15, the control unit 2 calculates pre_ave in accordance with a condition freely set in advance (step S17), and then increments the value of i (step S17). Step S18), Step S shown in the flowchart of FIG.
Move to 7. Conditions set in step S17 include, for example, a method of using an average value of all adjacent blocks as in the related art, a method of calculating a predicted value by performing weighting according to the magnitude of error between adjacent pixel columns, and the like. Various methods are conceivable.

【0060】また、本実施の形態では、前記第1の実施
の形態と同様に、ブロック単位の符号化方法としてDC
Tによる場合を示したが、例えば、平均値分離型VQ
(Vector Quantization :ベクトル量子化)等のその他
の符号化方法であってもよい。またその際、ブロックサ
イズとして8×8,4×4,2×2等が混在する場合も
考えられるが、処理の順序を適切に決定すれば本発明の
画像符号化方法によって処理可能である。
Also, in the present embodiment, as in the first embodiment, a DC
Although the case of T is shown, for example, the average value separation type VQ
Other encoding methods such as (Vector Quantization) may be used. At this time, 8 × 8, 4 × 4, 2 × 2, etc. may be mixed as the block size. However, if the processing order is appropriately determined, the image can be processed by the image encoding method of the present invention.

【0061】以上説明したように、本発明の画像符号化
方法を適用した第2の実施の形態の画像符号化装置によ
れば、制御部2は、時間的に後に入力される画像データ
を符号化する際には、前記予測値メモリ4bに格納され
た平均値の中から、隣接するブロックの縁の画素列の平
均値を選択して、該平均値が複数存在する場合(左隣と
上隣等)には、更に、すでにローカルデコードブロック
が生成されているブロックの平均値を利用して、例えば
横方向と縦方向の誤差を比較してより誤差の小さい方向
のブロックの縁の画素列の平均値を選択する等して予測
値とし、該予測値と前記時間的に後に入力される画像デ
ータのDCT係数との差分をとり、該差分データを量子
化して、以後同様の処理を繰り返す。
As described above, according to the image encoding apparatus of the second embodiment to which the image encoding method of the present invention is applied, the control unit 2 encodes image data input later in time. When performing the conversion, the average value of the pixel row at the edge of the adjacent block is selected from the average values stored in the prediction value memory 4b, and when there are a plurality of the average values (the left and Next, for example, an average value of blocks in which local decode blocks have already been generated is used to compare, for example, errors in the horizontal direction and the vertical direction. Is used as a prediction value, for example, by selecting an average value, a difference between the prediction value and the DCT coefficient of the image data input later in time is obtained, the difference data is quantized, and the same processing is repeated thereafter. .

【0062】したがって、予測に用いられるブロックの
画素の中から、符号化しようとするブロックに隣接した
ブロックの縁の画素列を選択し、更に、複数の画素列の
中から最も予測誤差の小さい画素列を選択して、該画素
列の平均値を利用することにより、距離的に近く、予測
誤差のより小さい画素列の平均値を予測値として採用す
ることとなり、予測精度を向上し、符号化効率を向上さ
せることが可能な画像符号化方法を実現することができ
る。
Therefore, a pixel row at an edge of a block adjacent to a block to be coded is selected from the pixels of the block used for prediction, and a pixel having the smallest prediction error is selected from a plurality of pixel rows. By selecting a column and using the average value of the pixel column, the average value of a pixel column that is close in distance and has a small prediction error is adopted as the prediction value, thereby improving prediction accuracy and improving encoding. An image coding method that can improve efficiency can be realized.

【0063】なお、上記第1、第2の実施の形態では、
符号化しようとするブロックに隣接したブロックの縁の
1画素列の平均値を予測値として採用したが、予測値と
して採用する画素の選択の仕方は任意であり、例えば、
符号化しようとするブロックに隣接したブロックの縁の
複数画素列を採用することとしてもよいし、列単位では
なく、例えば、矩形範囲などの領域を採用することとし
てもよい。
In the first and second embodiments,
Although the average value of one pixel column at the edge of the block adjacent to the block to be encoded is adopted as the prediction value, the method of selecting a pixel to be adopted as the prediction value is arbitrary. For example,
A plurality of pixel columns at the edge of a block adjacent to the block to be encoded may be used, or an area such as a rectangular range may be used instead of a column unit.

【0064】[0064]

【発明の効果】請求項1、2、及び5に記載の発明によ
れば、予測に用いられるブロックの画素の中から、符号
化しようとするブロックの近傍に位置する一部の画素を
選択し、該画素の情報を予測値として利用することによ
り、距離的に近い画素の情報を予測値として採用するこ
ととなり、符号化の予測精度を向上し、符号化効率を向
上させることができる。
According to the first, second, and fifth aspects of the present invention, a partial pixel located near a block to be encoded is selected from the pixels of a block used for prediction. By using the information of the pixel as the prediction value, the information of the pixel that is close in distance is adopted as the prediction value, so that the prediction accuracy of the coding can be improved and the coding efficiency can be improved.

【0065】請求項3、4、及び6に記載の発明によれ
ば、予測に用いられるブロックの画素の中から、符号化
しようとするブロックの近傍に位置し、最も予測誤差の
小さい方向の一部の画素を選択して、該画素の情報を予
測値として利用することにより、距離的に近く、予測誤
差のより小さい画素の情報を予測値として採用すること
となり、符号化の予測精度を向上し、符号化効率を向上
させることができる。
According to the third, fourth, and sixth aspects of the present invention, one of the pixels of the block used for prediction, which is located near the block to be coded and has the smallest prediction error, By selecting the pixel of the part and using the information of the pixel as the prediction value, the information of the pixel that is close in distance and has a smaller prediction error is adopted as the prediction value, and the prediction accuracy of the encoding is improved. Thus, the coding efficiency can be improved.

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

【図1】本発明の一実施の形態の画像符号化装置1の構
成を示すブロック図。
FIG. 1 is a block diagram showing a configuration of an image encoding device 1 according to an embodiment of the present invention.

【図2】図1に示す制御部2によって実行される符号化
処理の機能を示すブロック図。
FIG. 2 is a block diagram showing functions of an encoding process executed by a control unit 2 shown in FIG. 1;

【図3】図1に示す表示装置5の表示画面全体のイメー
ジを示しており、分割したブロックを左上から右下へ、
図中に示す順序で順次符号化していく様子を示した図。
3 shows an image of the entire display screen of the display device 5 shown in FIG. 1, in which divided blocks are moved from upper left to lower right.
FIG. 4 is a diagram illustrating a state in which encoding is sequentially performed in the order shown in FIG.

【図4】図3のブロック17の周辺のブロックを拡大し
た図であり、ブロック5,16の縁の部分の1画素列の
平均値を利用してブロック17を符号化する方法(第1
の実施の形態)を説明するための図。
4 is an enlarged view of a block around a block 17 in FIG. 3, and illustrates a method of encoding the block 17 using an average value of one pixel column at an edge portion of blocks 5 and 16 (first method);
FIG.

【図5】図4と同様の図であるが、1つ前(左隣)のブ
ロックの縁の1画素列の平均値のみを利用する場合につ
いて説明する図。
FIG. 5 is a diagram similar to FIG. 4, but illustrating a case in which only the average value of one pixel column at the edge of the immediately preceding (left adjacent) block is used.

【図6】図5を参照して本発明の第1の実施の形態の画
像符号化方法を適用した画像符号化装置1による平均値
符号化について説明するフローチャート。
FIG. 6 is a flowchart illustrating average value encoding performed by the image encoding apparatus 1 to which the image encoding method according to the first embodiment of the present invention is applied, with reference to FIG.

【図7】ブロックサイズとして8×8,4×4,2×2
等が混在する場合に本発明の画像符号化方法を適用する
際の適切な処理順序を示した図。
FIG. 7 shows a block size of 8 × 8, 4 × 4, 2 × 2.
FIG. 11 is a diagram showing an appropriate processing order when the image encoding method of the present invention is applied in a case where the same is mixed.

【図8】図4と同様の図であり、画素列Aと画素列Bの
誤差と画素列Cと画素列Dの誤差とを比較して、誤差の
小さい方向(縦・横)に隣接するブロックの縁の画素列
の平均値を利用してブロック17を符号化する方法(第
2の実施の形態)を説明するための図。
FIG. 8 is a diagram similar to FIG. 4, comparing an error between a pixel column A and a pixel column B and an error between a pixel column C and a pixel column D, and adjoining in a direction in which the error is small (vertical and horizontal). FIG. 10 is a diagram for explaining a method (second embodiment) of encoding a block 17 using an average value of a pixel row at an edge of the block.

【図9】図8を参照して本発明の第2の実施の形態の画
像符号化方法を適用した画像符号化装置による平均値符
号化について説明するフローチャート。
FIG. 9 is a flowchart illustrating average value encoding performed by an image encoding apparatus to which an image encoding method according to a second embodiment of the present invention is applied, with reference to FIG.

【図10】従来の画像符号化方法を説明するための図。FIG. 10 is a diagram for explaining a conventional image encoding method.

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

1 画像符号化装置 2 制御部 3 入力装置 4 RAM 4a ワークメモリ 4b 予測値メモリ 5 表示装置 6 記憶装置 7 記憶媒体 8 バス REFERENCE SIGNS LIST 1 image encoding device 2 control unit 3 input device 4 RAM 4 a work memory 4 b predicted value memory 5 display device 6 storage device 7 storage medium 8 bus

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】画像を複数の画素によって構成される複数
のブロックに分割し、該ブロック単位で順次符号化処理
を行う画像符号化方法において、 前記ブロックを符号化する際に、当該符号化処理を行う
ブロックの近傍に位置し、既に符号化処理されたブロッ
ク内の一部の画素の情報を予測値として用い、予測符号
化を行うことを特徴とする画像符号化方法。
1. An image encoding method for dividing an image into a plurality of blocks each composed of a plurality of pixels and sequentially performing an encoding process on a block-by-block basis. Image coding method characterized by performing predictive coding by using, as a predicted value, information of some pixels in a block which has been located near a block where coding is performed and has already been coded.
【請求項2】前記予測値を得るための前記ブロック内の
一部の画素は、該ブロック内において、当該符号化処理
を行うブロックに隣接する一列以上の画素列であること
を特徴とする請求項1記載の画像符号化方法。
2. A method according to claim 1, wherein a part of pixels in the block for obtaining the predicted value is one or more rows of pixels adjacent to the block to be subjected to the encoding process in the block. Item 7. The image encoding method according to Item 1.
【請求項3】画像を複数の画素によって構成される複数
のブロックに分割し、該ブロック単位で順次符号化処理
を行う画像符号化方法において、 前記ブロックを符号化する際に、当該符号化処理を行う
ブロックの近傍に位置し、既に符号化処理された各ブロ
ックにより構成される画像領域内において各方向への画
素値の変化度合いを比較して、この変化度合いの小さい
方向を算出し、前記画像領域内から前記算出した方向に
応じたブロックを選択して、このブロック内の一部の画
素の情報を予測値として用い、予測符号化を行うことを
特徴とする画像符号化方法。
3. An image coding method for dividing an image into a plurality of blocks constituted by a plurality of pixels and sequentially performing an encoding process on a block-by-block basis. Is located in the vicinity of the block to be performed, and the degree of change in the pixel value in each direction is compared in the image region formed by each block that has already been subjected to the encoding process, and the direction in which the degree of change is small is calculated. An image coding method, wherein a block corresponding to the calculated direction is selected from within an image area, and prediction coding is performed using information of some pixels in the block as a prediction value.
【請求項4】前記変化度合いの比較を垂直方向と水平方
向について行い、 前記予測値を得るための前記ブロック内の一部の画素
は、該ブロック内において、当該符号化処理を行うブロ
ックに隣接する一列以上の画素列であることを特徴とす
る請求項3記載の画像符号化方法。
4. The comparison of the degree of change is performed in a vertical direction and a horizontal direction, and some pixels in the block for obtaining the predicted value are adjacent to the block to be subjected to the encoding process in the block. 4. The image encoding method according to claim 3, wherein the number of pixels is one or more.
【請求項5】コンピュータが実行可能なプログラムを格
納した記憶媒体であって、 画像を複数の画素によって構成される複数のブロックに
分割するコンピュータが実行可能なプログラムコード
と、 前記ブロックを符号化する際に、当該符号化処理を行う
ブロックの近傍に位置し、既に符号化処理されたブロッ
ク内の一部の画素の情報を予測値として用い、予測符号
化を行うコンピュータが実行可能なプログラムコード
と、 を含むプログラムを格納したことを特徴とする記憶媒
体。
5. A storage medium storing a computer-executable program, comprising: a computer-executable program code for dividing an image into a plurality of blocks each including a plurality of pixels; and encoding the blocks. At this time, a computer-executable program code that is located in the vicinity of the block to be subjected to the encoding process, uses information of some pixels in the already-encoded block as a prediction value, and performs prediction encoding, and A storage medium storing a program including:
【請求項6】コンピュータが実行可能なプログラムを格
納した記憶媒体であって、 画像を複数の画素によって構成される複数のブロックに
分割するコンピュータが実行可能なプログラムコード
と、 前記ブロックを符号化する際に、当該符号化処理を行う
ブロックの近傍に位置し、既に符号化処理された各ブロ
ックにより構成される画像領域内において各方向への画
素値の変化度合いを比較して、この変化度合いの小さい
方向を算出するコンピュータが実行可能なプログラムコ
ードと、 前記画像領域内から前記算出した方向に応じたブロック
を選択して、このブロック内の一部の画素の情報を予測
値として用い、予測符号化を行うコンピュータが実行可
能なプログラムコードと、 を含むプログラムを格納したことを特徴とする記憶媒
体。
6. A storage medium storing a computer-executable program, comprising: a computer-executable program code for dividing an image into a plurality of blocks each including a plurality of pixels; and encoding the blocks. At this time, the degree of change of the pixel value in each direction is compared in the image area which is located near the block to be subjected to the encoding process and is configured by the blocks which have been already encoded, and A computer code that can be executed by a computer that calculates a small direction, a block corresponding to the calculated direction is selected from the image area, and information of some pixels in the block is used as a prediction value, and a prediction code A storage medium storing a program including: a program code executable by a computer performing the conversion; and
JP26213697A 1997-09-26 1997-09-26 Picture encoding method and storage medium Pending JPH11103463A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26213697A JPH11103463A (en) 1997-09-26 1997-09-26 Picture encoding method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26213697A JPH11103463A (en) 1997-09-26 1997-09-26 Picture encoding method and storage medium

Publications (1)

Publication Number Publication Date
JPH11103463A true JPH11103463A (en) 1999-04-13

Family

ID=17371563

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26213697A Pending JPH11103463A (en) 1997-09-26 1997-09-26 Picture encoding method and storage medium

Country Status (1)

Country Link
JP (1) JPH11103463A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002062072A1 (en) * 2001-02-01 2002-08-08 Hantro Products Oy Method for post-processing decoded video image, using diagonal pixels
JP2005348411A (en) * 2004-06-03 2005-12-15 Industry Academic Cooperation Kyunghee Univ Spatial predictive coding method of image, coding instrument, decoding method, and decoding apparatus
JP2013051609A (en) * 2011-08-31 2013-03-14 Axell Corp Ac component prediction method and image processing apparatus
WO2019059107A1 (en) * 2017-09-20 2019-03-28 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Encoding device, decoding device, encoding method and decoding method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002062072A1 (en) * 2001-02-01 2002-08-08 Hantro Products Oy Method for post-processing decoded video image, using diagonal pixels
JP2005348411A (en) * 2004-06-03 2005-12-15 Industry Academic Cooperation Kyunghee Univ Spatial predictive coding method of image, coding instrument, decoding method, and decoding apparatus
US8964836B2 (en) 2004-06-03 2015-02-24 Industry Academic Cooperation Foundation Kyunghee University Method and apparatus for spatial predictive encoding and/or decoding of video data
JP2013051609A (en) * 2011-08-31 2013-03-14 Axell Corp Ac component prediction method and image processing apparatus
WO2019059107A1 (en) * 2017-09-20 2019-03-28 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Encoding device, decoding device, encoding method and decoding method
US11368709B2 (en) 2017-09-20 2022-06-21 Panasonic Intellectual Property Corporation Of America Encoder, decoder, encoding method, and decoding method
US11671617B2 (en) 2017-09-20 2023-06-06 Panasonic Intellectual Property Corporation Of America Encoder, decoder, encoding method, and decoding method

Similar Documents

Publication Publication Date Title
JP4700491B2 (en) Adaptive coefficient scan ordering
JP5065272B2 (en) Prediction of transform coefficients for image compression
JP5642859B2 (en) Method and apparatus for encoding motion information
US6498815B2 (en) Method and arrangement for video coding
EP2343878B1 (en) Pixel prediction value generation procedure automatic generation method, image encoding method, image decoding method, devices using these methods, programs for these methods, and recording medium on which these programs are recorded
EP3684059A1 (en) Decoding method for intra predicting a block by first predicting the pixels at the boundary
CN103931190A (en) Image coding apparatus, image coding method, image decoding apparatus, image decoding method, and storage medium
US6985529B1 (en) Generation and use of masks in MPEG video encoding to indicate non-zero entries in transformed macroblocks
JP2003507804A (en) Method and apparatus for variable complexity decoding of motion compensated block-based compressed digital video
KR100922510B1 (en) Image coding and decoding method, corresponding devices and applications
JP4831547B2 (en) Method for image compression and decompression acceleration
WO2009087783A1 (en) Data generator for coding, method of generating data for coding, decoder and decoding method
US6614942B1 (en) Constant bitrate algorithm for block based image compression
JPH11103463A (en) Picture encoding method and storage medium
JPH07143488A (en) Method and device for decoding image data
JP3432039B2 (en) Image encoding method and apparatus
JP6992825B2 (en) Video coding device, video coding method, video decoding device, video decoding method, and video coding system
JP3775630B2 (en) Video segmentation coding apparatus
JPH11136674A (en) Image coding method and storage medium
JP4451759B2 (en) Lossless video encoding device, lossless video encoding method, lossless video decoding device, lossless video decoding method, lossless video encoding program, lossless video decoding program, and recording medium for those programs
JP4105676B2 (en) How to deblock and transcode media streams
JP7393819B2 (en) Image processing system, encoding device, decoding device, image processing method, image processing program, encoding method, encoding program, decoding method, and decoding program
JP2001128182A (en) Image encoding method and computer-readable recording medium storing image encoding program
US7145952B1 (en) Dynamic selection of field/frame-based MPEG video encoding
Mietens et al. New DCT computation algorithm for video quality scaling