JP2002159008A - Method and device for restoring image - Google Patents

Method and device for restoring image

Info

Publication number
JP2002159008A
JP2002159008A JP2000356290A JP2000356290A JP2002159008A JP 2002159008 A JP2002159008 A JP 2002159008A JP 2000356290 A JP2000356290 A JP 2000356290A JP 2000356290 A JP2000356290 A JP 2000356290A JP 2002159008 A JP2002159008 A JP 2002159008A
Authority
JP
Japan
Prior art keywords
data
block
image
component data
component
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
JP2000356290A
Other languages
Japanese (ja)
Inventor
Takeshi Ko
全 顧
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.)
Kawasaki Microelectronics Inc
Original Assignee
Kawasaki Microelectronics Inc
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 Kawasaki Microelectronics Inc filed Critical Kawasaki Microelectronics Inc
Priority to JP2000356290A priority Critical patent/JP2002159008A/en
Publication of JP2002159008A publication Critical patent/JP2002159008A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To suppress the quality deterioration of a restored image that occurs when the total number of DC component data and AC component data in a block is abnormal. SOLUTION: An image restoring device is provided with a count data control circuit 50 which successively counts AC component data in order from the low frequency component side to the high frequency component side starting from DC component data at every block before increase DCT transformation is started and, in addition, while individual DC component data and AD component data constituting the blocks are restored and, at the same time, ignores the AC component data of a block when the counted number of the data to be contained in the block is a prescribed number or larger.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、原画像を構成する
2次元マトリックス状の画素群を方形形状の複数のブロ
ックに分割し、ブロック毎にDCT(Discrete Cosine
Transform)変換してからデータ量を圧縮した画像フ
ァイルを、再び伸長し逆DCT変換して2次元マトリッ
クス状の画素群による画像に復元するために用いる画像
復元方法に係り、特に、ブロック中のDC(Direct Cu
rrent)成分データ及びAC(Alternating Current)
成分データの合計のデータ数に異常があった場合に生じ
る、復元した画像の質の低下を抑えることができる画像
復元方法及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention divides a two-dimensional matrix of pixels constituting an original image into a plurality of rectangular blocks, and performs DCT (Discrete Cosine) for each block.
The present invention relates to an image restoring method used for restoring an image file whose data amount has been compressed after compression and then decompressing and inverse DCT transforming the image file into an image composed of a two-dimensional matrix of pixels. (Direct Cu
rrent) component data and AC (Alternating Current)
The present invention relates to an image restoration method and an image restoration apparatus capable of suppressing a decrease in the quality of a restored image which occurs when the total number of component data is abnormal.

【0002】[0002]

【従来の技術】インターネットなどの通信手段を利用し
た伝送や、DVD(Digital VideoDisc)などの記憶メ
ディアを利用した保存に際して、JPEG(Joint Pho
tographic Experts Group)などの規定に従って圧縮
した画像ファイルが用いられる。伝送したり保存したり
しようとする画像ファイルを圧縮することで、伝送時間
を短縮したり、記憶メディアの記憶容量を最大限に利用
したりすることができ、経費削減などを図ることが可能
である。
2. Description of the Related Art For transmission using communication means such as the Internet and storage using a storage medium such as a DVD (Digital Video Disc), JPEG (Joint Photo
An image file compressed in accordance with regulations such as the Tographic Experts Group) is used. By compressing image files to be transmitted or stored, transmission time can be shortened, the storage capacity of storage media can be maximized, and costs can be reduced. is there.

【0003】JPEGその他では、原画像を構成する2
次元マトリックス状の画素群を方形形状の複数のブロッ
クに分割し、ブロック毎にDCT変換してからデータ量
を圧縮する。例えば、ハフマン符号化、量子化処理、エ
ントロピー符号化などによって、データ量の圧縮を図
る。具体的にはJPEGでは、DCT変換後にハフマン
符号化をして、データ量の圧縮を図る。
In JPEG and others, 2
The pixel group in a dimensional matrix is divided into a plurality of rectangular blocks, and the amount of data is compressed after DCT conversion for each block. For example, the data amount is reduced by Huffman coding, quantization processing, entropy coding, or the like. Specifically, in JPEG, Huffman coding is performed after DCT conversion to compress the data amount.

【0004】なお、このようにして圧縮した画像ファイ
ルは、本発明が対象とするような画像復元方法や画像復
元装置により、再び2次元マトリックス状の画素群によ
る画像に復元する。具体的には、該当圧縮処理に対応す
る伸長処理をする。その後に、再び伸長し逆DCT変換
して2次元マトリックス状の画素群による画像に復元す
る。
[0004] The image file compressed in this way is again restored to an image using a two-dimensional matrix of pixel groups by an image restoration method or an image restoration apparatus as the object of the present invention. Specifically, decompression processing corresponding to the compression processing is performed. After that, the image is expanded again and subjected to inverse DCT transform to restore the image to a two-dimensional matrix of pixels.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上述の
ようなデータ量の圧縮後に画像ファイルを伝送したり、
保存したりする際には、何らかの原因により、そのデー
タに誤りが生じ得る。又、圧縮されている故に、このよ
うな誤りが生じると、画像ファイル中のデータが書き換
えられてしまうことがあるだけでなく、データの数に異
常が生じてしまうこともある。即ち、誤ったデータが発
生したり、データが失われたりして、データ数が増減し
てしまうことがある。
However, the image file is transmitted after the data amount is compressed as described above,
When data is stored, an error may occur in the data for some reason. Also, due to the compression, if such an error occurs, not only data in the image file may be rewritten, but also an abnormality may occur in the number of data. That is, erroneous data may be generated or data may be lost, and the number of data may increase or decrease.

【0006】JPEGなどでは、原画像を構成する2次
元マトリックス状の画素群を、通常は相互に隣接する
(8×8=64)画素の、方形形状の複数のブロックに
分割する。そうして、以後はブロック単位に処理する。
即ち、ブロック毎に、DCT変換してからデータ量を圧
縮して、伝送したり保存したりするための画像ファイル
を得る。又、該画像ファイルから得られるデータに対し
て、ブロック毎に、再び伸長し逆DCT変換して2次元
マトリックス状の画素群による画像に復元する。
In JPEG or the like, a two-dimensional matrix of pixels forming an original image is divided into a plurality of rectangular blocks each having (8 × 8 = 64) pixels which are usually adjacent to each other. Thereafter, the processing is performed in block units.
That is, for each block, the data amount is compressed after DCT conversion to obtain an image file for transmission or storage. In addition, data obtained from the image file is expanded and inversely DCT-transformed for each block to restore the image to a two-dimensional matrix of pixels.

【0007】(8×8=64)画素のブロックはDCT
変換すると、1個のDC成分データ、及び63個のAC
成分データによる、合計64個のデータで構成されるブ
ロックになる。又、該ブロックは逆DCT変換すること
で、再び、(8×8=64)画素のブロックの画像に復
元される。
A block of (8 × 8 = 64) pixels is DCT
When converted, one DC component data and 63 AC
It becomes a block composed of a total of 64 data by component data. The block is again restored to an image of a block of (8 × 8 = 64) pixels by performing an inverse DCT transform.

【0008】JPEGなどの規定で圧縮された画像ファ
イルでは、AC成分データはランレングス符号化してい
る。即ち、連続する値が“0”のデータの個数(データ
が連続する長さでありラン長と呼ばれる)を示すデータ
と、その後に続く値が“0”以外のデータのその値を示
すデータとで表現するように符号化している。従って、
上述のような伝送中や保存中の誤りによって、ラン長を
示すデータの値に誤りが生じると、AC成分データの個
数が63個以上になったり、あるいは減少したりしてし
まう。
In an image file compressed according to JPEG or the like, AC component data is run-length encoded. That is, data indicating the number of data whose consecutive values are "0" (the length of the data is continuous and called the run length), and data indicating the value of data other than "0" following the data indicating the value. It is encoded so as to be expressed by. Therefore,
If an error occurs in the data indicating the run length due to an error during transmission or storage as described above, the number of AC component data becomes 63 or more or decreases.

【0009】又、データ数が増加してしまうと、1つの
ブロックに含まれるべき規定されたデータ数を超えた余
分なAC成分データは、誤って、次のブロックのDC成
分データやAC成分データとされてしまう。すると、従
来技術では、デコード後のデータは当然に64個になる
ものとして、誤りが生じてもそのまま扱われているた
め、復元される2次元マトリックス状の画素群による画
像には、画像ずれや、色ずれなどの障害が生じてしま
う。
When the number of data increases, excess AC component data exceeding the prescribed number of data to be included in one block is erroneously replaced by DC component data or AC component data of the next block. It will be. Then, in the prior art, the decoded data is assumed to be naturally 64 data, and even if an error occurs, it is treated as it is. In such a case, an obstacle such as color shift occurs.

【0010】従来技術では、このような障害を除去した
り、低減したりすることはできなかった。従って従来で
は、画像ずれや、色ずれなどの障害が生じた場合は、画
像ファイルを、再度伝送しなおしたり、保存読み出しを
しなおしたりしていた。あるいは、従来では、そのまま
処理などがなされていた。
In the prior art, such obstacles could not be removed or reduced. Therefore, conventionally, when a failure such as an image shift or a color shift occurs, the image file is transmitted again or stored and read again. Alternatively, conventionally, processing or the like has been performed as it is.

【0011】本発明は、前記従来の問題点を解決するべ
くなされたもので、ブロック中のDC成分データ及びA
C成分データの合計のデータ数に異常があった場合に生
じる、復元した画像の質の低下を抑えることができる画
像復元方法及び装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned conventional problems.
It is an object of the present invention to provide an image restoring method and apparatus capable of suppressing a decrease in the quality of a restored image, which is caused when there is an abnormality in the total number of C component data.

【0012】[0012]

【課題を解決するための手段】まず、本願の第1発明の
画像復元方法は、原画像を構成する2次元マトリックス
状の画素群を方形形状の複数のブロックに分割し、ブロ
ック毎にDCT変換してからデータ量を圧縮した画像フ
ァイルを、再び伸長し逆DCT変換して2次元マトリッ
クス状の画素群による画像に復元するために用いる画像
復元方法において、逆DCT変換する以前で、かつ、ブ
ロックを構成する個々のDC成分データ及びAC成分デ
ータが復元されている段階で、ブロック毎にこれらデー
タの数をカウントし、ブロックに含まれるべき規定のデ
ータ数以上のデータが過剰に存在する場合は、AC成分
データを該過剰分だけ無視するようにしたことにより、
前記課題を解決したものである。
First, an image restoration method according to the first invention of the present application divides a two-dimensional matrix of pixels constituting an original image into a plurality of rectangular blocks, and performs DCT conversion for each block. In an image restoration method used to decompress an image file whose data amount has been compressed and then perform an inverse DCT transform to restore an image composed of a two-dimensional matrix of pixels, before performing the inverse DCT transform, At the stage where the individual DC component data and AC component data constituting the data are restored, the number of these data is counted for each block, and if there is an excess of data exceeding the specified number of data to be included in the block, , By ignoring the AC component data by the excess,
This has solved the above-mentioned problem.

【0013】次に、本願の第2発明の画像復元装置は、
原画像を構成する2次元マトリックス状の画素群を方形
形状の複数のブロックに分割し、ブロック毎にDCT変
換してからデータ量を圧縮したJPEGの規定に準拠し
た画像ファイルを、再び伸長し逆DCT変換して2次元
マトリックス状の画素群による再生画像に復元するため
に用いる画像復元装置において、逆DCT変換する以前
で、かつ、ブロックを構成する個々のDC成分データ及
びAC成分データが復元されている段階で、ブロック毎
に、DC成分データを先頭にして順に、低周波数成分側
から高周波数成分側へとAC成分のデータを逐次カウン
トすると共に、ブロックに含まれるべき規定のデータ数
以上のデータがカウントされた場合は、以後、該当ブロ
ックのAC成分データを無視するカウント・データ制御
回路を備えるようにしたことにより、前記課題を解決し
たものである。
Next, the image restoration apparatus of the second invention of the present application
An image file conforming to the JPEG specification, in which a two-dimensional matrix of pixels constituting an original image is divided into a plurality of rectangular blocks, DCT-converted for each block, and the amount of data is compressed, is decompressed again and inversed. In an image restoration apparatus used for restoring a reproduced image by a two-dimensional matrix pixel group by DCT transformation, individual DC component data and AC component data constituting a block are restored before inverse DCT transformation. At each stage, the AC component data is sequentially counted from the low-frequency component side to the high-frequency component side in order from the DC component data for each block. If data is counted, a count data control circuit that ignores the AC component data of the corresponding block is provided. By the, it is obtained by solving the above problems.

【0014】以下、本発明の作用について、簡単に説明
する。
Hereinafter, the operation of the present invention will be briefly described.

【0015】本発明は、原画像を構成する2次元マトリ
ックス状の画素群を方形形状の複数のブロックに分割
し、ブロック毎にDCT変換してからデータ量を圧縮し
た画像ファイルを、再び伸長し逆DCT変換して2次元
マトリックス状の画素群による画像に復元するために用
いる画像復元方法や装置を対象としている。
According to the present invention, an image file in which a two-dimensional matrix of pixels constituting an original image is divided into a plurality of rectangular blocks, DCT-converted for each block, and the data amount is compressed is decompressed again. The present invention is directed to an image restoration method and apparatus used for performing an inverse DCT transform to restore an image by a two-dimensional matrix pixel group.

【0016】又本発明では、逆DCT変換する以前で、
かつ、ブロックを構成する個々のDC成分データ及びA
C成分データが復元されている段階で、ブロック毎にこ
れらデータの数をカウントする。そうして、ブロックに
含まれるべき規定のデータ数以上のデータが過剰に存在
する場合は、AC成分データを該過剰分だけ無視する。
In the present invention, before performing the inverse DCT transform,
And the individual DC component data and A
When the C component data is restored, the number of these data is counted for each block. In this way, if there is an excess of data exceeding the prescribed number of data to be included in the block, the AC component data is ignored by the excess.

【0017】従って、本発明よれば、伝送中や保存中に
誤りが生じてブロック中のDC成分データやAC成分デ
ータの個数が増減しても、その影響が他のブロックに及
び難くなる。従って、誤りが生じた場合の悪影響を抑え
ることができる。
Therefore, according to the present invention, even if an error occurs during transmission or storage and the number of DC component data or AC component data in a block increases or decreases, the influence is less likely to be exerted on other blocks. Therefore, it is possible to suppress adverse effects when an error occurs.

【0018】このように本発明によれば、ブロック中の
DC成分データ及びAC成分データの合計のデータ数に
異常があった場合に生じる、復元した画像の質の低下を
抑えることができる。
As described above, according to the present invention, it is possible to suppress a decrease in the quality of a restored image which occurs when the total number of DC component data and AC component data in a block is abnormal.

【0019】[0019]

【発明の実施の形態】以下、図を用いて本発明の実施の
形態を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below in detail with reference to the drawings.

【0020】図1は、本発明が適用された画像復元装
置、又これと共に用いる画像圧縮符号化装置の全体的な
構成を示すブロック図である。
FIG. 1 is a block diagram showing the overall configuration of an image restoration apparatus to which the present invention is applied and an image compression / encoding apparatus used together therewith.

【0021】この図において、まず、画像ファイルを伝
送したり保存したりするために、JPEGの規定に従っ
て、入力画像(原画像)を圧縮して符号化する画像圧縮
符号化装置は、ブロック化回路12と、符号化回路14
とにより構成されている。該画像圧縮符号化回路によっ
て生成される画像ファイルは、JPEG画像であり、画
像の伝送や保存に用いることができる。
In this figure, first, in order to transmit and save an image file, an image compression encoding apparatus that compresses and encodes an input image (original image) in accordance with the JPEG regulations is a blocking circuit. 12 and an encoding circuit 14
It is composed of The image file generated by the image compression encoding circuit is a JPEG image, and can be used for transmitting and storing the image.

【0022】まずブロック化回路12は、原画像を構成
する2次元マトリックス状の画素群を、通常は相互に隣
接する(8×8=64)画素の、方形形状の複数のブロ
ックに分割し、ブロック化画像を出力する。
First, the blocking circuit 12 divides a two-dimensional matrix pixel group constituting the original image into a plurality of rectangular blocks each having usually (8 × 8 = 64) pixels adjacent to each other. Output a block image.

【0023】次に、符号化回路14は、該ブロック化画
像を入力し、ブロック毎にDCT変換してからデータ量
を圧縮した画像ファイルを生成する。該符号化回路14
は、図2に示すように、F−DCT回路30と、量子化
回路(Quantizer)32と、Qテーブル34と、エント
ロピー符号化回路36と、Eテーブル38とにより構成
されている。
Next, the encoding circuit 14 receives the block image, performs DCT conversion for each block, and generates an image file in which the data amount is compressed. The encoding circuit 14
Is composed of an F-DCT circuit 30, a quantization circuit (Quantizer) 32, a Q table 34, an entropy encoding circuit 36, and an E table 38, as shown in FIG.

【0024】F−DCT回路30は、(8×8=64)
個の画素データのブロックを、1個のDC成分データ、
及び63個のAC成分データによる、合計64個のデー
タで構成されるブロックに変換する。量子化回路32で
は、Qテーブル34のデータを用いた量子化処理をす
る。エントロピー符号化回路36では、Eテーブル38
を用いてデータ量を圧縮する。
The F-DCT circuit 30 has (8 × 8 = 64)
Blocks of pixel data into one DC component data,
Is converted into a block composed of a total of 64 data based on and 63 AC component data. The quantization circuit 32 performs a quantization process using the data of the Q table 34. In the entropy encoding circuit 36, an E table 38
Is used to compress the amount of data.

【0025】次に図1において、画像圧縮符号化回路で
生成された画像ファイルを、再び伸長し逆DCT変換し
て2次元マトリックス状の画素群による画像に復元する
ために用いる画像復元装置は、復号化回路16と、画像
構成回路18とにより構成される。
Next, referring to FIG. 1, an image restoration apparatus used for restoring an image file generated by the image compression / encoding circuit and restoring the image file into a two-dimensional matrix of pixels by performing inverse DCT transform is as follows. It comprises a decoding circuit 16 and an image construction circuit 18.

【0026】まず、復号化回路16は、画像圧縮符号化
装置で生成された画像ファイルを、再び伸長し逆DCT
変換し、ブロック化画像を出力する。
First, the decoding circuit 16 decompresses the image file generated by the image compression / encoding device again and performs inverse DCT.
Convert and output a blocked image.

【0027】次に、画像構成回路18は、該ブロック化
画像を、2次元マトリックス状の画素群による画像に復
元して、出力画像(復元画像)を出力する。
Next, the image construction circuit 18 restores the block image to an image composed of a two-dimensional matrix of pixels and outputs an output image (restored image).

【0028】ここで、復号化回路16は、図3に示すよ
うに、エントロピー復号化回路40と、Eテーブル42
と、カウント・データ制御回路50と、逆量子化回路
(Dequantizer)44と、Qテーブル46と、I−DC
T回路48とにより構成されている。
Here, the decoding circuit 16 comprises an entropy decoding circuit 40 and an E table 42 as shown in FIG.
, A count data control circuit 50, a dequantizer circuit (Dequantizer) 44, a Q table 46, an I-DC
And a T circuit 48.

【0029】エントロピー復号化回路40では、Eテー
ブル42を用いてデータ量を圧縮伸長する。Eテーブル
42には、前述したEテーブル38と同じデータが格納
されている。
The entropy decoding circuit 40 uses the E-table 42 to compress and expand the data amount. The E-table 42 stores the same data as the E-table 38 described above.

【0030】従来はエントロピー復号化回路40による
処理の後は、逆量子化回路44による処理を行っている
が、本実施形態においては本発明を適用して、エントロ
ピー復号化回路40及び逆量子化回路44の間には、内
部回路が図4に示すような構成のカウント・データ制御
回路50を設けている。
Conventionally, after the processing by the entropy decoding circuit 40, the processing by the inverse quantization circuit 44 is performed. However, in the present embodiment, the present invention is applied, and the entropy decoding circuit 40 and the inverse quantization Between the circuits 44, a count data control circuit 50 having an internal circuit as shown in FIG. 4 is provided.

【0031】逆量子化回路44では、Qテーブル46の
データを用いた逆量子化処理をする。Qテーブル46に
は、Qテーブル34と同じデータが格納されている。
The inverse quantization circuit 44 performs an inverse quantization process using the data of the Q table 46. The Q table 46 stores the same data as the Q table 34.

【0032】I−DCT回路48は、1個のDC成分デ
ータ、及び63個のAC成分データによる、合計64個
のデータで構成されるブロックを、(8×8=64)個
の画素データのブロックに変換する。
The I-DCT circuit 48 divides a block composed of a total of 64 data of one DC component data and 63 AC component data into (8 × 8 = 64) pixel data. Convert to a block.

【0033】図4は、上述したカウント・データ制御回
路50の構成を示すブロック図である。
FIG. 4 is a block diagram showing a configuration of the count data control circuit 50 described above.

【0034】図示されるようにカウント・データ制御回
路50は、スイッチ52と、カウンタ回路54と、リセ
ット判別回路56とにより構成されている。
As shown, the count / data control circuit 50 includes a switch 52, a counter circuit 54, and a reset determination circuit 56.

【0035】まず、スイッチ52は、通常はオン状態に
なっており、エントロピー復号化回路40から出力され
るデータは、そのまま逆量子化回路44に入力されてい
る。又該スイッチ52は、カウンタ回路54からの信号
によりオフ状態になると、エントロピー復号化回路40
から出力されるデータは、遮断されて、逆量子化回路4
4には入力されなくなる。即ち、逆量子化回路44にお
いて該データは無視されるようになる。
First, the switch 52 is normally turned on, and the data output from the entropy decoding circuit 40 is input to the inverse quantization circuit 44 as it is. When the switch 52 is turned off by a signal from the counter circuit 54, the entropy decoding circuit 40
The data output from is blocked by the inverse quantization circuit 4
4 is no longer input. That is, the data is ignored in the inverse quantization circuit 44.

【0036】カウンタ回路54は、そのリセット入力R
の入力があるとカウント値が“0”にリセットされる。
リセット後、エントロピー復号化回路40は、エントロ
ピー復号化回路40が順次出力する、各ブロックのDC
成分データ及びAC成分データを入力する毎に、カウン
ト値を“1”ずつカウント・アップする。そうして、カ
ウンタ回路54は、カウント値が“64”になると、そ
のリセット入力Rの入力によってカウント値が“0”に
リセットされるまでの期間、スイッチ52をオフ状態に
する信号を出力する。
The counter circuit 54 has a reset input R
Is reset to "0".
After the reset, the entropy decoding circuit 40 outputs the DC of each block which the entropy decoding circuit 40 sequentially outputs.
Each time the component data and the AC component data are input, the count value is incremented by "1". Then, when the count value becomes "64", the counter circuit 54 outputs a signal for turning off the switch 52 until the count value is reset to "0" by the input of the reset input R. .

【0037】リセット判別回路56は、個々のブロック
において正常にDC成分データの入力開始が判別される
と、カウンタ回路54のリセット入力Rに対する信号を
出力して、カウンタ回路54をリセットし、DC成分デ
ータがスイッチ52に到達する前に該スイッチ52をオ
ン状態にする。上述の正常入力は、ハフマン符号化信号
の終了データ(前ブロックの終了)や、JPEGの画像
ファイルにおいて随時挿入されるマーカなどで判定す
る。
When the start of inputting the DC component data is normally determined in each block, the reset determination circuit 56 outputs a signal to the reset input R of the counter circuit 54, resets the counter circuit 54, and resets the DC component. The switch 52 is turned on before data reaches the switch 52. The above-mentioned normal input is determined based on end data of the Huffman coded signal (end of the previous block), a marker inserted as needed in a JPEG image file, and the like.

【0038】本実施形態においては、逆DCT変換する
以前で、即ちI−DCT回路48より前段で、かつ、ブ
ロックを構成する個々のDC成分データ及びAC成分デ
ータが復元されている段階で、即ちエントロピー復号化
回路40より後段の段階で、カウント・データ制御回路
50中のカウンタ回路54により、ブロック毎にこれら
データの数をカウントする。そうして、ブロックに含ま
れるべき規定のデータ数以上のデータが過剰に存在する
場合は、カウント・データ制御回路50中のスイッチ5
2をオフ状態にすることで、AC成分データを該過剰分
だけ無視することができる。
In the present embodiment, before the inverse DCT transform, that is, before the I-DCT circuit 48 and at the stage where the individual DC component data and AC component data constituting the block are restored, At a stage subsequent to the entropy decoding circuit 40, the number of these data is counted for each block by the counter circuit 54 in the count / data control circuit 50. If there is an excessive amount of data exceeding the prescribed number of data to be included in the block, the switch 5 in the count data control circuit 50
By turning 2 off, the AC component data can be ignored by the excess.

【0039】なお、カウント・データ制御回路50の設
置箇所は、逆DCT変換する以前で、かつ、ブロックを
構成する個々のDC成分データ及びAC成分データが復
元されている段階であればよい。従って、図3のように
エントロピー復号化回路40及び逆量子化回路44の間
に設置することに限定されるものではない。例えば、図
5に示すように、逆量子化回路44及びI−DCT回路
48の間に設置するようにしてもよい。
The installation location of the count data control circuit 50 may be any stage before the inverse DCT transformation and at the stage where the individual DC component data and AC component data constituting the block are restored. Therefore, the present invention is not limited to the arrangement between the entropy decoding circuit 40 and the inverse quantization circuit 44 as shown in FIG. For example, as shown in FIG. 5, it may be provided between the inverse quantization circuit 44 and the I-DCT circuit 48.

【0040】以上のように本実施形態によれば、本発明
を効果的に適用することができる。従って、ブロック中
のDC成分データ及びAC成分データの合計のデータ数
に異常があった場合に生じる、復元した画像の質の低下
を抑えることができる。
As described above, according to the present embodiment, the present invention can be effectively applied. Therefore, it is possible to suppress the deterioration of the quality of the restored image, which is caused when the total number of DC component data and AC component data in the block is abnormal.

【0041】[0041]

【発明の効果】本発明によれば、ブロック中のDC成分
データ及びAC成分データの合計のデータ数に異常があ
った場合に生じる、復元した画像の質の低下を抑えるこ
とができる。
According to the present invention, it is possible to suppress a decrease in the quality of a restored image that occurs when the total number of DC component data and AC component data in a block is abnormal.

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

【図1】本発明が適用された画像復元装置、又これと共
に用いる画像圧縮符号化装置の全体的な構成を示すブロ
ック図
FIG. 1 is a block diagram showing an overall configuration of an image restoration apparatus to which the present invention is applied and an image compression / encoding apparatus used therewith.

【図2】前記実施形態に用いる符号化回路の構成を示す
ブロック図
FIG. 2 is a block diagram showing a configuration of an encoding circuit used in the embodiment.

【図3】前記実施形態に用いる復号化回路の構成を示す
ブロック図
FIG. 3 is a block diagram showing a configuration of a decoding circuit used in the embodiment.

【図4】前記実施形態に用いるカウント・データ制御回
路の構成を示すブロック図
FIG. 4 is a block diagram showing a configuration of a count data control circuit used in the embodiment.

【図5】前記実施形態の変形例に用いる復号化回路の構
成を示すブロック図
FIG. 5 is a block diagram showing a configuration of a decoding circuit used in a modification of the embodiment.

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

12…ブロック化回路 14…符号化回路 16…復号化回路 18…画像構成回路 30…F−DCT回路 32…量子化回路 34…Qテーブル 36…エントロピー符号化回路 38…Eテーブル 40…エントロピー復号化回路 42…Eテーブル 44…逆量子化回路 46…Qテーブル 48…I−DCT回路 50…カウント・データ制御回路 52…スイッチ 54…カウンタ回路 56…リセット判別回路 DESCRIPTION OF SYMBOLS 12 ... Blocking circuit 14 ... Encoding circuit 16 ... Decoding circuit 18 ... Image construction circuit 30 ... F-DCT circuit 32 ... Quantization circuit 34 ... Q table 36 ... Entropy encoding circuit 38 ... E table 40 ... Entropy decoding Circuit 42 E table 44 Inverse quantization circuit 46 Q table 48 I-DCT circuit 50 Count data control circuit 52 Switch 54 Counter circuit 56 Reset determination circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】原画像を構成する2次元マトリックス状の
画素群を方形形状の複数のブロックに分割し、ブロック
毎にDCT変換してからデータ量を圧縮した画像ファイ
ルを、再び伸長し逆DCT変換して2次元マトリックス
状の画素群による画像に復元するために用いる画像復元
方法において、 逆DCT変換する以前で、かつ、ブロックを構成する個
々のDC成分データ及びAC成分データが復元されてい
る段階で、ブロック毎にこれらデータの数をカウント
し、 ブロックに含まれるべき規定のデータ数以上のデータが
過剰に存在する場合は、AC成分データを該過剰分だけ
無視するようにしたことを特徴とする画像復元方法。
An image file in which a pixel group of a two-dimensional matrix constituting an original image is divided into a plurality of rectangular blocks, DCT-converted for each block, and an image file in which a data amount is compressed is decompressed again and inverse DCT-converted. In an image restoration method used to convert the image into a two-dimensional matrix pixel group, individual DC component data and AC component data constituting a block are restored before the inverse DCT transform. At the stage, the number of these data is counted for each block, and if there is an excess of data exceeding a prescribed number of data to be included in the block, the AC component data is ignored by the excess. Image restoration method.
【請求項2】原画像を構成する2次元マトリックス状の
画素群を方形形状の複数のブロックに分割し、ブロック
毎にDCT変換してからデータ量を圧縮したJPEGの
規定に準拠した画像ファイルを、再び伸長し逆DCT変
換して2次元マトリックス状の画素群による再生画像に
復元するために用いる画像復元装置において、 逆DCT変換する以前で、かつ、ブロックを構成する個
々のDC成分データ及びAC成分データが復元されてい
る段階で、ブロック毎に、DC成分データを先頭にして
順に、低周波数成分側から高周波数成分側へとAC成分
のデータを逐次カウントすると共に、ブロックに含まれ
るべき規定のデータ数以上のデータがカウントされた場
合は、以後、該当ブロックのAC成分データを無視する
カウント・データ制御回路を備えるようにしたことを特
徴とする画像復元装置。
2. An image file conforming to the JPEG specification, in which a two-dimensional matrix pixel group constituting an original image is divided into a plurality of rectangular blocks, DCT-converted for each block, and the data amount is compressed. In an image restoration apparatus used for decompressing and performing inverse DCT transform to restore a reproduced image by a two-dimensional matrix pixel group, before the inverse DCT transform, and individual DC component data and AC At the stage where the component data is being restored, the DC component data is sequentially counted from the low frequency component side to the high frequency component side for each block, and the AC component data is sequentially counted, and the rule to be included in the block is specified. Count data control circuit that ignores the AC component data of the corresponding block when the data of more than An image restoration apparatus characterized by comprising:
JP2000356290A 2000-11-22 2000-11-22 Method and device for restoring image Pending JP2002159008A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000356290A JP2002159008A (en) 2000-11-22 2000-11-22 Method and device for restoring image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000356290A JP2002159008A (en) 2000-11-22 2000-11-22 Method and device for restoring image

Publications (1)

Publication Number Publication Date
JP2002159008A true JP2002159008A (en) 2002-05-31

Family

ID=18828569

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000356290A Pending JP2002159008A (en) 2000-11-22 2000-11-22 Method and device for restoring image

Country Status (1)

Country Link
JP (1) JP2002159008A (en)

Similar Documents

Publication Publication Date Title
JP3743961B2 (en) Image decoding method
JP3992303B2 (en) Signal compression apparatus, signal expansion apparatus, signal compression method, and signal expansion method
JP3469438B2 (en) Image signal processing method and apparatus, recording medium
KR20100089546A (en) Method and apparatus for successively encoding/decoding image
JP3619612B2 (en) Method and apparatus for encoding and decoding a video data stream for all pixels of the video data stream
JPH1188701A (en) Image compression device and image expansion device
JP2002159008A (en) Method and device for restoring image
JP2647272B2 (en) Transmission rate control method in image coding
JPH05227519A (en) Encoder and decoder for picture data
JP2000032458A (en) Image compression method
JPH09172636A (en) Coder
JP2620163B2 (en) High efficiency coding device
JP2668900B2 (en) High efficiency coding device
EP0874465A1 (en) Error resilient variable length code
JP2860016B2 (en) Interframe coding of image signal
JP6270472B2 (en) Image coding apparatus, image coding method, and program
JPH06338802A (en) Re-compression device
JP3191462B2 (en) High efficiency coding device
JP3200073B2 (en) Image processing device
KR100207384B1 (en) Apparatus for decoding intra dc coefficient of video signal decoding system
GB2599476A (en) Data encoding and decoding
JPH07222152A (en) Picture processor and compressed data control method in the picture processor
JPH11239349A (en) Image compressor
JPH0591332A (en) Picture data processor
JPH0686077A (en) Hierzrchical image compressing system