JPH07123271A - Method for compressing and expansting picture data - Google Patents

Method for compressing and expansting picture data

Info

Publication number
JPH07123271A
JPH07123271A JP26626093A JP26626093A JPH07123271A JP H07123271 A JPH07123271 A JP H07123271A JP 26626093 A JP26626093 A JP 26626093A JP 26626093 A JP26626093 A JP 26626093A JP H07123271 A JPH07123271 A JP H07123271A
Authority
JP
Japan
Prior art keywords
image data
block
circuit
data
frame
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
JP26626093A
Other languages
Japanese (ja)
Inventor
Mitsuharu Oki
光晴 大木
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP26626093A priority Critical patent/JPH07123271A/en
Publication of JPH07123271A publication Critical patent/JPH07123271A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To prevent a block distortion on a screen from being sensed by means of the integration effect of human eyes. CONSTITUTION:Picture data by one frame from a camera 1 stored in memory 3 in a block processing circuit 2 are block-processed while the position to be block-processed is revised under the control of a control circuit 4. Then the resulting data are fed to a transmission system or recorded on a recording medium 8 via a DCT circuit 5, a quantization circuit 6 and a VLC circuit 7 and then the data are converted again into block-processed picture data via an IVLC circuit 9, an inverse quantization circuit 10 and an IDCT circuit 11 and stored in memory 13 in an inverse block processing circuit 12. The picture data in the memory 13 are decoded into picture data by one frame under the control of a control circuit 14 and the data are outputted to a monitor 15, in which the data are displayed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、撮像装置により撮影さ
れた画像データの圧縮方法及び伸長方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a compression method and an expansion method for image data taken by an image pickup device.

【0002】[0002]

【従来の技術】近年、画像データを圧縮し、記録媒体
(いわゆる蓄積系メディア)や伝送系を介して画像表示
装置に出力する方法が提案されている。この方法では、
画像データを圧縮する際に、ブロック符号化、特に離散
コサイン変換符号化(DCT)を用いている。この離散
コサイン変換符号化は、画像データは滑らかで、高域周
波数成分がほとんど無いことを利用して、画像データを
小さなブロックに分割し、これらの各ブロック毎に、画
像データを周波数軸上のデータに変換することにより、
記録媒体に記録又は伝送系へ出力するデータ量を圧縮す
ることができる。
2. Description of the Related Art In recent years, a method of compressing image data and outputting it to an image display device via a recording medium (so-called storage medium) or a transmission system has been proposed. in this way,
When compressing image data, block coding, in particular, discrete cosine transform coding (DCT) is used. This discrete cosine transform coding divides the image data into small blocks by utilizing the fact that the image data is smooth and has almost no high frequency components, and the image data is divided into small blocks on the frequency axis. By converting to data,
The amount of data recorded on the recording medium or output to the transmission system can be compressed.

【0003】図6には、1フレームの画像データ列を示
す。通常、1フレームの画像データは、図6中の矢印の
順、即ちラスタスキャン順に伝送される。このラスタス
キャン順に入力された1フレーム分の画像データを並べ
換えて、例えば、8行8列(8×8)のブロックに変換
するときには、図7に示すように、最初に8×8のブロ
ックAが出力され、次に、8×8のブロックBが出力さ
れる。このようにして、順次、8×8のブロック単位で
ブロック化された画像データが出力され、最後に8×8
のブロックZが出力されることにより、1フレーム分の
画像データのブロック化が行われる。
FIG. 6 shows an image data string of one frame. Normally, one frame of image data is transmitted in the order of arrows in FIG. 6, that is, in the raster scan order. When rearranging the image data for one frame input in the raster scan order and converting it into, for example, a block of 8 rows and 8 columns (8 × 8), as shown in FIG. Is output, and then the 8 × 8 block B is output. In this way, the image data which has been sequentially divided into blocks of 8 × 8 blocks is output, and finally 8 × 8 blocks are output.
By outputting the block Z of, the image data for one frame is divided into blocks.

【0004】ブロック化された画像データは、DCT回
路、量子化回路、及びVLC(可変長符号化)回路を介
し、圧縮された画像データとして伝送系に伝送された
り、記録媒体に記録されたりする。
Blocked image data is transmitted as a compressed image data to a transmission system or recorded on a recording medium via a DCT circuit, a quantization circuit, and a VLC (Variable Length Coding) circuit. .

【0005】伝送系に伝送されたり、記録媒体に記録さ
れたりした圧縮画像データは、IVLC(可変長復号
化)回路、逆量子化回路、及びIDCT(逆離散コサイ
ン変換符号化)回路を介して伸長される。このとき、上
記IDCT回路からは、ブロック化された画像データ
が、ブロックA、ブロックB、・・・、ブロックZの順
に出力される。このブロック化された画像データは、逆
ブロック化回路に入力されて逆ブロック化が行われ、圧
縮される前のラスタスキャン順で出力される。
Compressed image data transmitted to a transmission system or recorded on a recording medium is passed through an IVLC (variable length decoding) circuit, an inverse quantization circuit, and an IDCT (inverse discrete cosine transform encoding) circuit. It is extended. At this time, the block image data is output from the IDCT circuit in the order of block A, block B, ..., Block Z. The blocked image data is input to the deblocking circuit, deblocked, and output in the raster scan order before being compressed.

【0006】上述したような画像データの圧縮及び伸長
は、画像の全フレームについて行われる。
The compression and decompression of image data as described above is performed for all frames of an image.

【0007】次に、画像データの圧縮及び伸長について
具体的に説明する。例えば、図8に示すような1次元上
の画像データがあり、この1次元上の画像データが8個
の画像データ毎にブロック化されて、ブロックA、ブロ
ックB、ブロックCにそれぞれ変換されたとする。この
後、これらのブロックA、B、Cには、それぞれDCT
が施され、周波数軸上のデータ、即ち直流成分及び交流
成分に変換される。
Next, the compression and decompression of image data will be specifically described. For example, there is one-dimensional image data as shown in FIG. 8, and the one-dimensional image data is divided into blocks of eight image data and converted into block A, block B, and block C, respectively. To do. After this, the DCT is applied to these blocks A, B, and C, respectively.
Is applied and converted into data on the frequency axis, that is, a DC component and an AC component.

【0008】さらに、周波数軸上のデータには量子化が
行われる。この量子化とは、周波数軸上のデータの量子
化ステップを変換することである。具体的には、例え
ば、所定のデータが10ビットの整数で表されている場
合に、この所定のデータを4で除算し、少数点以下を四
捨五入する。これにより、この所定のデータは8ビット
の整数で表されることになる。つまり、量子化を行うこ
とにより、10ビットのデータを8ビットに圧縮するこ
とができる。量子化されたデータには、さらに、可変長
符号化(VLC)が施され、コード化される。
Further, the data on the frequency axis is quantized. This quantization is to transform the quantization step of the data on the frequency axis. Specifically, for example, when the predetermined data is represented by a 10-bit integer, the predetermined data is divided by 4 and the decimal point and below are rounded off. As a result, this predetermined data is represented by an 8-bit integer. That is, by performing quantization, 10-bit data can be compressed into 8 bits. The quantized data is further subjected to variable length coding (VLC) and coded.

【0009】この圧縮された画像データを伸長するとき
には、上記コード化されたデータに可変長復号化(IV
LC)が施され、次に、逆量子化が行われる。具体的に
は、例えば、上述の8ビットのデータを4倍して10ビ
ットのデータにすることである。この逆量子化されたデ
ータは、各ブロック毎の周波数軸上のデータ、即ち直流
成分及び交流成分である。
When decompressing the compressed image data, variable length decoding (IV
LC) is applied, followed by dequantization. Specifically, for example, the above 8-bit data is multiplied by 4 to be 10-bit data. The dequantized data is the data on the frequency axis of each block, that is, the DC component and the AC component.

【0010】この後、逆量子化された周波数軸上のデー
タにはIDCTが施され、ブロック化された画像データ
に変換される。つまり、圧縮される前の画像データが復
元される。
Thereafter, the dequantized data on the frequency axis is subjected to IDCT and converted into block image data. That is, the image data before being compressed is restored.

【0011】上記逆量子化においては、単に量子化され
たデータを4倍しているだけであり、これは、8ビット
のデータを2ビットシフトして、下位2ビットに0を付
加するだけである。従って、量子化される前の10ビッ
トのデータと、逆量子化された後の10ビットのデータ
とには、下位2ビットに誤差(ずれ)が生じる。つま
り、量子化によって10ビットのデータを強制的に8ビ
ットに削減したので、この後、逆量子化を行っても、正
確に、量子化前の元のデータには戻らない。
In the above inverse quantization, the quantized data is simply quadrupled by simply shifting the 8-bit data by 2 bits and adding 0 to the lower 2 bits. is there. Therefore, between the 10-bit data before being quantized and the 10-bit data after being dequantized, an error (shift) occurs in the lower 2 bits. That is, since the 10-bit data is forcibly reduced to 8 bits by the quantization, even if the inverse quantization is performed thereafter, the original data before the quantization cannot be accurately restored.

【0012】ここで、例えば、図8のブロック化された
画像データを上述のように圧縮、伸長したときに、図8
のブロックBに対応する周波数軸上のデータの内の直流
成分のみに、量子化及び逆量子化によって誤差が1だけ
生じ、図8のブロックA、Cに対応する周波数軸上のデ
ータの内の直流成分には誤差が生じなかったとする。こ
の後、このブロックBの周波数軸上のデータにIDCT
を施して得られる画像データは、図9に示すように、量
子化を施す前の元の画像データより1だけ大きくなる。
但し、ブロックA、Cの周波数軸上のデータにIDCT
を施して得られる画像データは、元の画像データに復元
される。
Here, for example, when the blocked image data of FIG. 8 is compressed and expanded as described above,
Only one DC component in the data on the frequency axis corresponding to the block B of FIG. 8 has an error of 1 due to the quantization and the inverse quantization, and the error in the data on the frequency axis corresponding to the blocks A and C in FIG. It is assumed that the DC component has no error. After this, IDCT is applied to the data on the frequency axis of this block B.
As shown in FIG. 9, the image data obtained by performing the process becomes larger than the original image data before the quantization by one.
However, IDCT is added to the data on the frequency axis of blocks A and C.
The image data obtained by applying is restored to the original image data.

【0013】[0013]

【発明が解決しようとする課題】[Problems to be Solved by the Invention]

【0014】ところで、画像データをブロック化して圧
縮した後、この圧縮データを伸長したときに、各フレー
ム内のブロックとブロックとの境界、例えば図7のブロ
ックAとブロックBとの境界では段差が生じ、人間の目
はこの段差をブロック歪みとして感知してしまう。
By the way, when the image data is divided into blocks and compressed and then the compressed data is expanded, a step is formed at the boundary between blocks in each frame, for example, at the boundary between block A and block B in FIG. The human eye perceives this step as block distortion.

【0015】また、上述したような画像データの圧縮方
法及び伸長方法を用いたときには、全フレームにおい
て、常に一定のブロック化を行っている。即ち、全ての
フレームについて、例えば、図7に示すような、1フレ
ーム分の画像データをブロックAからブロックZまでの
ブロックに変換するブロック化を行っているので、人間
の目には、画面内の一定の部分(ブロックとブロックと
の境界部分)に、常にブロック歪みが感知されることに
なる。
When the image data compression method and decompression method as described above are used, a constant block is always formed in all frames. That is, for all the frames, for example, the image data for one frame is converted into blocks A to Z as shown in FIG. The block distortion will always be sensed in a certain part (boundary between blocks) of the.

【0016】さらに、画像データをマクロブロックに分
割して、各マクロブロックのフレーム間の動きベクトル
を求めた後に、この動きベクトル分だけ移動した別のフ
レームとの差分を計算し、この差分データについてDC
Tを行う画像データの圧縮方式も知られている。これ
は、動き補償(Motion Compensation)とDCTとによる
ハイブリッド方式と呼ばれる画像データの圧縮方式であ
る。この画像データの圧縮方式においては、一般的に、
動きベクトルを求めるマクロブロックの大きさと、DC
Tを行うブロックの大きさとは異なる。このマクロブロ
ックに対しても動き補償が有効に動作しないために、ブ
ロック歪みが生じることがある。
Further, the image data is divided into macroblocks, the motion vector between the frames of each macroblock is obtained, and then the difference with another frame moved by this motion vector is calculated. DC
An image data compression method for performing T is also known. This is a compression method of image data called a hybrid method using motion compensation and DCT. In this image data compression method, in general,
The size of the macroblock for which the motion vector is calculated, and DC
It is different from the size of the block that performs T. Since motion compensation does not operate effectively for this macroblock as well, block distortion may occur.

【0017】そこで、本発明は上述の実情に鑑み、人間
の目によりブロック歪みを感知することがない画像デー
タの圧縮方法及び伸長方法を提供するものである。
In view of the above situation, the present invention provides a method of compressing image data and a method of decompressing image data in which block distortion is not perceived by human eyes.

【0018】[0018]

【課題を解決するための手段】本発明に係る画像データ
の圧縮方法は、画像データのブロック化の際に、画像デ
ータのブロック切り出し位置をフレーム毎に変更するこ
とにより上述した課題を解決する。
A method of compressing image data according to the present invention solves the above-mentioned problem by changing the block cut-out position of the image data for each frame when the image data is divided into blocks.

【0019】また、本発明に係る画像データの伸長方法
は、画像データのブロック化の際に、画像データのブロ
ック切り出し位置がフレーム毎に変更されてブロック化
され、圧縮された画像データを伸長した後、各ブロック
毎の画像データに逆ブロック化を行う際に、上記画像デ
ータのブロック切り出し位置の変更分に応じて、フレー
ム毎の画像データの取り出しを制御することにより上述
した課題を解決する。
Further, in the image data decompression method according to the present invention, when the image data is divided into blocks, the block cut-out position of the image data is changed for each frame to form a block, and the compressed image data is expanded. After that, when performing inverse blocking on the image data of each block, the above problem is solved by controlling the extraction of the image data of each frame according to the change in the block cutout position of the image data.

【0020】[0020]

【作用】本発明においては、画像データの圧縮時には、
画像データをブロック化する際に画像データのブロック
切り出し位置をフレーム毎にずらして切り出すことによ
りブロック化された画像データを圧縮し、この圧縮され
たデータの伸長時には、上記圧縮された画像データを伸
長した後の、ブロック毎の画像データを、1フレーム分
の画像データを生成するように制御することにより、画
像データのブロック歪みが生じる位置をずらすことがで
きる。
In the present invention, when compressing image data,
When the image data is divided into blocks, the block cut-out position of the image data is shifted for each frame and the divided image data is compressed, and when the compressed data is expanded, the compressed image data is expanded. After that, by controlling the image data for each block so as to generate image data for one frame, it is possible to shift the position where the block distortion of the image data occurs.

【0021】[0021]

【実施例】以下、本発明の好ましい実施例について、図
面を参照しながら説明する。図1には、本発明に係る画
像データの圧縮方法及び伸長方法を用いた装置の概略的
な構成を示す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows a schematic configuration of an apparatus using the image data compression method and decompression method according to the present invention.

【0022】図1のカメラ1により撮影された画像デー
タは、従来と同様のラスタスキャン順でブロック化回路
2に入力され、このブロック化回路2内のメモリ3に記
憶される。このメモリ3に記憶された画像データは、制
御回路4の制御により、フレーム毎にブロック化される
位置が変更されてブロック化される。
Image data taken by the camera 1 shown in FIG. 1 is input to the blocking circuit 2 in the same raster scan order as in the conventional case and stored in the memory 3 in the blocking circuit 2. Under the control of the control circuit 4, the image data stored in the memory 3 is changed into blocks by changing the position where the image data is blocked for each frame.

【0023】具体的には、上記メモリ3に記憶された1
フレーム分の画像データを、上記制御回路4の制御によ
りブロック化する場合で、奇数フレームの画像データを
ブロック化するときには、例えば、図2に示すように、
左上の画素から、8行8列(8×8)のブロックとし
て、ブロックA1、ブロックB1、・・・、ブロックZ
1の順にブロック化を行う。よって、図2の斜線で示
す、右側から4画素分及び下側から4画素分の画像デー
タはブロック化されない。また、偶数フレームの画像デ
ータをブロック化するときには、例えば、図3の斜線で
示す、上側から4画素分及び左側から4画素分だけずら
した位置から、ブロックA2、ブロックB2、・・・、
ブロックZ2の順にブロック化を行う。よって、偶数フ
レームの内の上側から4画素分及び左側から4画素分の
画像データはブロック化されない。このように、奇数フ
レーム及び偶数フレームでは、それぞれブロック化され
る画面上の画素の位置が変更されてブロック化が行われ
る。ここで、図2及び図3内の太い点線で示す領域は、
後述する有効表示画面領域を示している。
Specifically, 1 stored in the memory 3 is stored.
When the image data for a frame is divided into blocks under the control of the control circuit 4 and the image data for an odd number of frames is divided into blocks, for example, as shown in FIG.
From the upper left pixel, as a block of 8 rows and 8 columns (8 × 8), block A1, block B1, ..., Block Z
Blocking is performed in order of 1. Therefore, the image data for the four pixels from the right side and the four pixels from the lower side, which are shown by the diagonal lines in FIG. Further, when the image data of the even frames is divided into blocks, for example, the blocks A2, B2, ...
Blocking is performed in the order of the block Z2. Therefore, the image data of 4 pixels from the upper side and 4 pixels from the left side of the even frame are not divided into blocks. In this way, in the odd-numbered frame and the even-numbered frame, the position of the pixel on the screen to be blocked is changed to perform blocking. Here, the area indicated by the thick dotted line in FIGS. 2 and 3 is
The effective display screen area mentioned later is shown.

【0024】これらのブロック化された画像データはD
CT(離散コサイン変換符号化)回路5に出力されて周
波数軸上のデータに変換された後、量子化回路6に供給
される。この量子化回路6では、量子化ステップを変え
て、周波数軸上のデータに量子化を行う。この量子化回
路6で量子化されたデータは、VLC回路(可変長符号
化)回路7に送られてコード化された後、伝送系又は記
録媒体8により、伝送系に伝送され又は記録媒体に記録
される。
These block image data are D
The data is output to a CT (discrete cosine transform coding) circuit 5, converted into data on the frequency axis, and then supplied to a quantization circuit 6. The quantization circuit 6 changes the quantization step and quantizes the data on the frequency axis. The data quantized by the quantization circuit 6 is sent to a VLC circuit (variable length coding) circuit 7 and coded, and then transmitted to a transmission system or a recording medium by a transmission system or a recording medium 8. Will be recorded.

【0025】伝送系に伝送され又は記録媒体に記録され
たデータは、IVLC(可変長復号化)回路9に送られ
て逆コード化され、逆量子化回路10に送られる。この
逆量子化回路10では、送られた量子化データに逆量子
化を行い、この逆量子化されたデータはIDCT(逆離
散コサイン変換符号化)回路11に供給される。このI
DCT回路11では、逆量子化されたデータにIDCT
を施して、周波数軸上のデータに変換する。
The data transmitted to the transmission system or recorded on the recording medium is sent to the IVLC (Variable Length Decoding) circuit 9, decoded, and sent to the dequantization circuit 10. The inverse quantization circuit 10 inversely quantizes the transmitted quantized data, and the inversely quantized data is supplied to an IDCT (inverse discrete cosine transform encoding) circuit 11. This I
In the DCT circuit 11, the IDCT is applied to the dequantized data.
And convert it to data on the frequency axis.

【0026】このIDCT回路11から出力される周波
数軸上のデータは、逆ブロック化回路12内のメモリ1
3に、ブロック毎に順次入力される。具体的には、奇数
フレームのブロック化された画像データは、ブロックA
1、ブロックB1、・・・、ブロックZ1の順に、ま
た、偶数フレームのブロック化された画像データは、ブ
ロックA2、ブロックB2、・・・、ブロックZ2の順
に、それぞれ上記メモリ3に入力され、記憶される。
Data on the frequency axis output from the IDCT circuit 11 is stored in the memory 1 in the deblocking circuit 12.
3 is sequentially input for each block. Specifically, the block image data of the odd-numbered frame is
1, block B1, ..., Block Z1 in order, and even-numbered framed image data are input to the memory 3 in the order of block A2, block B2 ,. Remembered.

【0027】この後、逆ブロック化回路12内の制御回
路14の制御により、上記メモリ13に記憶されたブロ
ック毎の画像データの読み出し時には、ダミーデータが
挿入され、1フレーム分の画像データとしてラスタスキ
ャン順に並べ変えられて、表示装置であるモニタ15等
に出力され、表示される。
Thereafter, under the control of the control circuit 14 in the deblocking circuit 12, when the image data for each block stored in the memory 13 is read out, dummy data is inserted and rasterized as image data for one frame. The images are rearranged in the order of scan, and are output and displayed on the monitor 15 which is a display device.

【0028】この場合、上記伝送系又は記録媒体8を介
して伸長側に送られる画像データは、上記カメラ1から
入力される画像データよりも、奇数フレームについて
は、図2に示すように、画面の左側から4画素分及び下
側から4画素分だけ少なく、偶数フレームについては、
図3に示すように、画面の右側から4画素分及び上側か
ら4画素分だけ少ない。従って、上記モニタ15上に有
効に表示される画像は、これらの各フレームの画像デー
タ内の伝送又は記録された画像データの重なり部分とな
るので、上記カメラ1により撮影された画像よりも小さ
くなり、図2及び図3の太い点線で示す画枠内の画像と
なる。このように、上記モニタ15上に表示される画枠
(有効表示画面領域)を小さくすることにより、奇数フ
レームも偶数フレームも再生して表示することができ
る。
In this case, the image data sent to the decompression side via the transmission system or the recording medium 8 is more likely than the image data input from the camera 1 for the odd frames as shown in FIG. 4 pixels from the left side and 4 pixels from the lower side of
As shown in FIG. 3, there are four pixels from the right side of the screen and four pixels from the upper side. Therefore, the image effectively displayed on the monitor 15 is an overlapping portion of the transmitted or recorded image data in the image data of each of these frames, and is smaller than the image captured by the camera 1. , And the image in the image frame indicated by the thick dotted line in FIGS. 2 and 3. As described above, by reducing the image frame (effective display screen area) displayed on the monitor 15, both odd and even frames can be reproduced and displayed.

【0029】次に、図1のブロック化回路2における操
作を図4のフローチャートに示し、図1の逆ブロック化
回路12における操作を図5のフローチャートに示す。
The operation of the blocking circuit 2 of FIG. 1 is shown in the flowchart of FIG. 4, and the operation of the deblocking circuit 12 of FIG. 1 is shown in the flowchart of FIG.

【0030】上記ブロック化回路2では、先ず、図4の
ステップS1により、画像データをラスタスキャン順に
入力し、上記メモリ3内に書き込む。次に、ステップS
2において、メモリ3内に記憶された画像データが奇数
フレームであるか否かを判別する。記憶された画像デー
タが奇数フレームであるならば、ステップS3に進ん
で、図2に示すように、画像データの左上から順に8×
8のブロックに分割して読み出し、ブロック単位で出力
する。また、メモリ3内に記憶された画像データが偶数
フレームであるならば、ステップS4に進んで、図3に
示すように、画面の左側から4画素分及び上側から4画
素分ずらした位置の画像データから8×8のブロックに
分割して読み出し、ブロック単位で出力する。
In the blocking circuit 2, first, in step S1 of FIG. 4, image data is input in the raster scan order and written in the memory 3. Next, step S
In step 2, it is determined whether the image data stored in the memory 3 is an odd frame. If the stored image data is an odd number of frames, the process proceeds to step S3, and as shown in FIG.
The data is divided into 8 blocks, read out, and output in block units. If the image data stored in the memory 3 is an even frame, the process proceeds to step S4 and, as shown in FIG. 3, an image at a position shifted by 4 pixels from the left side of the screen and 4 pixels from the upper side. The data is read by dividing it into 8 × 8 blocks and output in block units.

【0031】また、上記逆ブロック化回路12では、先
ず、図5のステップS5により、8×8のブロック単位
で画像データを入力し、上記メモリ13内に書き込む。
次に、ステップS6において、メモリ13内に記憶され
た画像データが奇数フレームであるか否かを判別する。
記憶された画像データが奇数フレームであるならば、ス
テップS7に進んで、メモリ13から画像データを読み
出す際に、図2の斜線で示す、画面の右側から4画素分
及び下側から4画素分にダミーデータを挿入して1つの
フレームを生成した後に、ステップS9でラスタスキャ
ン順に出力する。また、メモリ13内に記憶された画像
データが偶数フレームであるならば、ステップS8に進
んで、上記メモリ13から画像データを読み出す際に、
図3の斜線で示す、画面の左側から4画素分及び上側か
ら4画素分にダミーデータを挿入して1つのフレームを
生成し、ステップS9でラスタスキャン順に出力する。
In the deblocking circuit 12, first, in step S5 of FIG. 5, image data is input in 8 × 8 block units and written in the memory 13.
Next, in step S6, it is determined whether the image data stored in the memory 13 is an odd frame.
If the stored image data is an odd number of frames, the process proceeds to step S7, and when reading the image data from the memory 13, four pixels from the right side of the screen and four pixels from the lower side, which are indicated by the diagonal lines in FIG. After the dummy data is inserted to generate one frame, it is output in the raster scan order in step S9. If the image data stored in the memory 13 is an even frame, the process proceeds to step S8 to read the image data from the memory 13,
Dummy data is inserted into four pixels from the left side and four pixels from the upper side of the screen, which are indicated by the diagonal lines in FIG. 3, to generate one frame, which is output in the raster scan order in step S9.

【0032】このように、本発明に係る画像データの圧
縮方法及び伸長方法を用いた装置では、奇数フレームの
画像データのブロック化される位置と偶数フレームの画
像データのブロック化される位置とを変更する。
As described above, in the apparatus using the image data compression method and the decompression method according to the present invention, the odd-numbered frame image data block positions and the even-numbered frame image data block positions are set. change.

【0033】尚、上記メモリ13から読み出される1フ
レーム分の画像データを図2及び図3の太い点線で示す
画枠(有効表示画面領域)内の画像データとする場合
に、上記逆ブロック化回路12においては、上述のよう
にダミーデータを追加することなく、上記メモリ13か
ら奇数フレーム及び偶数フレームにおける有効表示画面
領域内に位置する画素を検出し、この有効表示画面領域
内の左上に位置する画素からラスタスキャン順に読み出
して出力することも考えられる。
When the image data for one frame read from the memory 13 is to be the image data within the image frame (effective display screen area) shown by the thick dotted lines in FIGS. 2 and 3, the inverse blocking circuit is used. 12, the pixel located in the effective display screen area in the odd frame and the even frame is detected from the memory 13 without adding the dummy data as described above, and the pixel is located in the upper left of the effective display screen area. It is also conceivable that the pixels are read in raster scan order and output.

【0034】尚、上記モニタ15上に画像データを表示
したときには、各フレーム内のブロックとブロックとの
境界部分に歪みが生じる。具体的には、奇数フレームで
は、図2の細い点線の位置にブロック歪みが生じ、偶数
フレームでは、図3の細い点線の位置にブロック歪みが
生じる。しかし、奇数フレームにおけるブロック歪みの
位置と偶数フレームにおけるブロック歪みの位置とは異
なるので、人間の目の積分効果により、奇数フレームで
生じたブロック歪みは偶数フレームによりごまかされ、
偶数フレームで生じたブロック歪みは奇数フレームによ
りごまかされる。従って、人間の目は画面上のブロック
歪みを感知しないことになる。
When the image data is displayed on the monitor 15, distortion occurs at the boundary between blocks in each frame. Specifically, in odd-numbered frames, block distortion occurs at the positions indicated by the thin dotted lines in FIG. 2, and in even frames, block distortion occurs at the positions indicated by the thin dotted lines in FIG. However, since the position of the block distortion in the odd frame and the position of the block distortion in the even frame are different, the block effect generated in the odd frame is fooled by the even frame due to the integration effect of human eyes.
The block distortion caused in the even frames is fooled by the odd frames. Therefore, the human eye does not perceive block distortion on the screen.

【0035】また、マクロブロックを用いた画像データ
の圧縮方式を用いた場合にも、奇数フレーム及び偶数フ
レームのマクロブロックの位置は異なるので、人間の目
はごまかされ、ブロック歪みを感知することがない。
Even when the image data compression method using macroblocks is used, the positions of the macroblocks in the odd frames and the even frames are different, so that the human eye is deceived and the block distortion can be sensed. Absent.

【0036】尚、上述の実施例では、奇数フレームの画
像データには図2に示すブロック化を行い、偶数フレー
ムの画像データには図3に示すブロック化を行っている
が、各フレーム毎に、乱数を用いて、図2及び図3に示
すどちらかの画像データのブロック化を選択して行うよ
うにしてもよい。この方法を用いることにより、図2に
示す画像データのブロック化と図3に示す画像データの
ブロック化とがランダムに生じるので、さらに、人間の
目をごまかすことができる。但し、このときには、各フ
レーム毎に図2及び図3に示すどちらの画像データのブ
ロック化を選択したかを示す情報も伝送系に伝送し又は
記録媒体に記録しておき、圧縮データの伸長時にはこの
情報に基づいて適切な逆ブロック化を行う。
In the above-described embodiment, the odd-numbered frame image data is blocked as shown in FIG. 2 and the even-numbered frame image data is blocked as shown in FIG. Alternatively, the image data may be blocked by using one of the image data shown in FIGS. 2 and 3 by using a random number. By using this method, the block formation of the image data shown in FIG. 2 and the block formation of the image data shown in FIG. 3 occur at random, so that it is possible to further deceive the human eye. However, at this time, information indicating which of the image data blocks shown in FIGS. 2 and 3 has been selected for each frame is also transmitted to the transmission system or recorded in the recording medium, and when decompressing the compressed data. Appropriate deblocking is performed based on this information.

【0037】また、上述の実施例では、図2及び図3に
示す、2種類の画像データのブロック化を用いている
が、この画像データのブロック化は3種類以上でもよ
い。
Further, in the above-mentioned embodiment, the two types of image data blocks shown in FIGS. 2 and 3 are used, but the image data blocks may be divided into three or more types.

【0038】さらに、右目用の画像データと左目用の画
像データとを用いて立体画像を扱うシステムにおいて
も、本発明の画像データの圧縮方法及び伸長方法を適用
することができる。即ち、右目用の画像データに対して
は、図2に示す画像データのブロック化を行って画像デ
ータを圧縮し、左目用の画像データに対しては、図3に
示す画像データのブロック化を行って画像データを圧縮
する。この後、これら圧縮された右目用の画像データと
左目用の画像データを伸長して、立体画像表示装置上で
表示した場合には、右目で見る画像データのブロック歪
みの位置と左目で見る画像データのブロック歪みの位置
とが異なるので、人間の目はごまかされて、画面上のブ
ロック歪みを感知しなくなる。
Furthermore, the image data compression method and decompression method of the present invention can also be applied to a system that handles stereoscopic images using right-eye image data and left-eye image data. That is, for the image data for the right eye, the image data shown in FIG. 2 is blocked to compress the image data, and for the image data for the left eye, the image data shown in FIG. 3 is blocked. Go and compress the image data. Thereafter, when the compressed right-eye image data and left-eye image data are expanded and displayed on a stereoscopic image display device, the block distortion position of the image data viewed by the right eye and the image viewed by the left eye. Since the location of the block distortion in the data is different, the human eye is fooled into not seeing the block distortion on the screen.

【0039】[0039]

【発明の効果】以上の説明からも明らかなように、本発
明に係る画像データの圧縮方法は、画像データのブロッ
ク化の際に、画像データのブロック切り出し位置をフレ
ーム毎に変更することにより、人間の目の積分効果によ
り、画面上のブロック歪みを感知しないようにすること
ができる。
As is clear from the above description, the image data compression method according to the present invention changes the block cut-out position of the image data for each frame when the image data is divided into blocks. Due to the integration effect of the human eye, block distortion on the screen can be made insensitive.

【0040】また、本発明に係る画像データの伸長方法
は、画像データのブロック化の際に、画像データのブロ
ック切り出し位置がフレーム毎に変更されてブロック化
され、圧縮された画像データを伸長した後、各ブロック
毎の画像データに逆ブロック化を行う際に、上記画像デ
ータのブロック切り出し位置の変更分に応じて、フレー
ム毎の画像データの取り出しを制御することにより、人
間の目の積分効果により、画面上のブロック歪みを感知
しないようにすることができる。
Further, in the image data decompression method according to the present invention, when the image data is divided into blocks, the block cut-out position of the image data is changed for each frame to form a block, and the compressed image data is expanded. After that, when performing inverse blocking on the image data of each block, the integration effect of human eyes is controlled by controlling the extraction of the image data of each frame according to the change of the block cutout position of the image data. This makes it possible to prevent the block distortion on the screen from being sensed.

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

【図1】本発明に係る画像データの圧縮方法及び伸長方
法を用いた装置の概略的な構成を示す図である。
FIG. 1 is a diagram showing a schematic configuration of an apparatus using a compression method and an expansion method for image data according to the present invention.

【図2】奇数フレームの画像データのブロック化を示す
図である。
FIG. 2 is a diagram showing how image data of odd-numbered frames is divided into blocks.

【図3】偶数フレームの画像データのブロック化を示す
図である。
FIG. 3 is a diagram showing how image data of even frames is divided into blocks.

【図4】図1のブロック化回路の操作を示すフローチャ
ートである。
FIG. 4 is a flow chart showing the operation of the blocking circuit of FIG.

【図5】図1の逆ブロック化回路の操作を示すフローチ
ャートである。
5 is a flow chart showing the operation of the deblocking circuit of FIG. 1. FIG.

【図6】カメラで撮影された画像上の画像データのラス
タスキャン順を示す図である。
FIG. 6 is a diagram showing a raster scan order of image data on an image captured by a camera.

【図7】図6の画像データのブロック化を示す図であ
る。
FIG. 7 is a diagram showing how the image data of FIG. 6 is divided into blocks.

【図8】ブロック化された画像データのブロックA、
B、Cを1次元上の画像データで示す図である。
FIG. 8 is a block A of block image data,
It is a figure which shows B and C with one-dimensional image data.

【図9】図8に示すブロックA、B、Cが圧縮、伸長さ
れた後の状態を示す図である。
9 is a diagram showing a state after blocks A, B, and C shown in FIG. 8 have been compressed and expanded.

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

1・・・・・カメラ 2・・・・・ブロック化回路 3、13・・メモリ 4、14・・制御回路 5・・・・・DCT回路 6・・・・・量子化回路 7・・・・・VLC回路 8・・・・・伝送又は記録媒体 9・・・・・IVLC回路 10・・・・逆量子化回路 11・・・・IDCT回路 12・・・・逆ブロック化回路 15・・・・モニタ 1 ... Camera 2 ... Blocking circuit 3, 13 ... Memory 4, 14 ... Control circuit 5 ... DCT circuit 6 ... Quantization circuit 7 ... ..VLC circuit 8 ... Transmission or recording medium 9 ... IVLC circuit 10 ... Dequantization circuit 11 ... IDCT circuit 12 ... Deblocking circuit 15 ... ··monitor

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 画像データをブロック化し、各ブロック
毎に圧縮処理を行う画像データの圧縮方法において、 上記画像データのブロック化の際に、画像データのブロ
ック切り出し位置をフレーム毎に変更することを特徴と
する画像データの圧縮方法。
1. A method of compressing image data in which image data is divided into blocks and compression processing is performed for each block, wherein when the image data is divided into blocks, a block cutout position of the image data is changed for each frame. Characteristic image data compression method.
【請求項2】 画像データをブロック化し、各ブロック
毎に圧縮処理された画像データに伸長処理を行い、各ブ
ロック毎の画像データに逆ブロック化を行う画像データ
の伸長方法において、 上記画像データのブロック化の際に、画像データのブロ
ック切り出し位置がフレーム毎に変更されてブロック化
され、圧縮された画像データを伸長した後、上記各ブロ
ック毎の画像データに逆ブロック化を行う際に、上記画
像データのブロック切り出し位置の変更分に応じて、フ
レーム毎の画像データの取り出しを制御することを特徴
とする画像データの伸長方法。
2. An image data decompression method for dividing image data into blocks, decompressing the image data compressed for each block, and deblocking the image data for each block. At the time of blocking, the block cutout position of the image data is changed for each frame to be blocked, and after decompressing the compressed image data, when performing deblocking on the image data of each block, A method for decompressing image data, characterized in that extraction of image data for each frame is controlled according to a change amount of a block cut-out position of the image data.
JP26626093A 1993-10-25 1993-10-25 Method for compressing and expansting picture data Withdrawn JPH07123271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26626093A JPH07123271A (en) 1993-10-25 1993-10-25 Method for compressing and expansting picture data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26626093A JPH07123271A (en) 1993-10-25 1993-10-25 Method for compressing and expansting picture data

Publications (1)

Publication Number Publication Date
JPH07123271A true JPH07123271A (en) 1995-05-12

Family

ID=17428511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26626093A Withdrawn JPH07123271A (en) 1993-10-25 1993-10-25 Method for compressing and expansting picture data

Country Status (1)

Country Link
JP (1) JPH07123271A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007318726A (en) * 2006-04-27 2007-12-06 Canon Inc Image coding apparatus and method, and program and storage medium
JP2012110054A (en) * 2006-04-27 2012-06-07 Canon Inc Image encoding apparatus, image encoding method, program and storage medium
JP2017509188A (en) * 2014-01-01 2017-03-30 エルジー エレクトロニクス インコーポレイティド Video signal processing method and apparatus for reducing the visibility of blocking artifacts

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007318726A (en) * 2006-04-27 2007-12-06 Canon Inc Image coding apparatus and method, and program and storage medium
JP2012110054A (en) * 2006-04-27 2012-06-07 Canon Inc Image encoding apparatus, image encoding method, program and storage medium
JP2017509188A (en) * 2014-01-01 2017-03-30 エルジー エレクトロニクス インコーポレイティド Video signal processing method and apparatus for reducing the visibility of blocking artifacts

Similar Documents

Publication Publication Date Title
KR101177663B1 (en) Method and system for digital decoding 3d stereoscopic video images
EP1261208B1 (en) Encoding continuous image data
DE69433272T2 (en) Device for avoiding rounding errors in the inverse transformation of transformation coefficients of a moving image signal
EP0766479B1 (en) Coding device and decoding device of digital image signal
US6301304B1 (en) Architecture and method for inverse quantization of discrete cosine transform coefficients in MPEG decoders
JPH10271530A (en) Image data compression coder, method therefor and digital camera
JP2001112000A (en) Video signal encoding device
JP2003517796A (en) How to reduce the "uneven picture" effect
EP0667717B1 (en) Method and apparatus for reproducing picture data
US20010012397A1 (en) Image processing apparatus and method
US7139315B2 (en) Apparatus and process for decoding motion pictures
US5675667A (en) Picture compression apparatus, picture reproducing apparatus and picture drawing apparatus
JPH07123271A (en) Method for compressing and expansting picture data
GB2296618A (en) Digital video decoding system requiring reduced memory space
US7787700B2 (en) Signal processing method, signal processing apparatus, computer-readable medium and a data recording medium
JP2900810B2 (en) Method for reducing quantization noise generated when decoding transform-coded image data, and decoding device for transform-coded image data
JP4430731B2 (en) Digital camera and photographing method
JPH10145788A (en) Video reproduction device
JP3196753B2 (en) Image display method and image display device
JPH05130585A (en) Encoding device
KR20040073095A (en) A Device for Both Encoding and Decoding MPEG or JPEG Data
JPH04269084A (en) Image converter
JPH05199415A (en) Two-dimensional information encoding and decoding device
JPH10341407A (en) Compression rate setting device for electronic still camera
JPH07111652A (en) Compressing method, extending method and recording medium for image data

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: 20001226