JPH05284369A - Method and device for encoding/restoring image data - Google Patents

Method and device for encoding/restoring image data

Info

Publication number
JPH05284369A
JPH05284369A JP7795892A JP7795892A JPH05284369A JP H05284369 A JPH05284369 A JP H05284369A JP 7795892 A JP7795892 A JP 7795892A JP 7795892 A JP7795892 A JP 7795892A JP H05284369 A JPH05284369 A JP H05284369A
Authority
JP
Japan
Prior art keywords
block
image
information
blocks
encoding
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.)
Withdrawn
Application number
JP7795892A
Other languages
Japanese (ja)
Inventor
Kimitaka Murashita
君孝 村下
Tsuguo Noda
嗣男 野田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP7795892A priority Critical patent/JPH05284369A/en
Publication of JPH05284369A publication Critical patent/JPH05284369A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/87Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving scene cut or scene change detection in combination with video compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/142Detection of scene cut or scene change
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/179Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a scene or a shot

Abstract

PURPOSE:To enhance the efficiency by encoding only an effective block in which there is a variation in the same position of the previous image and the present image and omitting code data in the whole image, and also, to prevent deterioration of the picture quality by deciding it to be a scene change, when the effective block is above a threshold, and encoding the whole image. CONSTITUTION:Image data is written in a buffer 11, and thereafter, sent to a variation deciding part 13 by one block each, compared with a reference image of a reference frame holding part 12, its variation is compared with a threshold of a discriminating threshold holding part 14, and a result of deciding whether it is an effective block or not is inputted to an information holding part 16. Subsequently, only the effective block is encoded by an encoding part 19, and on the other hand, the number of effective blocks of one frame is counted by a counting part 15, and when it exceeds a threshold of a scene change discriminating threshold holding part 17, it is devided to be a scene change frame and all the blocks are changed to the effective blocks and encoded. In such a way, the block which is scarcely varied is not encoded and the efficiency is enhanced, and also, even at the time of scene change, deterioration of the image can be prevented.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】 (目次) 産業上の利用分野 従来の技術(図9乃至図10) 発明が解決しようとする課題 課題を解決するための手段(図1乃至図3) 作用 実施例 (a) 第1の実施例の説明(図4乃至図6) (b) 第2の実施例の説明(図7乃至図8) (c) 他の実施例の説明 発明の効果(Table of Contents) Industrial Application Field of the Prior Art (FIGS. 9 to 10) Problems to be Solved by the Invention Means for Solving the Problems (FIGS. 1 to 3) Working Example (a) First Example Description of Embodiments (FIGS. 4 to 6) (b) Description of Second Embodiments (FIGS. 7 to 8) (c) Description of Other Embodiments

【0002】[0002]

【産業上の利用分野】本発明は、画像データをm×nの
ブロックに分割して、各ブロックを符号化する画面デー
タ符号化・復元方法及びその装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a screen data encoding / restoring method and apparatus for dividing image data into m × n blocks and encoding each block.

【0003】画像データは、コードデータに比し、デー
タ量が膨大であり、特に、中間調画像やカラー画像のデ
ータを蓄積し、或いは高速、高品質で伝送するために
は、画素毎の階調値を高能率に符号化する必要がある。
Image data has an enormous amount of data as compared with code data. In particular, in order to store halftone image data and color image data, or to transmit at high speed and high quality, the level of each pixel is high. It is necessary to encode the key value with high efficiency.

【0004】このような画像データの高能率圧縮方法と
して、例えば適応離散コサイン変換符号化方式がある。
適応離散コサイン変換符号化式(Adaptive Discrete Co
sine Transform) は、画像を8×8画素からなるブロッ
クに分割して、各ブロックの画信号を2次元離散コサイ
ン変換(以下DCTという)により空間周波数分布の係
数に変換し、視覚に適応した閾値で量子化し、求まった
量子化係数を統計的に求めたハフマン・テーブルにより
符号化するものである。
An example of such a highly efficient compression method for image data is an adaptive discrete cosine transform coding method.
Adaptive Discrete Coding
sine Transform) divides an image into blocks of 8 × 8 pixels, transforms the image signal of each block into a coefficient of spatial frequency distribution by two-dimensional discrete cosine transform (hereinafter referred to as DCT), and a threshold adapted to the visual sense. The quantized coefficient obtained by the above is encoded by the Huffman table obtained statistically.

【0005】このような多値画像の符号化方式では、連
続画像を効率良く符号化することが要求されている。
In such a multi-valued image coding method, it is required to efficiently code continuous images.

【0006】[0006]

【従来の技術】図9、図10は従来技術の説明図(その
1)、(その2)である。従来の静止画像の符号化装置
では、例えば静止画像の集合と考えられるアニメーショ
ン画像のように、各画像間に相関が大きく、変化が少な
い場合でも、各画像を単独に符号化していた。
9 and 10 are explanatory views (No. 1) and (No. 2) of the prior art. In a conventional still image coding apparatus, each image is coded independently even if there is a large correlation between the images and a small change, such as an animation image considered as a set of still images.

【0007】例えば、図9に示す適応離散コサイン変化
符号化方式では、図9(A)のように、ブロックバッフ
ァ10に1ブロック(8×8画素)のデータを保持し、
2次元DCT変換部22で各ブロックの画信号を2次元
離散コサイン変換により空間周波数分布の係数に変換
し、量子化部23で視覚に適応した閾値で量子化し、量
子化係数を可変長符号化部24で統計的に求めたハフマ
ン・テーブルにより可変長符号化して出力する。
For example, in the adaptive discrete cosine change coding system shown in FIG. 9, as shown in FIG. 9A, the block buffer 10 holds one block (8 × 8 pixels) of data,
The two-dimensional DCT transform unit 22 transforms the image signal of each block into a coefficient of the spatial frequency distribution by the two-dimensional discrete cosine transform, and the quantizing unit 23 quantizes it with a threshold adapted to the visual sense, and the quantized coefficient is variable-length coded. The variable length code is output by the Huffman table statistically obtained by the unit 24 and output.

【0008】同様に、図9(B)の復元側では、かかる
符号化データを可変長復号部36で固定長に復号して、
逆量子化部37で逆量子化して、DCT係数に復元し、
逆DCT変換部38でブロック画像に変換し、ブロック
内画素書き込み制御部39により、画像メモリ34のブ
ロックアドレス発生部40のブロックアドレス位置に復
元画像を書き込む。
Similarly, on the decompression side of FIG. 9B, the encoded data is decoded into a fixed length by the variable length decoding unit 36,
Inverse quantization is performed by the inverse quantization unit 37 to restore the DCT coefficient,
The inverse DCT conversion unit 38 converts the image into a block image, and the in-block pixel writing control unit 39 writes the restored image in the block address position of the block address generation unit 40 of the image memory 34.

【0009】又、テレビ会議装置等の連続シーンを対象
とする動画像の符号化技術でも、各画像を単独に符号化
していた。即ち、図10(A)に示すように、前画像を
保持する画像メモリ28のブロック画像と現画像のブロ
ック画像との差分を差分画像生成部29で算出し、ブロ
ックバッファ10で保持して、2次元DCT変換部22
で各ブロックの画信号を2次元離散コサイン変換により
空間周波数分布の係数に変換し、量子化部23で視覚に
適応した閾値で量子化し、量子化係数を可変長符号化部
24で統計的に求めたハフマン・テーブルにより可変長
符号して出力する。
Further, in the moving picture coding technique for a continuous scene such as a video conference apparatus, each picture is coded independently. That is, as shown in FIG. 10 (A), the difference between the block image of the image memory 28 holding the previous image and the block image of the current image is calculated by the difference image generation unit 29 and held by the block buffer 10. Two-dimensional DCT transform unit 22
Then, the image signal of each block is converted into a coefficient of the spatial frequency distribution by the two-dimensional discrete cosine transform, and is quantized by the quantizer 23 with a threshold adapted to the visual sense, and the quantized coefficient is statistically calculated by the variable-length encoder 24. A variable-length code is output according to the obtained Huffman table and output.

【0010】また、量子化係数は、逆量子化部25で逆
量子化して、DCT係数に逆変換した後、逆DCT変換
部26で逆DCT変換して、差分ブロック画像に変換
し、画像メモリ28の前画像と加算部27で加算して、
画像メモリ28を更新する。
Further, the quantized coefficient is inversely quantized by an inverse quantizer 25 and inversely transformed into a DCT coefficient, and then inverse DCT transformed by an inverse DCT transformer 26 to be converted into a difference block image, which is then stored in an image memory. The previous image of 28 and the addition unit 27 add,
The image memory 28 is updated.

【0011】同様に、図10(B)の復元側では、かか
る符号化データを可変長復号部36で固定長に復号し
て、逆量子化部37で逆量子化して、DCT係数に復元
し、逆DCT変換部38で差分ブロック画像に変換し、
ブロック内画素書き込み制御部39により、画像メモリ
34のブロックアドレス発生部40のブロックアドレス
位置に差分画像と前画像を加算部41で加算した画像を
書き込む。
Similarly, on the decompression side of FIG. 10B, the encoded data is decoded into a fixed length by the variable length decoding unit 36, dequantized by the dequantization unit 37, and decompressed into DCT coefficients. , The inverse DCT conversion unit 38 converts the difference block image,
The in-block pixel writing control unit 39 writes the image obtained by adding the difference image and the previous image in the adding unit 41 to the block address position of the block address generating unit 40 of the image memory 34.

【0012】[0012]

【発明が解決しようとする課題】しかしながら、従来技
術では、次の問題があった 従来の静止画像の符号化技術では、小規模の回路で装
置を構成できるものの、画像間で変化が少ない画像に対
しても、各画像毎に独立して符号化するため、アニメー
ションやカメラを固定したテレビ電話の画像のように、
連続する画像間で非常に変化が少ない場合でも、圧縮率
を高めることができない。
However, in the conventional technique, the conventional still image coding technique has the following problems, but although the device can be configured with a small-scale circuit, an image with little change between images can be obtained. On the other hand, since each image is encoded independently, like an image of a videophone with a fixed animation or camera,
Even if there is very little change between consecutive images, the compression rate cannot be increased.

【0013】動画像の符号化技術を用いた場合には、
差分符号化のため、圧縮率は高められるが、装置が大規
模化する。従って、本発明は、画像間で変化の少ない連
続画像を小規模な回路で効率良く符号化・復元するとと
もに、シーンチェンジ時の画像の劣化を防止することが
できる画像データ符号化・復元方法及びその装置を提供
することを目的とする。
When a moving picture coding technique is used,
Due to the differential encoding, the compression rate is increased, but the device becomes large-scale. Therefore, the present invention efficiently encodes / restores a continuous image having a small change between images with a small-scale circuit, and an image data encoding / restoring method capable of preventing image deterioration at the time of a scene change. It is an object to provide the device.

【0014】[0014]

【課題を解決するための手段】図1、図2、図3は本発
明の原理図(その1)、(その2)、(その3)であ
る。
FIG. 1, FIG. 2 and FIG. 3 are principle diagrams (No. 1), (No. 2) and (No. 3) of the present invention.

【0015】本発明の請求項1は、図1に示すように、
画像データを、m×nの画素をブロックとして符号化す
る画像データ符号化方法において、現画像と前画像の同
一位置のブロックの同一位置の画素の変化量を検出し、
該ブロックの内容の変化の有無を判定するステップと、
1画面内の該判定により変化有りとされた有効ブロック
数を計数するステップと、該有効ブロック数が所定の閾
値以上であるかを判定するステップと、該判定結果であ
るブロック情報に従い、該現画像のブロックを符号化す
るステップと、該ブロック情報を復元情報として出力す
るステップとを有し、該有効ブロック数が所定の閾値以
上である時に、現画像の全てのブロックを有効ブロック
として符号化し、該出力するブロック情報を、該有効ブ
ロックに変更することを特徴とする。
According to claim 1 of the present invention, as shown in FIG.
In an image data coding method of coding image data in m × n pixels as blocks, a change amount of pixels at the same position in a block at the same position in a current image and a previous image is detected,
Determining whether or not the contents of the block have changed,
The step of counting the number of valid blocks determined to have changed in the one screen, the step of determining whether the number of valid blocks is a predetermined threshold value or more, and the block information which is the result of the determination Encoding a block of an image and outputting the block information as restoration information, and encoding all blocks of the current image as effective blocks when the number of effective blocks is equal to or more than a predetermined threshold value. The output block information is changed to the valid block.

【0016】本発明の請求項2は、図2に示すように、
画像データを、m×nの画素をブロックとして符号化す
る画像データ符号化方法において、現画像と前画像の同
一位置のブロックの同一位置の画素の変化量を検出し、
該ブロックの内容の変化の有無を判定するステップと、
1画面内の該判定により変化有りとされた有効ブロック
数を計数するステップと、該有効ブロック数が所定の閾
値以上であるかを判定するステップと、該判定結果であ
るブロック情報に従い、該現画像のブロックを符号化す
るステップと、該ブロック情報を復元情報として出力す
るステップとを有し、該有効ブロック数が所定の閾値以
上である時に、現画像の全てのブロックを有効ブロック
として符号化し、該出力する復元情報としてシーンチェ
ンジ情報を出力することを特徴とする。
According to the second aspect of the present invention, as shown in FIG.
In an image data coding method of coding image data in m × n pixels as blocks, a change amount of pixels at the same position in a block at the same position in a current image and a previous image is detected,
Determining whether or not the contents of the block have changed,
The step of counting the number of valid blocks determined to have changed in the one screen, the step of determining whether the number of valid blocks is a predetermined threshold value or more, and the block information which is the result of the determination Encoding a block of an image and outputting the block information as restoration information, and encoding all blocks of the current image as effective blocks when the number of effective blocks is equal to or more than a predetermined threshold value. The scene change information is output as the output restoration information.

【0017】本発明の請求項3は、請求項1又は2にお
いて、前記符号化ステップは、前記ブロック単位に直交
変換するものであることを特徴とする。本発明の請求項
4は、画像データをm×nの画素をブロックとして、符
号化する画像データ符号化装置において、前画像を保持
する前画像保持手段12と、現画像を保持する現画像保
持手段11と、前画像と現画像の同一位置のブロック内
の画素値の変化を検出して、該ブロックの内容の変化の
有無を判定するブロック変化判定手段13と、該判定結
果をブロック情報として保持するブロック情報保持手段
16と、該判定結果から変化有りとされた有効ブロック
の数を計数する計数手段15と、該現画像の全てのブロ
ックの変化の有無を判定した時に、該計数手段15の内
容と閾値とを比較する比較手段18と、該ブロック情報
に従い、画像をブロック単位に符号化する符号化手段1
9とを有し、該有効ブロック数が閾値以上の場合に、該
ブロック情報保持手段16のブロック情報の全てを有効
ブロックに変更することを特徴とする。
A third aspect of the present invention is characterized in that, in the first or second aspect, the encoding step is an orthogonal transformation in the block unit. According to a fourth aspect of the present invention, in an image data encoding device that encodes image data using m × n pixels as blocks, a previous image holding means 12 for holding a previous image and a current image holding for holding a current image. Means 11, block change determining means 13 for detecting a change in pixel value in a block at the same position of the previous image and the current image and determining whether or not there is a change in the content of the block, and the determination result as block information. The block information holding means 16 for holding, the counting means 15 for counting the number of effective blocks which have been changed from the determination result, and the counting means 15 when it is determined whether or not all blocks of the current image have changed Comparing means 18 for comparing the contents of the above with a threshold value, and encoding means 1 for encoding an image in block units according to the block information.
9, and all of the block information of the block information holding means 16 is changed to a valid block when the number of valid blocks is equal to or more than a threshold value.

【0018】本発明の請求項5は、画像データをm×n
の画素をブロックとして、符号化する画像データ符号化
装置において、前画像を保持する前画像保持手段12
と、現画像を保持する現画像保持手段11と、前画像と
現画像の同一位置のブロック内の画素値の変化を検出し
て、該ブロックの内容の変化の有無を判定するブロック
変化判定手段13と、該判定結果をブロック情報として
保持するブロック情報保持手段16と、該判定結果から
変化有りとされた有効ブロックの数を計数する計数手段
15と、該現画像の全てのブロックの変化の有無を判定
した時に、該計数手段15の内容と閾値とを比較する比
較手段18と、該ブロック情報に従い、画像をブロック
単位に符号化する符号化手段19とを有し、該有効ブロ
ック数が閾値以上の場合に、シーンチェンジ情報を出力
して、該現画像の全てのブロックを符号化することを特
徴とする。
According to a fifth aspect of the present invention, image data is m × n.
In the image data encoding device that encodes each pixel as a block, the previous image holding unit 12 that holds the previous image
A current image holding means 11 for holding the current image, and a block change determination means for detecting a change in pixel value in a block at the same position of the previous image and the current image to determine whether or not there is a change in the contents of the block. 13, a block information holding unit 16 that holds the determination result as block information, a counting unit 15 that counts the number of valid blocks that have been changed from the determination result, and a change of all blocks of the current image. When the presence / absence is judged, it has a comparing means 18 for comparing the content of the counting means 15 with a threshold value, and an encoding means 19 for encoding an image in block units according to the block information. When it is equal to or more than the threshold value, scene change information is output and all the blocks of the current image are encoded.

【0019】本発明の請求項6は、請求項4又は5にお
いて、前記符号化手段19は、前記ブロック単位に直交
変換するものであることを特徴とする。本発明の請求項
7は、請求項1の符号化データを復元する画像データ復
元方法において、入力データを符号化データと復元情報
とに分離するステップと、該符号化データから画像ブロ
ックを復元するステップと、該復元情報により書き込み
アドレスを算出するステップと、該算出アドレスに従い
該復元画像ブロックを画像メモリに書き込むステップと
を有することを特徴とする。
A sixth aspect of the present invention is characterized in that, in the fourth or fifth aspect, the encoding means 19 performs an orthogonal transform in the block unit. According to a seventh aspect of the present invention, in the image data restoration method for restoring the encoded data according to the first aspect, a step of separating input data into encoded data and restoration information, and restoring an image block from the encoded data. It is characterized by including a step, a step of calculating a write address based on the restoration information, and a step of writing the restored image block in an image memory according to the calculated address.

【0020】本発明の請求項8は、図3に示すように、
請求項2の符号化データを復元する画像データ復元方法
において、符号化データから画像ブロックを復元するス
テップと、復元情報がシーンチェンジ情報かブロック情
報かを判別するステップと、該シーンチェンジ情報又は
該ブロック情報により書き込みアドレスを算出するステ
ップと、該算出アドレスに従い該復元画像ブロックを画
像メモリに書き込むステップとを有することを特徴とす
る。
According to claim 8 of the present invention, as shown in FIG.
An image data restoration method for restoring encoded data according to claim 2, wherein an image block is restored from the encoded data, a step of determining whether the restoration information is scene change information or block information, the scene change information or the scene change information It is characterized by including a step of calculating a write address based on the block information and a step of writing the restored image block in the image memory according to the calculated address.

【0021】本発明の請求項9は、請求項4の符号化装
置により符号化された符号化データを復元する画像デー
タ復元装置において、符号化データから画像ブロックを
復元する復元手段32と、復元情報により書き込みアド
レスを算出する復元制御手段33と、該算出アドレスに
従って該復元画像ブロックを格納する画像メモリ34と
を有することを特徴とする。
According to a ninth aspect of the present invention, in the image data restoration device for restoring the encoded data encoded by the encoding device according to the fourth aspect, the restoration means 32 for restoring the image block from the encoded data, and the restoration. It is characterized by having a restoration control means 33 for calculating a write address based on information and an image memory 34 for storing the restored image block according to the calculated address.

【0022】本発明の請求項10は、請求項5の符号化
装置により符号化された符号化データを復元する画像デ
ータ復元装置において、符号化データから画像ブロック
を復元する復元手段32と、復元情報がシーンチェンジ
情報かブロック情報かを判別する復元情報判別手段35
と、該判別されたシーンチェンジ情報又はブロック情報
により書き込みアドレスを算出する復元制御手段33
と、該算出アドレスに従って該復元画像ブロックを格納
する画像メモリ34とを有することを特徴とする。
According to a tenth aspect of the present invention, in an image data restoration device for restoring the encoded data encoded by the encoding device according to the fifth aspect, a restoration means 32 for restoring an image block from the encoded data, and restoration. Restoration information discriminating means 35 for discriminating whether the information is scene change information or block information.
And the restoration control means 33 for calculating the write address based on the determined scene change information or block information.
And an image memory 34 for storing the restored image block according to the calculated address.

【0023】[0023]

【作用】本発明の請求項1及び4では、前画像と現画像
の同一位置のブロックの内、前画像から変化のある画像
ブロックのみを選択して符号化するので、変化のない背
景部分の多い画像では、画像全体で必要な符号データを
大幅に省略できる。
According to the first and fourth aspects of the present invention, among the blocks at the same position of the previous image and the current image, only the image block having a change from the previous image is selected and coded. For many images, the code data required for the entire image can be largely omitted.

【0024】又、各ブロックの変化の有無をブロック情
報として出力するので、このようにしても、変化のあっ
たブロックを復元側で識別できる。更に、有効ブロック
数が閾値以上になると、シーンチェンジと判定し、有効
ブロックのみを符号化する代わりに、現画像全体を符号
化するので、このようにしても、画質の劣化を防止でき
る。
Further, since the presence / absence of a change in each block is output as block information, even in this way, the block having a change can be identified on the restoration side. Further, when the number of effective blocks is equal to or more than the threshold value, it is determined that a scene change has occurred, and the entire current image is encoded instead of encoding only the effective blocks. Therefore, even in this case, deterioration of image quality can be prevented.

【0025】本発明の請求項2及び5では、前画像と現
画像の同一位置のブロックの内、前画像から変化のある
画像ブロックのみを選択して符号化するので、変化のな
い背景部分の多い画像では、画像全体で必要な符号デー
タを大幅に省略できる。
According to the second and fifth aspects of the present invention, among the blocks at the same position of the previous image and the current image, only the image block having a change from the previous image is selected and coded. For many images, the code data required for the entire image can be largely omitted.

【0026】又、各ブロックの変化の有無を復元情報と
して出力するので、このようにしても、変化のあったブ
ロックを復元側で識別できる。更に、有効ブロック数が
閾値以上になると、カラー画像等では、カラー画像とし
て画質の劣化が見られるから、シーンチェンジと判定
し、有効ブロックのみを符号化する代わりに、現画像全
体を符号化するので、このようにしても、画質の劣化を
防止でき、しかも復元情報をシーンチェンジ情報で送る
ので、復元情報量を削減できる。
Further, since the presence / absence of change in each block is output as the restoration information, the block having the change can be identified on the restoration side even in this way. Furthermore, when the number of effective blocks is equal to or more than the threshold value, a color image or the like is deteriorated in image quality as a color image. Therefore, it is determined as a scene change and the entire current image is encoded instead of encoding only the effective block. Therefore, even in this case, it is possible to prevent the deterioration of the image quality, and further, since the restoration information is sent as the scene change information, the restoration information amount can be reduced.

【0027】本発明の請求項3及び6では、符号化を直
交変換によるものとしたので、回路規模を小さくして、
圧縮率を高めることができる。本発明の請求項7及び9
では、復元画像をブロック情報から得たアドレス位置に
書き込むので、有効ブロックのみを符号化して出力して
も、変化のあるブロック画像のみを更新でき、シーンチ
ェンジ時には、全画像を更新できる。
In claims 3 and 6 of the present invention, since the encoding is performed by orthogonal transformation, the circuit scale is reduced,
The compression rate can be increased. Claims 7 and 9 of the present invention
In this case, since the restored image is written at the address position obtained from the block information, even if only the effective block is encoded and output, only the changed block image can be updated, and at the time of the scene change, all images can be updated.

【0028】本発明の請求項8及び10では、復元情報
がシーンチェンジ情報かブロック情報か判別して、書き
込み制御するので、有効ブロックのみを符号化して出力
しても、変化のあるブロック画像のみを更新でき、シー
ンチェンジ時には、全画像を更新できる。
In the eighth and tenth aspects of the present invention, since the restoration information is discriminated as the scene change information or the block information and the writing control is performed, even if only the effective block is encoded and outputted, only the changed block image is outputted. Can be updated and all images can be updated when the scene changes.

【0029】[0029]

【実施例】(a) 第1の実施例の説明 図4は本発明の第1の実施例符号化部構成図、図5は本
発明の第1の実施例要部構成図、図6は本発明の第1の
実施例復元部構成図である図4中、11は画像バッファ
であり、入力された画像データを保持するもの、12は
基準フレーム保持部であり、1画面分の前画像を保持す
るもの、13はブロック変化判定部であり、画像バッフ
ァ11からの画像ブロックと基準フレーム保持部12の
同一ブロック位置のブロック画像を、画素単位に比較
し、画素値の変化量を算出し、ブロック内の画素値の変
化量と判別閾値保持部14の判別閾値とを比較して、各
ブロックの内容変化を判定するものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS (a) Description of the First Embodiment FIG. 4 is a block diagram of the encoding unit of the first embodiment of the present invention, FIG. 5 is a configuration diagram of the essential parts of the first embodiment of the present invention, and FIG. In FIG. 4, which is a configuration diagram of a restoration unit according to the first embodiment of the present invention, 11 is an image buffer, which holds input image data, 12 is a reference frame holding unit, which is a previous image for one screen. Is a block change determination unit, which compares the image block from the image buffer 11 and the block image at the same block position of the reference frame holding unit 12 on a pixel-by-pixel basis to calculate the amount of change in pixel value. The change amount of the pixel value in the block is compared with the determination threshold value of the determination threshold value holding unit 14 to determine the content change of each block.

【0030】15は有効ブロック計数部であり、ブロッ
ク変化判定部12の変化あり(有効ブロック)判定に応
じて、1インクリメントして、1画面の有効ブロック数
を計数するもの、16はブロック情報保持部であり、ブ
ロック変化判定部13の判定情報(変化有りで「1」、
変化無しで「0」)を1画面分保持しておくもの、17
はシーンチェンジ判別閾値保持部であり、シーンチェン
ジ判別の閾値(例えば、全ブロック数の70%の値)を
保持しておくものである。
Reference numeral 15 is an effective block counting unit, which increments by 1 and counts the number of effective blocks in one screen in response to the change (effective block) judgment of the block change judgment unit 12, and 16 holds block information. Determination information of the block change determination unit 13 (“1” when there is a change,
One that holds "0") for one screen without change, 17
Is a scene change determination threshold value holding unit that holds a threshold value for scene change determination (for example, a value of 70% of the total number of blocks).

【0031】18は比較部であり、1画面のブロック変
化の有無を判定した後、有効ブロック計数部15とシー
ンチェンジ判別閾値保持部17の判別閾値とを比較し
て、シーンチェンジを判別して、ブロック情報保持部1
6のブロック情報を有効ブロックに書き換えるもの、1
9は符号化部であり、図5(A)に示すように、ブロッ
ク情報保持部16のブロック情報に従い、画像バッファ
11の各ブロックを符号化するものである。
Reference numeral 18 denotes a comparison unit, which determines whether or not there is a block change in one screen, and then compares the effective block counting unit 15 with the determination threshold of the scene change determination threshold value holding unit 17 to determine a scene change. , Block information holding unit 1
Rewriting the block information of 6 into a valid block, 1
An encoding unit 9 encodes each block of the image buffer 11 according to the block information of the block information holding unit 16 as shown in FIG.

【0032】この符号化部19の構成を、図5(A)で
説明すると、22はDCT変換部であり、送られてきた
ブロック画像を2次元離散コサイン変換して、空間周波
数分布の係数に変換するもの、23は量子化部であり、
量子化閾値保持部23aの視覚に適応した閾値で空間周
波数分布の係数を量子化して、量子化係数を得るもの、
24は可変長符号化部であり、ハフマン符号表保持部2
4aの統計的に求めたがハフマン・テーブルにより、量
子化係数を可変長符号化するものである。
The structure of the encoding unit 19 will be described with reference to FIG. 5A. Reference numeral 22 is a DCT transform unit, which performs a two-dimensional discrete cosine transform on the transmitted block image to obtain a spatial frequency distribution coefficient. What is transformed, 23 is a quantizer,
Quantization coefficient is obtained by quantizing the coefficient of the spatial frequency distribution with a threshold adapted to the visual sense of the quantization threshold holding unit 23a,
Reference numeral 24 denotes a variable length coding unit, which is a Huffman code table holding unit 2
4a, the quantized coefficient is variable length coded by the Huffman table.

【0033】図4、図5の構成の符号化動作を説明す
る。入力された画像データは、画像バッファ11に書き
込まれ、画像バッファ11は、原画像を1ブロックづづ
ブロック変化判定部13に送る。
The encoding operation of the configurations of FIGS. 4 and 5 will be described. The input image data is written in the image buffer 11, and the image buffer 11 sends the original image to the block change determination unit 13 block by block.

【0034】ブロック変化判定部13では、当該ブロッ
クの画素と、基準フレーム保持部12に保持されている
基準画像の該ブロックの同一位置に有る画素と比較し、
その変化量を1ブロック分累積して、判別閾値保持部1
4の閾値と比較して、当該ブロックが有効ブロックであ
るか否かを判定し、判定結果をブロック情報保持部16
に出力する。
The block change determination unit 13 compares the pixel of the block with the pixel at the same position of the block of the reference image held in the reference frame holding unit 12,
The amount of change is accumulated for one block, and the determination threshold holding unit 1
4 is compared with the threshold value of 4 to determine whether or not the block is a valid block, and the determination result is the block information holding unit 16
Output to.

【0035】ブロック情報保持部16では、有効ブロッ
クなら「1」を、無効ブロックなら「0」をブロック情
報として、1画面全ブロックについて保持する。一方、
判定結果が、有効ブロックであったなら、有効ブロック
計数部15は、カウンタを1インクリメントして、1フ
レーム(1画面)内の有効ブロックの数を計数する。
The block information holding unit 16 holds "1" for a valid block and "0" for an invalid block as block information for all blocks on one screen. on the other hand,
If the determination result is a valid block, the valid block counting unit 15 increments the counter by 1 and counts the number of valid blocks in one frame (one screen).

【0036】1フレームの全てについて、判定が終了し
た時に、比較部18は、有効ブロック計数部15の計数
結果と、シーンチェンジ判別閾値保持部17の閾値と比
較し、計数結果が閾値以上であった場合には、シーンチ
ェンジフレームであるとして、ブロック情報保持部16
の全ブロック(例えば、PAL方式では、720×57
6画素のため、8×8のブロックは、90×72=64
80となる)のブロック情報を有効ブロック(「1」)
に変更する。
When the determination is completed for all of the one frame, the comparison unit 18 compares the counting result of the valid block counting unit 15 with the threshold value of the scene change determination threshold value holding unit 17, and the counting result is equal to or more than the threshold value. In this case, the block information holding unit 16 determines that it is a scene change frame.
All blocks (for example, 720 × 57 in the PAL system).
Since there are 6 pixels, an 8 × 8 block has 90 × 72 = 64
Block information of 80) is a valid block (“1”)
Change to.

【0037】勿論、計数結果が閾値未満であれば、ブロ
ック情報保持部16のブロック情報の変更は行わない。
ブロック情報保持部16のブロック情報は、符号化部1
9に読み出され、符号化部19は、画像バッファ11の
有効ブロックについてのみ符号化を行う。
Of course, if the counting result is less than the threshold value, the block information in the block information holding unit 16 is not changed.
The block information of the block information holding unit 16 is the same as the encoding unit 1.
9, and the encoding unit 19 encodes only the effective block of the image buffer 11.

【0038】そして、図示しないマルチプレクサによ
り、ブロック情報保持部16の6480ビットのブロッ
ク情報の後に、符号化部19の有効ブロックの符号化デ
ータを出力する。
Then, a multiplexer (not shown) outputs the encoded data of the effective block of the encoding unit 19 after the block information of the block information holding unit 16 of 6480 bits.

【0039】尚、ブロック情報保持部16のブロック情
報により、有効ブロックについて基準フレーム書き換え
信号が発生して、基準フレーム保持部12は、有効ブロ
ックの更新を行う。
The reference frame rewriting signal for the effective block is generated by the block information of the block information holding unit 16, and the reference frame holding unit 12 updates the effective block.

【0040】このように、前画像に対し、変化のある有
効ブロックを判定して、有効ブロックのみ符号化するの
で、符号化量を大幅に削減でき、このように有効ブロッ
クのみを出力しても、ブロック情報を出力するので、復
元側で有効ブロックのブロック位置を認識でき、画像の
復元が可能となる。
As described above, since the effective block having a change is determined with respect to the previous image and only the effective block is encoded, the encoding amount can be greatly reduced, and even if only the effective block is output in this way. Since the block information is output, the block position of the effective block can be recognized on the restoration side, and the image can be restored.

【0041】又、シーンチェンジ時には、全ブロックを
有効ブロックとするので、全ブロックが符号化伝送さ
れ、画像の劣化を防止できる。この場合に、カラー画像
のように複数の成分によって構成され、成分単位に処理
が行われる場合には、シーンチェンジ時に1つの構成成
分については、シーンチェンジ前とシーンチェンジ後の
変化が少なかったため、当該成分についてはシーンチェ
ンジと見なされない時に、個々の成分においては、画質
の劣化が見られなくても、カラー画像として見た時、1
成分の誤差以上に色差が激しくなり、画質の劣化が顕著
に現れる。
Further, at the time of a scene change, all blocks are set as effective blocks, so that all blocks are coded and transmitted, so that it is possible to prevent image deterioration. In this case, when the image is composed of a plurality of components like a color image and is processed on a component-by-component basis, one component at the time of scene change has little change before and after the scene change. When the component is not considered to be a scene change, and when it is viewed as a color image even if the image quality of each component is not deteriorated, 1
The color difference becomes more severe than the component error, and the deterioration of the image quality becomes remarkable.

【0042】このため、1成分がシーンチェンジと見な
された時は、全成分をシーンチェンジとすることで、画
質の劣化を防ぐことができる。次に、復元側について、
図5、図6により説明する。
Therefore, when one component is regarded as a scene change, all the components are changed to a scene change, so that the deterioration of image quality can be prevented. Next, regarding the restoration side,
This will be described with reference to FIGS.

【0043】図6は本発明の第1の実施例復元部構成図
である。図6中、30はデマルチプレクサであり、入力
データをブロック情報と符号化データとに分離するも
の、31はブロック情報保持部であり、送られたブロッ
ク情報を保持しておくもの、32は復元部であり、符号
化データを復号して、復元画像に復元するものであり、
図5(B)により説明するものである。
FIG. 6 is a block diagram of the restoration unit according to the first embodiment of the present invention. In FIG. 6, 30 is a demultiplexer, which separates input data into block information and encoded data, 31 is a block information holding unit, which holds sent block information, and 32 is restoration Part, which decodes encoded data and restores a restored image,
This will be described with reference to FIG.

【0044】33は復元制御部であり、ブロック情報か
ら連続する無効ブロック数を検出し、無効ブロックのア
ドレスをスキップし、有効ブロックのブロックアドレス
を画像メモリ34に送るもの、34は画像メモリであ
り、1画面メモリであり、復元制御部33の有効ブロッ
クアドレスの位置に、復号部32の1ブロック画像が書
き込まれるものである。
A restoration control unit 33 detects the number of consecutive invalid blocks from the block information, skips the address of the invalid block, and sends the block address of the valid block to the image memory 34, and 34 is an image memory. This is a one-screen memory, and one block image of the decoding unit 32 is written at the position of the effective block address of the restoration control unit 33.

【0045】復号部32を、図5(B)により説明する
と、36は可変長復号部であり、ハフマン復号表保持部
36aの統計的に求めたハフマン・テーブルにより、可
変長符号化を固定長の量子化係数に変換するもの、37
は逆量子化部であり、逆量子化閾値保持部37aの閾値
で量子化係数を線形逆量子化(乗算)して、空間周波数
分布の係数に変換するもの、38は逆DCT変換部であ
り、空間周波数分布の係数を逆2次元離散コサイン変換
して、画像ブロック(画像空間のデータ)に復元するも
のである。
The decoding unit 32 will be described with reference to FIG. 5B. Reference numeral 36 is a variable length decoding unit, and variable length coding is performed with a fixed length by the Huffman table statistically obtained by the Huffman decoding table holding unit 36a. To convert to quantized coefficients of
Is an inverse quantization unit, which linearly inversely quantizes (multiplies) the quantized coefficient with the threshold of the inverse quantization threshold holding unit 37a to convert into a coefficient of spatial frequency distribution, and 38 is an inverse DCT conversion unit , The spatial frequency distribution coefficient is subjected to inverse two-dimensional discrete cosine transform to restore it to an image block (image space data).

【0046】次に、図5、図6の復元動作を説明する
と、入力データは、デマルチプレクサ30により、符号
データとブロック情報に分離され、符号データは復号部
32に送られ、ブロック情報は、ブロック情報保持部3
1に保持される。
5 and 6, the demultiplexer 30 separates the input data into code data and block information, the code data is sent to the decoding section 32, and the block information is Block information holding unit 3
Held at 1.

【0047】符号データの可変長符号データは、可変長
復号部36で符号化側で用いた符号テーブルと逆の構成
の復号テーブル36aから固定長の量子化係数に復元さ
れ、得られる逆量子化係数は、逆量子化部37で逆量子
化閾値37aを用いて、線形逆量子化され、逆DCT変
換部38に出力し、逆DCT変換部38では、逆量子化
係数を2次元逆DCT変換し、画像空間のデータ(復元
画像)に変換する。
The variable-length code data of the code data is restored to the fixed-length quantized coefficient from the decoding table 36a having a configuration opposite to that of the code table used on the encoding side in the variable-length decoding unit 36, and the obtained inverse quantization is obtained. The coefficient is linearly inversely quantized by the inverse quantization unit 37 using the inverse quantization threshold 37a and output to the inverse DCT transform unit 38. The inverse DCT transform unit 38 transforms the inverse quantized coefficient into a two-dimensional inverse DCT transform. Then, it is converted into image space data (restored image).

【0048】これらの処理は、1ブロック単位に行われ
る。一方、ブロック情報は、復元制御部33で有効ブロ
ックの存在と無効ブロック数を計数し、復号部32の復
元画像をフレームメモリ34に書き込むアドレスを算出
し、フレームメモリ34に送り、フレームメモリ34で
は、アドレス情報に従って復元画像を書き込む。
These processes are performed in block units. On the other hand, with respect to the block information, the restoration control unit 33 counts the existence of valid blocks and the number of invalid blocks, calculates an address for writing the restored image of the decoding unit 32 in the frame memory 34, and sends the address to the frame memory 34. , Write the restored image according to the address information.

【0049】このようにして、有効ブロックの符号デー
タを送っても、ブロック情報により、有効ブロックのブ
ロックアドレスを算出でき、画面の対応位置のブロック
画像を更新できる。
In this way, even when the code data of the effective block is sent, the block address of the effective block can be calculated from the block information, and the block image at the corresponding position on the screen can be updated.

【0050】(b) 第2の実施例の説明 図7は本発明の第2の実施例符号化部構成図、図8は本
発明の第2の実施例復元部構成図である。
(B) Description of the Second Embodiment FIG. 7 is a block diagram of the encoding unit of the second embodiment of the present invention, and FIG. 8 is a block diagram of the reconstruction unit of the second embodiment of the present invention.

【0051】図7中、図4、図5で示したものと同一の
ものは、同一の記号で示してあり、20はシーンチェン
ジ情報保持部であり、例えば、8ビットのシーンチェン
ジ情報を保持しておくもの、21はマルチプレクサであ
り、比較部18の出力により、シーンチェンジ情報又は
ブロック情報保持部16のブロック情報を選択出力する
ものである。
In FIG. 7, the same components as those shown in FIGS. 4 and 5 are designated by the same symbols, and 20 is a scene change information holding unit, which holds, for example, 8-bit scene change information. Reference numeral 21 denotes a multiplexer, which selectively outputs the scene change information or the block information of the block information holding unit 16 by the output of the comparison unit 18.

【0052】この構成の符号化動作を説明すると、入力
された画像データは、画像バッファ11に書き込まれ、
画像バッファ11は、原画像を1ブロックづつブロック
変化判定部13に送る。
To describe the encoding operation of this configuration, the input image data is written in the image buffer 11,
The image buffer 11 sends the original image to the block change determination unit 13 block by block.

【0053】ブロック変化判定部13では、当該ブロッ
クの画素と、基準フレーム保持部12に保持されている
基準画像の該ブロックの同一位置にある画素と比較し、
その変化量を1ブロック分累積して、判別閾値保持部1
4の閾値と比較して、当該ブロックが有効ブロックであ
るか否かを判定し、判定結果をブロック情報保持部16
に出力する。
The block change determination unit 13 compares the pixel of the block with the pixel at the same position of the block of the reference image held in the reference frame holding unit 12,
The amount of change is accumulated for one block, and the determination threshold holding unit 1
4 is compared with the threshold value of 4 to determine whether or not the block is a valid block, and the determination result is the block information holding unit 16
Output to.

【0054】ブロック情報保持部16では、有効ブロッ
クなら「1」を、無効ブロックなら「0」をブロック情
報として、1画面全ブロックについて保持する。一方、
判定結果が、有効ブロックであったなら、有効ブロック
計数部15は、カウンタを1インクリメントして、1フ
レーム(1画面)内の有効ブロックの数を計数する。
The block information holding unit 16 holds "1" for a valid block and "0" for an invalid block as block information for all blocks on one screen. on the other hand,
If the determination result is a valid block, the valid block counting unit 15 increments the counter by 1 and counts the number of valid blocks in one frame (one screen).

【0055】1フレームの全てについて、判定が終了し
た時に、比較部18は、有効ブロック計数部15の計数
結果と、シーンチェンジ判別閾値保持部17の閾値と比
較し、計数結果が閾値以上であった場合には、シーンチ
ェンジフレームであるとして、マルチプレクサ21をシ
ーンチェンジ情報保持部20に切り換えて、シーンチェ
ンジ情報を復元情報として出力し、計数結果が閾値未満
であれば、ブロック情報保持部16に切り換えて、ブロ
ック情報保持部16のブロック情報を復元情報として出
力する。
When the determination is completed for all of the one frame, the comparison unit 18 compares the counting result of the valid block counting unit 15 with the threshold value of the scene change determination threshold value holding unit 17, and the counting result is equal to or more than the threshold value. If it is a scene change frame, the multiplexer 21 is switched to the scene change information holding unit 20 and the scene change information is output as restoration information. If the count result is less than the threshold value, the block information holding unit 16 is output. The block information is switched and the block information of the block information holding unit 16 is output as the restoration information.

【0056】この復元情報により、符号化部19は符号
化を行い、シーンチェンジ情報に対しては、画像バッフ
ァ11の全ブロックについて符号化を行い出力し、ブロ
ック情報に対しては、画像バッファ11の有効ブロック
についてのみ符号化を行う。
With this restoration information, the coding unit 19 performs coding, scene change information is coded for all blocks in the image buffer 11, and is output, and block information is image buffer 11 Only the effective blocks of are encoded.

【0057】そして、図示しないマルチプレクサによ
り、マルチプレクサ21の復元情報の後に、符号化部1
9の有効ブロックの符号化データを出力する。尚、マル
チプレクサ21の復元情報により、有効ブロックについ
て基準フレーム書き換え信号が発生して、基準フレーム
保持部12は、有効ブロックの更新を行う。
Then, by the multiplexer (not shown), after the restoration information of the multiplexer 21, the encoding unit 1
The encoded data of 9 effective blocks is output. It should be noted that the reference frame rewriting signal is generated for the effective block according to the restoration information of the multiplexer 21, and the reference frame holding unit 12 updates the effective block.

【0058】このように、前画像に対し、変化のある有
効ブロックを判定して、有効ブロックのみ符号化するの
で、符号化量を大幅に削減でき、このように有効ブロッ
クのみを出力しても、復元情報を出力するので、復元側
で有効ブロックのブロック位置を認識でき、画像の復元
が可能となる。
As described above, since the effective block having a change is determined with respect to the previous image and only the effective block is encoded, the encoding amount can be greatly reduced, and even if only the effective block is output in this way. Since the restoration information is output, the block position of the effective block can be recognized on the restoration side, and the image can be restored.

【0059】又、シーンチェンジ時には、全ブロックを
有効ブロックとするので、全ブロックが符号化伝送さ
れ、画像の劣化を防止できる。更に、シーンチェンジ時
は、8ビットのシーンチェンジ情報を復元情報として出
力するので、復元情報が6480ビットから8ビットに
削減できる。
Further, at the time of a scene change, all blocks are treated as effective blocks, so that all blocks are coded and transmitted, and it is possible to prevent image deterioration. Further, when a scene is changed, 8-bit scene change information is output as restoration information, so that the restoration information can be reduced from 6480 bits to 8 bits.

【0060】次に、図8により、復元部について説明す
る。図8中、図6で示したものと同一のものは、同一の
記号で示しており、35は復元情報判別部であり、復元
情報からシーンチェンジ情報とブロック情報を判別し、
シーンチェンジ情報は復元制御部33に送り、ブロック
情報はブロック情報保持部31に送るものである。
Next, the restoration unit will be described with reference to FIG. In FIG. 8, the same components as those shown in FIG. 6 are designated by the same symbols, and 35 is a restoration information discriminating section, which discriminates scene change information and block information from the restoration information,
The scene change information is sent to the restoration control unit 33, and the block information is sent to the block information holding unit 31.

【0061】次に、図8の復元動作を説明すると、入力
データは、デマルチプレクサ30により、符号データと
復元情報に分離され、符号データは復号部32に送ら
れ、復元情報は、復元情報判別部35に送られ、シーン
チェンジ情報かブロック情報か判別され、シーンチェン
ジ情報は復元制御部33に出力され、ブロック情報はブ
ロック情報保持部31に保持される。
Next, the restoration operation of FIG. 8 will be described. The input data is separated by the demultiplexer 30 into code data and restoration information, the code data is sent to the decoding section 32, and the restoration information is judged as restoration information. The scene change information is sent to the unit 35, it is discriminated whether it is scene change information or block information, the scene change information is output to the restoration control unit 33, and the block information is held in the block information holding unit 31.

【0062】符号データの可変長符号データは、可変長
復号部36で符号化側で用いた符号テーブルと逆の構成
の復号テーブル36aから固定長の量子化係数に復元さ
れ、得られた逆量子化係数は、逆量子化部37で逆量子
化閾値37aを用いて、線形逆量子化され、逆DCT変
換部38に出力し、逆DCT変換部38では、逆量子化
係数を2次元逆DCT変換し、画像空間のデータ(復元
画像)に変換する。
The variable-length code data of the code data is restored to a fixed-length quantized coefficient from the decoding table 36a having a configuration opposite to that of the code table used on the encoding side by the variable-length decoding unit 36, and the obtained inverse quantum is obtained. The dequantization coefficient is linearly dequantized by the dequantization unit 37 using the dequantization threshold value 37a and output to the inverse DCT conversion unit 38. The inverse DCT conversion unit 38 outputs the dequantized coefficient to the two-dimensional inverse DCT. It is converted and converted into image space data (restored image).

【0063】これらの処理は、1ブロック単位に行われ
る。一方、ブロック情報は、復元制御部33で有効ブロ
ックの存在と無効ブロック数を計数し、復号部32の復
元画像をフレームメモリ34に書き込むアドレスを算出
し、フレームメモリ34に送り、フレームメモリ34で
は、アドレス情報に従って復元画像を書き込む。
These processes are performed in block units. On the other hand, with respect to the block information, the restoration control unit 33 counts the existence of valid blocks and the number of invalid blocks, calculates an address for writing the restored image of the decoding unit 32 in the frame memory 34, and sends the address to the frame memory 34. , Write the restored image according to the address information.

【0064】又、シーンチェンジ情報により、復元制御
部33は、全ブロックのアドレスを順次発生し、フレー
ムメモリ34に送り、フレームメモリ34では、アドレ
ス情報に従い、復号部32からの全ブロックの復元画像
を書き込む。
Further, according to the scene change information, the restoration control section 33 sequentially generates the addresses of all blocks and sends them to the frame memory 34. In the frame memory 34, according to the address information, the restored image of all blocks from the decoding section 32. Write.

【0065】このようにして、有効ブロックの符号デー
タを送っても、復元情報により、有効ブロックのブロッ
クアドレスを算出でき、画面の対応位置のブロック画像
を更新できる。
In this way, even if the code data of the effective block is sent, the block address of the effective block can be calculated from the restoration information, and the block image at the corresponding position on the screen can be updated.

【0066】(c) 他の実施例の説明 上述の実施例の他に、本発明は、次のような変形が可能
である。 上述の実施例では、有効ブロック数により、アドレス
カウンタを空送りしているが、アドレスカウンタの値に
無効ブロック数を加算しても良い。
(C) Description of Other Embodiments In addition to the above embodiments, the present invention can be modified as follows. In the above-described embodiment, the address counter is idly fed depending on the number of valid blocks, but the number of invalid blocks may be added to the value of the address counter.

【0067】符号化部、復元部を、ブロックで示した
が、これをマイクロプロセッサのプログラムによって、
実行しても良い。 ブロック情報保持部のブロック情報を2値符号化する
と、より情報量を削減でき、有効ブロックについてはブ
ロック情報を伝送せずに、有効ブロックの符号データの
みを伝送して、それに続く無効ブロック数を有効ブロッ
クの符号データに続いて伝送しても、情報量を削減でき
る。
The coding unit and the restoration unit are shown as blocks.
You can run it. When the block information in the block information holding unit is binary-coded, the amount of information can be further reduced. Only the coded data of the valid block is transmitted without transmitting the block information for the valid block, and the number of invalid blocks following it is calculated. The amount of information can be reduced even when transmitted following the coded data of the effective block.

【0068】以上、本発明を実施例により説明したが、
本発明の主旨の範囲内で種々の変形が可能であり、これ
らを本発明の範囲から排除するものではない。
The present invention has been described above with reference to the embodiments.
Various modifications are possible within the scope of the invention, and these modifications are not excluded from the scope of the invention.

【0069】[0069]

【発明の効果】以上説明したように、本発明によれば、
次の効果を奏する。 前画像と現画像との間で変化したと判断したブロック
のみを選択して、符号化出力するため、画像間で変化の
少ない場合の圧縮率を大幅に向上でき、カメラが固定さ
れたテレビ電話の画像やアニメーション画像等の平均的
な圧縮率を高めることができる。
As described above, according to the present invention,
It has the following effects. Only blocks that have been determined to have changed between the previous image and the current image are selected and encoded and output, so the compression rate when there is little change between images can be greatly improved, and the videophone with a fixed camera It is possible to increase the average compression rate of images such as images and animation images.

【0070】このようにしても、復元情報を出力する
ため、有効ブロックの位置を認識でき、変化した画面を
得ることができる。 1フレームの有効ブロック数を計数し、計数値が指定
値以上なら、シーンチェンジと判定し、全ブロックを符
号化出力するので、画像の劣化を防止できる。
Even in this case, since the restoration information is output, the position of the effective block can be recognized and the changed screen can be obtained. The number of effective blocks in one frame is counted, and if the count value is equal to or larger than a specified value, it is determined that a scene change has occurred, and all blocks are coded and output, so that image deterioration can be prevented.

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

【図1】本発明の原理図(その1)である。FIG. 1 is a principle diagram (1) of the present invention.

【図2】本発明の原理図(その2)である。FIG. 2 is a principle diagram (2) of the present invention.

【図3】本発明の原理図(その3)である。FIG. 3 is a principle diagram (3) of the present invention.

【図4】本発明の第1の実施例符号化部構成図である。FIG. 4 is a configuration diagram of an encoding unit according to the first embodiment of this invention.

【図5】本発明の第1の実施例要部構成図である。FIG. 5 is a configuration diagram of a main part of a first embodiment of the present invention.

【図6】本発明の第1の実施例復元部構成図である。FIG. 6 is a configuration diagram of a restoration unit according to the first embodiment of this invention.

【図7】本発明の第2の実施例符号化部構成図である。FIG. 7 is a block diagram of an encoding unit according to a second embodiment of the present invention.

【図8】本発明の第2の実施例復元部構成図である。FIG. 8 is a configuration diagram of a restoring unit according to a second embodiment of the present invention.

【図9】従来技術の説明図(その1)である。FIG. 9 is an explanatory diagram (1) of a conventional technique.

【図10】従来技術の説明図(その2)である。FIG. 10 is an explanatory view (No. 2) of the conventional technique.

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

11 画像バッファ 12 基準フレーム保持部 13 ブロック変化判定部 15 有効ブロック計数部 16、31 ブロック情報保持部 19 符号化部 20 シーンチェンジ情報保持部 21 マルチプレクサ 30 デマルチプレクサ 32 復号部 33 復元制御部 34 画像メモリ 35 復元情報判別部 11 Image Buffer 12 Reference Frame Holding Unit 13 Block Change Determination Unit 15 Effective Block Counting Unit 16, 31 Block Information Holding Unit 19 Encoding Unit 20 Scene Change Information Holding Unit 21 Multiplexer 30 Demultiplexer 32 Decoding Unit 33 Restoration Control Unit 34 Image Memory 35 Restoration Information Discrimination Section

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 画像データを、m×nの画素をブロック
として符号化する画像データ符号化方法において、 現画像と前画像の同一位置のブロックの同一位置の画素
の変化量を検出し、該ブロックの内容の変化の有無を判
定するステップと、1画面内の該判定により変化有りと
された有効ブロック数を計数するステップと、該有効ブ
ロック数が所定の閾値以上であるかを判定するステップ
と、該判定結果であるブロック情報に従い、該現画像の
ブロックを符号化するステップと、該ブロック情報を復
元情報として出力するステップとを有し、 該有効ブロック数が所定の閾値以上である時に、現画像
の全てのブロックを有効ブロックとして符号化し、該出
力するブロック情報を、該有効ブロックに変更すること
を特徴とする画像データ符号化方法。
1. Image data is blocked in m × n pixels.
In the image data encoding method, the pixel at the same position in the block at the same position as the current image and the previous image
The amount of change in the block is detected to determine whether the contents of the block have changed.
Setting step and there is a change according to the judgment in one screen
Counting the number of valid blocks generated,
Step to determine whether the number of locks is greater than or equal to a predetermined threshold
According to the block information which is the determination result,
Encoding the block and recovering the block information
Outputting as original information, and when the number of effective blocks is equal to or more than a predetermined threshold value, the current image
All blocks of the
Change the block information that applies to the valid block
An image data encoding method characterized by:
【請求項2】 画像データを、m×nの画素をブロック
として符号化する画像データ符号化方法において、 現画像と前画像の同一位置のブロックの同一位置の画素
の変化量を検出し、該ブロックの内容の変化の有無を判
定するステップと、1画面内の該判定により変化有りと
された有効ブロック数を計数するステップと、該有効ブ
ロック数が所定の閾値以上であるかを判定するステップ
と、該判定結果であるブロック情報に従い、該現画像の
ブロックを符号化するステップと、該ブロック情報を復
元情報として出力するステップとを有し、 該有効ブロック数が所定の閾値以上である時に、現画像
の全てのブロックを有効ブロックとして符号化し、該出
力する復元情報としてシーンチェンジ情報を出力するこ
とを特徴とする画像データ符号化方法。
2. An image data encoding method for encoding image data in which m × n pixels are used as a block, and a change amount of a pixel at the same position of a block at the same position of a current image and a previous image is detected, A step of determining whether or not there is a change in the contents of the block, a step of counting the number of effective blocks which have been changed by the determination in one screen, and a step of determining whether or not the effective block number is a predetermined threshold value or more And a step of encoding a block of the current image according to the block information which is the determination result, and a step of outputting the block information as restoration information, when the effective block number is equal to or more than a predetermined threshold value. An image data encoding method characterized in that all blocks of the current image are encoded as effective blocks and scene change information is output as the restoration information to be output. .
【請求項3】 前記符号化ステップは、前記ブロック単
位に直交変換するものであることを特徴とする請求項1
又は2の画像データ符号化方法。
3. The encoding step is an orthogonal transformation in the block unit.
Or the image data encoding method of 2.
【請求項4】 画像データをm×nの画素をブロックと
して、符号化する画像データ符号化方法において、 前画像を保持する前画像保持手段(12)と、現画像を
保持する現画像保持手段(11)と、前画像と現画像の
同一位置のブロック内の画素値の変化を検出して、該ブ
ロックの内容の変化の有無を判定するブロック変化判定
手段(13)と、該判定結果をブロック情報として保持
するブロック情報保持手段(16)と、該判定結果から
変化有りとされた有効ブロックの数を計数する計数手段
(15)と、該現画像の全てのブロックの変化の有無を
判定した時に、該計数手段(15)の内容と閾値とを比
較する比較手段(18)と、該ブロック情報に従い、画
像をブロック単位に符号化する符号化手段(19)とを
有し、該有効ブロック数が閾値以上の場合に、該ブロッ
ク情報保持手段(16)のブロック情報の全てを有効ブ
ロックに変更することを特徴とする画素データ符号化装
置。
4. An image data encoding method for encoding image data by using m × n pixels as blocks, and a previous image holding means (12) for holding a previous image and a current image holding means for holding a current image. (11), a block change determination means (13) for determining the presence or absence of a change in the content of the block by detecting a change in the pixel value in the block at the same position of the previous image and the current image, and the determination result. Block information holding means (16) for holding as block information, counting means (15) for counting the number of effective blocks that have been changed from the determination result, and determination of whether or not all blocks of the current image have changed When this is done, it has a comparing means (18) for comparing the content of the counting means (15) with a threshold value, and an encoding means (19) for encoding an image in block units according to the block information, Number of blocks The pixel data encoding device is characterized in that all of the block information of the block information holding means (16) are changed to valid blocks when is greater than or equal to a threshold value.
【請求項5】 画像データをm×nの画素をブロックと
して、符号化する画像データ符号化装置において、 前画像を保持する前画像保持手段(12)と、現画像を
保持する現画像保持手段(11)と、前画像と現画像の
同一位置のブロック内の画素値の変化を検出して、該ブ
ロックの内容の変化の有無を判定するブロック変化判定
手段(13)と、該判定結果をブロック情報として保持
するブロック情報保持手段(16)と、該判定結果から
変化有りとされた有効ブロックの数を計数する計数手段
(15)と、該現画像の全てのブロックの変化の有無を
判定した時に、該計数手段(15)の内容と閾値とを比
較する比較手段(18)と、該ブロック情報に従い、画
像をブロック単位に符号化する符号化手段(19)とを
有し、該有効ブロック数が閾値以上の場合に、シーンチ
ェンジ情報を出力して、該現画像の全てのブロックを符
号化することを特徴とする画像データ符号化装置。
5. An image data encoding device for encoding image data by using m × n pixels as blocks, and a previous image holding means (12) for holding a previous image and a current image holding means for holding a current image. (11), a block change determination means (13) for determining the presence or absence of a change in the content of the block by detecting a change in the pixel value in the block at the same position of the previous image and the current image, and the determination result. Block information holding means (16) for holding as block information, counting means (15) for counting the number of effective blocks that have been changed from the determination result, and determination of whether or not all blocks of the current image have changed When this is done, it has a comparing means (18) for comparing the content of the counting means (15) with a threshold value, and an encoding means (19) for encoding an image in block units according to the block information, Number of blocks Is greater than or equal to a threshold value, scene change information is output to encode all blocks of the current image.
【請求項6】 前記符号化手段(19)は、前記ブロッ
ク単位に直交変換するものであることを特徴とする請求
項4又は5の画像データ符号化装置。
6. The image data coding apparatus according to claim 4, wherein the coding means (19) performs an orthogonal transform on the block unit basis.
【請求項7】 請求項1の符号化データを復元する画像
データ復元方法において、 入力データを符号化データと復元情報とに分離するステ
ップと、該符号化データから画像ブロックを復元するス
テップと、該復元情報により書き込みアドレスを算出す
るステップと、該算出アドレスに従い該復元画像ブロッ
クを画像メモリに書き込むステップとを有することを特
徴とする画像データ復元方法。
7. The image data restoration method according to claim 1, wherein the input data is separated into encoded data and restoration information, and an image block is restored from the encoded data. An image data restoration method comprising: a step of calculating a write address based on the restoration information; and a step of writing the restored image block in an image memory according to the calculated address.
【請求項8】 請求項2の符号化データを復元する画像
データ復元方法において、 符号化データから画像ブロックを復元するステップと、
復元情報がシーンチェンジ情報かブロック情報かを判別
するステップと、該シーンチェンジ情報又は該ブロック
情報により書き込みアドレスを算出するステップと、該
算出アドレスに従い該復元画像ブロックを画像メモリに
書き込むステップとを有することを特徴とする画像デー
タ復元方法。
8. The image data restoration method according to claim 2, wherein the image data is restored from the encoded data.
The method includes a step of determining whether the restoration information is scene change information or block information, a step of calculating a write address based on the scene change information or the block information, and a step of writing the restored image block in the image memory according to the calculated address. An image data restoration method characterized by the above.
【請求項9】 請求項4の符号化装置により符号化され
た符号化データを復元する画像データ復元装置におい
て、 符号化データから画像ブロックを復元する復元手段(3
2)と、復元情報により書き込みアドレスを算出する復
元制御手段(33)と、該算出アドレスに従って該復元
画像ブロックを格納する画像メモリ(34)とを有する
ことを特徴とする画像データ復元装置。
9. An image data restoring device for restoring the encoded data encoded by the encoding device according to claim 4, wherein the restoring means (3) restores an image block from the encoded data.
An image data restoration device comprising: 2), restoration control means (33) for calculating a write address based on restoration information, and an image memory (34) for storing the restored image block according to the calculated address.
【請求項10】 請求項5の符号化装置により符号化さ
れた符号化データを復元する画像データ復元装置におい
て、 符号化データから画像ブロックを復元する復元手段(3
2)と、復元情報がシーンチェンジ情報かブロック情報
かを判別する復元情報判別手段(35)と、該判別され
たシーンチェンジ情報又はブロック情報により書き込み
アドレスを算出する復元制御手段(33)と、該算出ア
ドレスに従って該復元画像ブロックを格納する画像メモ
リ(34)とを有することを特徴とする画像データ復元
装置。
10. An image data restoring device for restoring the encoded data encoded by the encoding device according to claim 5, wherein the restoring means (3) restores an image block from the encoded data.
2), restoration information discriminating means (35) for discriminating whether the restoration information is scene change information or block information, and restoration control means (33) for calculating a write address based on the discriminated scene change information or block information. And an image memory (34) for storing the restored image block according to the calculated address.
JP7795892A 1992-03-31 1992-03-31 Method and device for encoding/restoring image data Withdrawn JPH05284369A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7795892A JPH05284369A (en) 1992-03-31 1992-03-31 Method and device for encoding/restoring image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7795892A JPH05284369A (en) 1992-03-31 1992-03-31 Method and device for encoding/restoring image data

Publications (1)

Publication Number Publication Date
JPH05284369A true JPH05284369A (en) 1993-10-29

Family

ID=13648500

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7795892A Withdrawn JPH05284369A (en) 1992-03-31 1992-03-31 Method and device for encoding/restoring image data

Country Status (1)

Country Link
JP (1) JPH05284369A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5815217A (en) * 1992-03-06 1998-09-29 Mitsubishi Denki Kabushiki Kaisha Scene-change detector for a moving image composed of a plurality of frames
US5911008A (en) * 1996-04-30 1999-06-08 Nippon Telegraph And Telephone Corporation Scheme for detecting shot boundaries in compressed video data using inter-frame/inter-field prediction coding and intra-frame/intra-field coding
US7221409B2 (en) 2001-03-08 2007-05-22 Monolith Co., Ltd. Image coding method and apparatus and image decoding method and apparatus
US8509592B2 (en) 2007-05-21 2013-08-13 Mitsubishi Electric Corporation Image difference detection method and apparatus, scene change detection method and apparatus, and image difference value detection method and apparatus
JP2016530750A (en) * 2013-06-17 2016-09-29 グルロジック マイクロシステムズ オーワイGurulogic Microsystems Oy Frame processing and playback

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5815217A (en) * 1992-03-06 1998-09-29 Mitsubishi Denki Kabushiki Kaisha Scene-change detector for a moving image composed of a plurality of frames
US5911008A (en) * 1996-04-30 1999-06-08 Nippon Telegraph And Telephone Corporation Scheme for detecting shot boundaries in compressed video data using inter-frame/inter-field prediction coding and intra-frame/intra-field coding
US7221409B2 (en) 2001-03-08 2007-05-22 Monolith Co., Ltd. Image coding method and apparatus and image decoding method and apparatus
US8509592B2 (en) 2007-05-21 2013-08-13 Mitsubishi Electric Corporation Image difference detection method and apparatus, scene change detection method and apparatus, and image difference value detection method and apparatus
JP2016530750A (en) * 2013-06-17 2016-09-29 グルロジック マイクロシステムズ オーワイGurulogic Microsystems Oy Frame processing and playback

Similar Documents

Publication Publication Date Title
JP2891772B2 (en) Digital image coding method using random scanning of image frames
JP2630809B2 (en) Video image transmission system
JP3447771B2 (en) Image data encoding method and restoration method and apparatus
JP3888597B2 (en) Motion compensation coding apparatus and motion compensation coding / decoding method
JPH06153180A (en) Picture data coding method and device
US20090323819A1 (en) Method and apparatus for temporal wavelet compression
CN1190292A (en) Error concealment method and apparatus
KR20010110629A (en) Method and system for compressing motion image information
JPH05284368A (en) Method and device for encoding/restoring image data
JPH05284369A (en) Method and device for encoding/restoring image data
US6631161B1 (en) Method and system for compressing motion image information
KR100198986B1 (en) Motion compensation apparatus for improving a blocking effect
KR100220582B1 (en) Image encoder having adaptive coding
JP2897082B2 (en) Motion compensation variable length coding
JP2002058032A (en) Apparatus and method for encoding image, apparatus and method for decoding image as well as image processor
JPH05316359A (en) Picture data coder
JPS62209984A (en) Method and apparatus for encoding picture signal
JP2861373B2 (en) Apparatus and method for receiving encoded data
JPH06105303A (en) Method and device for encoding image data
JPH07131794A (en) Method and device for coding picture data
JP3200189B2 (en) Image data encoding / restoring method and apparatus
KR970008415B1 (en) A preprocessing method for moving image coder
JP4470440B2 (en) Method for calculating wavelet time coefficient of image group
JPS63177672A (en) Picture encoding transmission system
JPH02222388A (en) Moving picture encoding method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990608