JPH08180194A - Method and device for coding - Google Patents

Method and device for coding

Info

Publication number
JPH08180194A
JPH08180194A JP6322462A JP32246294A JPH08180194A JP H08180194 A JPH08180194 A JP H08180194A JP 6322462 A JP6322462 A JP 6322462A JP 32246294 A JP32246294 A JP 32246294A JP H08180194 A JPH08180194 A JP H08180194A
Authority
JP
Japan
Prior art keywords
data
transform coefficient
circuit
encoding
variable length
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
JP6322462A
Other languages
Japanese (ja)
Inventor
Koji Hirabayashi
康二 平林
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP6322462A priority Critical patent/JPH08180194A/en
Publication of JPH08180194A publication Critical patent/JPH08180194A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4084Transform-based scaling, e.g. FFT domain scaling

Abstract

PURPOSE: To converte the orthogonal transformation coefficient data into the orthogonal transformation coefficient data of a 1/n reduced image without an orthogonal inverse transformation and conversion of the resolution in an actual space. CONSTITUTION: In an input terminal 10, JPEG coded image data is inputted. The data is returned to DCT conversion coefficient data by a variable length decoding circuit 12 and an inverse quantization circuit 14 and the data is temporarily stored. A conversion coefficient synthesizing circuit 20 synthesizes 4 longitudinally and laterally adjacent conversion coefficient blocks which are stored in a memory 16 into a conversion coefficient block by a matrix calculation. The synthetic result of the circuit 20 is quantized by a quantization circuit 22 and is coded by a variable length coding circuit 24.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、符号化装置及び方法に
関し、より具体的には、直交変換符号化された画像符号
データを、縮小画像の画像符号データに変換する符号化
装置及び方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coding apparatus and method, and more particularly to a coding apparatus and method for converting image code data that has been orthogonally transformed and coded into image code data of a reduced image. .

【0002】[0002]

【従来の技術】画像を縮小したり、サンプル比を変更し
たいとき、原画像データがあれば、それをサブサンプリ
ング又は、フィルタ処理の後にサブサンプリングすれば
よい。他方、既に直交変換符号化されている画像データ
しか得られない場合には、一度、直交逆変換を行なって
原画像の空間データに戻し、これをサブサンプリングす
る必要がある。 非圧縮の原画像データはデータ量が膨
大になるので、圧縮状態で保存又は供給されることが多
い。したがって、このような縮小画像のデータも、圧縮
符号化された状態で提供されるのが望ましく、通常は、
サブサンプリング後に再符号化される。
2. Description of the Related Art When it is desired to reduce an image or change a sample ratio, original image data, if any, may be subsampled or filtered and then subsampled. On the other hand, when only image data that has already been subjected to orthogonal transform coding can be obtained, it is necessary to perform orthogonal inverse transform once to return it to the spatial data of the original image and subsample it. Since the amount of uncompressed original image data is enormous, it is often stored or supplied in a compressed state. Therefore, it is desirable that the data of such a reduced image is also provided in a compression encoded state, and normally,
It is re-encoded after subsampling.

【0003】近年、画像符号化方式では離散コサイン変
換(DCT)が注目され、国際標準となったJPEG方
式もDCTを利用している。既に、JPEG方式で圧縮
伸長手段が広く世界に普及し、JPEGで圧縮されたソ
フトウエアも多く流通しようとしている。
In recent years, discrete cosine transform (DCT) has attracted attention as an image coding system, and the JPEG system, which has become an international standard, also uses DCT. The compression / expansion means has already spread widely all over the world by the JPEG system, and a lot of software compressed by the JPEG is about to be distributed.

【0004】例えば、JPEG符号化された画像データ
から、縦横1/2に縮小した画像のJPEG符号化デー
タを得ようとする場合を考える。この場合、従来例で
は、JPEG符号化画像データをJPEG復号化して空
間領域に戻し、ローパス・フィルタ処理しながら、縦横
1/2にサブサンプリングして縮小画像の空間データを
得る。この後、この縮小画像の空間データをJPEG符
号化する。これにより、縮小画像の符号化データを得る
ことができる。
For example, let us consider a case in which JPEG-encoded image data of an image that has been reduced in size by ½ is obtained from JPEG-encoded image data. In this case, in the conventional example, the JPEG-coded image data is JPEG-decoded and returned to the spatial area, and the low-pass filtering is performed to subsample the horizontal and vertical halves to obtain the spatial data of the reduced image. Thereafter, the spatial data of this reduced image is JPEG encoded. Thereby, encoded data of the reduced image can be obtained.

【0005】[0005]

【発明が解決しようとする課題】JPEG方式では通
常、8画素×8画素の2次元DCT変換を用いる。この
DCT変換は、基本的に8×8の行列の乗算を2回行な
うことで達成される。従って、従来例では、原画にK個
のブロックがあったとして、復号化の際に2K回の行列
演算を行ない、再符号化の際にK/4個のブロックを対
象とするのでK/2回の行列演算を行なうことになり、
総計で5K/2回の行列積演算が必要になる。
In the JPEG system, a two-dimensional DCT transform of 8 pixels × 8 pixels is usually used. This DCT conversion is basically achieved by multiplying an 8 × 8 matrix twice. Therefore, in the conventional example, assuming that there are K blocks in the original image, matrix operation is performed 2K times during decoding, and K / 4 blocks are targeted during re-encoding. Will perform matrix operations twice,
A total of 5K / 2 matrix product operations are required.

【0006】加えて、原画像の空間データから縦横1/
2サイズの縮小画像を得るための演算が別に必要であ
る。縮小画像の品質を上げるために縮小の前処理として
フィルタ処理を行なう場合には、更に大幅に演算量が増
すことになる。
In addition, from the spatial data of the original image,
A separate calculation is required to obtain a reduced image of two sizes. If filter processing is performed as pre-processing for reduction in order to improve the quality of the reduced image, the amount of calculation will be significantly increased.

【0007】本発明は、このような問題点を解決し、よ
り少ない演算で符号化画像データから所望の縮小画像の
符号化データを得ることのできる符号化装置及び方法を
提示することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to solve the above problems and to provide an encoding device and method capable of obtaining encoded data of a desired reduced image from encoded image data with less calculation. To do.

【0008】[0008]

【課題を解決するための手段】本発明に係る符号化装置
は、ブロック単位で直交変換符号化された画像符号デー
タを変換する装置であって、当該画像符号データを直交
変換係数データに復号する復号手段と、2以上のn個の
変換係数ブロックから1つの変換係数ブロックを算出す
る合成手段と、当該合成手段による変換係数ブロックを
再符号化する符号化手段とからなることを特徴とする。
An encoding device according to the present invention is a device for converting image code data that has been orthogonally transformed and coded in block units, and decodes the image code data into orthogonal transform coefficient data. It is characterized in that it comprises a decoding means, a synthesizing means for calculating one transform coefficient block from two or more n transform coefficient blocks, and an encoding means for re-encoding the transform coefficient block by the synthesizing means.

【0009】本発明に係る符号化方法は、ブロック単位
で直交変換符号化された画像符号データを変換する方法
であって、当該画像符号データを直交変換係数データに
復号する復号ステップと、2以上のn個の変換係数ブロ
ックから1つの変換係数ブロックを算出する合成ステッ
プと、当該合成ステップによる変換係数ブロックを再符
号化する符号化ステップとからなることを特徴とする。
An encoding method according to the present invention is a method for transforming image code data that has been orthogonally transformed and coded in block units, and includes a decoding step of decoding the image code data into orthogonal transform coefficient data, and two or more. Of n transform coefficient blocks, a combining step of calculating one transform coefficient block, and an encoding step of re-encoding the transform coefficient block by the combining step.

【0010】[0010]

【作用】上記合成手段又はステップにより、画像の直交
変換係数データを、直交逆変換及びサブサンプリングを
行なうことなしに、1/nの縮小画像の直交変換係数デ
ータに変換できる。同様の処理で、符号化像データのフ
ォーマットを変換できる。
By the above-mentioned synthesizing means or steps, the orthogonal transform coefficient data of the image can be transformed into the orthogonal transform coefficient data of the reduced image of 1 / n without performing the inverse orthogonal transform and the subsampling. The format of the encoded image data can be converted by similar processing.

【0011】[0011]

【実施例】以下、図面を参照して、本発明の実施例を詳
細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0012】図1は、本発明の一実施例の概略構成ブロ
ック図である。先ず、JPEG符号化画像を縮小する場
合を例にその動作を説明する。なお、JPEG符号化回
路は、基本的に、原画像データを所定サイズのブロック
単位でDCT変換するDCT変換回路、DCT変換回路
による変換係数を量子化する量子化回路、及び量子化回
路の出力を可変長符号化(VLC)する可変長符号化回
路からなる。
FIG. 1 is a schematic block diagram of an embodiment of the present invention. First, the operation will be described by taking the case of reducing a JPEG encoded image as an example. Note that the JPEG encoding circuit basically outputs a DCT conversion circuit that performs DCT conversion of original image data in block units of a predetermined size, a quantization circuit that quantizes conversion coefficients by the DCT conversion circuit, and an output of the quantization circuit. It is composed of a variable length coding circuit for performing variable length coding (VLC).

【0013】10はJPEG符号化画像データの入力端
子、12は入力端子10からの符号化データを可変長復
号化する可変長復号化回路、14は可変長復号化回路1
2の出力を逆量子化する逆量子化回路である。逆量子化
回路14の出力はDCT変換係数データになっている。
Reference numeral 10 is an input terminal for JPEG encoded image data, 12 is a variable length decoding circuit for variable length decoding the encoded data from the input terminal 10, and 14 is a variable length decoding circuit 1.
2 is an inverse quantization circuit that inversely quantizes the output of 2. The output of the inverse quantization circuit 14 is DCT transform coefficient data.

【0014】16は、少なくとも画像幅×2ブロック・
ラインの変換係数データを記憶できるメモリ容量を具備
するメモリ、18はメモリ16の書き込み読み出しを制
御するメモリ制御回路であり、メモリ16には、メモリ
制御回路18の制御下で、逆量子化回路14の出力(変
換係数データ)が一時記憶される。
16 is at least image width × 2 blocks
A memory having a memory capacity capable of storing the conversion coefficient data of the line, 18 is a memory control circuit for controlling writing and reading of the memory 16, and the memory 16 includes the inverse quantization circuit 14 under the control of the memory control circuit 18. Output (conversion coefficient data) is temporarily stored.

【0015】20はメモリ制御回路18によりメモリ1
6から読み出された変換係数データを合成する変換係数
合成回路である。変換係数合成回路20は、本実施例で
重要な役割を担っており、その機能の詳細は、後述す
る。
Reference numeral 20 denotes the memory 1 by the memory control circuit 18.
6 is a conversion coefficient synthesizing circuit for synthesizing the conversion coefficient data read from No. 6; The conversion coefficient synthesizing circuit 20 plays an important role in this embodiment, and the details of its function will be described later.

【0016】22は変換係数合成回路20の出力を量子
化する量子化回路、24は量子化回路24の出力を可変
長符号化する可変長符号化回路、26は可変長符号化回
路24の出力を外部に出力する出力端子である。
Reference numeral 22 is a quantizing circuit for quantizing the output of the transform coefficient synthesizing circuit 20, 24 is a variable length coding circuit for variable length coding the output of the quantizing circuit 24, and 26 is an output of the variable length coding circuit 24. Is an output terminal for outputting to the outside.

【0017】以下の説明では、理解を容易にするため
に、原画像は輝度データにより構成されているものとす
る。L*でも、RGBの各プレーンでも同じである。更
に、原画像は8画素×8画素からなるブロックで、x方
向にM個、y方向にN個あるとする。これにより、画像
サイズはx方向にM×8画素、y方向にN×8画素にな
り、総ブロック数はM×N個になる。
In the following description, for ease of understanding, the original image is composed of luminance data. The same applies to L * and RGB planes. Further, it is assumed that the original image is a block composed of 8 pixels × 8 pixels, and there are M blocks in the x direction and N blocks in the y direction. As a result, the image size becomes M × 8 pixels in the x direction and N × 8 pixels in the y direction, and the total number of blocks becomes M × N.

【0018】入力端子10に入力する符号データは、原
画像データのJPEG符号であり、量子化されたDCT
変換係数の可変長符号である。可変長復号化回路12
は、入力端子10からの符号データを可変長復号化し、
量子化されたDCT変換係数データを逆量子化回路14
に印加する。逆量子化回路14は可変長復号化回路12
の出力を逆量子化する。逆量子化回路4の出力はDCT
変換係数データになっており、メモリ制御回路18によ
りメモリ16に書き込まれる。
The code data input to the input terminal 10 is the JPEG code of the original image data, and is the quantized DCT.
It is a variable length code of the transform coefficient. Variable length decoding circuit 12
Is a variable length decoding of the coded data from the input terminal 10,
The quantized DCT transform coefficient data is used for the inverse quantization circuit 14
Apply to. The inverse quantization circuit 14 is a variable length decoding circuit 12
Dequantize the output of. The output of the inverse quantization circuit 4 is DCT
The conversion coefficient data is written in the memory 16 by the memory control circuit 18.

【0019】このようにして、図2に示す2ブロック・
ライン分、即ち2Mブロック分のDCT変換係数データ
がメモリ16に書き込まれると、メモリ16から、図2
上で左から4(=2×2)ブロック(最初は、図2に示
すブロックA,B,C,D)のデータが読み出され、変
換係数合成回路20がそれらを1つのブロックに合成す
る。この合成の詳細は後述する。量子化回路22は変換
係数合成回路20から出力されるDCT変換係数データ
を量子化し、可変長符号化回路24は量子化回路22の
出力を可変長符号化する。可変長符号化回路24の出力
は、縦横それぞれ1/2に縮小された画像のJPEG符
号になっており、出力端子26から外部に出力される。
In this way, the two blocks shown in FIG.
When the DCT transform coefficient data for the line, that is, for the 2M block is written in the memory 16, the
The data of the 4 (= 2 × 2) blocks (the blocks A, B, C, and D shown in FIG. 2 at first) are read out from the left, and the transform coefficient synthesizing circuit 20 synthesizes them into one block. . Details of this combination will be described later. The quantizing circuit 22 quantizes the DCT transform coefficient data output from the transform coefficient synthesizing circuit 20, and the variable length coding circuit 24 variable length codes the output of the quantizing circuit 22. The output of the variable-length coding circuit 24 is the JPEG code of the image that is vertically and horizontally reduced to 1/2, and is output from the output terminal 26 to the outside.

【0020】メモリ16に記憶される2M個のブロック
の全てについて、変換係数の合成(及び再符号化)が終
了したら、次のブロック・ラインの、可変長復号化及び
逆量子化されたDCT変換係数データが、メモリ16に
書き込まれる。
After combining (and re-encoding) the transform coefficients for all of the 2M blocks stored in the memory 16, the variable-length decoded and dequantized DCT transform of the next block line is performed. The coefficient data is written in the memory 16.

【0021】ここでは、各部の動作を理解しやすいよう
に、回路12,14の処理と回路20〜24の処理を交
互に実行するように説明したが、例えば、メモリ16の
容量を倍にすることで、回路12,14の処理と回路2
0〜24の処理を同時実行できることは明らかである。
Here, the processing of the circuits 12 and 14 and the processing of the circuits 20 to 24 are alternately executed so that the operation of each unit can be easily understood. However, for example, the capacity of the memory 16 is doubled. Therefore, the processing of the circuits 12 and 14 and the circuit 2
It is obvious that the processing of 0 to 24 can be executed simultaneously.

【0022】次に、変換係数合成回路20における動作
を、一次元データ列を例に詳細に説明する。隣接する8
画素の並びをA、Aの右に隣接する8画素の並びをBと
し、A,Bをそれぞれ8次DCT変換して得られる変換
係数a,bを各々、 a=(a0,a1,a2,・・・,a7) b=(b0,b1,b2,・・・,b7) とする。DCTの基底をφ0〜φ7とするとき、A,B,
i,bi,φiは以下の関係にある。即ち、
Next, the operation of the transform coefficient synthesizing circuit 20 will be described in detail by taking a one-dimensional data string as an example. Adjacent 8
The pixel arrangement is A, and the arrangement of eight pixels adjacent to the right of A is B, and the conversion coefficients a and b obtained by performing 8th-order DCT conversion on A and B are respectively a = (a 0 , a 1 , a 2 , ..., A 7 ) b = (b 0 , b 1 , b 2 , ..., B 7 ). When the basis of DCT is φ 0 to φ 7 , A, B,
a i , b i , and φ i have the following relationship. That is,

【0023】[0023]

【数1】 [Equation 1]

【0024】ここで、AとBを並べた16次の波形をC
とし、新たに、16次の波群δi,λiを下式のように定
義する。即ち、
Here, the 16th-order waveform in which A and B are arranged is C
Then, the 16th-order wave groups δ i and λ i are newly defined by the following equation. That is,

【0025】[0025]

【数2】 [Equation 2]

【0026】これにより、By this,

【0027】[0027]

【数3】C=Σaiσi+Σbiλi で表わされる。[Expression 3] C = Σa i σ i + Σb i λ i

【0028】16次のDCT基底をψ0〜ψ15とし、C
を16次DCT変換したときの変換係数cを、 c=(c0,c1,c2,・・・,c15) とすると、 C=Σciψi で表わされる。各要素cjは、下式で与えられる。
Let the 16th-order DCT basis be ψ 0 to ψ 15, and C
Let c = (c 0 , c 1 , c 2 , ..., C 15 ) be the transform coefficient c when the 16th-order DCT transform is performed. Then, C = Σc i ψ i . Each element c j is given by the following equation.

【0029】[0029]

【数4】cj=(Σaiσi+Σbiλi)ψj ## EQU4 ## c j = (Σa i σ i + Σb i λ i ) ψ j

【0030】[0030]

【数4】からai,biを外に出すと、When a i and b i are put out from the equation (4),

【0031】[0031]

【数5】 (Equation 5)

【0032】こうして求められるciのうち、c0〜c7
のみをCの低周波成分として取り出し、これを、Cの縦
横1/2縮小領域を8次DCTにより変換した場合の係
数eとして用いる。なお、 e=(e0,e1,e2,・・・,e7) である。
Of c i thus obtained, c 0 to c 7
Only C is extracted as a low frequency component of C, and this is used as a coefficient e when the vertical and horizontal 1/2 reduced region of C is converted by the 8th order DCT. Note that e = (e 0 , e 1 , e 2 , ..., E 7 ).

【0033】定数dを用いて、Using the constant d,

【0034】[0034]

【数6】 (Equation 6)

【0035】とする。It is assumed that

【数6】の行列P,Qの各行列要素のうち、ψの符番が
偶数のものは、σ,λの係数が0でない部分に関して8
次DCTの基底と関数形が同じになる。従って、
Among the matrix elements of the matrices P and Q of [Equation 6], if the sign of ψ is an even number, it is 8 when the coefficient of σ and λ is not 0.
The functional form is the same as the basis of the next DCT. Therefore,

【0036】[0036]

【数7】 (Equation 7)

【0037】となる。また、ψの符番が奇数のときは、
関数形から
[0037] When the number of ψ is odd,
From the functional form

【0038】[0038]

【数8】 (Equation 8)

【0039】となる。It becomes

【0040】従って、求める解e=(e0,e1,e2
・・・,e7)は、
Therefore, the solution to be obtained e = (e 0 , e 1 , e 2 ,
..., e 7 ) is

【0041】[0041]

【数9】 [Equation 9]

【0042】となる。ここで、Mは4行8列の一意に定
まる行列、dは一意に定まる定数である。
It becomes Here, M is a matrix of 4 rows and 8 columns that is uniquely determined, and d is a constant that is uniquely determined.

【0043】このようにして、既に8次DCTにより変
換係数化されたa=(a0,a1,a
In this way, a = (a 0 , a 1 , a which has already been transformed into a coefficient by the 8th order DCT is used.

【0044】2,・・・,a7)及びb=(b0,b1,b
2,・・・,b7)に対して、
2 , ..., A 7 ) and b = (b 0 , b 1 , b
2 , ..., b 7 )

【数9】を適用することにより、e=(e0,e1
2,・・・,e7)を求めることがで
By applying the following equation, e = (e 0 , e 1 ,
e 2 , ..., e 7 )

【0045】きる。Cut

【数9】は少ない演算で済むので、高速に所望の結果を
得ることができる。e=(e0,e1,e2,・・・,
7)が、a,bの元になる空間データA,Bを結合し
た領域Cの、低周波成分を表わすDCT変換係数である
ことに留意されたい。
[Mathematical formula-see original document] Since only a small number of operations are required, it is possible to obtain a desired result at high speed. e = (e 0 , e 1 , e 2 , ...,
It should be noted that e 7 ) is the DCT transform coefficient representing the low frequency component of the region C in which the spatial data A and B which are the bases of a and b are combined.

【0046】[0046]

【数9】を参照して、変換係数合成回路20の内部処理
を具体的に説明する。図3に示すように、隣接する変換
係数ブロックP,Q,R,Sを取り出す。P,Q,R,
Sは各々、8次DCT基底により2次元DCT変換され
たものである。各ブロックP,Q,R,Sを縦に短冊状
に切り、これらを図4に示すように、p0〜p7,q0
7,r0〜r7,s0〜s7とする。
The internal processing of the transform coefficient synthesizing circuit 20 will be specifically described with reference to the following equation. As shown in FIG. 3, adjacent transform coefficient blocks P, Q, R, and S are taken out. P, Q, R,
Each S is a two-dimensional DCT transformed by the 8th DCT basis. Each block P, Q, R, S is vertically cut into strips, and these are cut as shown in FIG. 4 with p 0 to p 7 , q 0 to
Let q 7 , r 0 to r 7 , and s 0 to s 7 .

【0047】piとri、及びqiとsiに対してFor p i and r i , and q i and s i

【数9】を作用させ、その出力をti,uiとする。i=
0〜7についてこれらの処理を行ない、{ti},
{ui}のブロックを図5に示すように、T,Uと名付
ける。得られたT,Uを横方向に短冊状に切り、これら
を図6に示すように、τ0〜τ7,ν0〜ν7とする。
[Equation 9] is actuated, and its outputs are set as t i and u i . i =
Perform these processes for 0-7, {t i },
The blocks of {u i } are named T and U as shown in FIG. The obtained T and U are laterally cut into strips, and these are set to τ 0 to τ 7 and ν 0 to ν 7 , as shown in FIG.

【0048】τi,νiFor τ i and ν i

【数9】を作用させ、出力をeiとする。得られたe0
7により構成される8×8の変換係数が、求める解で
ある。これはまた、P,Q,R,Sと同じ空間を記述す
る16×16のブロック内の低周波部分のブロックでも
ある。即ち、PQRSを良好に縮小(縦横それぞれに1
/2)した8×8のブロックに対する8次DCT基底に
よる2次元DCTの変換係数と等価である。
[Equation 9] is operated and the output is set to e i . Obtained e 0 ~
The 8 × 8 transform coefficient constituted by e 7 is the solution to be obtained. It is also a block of low frequency parts within a 16x16 block that describes the same space as P, Q, R, S. That is, PQRS is reduced well (1 in each of the vertical and horizontal directions)
/ 2) is equivalent to the transform coefficient of the two-dimensional DCT based on the 8th-order DCT basis for the 8 × 8 block.

【0049】このようにして、図1に示す実施例では、
DCT、2次元逆変換及び画像縮小処理を行なわずに、
簡易な演算により、既存のDCT変換係数から縮小画像
のDCT変換係数を直接求めることが可能になった。
Thus, in the embodiment shown in FIG.
Without performing DCT, two-dimensional inverse transformation and image reduction processing,
With simple calculation, it is possible to directly obtain the DCT transform coefficient of the reduced image from the existing DCT transform coefficient.

【0050】図1に示す実施例は、変換係数合成回路2
0の動作を変更することにより、種々のフォーマット変
換を実現できる。国際標準方式で規定されるカラー画像
では、色空間としてY−Cb−Crが用いられるが、そ
のサンプリング比によって、4:4:2、4:2:2及
び4:2:0などのフォーマット又はバリエーションが
ある。JPEG方式では4:2:0が使用されることが
多い。しかし、4:2:0に限定されているわけではな
く、他のフォーマットも利用可能である。
In the embodiment shown in FIG. 1, the transform coefficient synthesizing circuit 2 is used.
By changing the operation of 0, various format conversions can be realized. A color image defined by the international standard system uses Y-Cb-Cr as a color space. Depending on the sampling ratio, a format such as 4: 4: 2, 4: 2: 2 and 4: 2: 0 or There are variations. In the JPEG system, 4: 2: 0 is often used. However, the format is not limited to 4: 2: 0, and other formats can be used.

【0051】データ量の削減等の理由により、フォーマ
ット間の変換は非常に重要な技術になる。変換係数合成
回路20を以下のように動作させることで、図1に示す
実施例に4:2:2のフォーマットの画像のクロマ・デ
ータを適用して、4:2:0のフォーマットに変換する
ことができる。
Conversion between formats is a very important technique because of reduction of the amount of data. By operating the conversion coefficient synthesizing circuit 20 as follows, the chroma data of the image of the 4: 2: 2 format is applied to the embodiment shown in FIG. 1 to convert it to the 4: 2: 0 format. be able to.

【0052】4:2:2のフォーマットの画像は、図7
に示すよう、Cb及びCrデータがY(輝度)データに
比べ、横方向に1/2でサンプリングされている。Y,
Cb,Crの3面のデータは事実上、各々8×8のブロ
ックを単位に切り出され、DCT符号化される。実際
は、Yブロックが4つ、Crブロックが2つ、Cbブロ
ックが2つの、合計6ブロック単位である。
An image in the 4: 2: 2 format is shown in FIG.
As shown in, the Cb and Cr data are sampled at 1/2 in the horizontal direction as compared with the Y (luminance) data. Y,
The data on the three planes of Cb and Cr are actually cut out in units of 8 × 8 blocks and DCT-encoded. Actually, there are four Y blocks, two Cr blocks, and two Cb blocks, for a total of 6 block units.

【0053】他方、4:2:0のフォーマットは、図8
に示すように、4:2:2のフォーマットの画像のクロ
マ面のみを、縦に1/2にサンプリングしたものであ
る。
On the other hand, the 4: 2: 0 format is shown in FIG.
As shown in (4), only the chroma surface of the image of the 4: 2: 2 format is vertically sampled to 1/2.

【0054】4:2:2の符号化データのYデータはそ
のまま流用できるので、クロマの符号化データ・ブロッ
クのみを処理すればよい。図9に示すように、縦に隣接
する2ブロックP,Qの変換係数を取り出し、これら
を、図10に示すように、縦に短冊状に切って、各々を
0〜p7,q0〜q7とする。
Since the Y data of the 4: 2: 2 coded data can be used as it is, only the chroma coded data block needs to be processed. As shown in FIG. 9, the conversion coefficients of two vertically adjacent blocks P and Q are taken out, and these are vertically cut into strips as shown in FIG. 10, and each of them is converted into p 0 to p 7 , q 0. ~ Q 7 .

【0055】p0〜p7,q0〜q7を入力としてWith p 0 to p 7 and q 0 to q 7 as inputs

【数9】を作用させることにより、出力eiを得ること
ができる。得られたeiを図11に示すように並べたも
のは、ブロックP,Qの原画を縦方向に1/2に縮小し
たもののDCT変換係数に相当する。これを再び可変長
符号化することにより、4:2:0の画像の符号データ
を得ることができる。
The output e i can be obtained by operating the following equation. The arrangement of the obtained e i as shown in FIG. 11 corresponds to the DCT transform coefficient of the original image of the blocks P and Q, which is reduced in size by half in the vertical direction. By subjecting this to variable length coding again, coded data of an image of 4: 2: 0 can be obtained.

【0056】上記実施例では、一次元上の2つの変換係
数ブロックから1つの変換係数ブロックを生成したの
で、1/2に縮小したことに相当するが、これを拡張し
て、任意のn個の変換係数ブロックから1つの変換係数
ブロックを生成することもできる。即ち、1/nに縮小
できる。
In the above embodiment, one transform coefficient block is generated from two one-dimensional transform coefficient blocks, which corresponds to a reduction of 1/2. However, this is expanded to an arbitrary n It is also possible to generate one transform coefficient block from the transform coefficient blocks of. That is, it can be reduced to 1 / n.

【0057】一次元上で隣接する8個のデータを1ブロ
ックとして、連続するn個のブロックを考える。これら
をBi(原画)とし、Biを8次DCT変換した結果
を、bi=(bi(0),bi(1),・・・bi
(7))とする。また、8次DCT変換の基底をφ0
φ7とする。更に、24次DCT変換の基底をψ0
ψ23、ゼロを8個並べたものをZ=(0,0,0,0,
0,0,0,0)としたとき、24次ベクトル群σkj
下式で定義する。即ち、
Considering continuous n blocks with one block of eight adjacent data in one dimension. These are defined as Bi (original picture), and the result of Bi-order DCT conversion of Bi is bi = (bi (0), bi (1), ...
(7)). In addition, the basis of the 8th DCT transform is φ 0 ~
φ 7 Furthermore, the basis of the 24th-order DCT transform is ψ 0 ~
ψ 23 , and an array of eight zeros is Z = (0,0,0,0,
0,0,0,0), the 24th-order vector group σ kj is defined by the following equation. That is,

【0058】[0058]

【数10】 [Equation 10]

【0059】Biの全体を1/2に縮小し、8次DCT
変換した変換係数を、 e=(e0,e1,e2,・・・,e7) とすると、以下の手順により、eを求めることができ
る。即ち、
The entire Bi is reduced to 1/2 and the 8th-order DCT is performed.
Letting the converted conversion coefficient be e = (e 0 , e 1 , e 2 , ..., E 7 ), e can be obtained by the following procedure. That is,

【0060】[0060]

【数11】 [Equation 11]

【0061】このようにして、任意のn個の変換係数ブ
ロックの並びから、1/n縮小画像のDCT変換係数を
求めることができる。
In this way, the DCT transform coefficient of the 1 / n reduced image can be obtained from the array of arbitrary n transform coefficient blocks.

【0062】2次元DCT変換による変換係数ブロック
の2次元的な配列に対して、横方向
In the horizontal direction with respect to the two-dimensional array of transform coefficient blocks by the two-dimensional DCT transform.

【0063】にm個、縦方向にn個のブロックをとり、
縦横別々に
M blocks, and n blocks in the vertical direction,
Vertically and horizontally separately

【数11】による変換を実施すると、縦方向と横方向で
任意の整数分の1の変倍が可能になる。例えば、4:
4:4のフォーマットから4:2:0のフォーマットに
変換しつつ、画像サイズを縦横1/3に縮小するといっ
た処理も、可能になる。
By carrying out the conversion by the equation (11), it is possible to carry out scaling by an arbitrary integer fraction in the vertical and horizontal directions. For example, 4:
It is also possible to reduce the image size vertically and horizontally to 1/3 while converting from the 4: 4 format to the 4: 2: 0 format.

【0064】変換後のDCT変換係数を8次に限定しな
ければ、同様の処理によりサンプリング・フォーマット
の変換及び/又は任意の変倍が可能になることはいうま
でもない。
It goes without saying that the sampling format conversion and / or arbitrary scaling can be performed by the same processing unless the DCT conversion coefficient after conversion is limited to the 8th order.

【0065】直交変換符号化としてDCTを例に説明し
たが、本発明はこれに限定されず、その他の直交変換符
号化であってもよいこともまた明らかである。
Although the DCT has been described as an example of the orthogonal transform coding, the present invention is not limited to this, and it is also apparent that other orthogonal transform coding may be used.

【0066】[0066]

【発明の効果】以上の説明から容易に理解できるよう
に、本発明によれば、直交逆変換、及び実空間における
解像度変換を行なうことなしに、縮小画像の直交変換係
数を得ることが可能になる。この結果、より簡単な演算
処理で、符号化画像データを縮小画像の符号化画像デー
タに変換でき、また、符号化像データのフォーマットを
変換できる。勿論、符号化像データのフォーマットを変
換しつつ、縮小画像の符号化画像データに変換できる。
As can be easily understood from the above description, according to the present invention, it is possible to obtain the orthogonal transform coefficient of the reduced image without performing the inverse orthogonal transform and the resolution conversion in the real space. Become. As a result, the coded image data can be converted into the coded image data of the reduced image and the format of the coded image data can be converted by a simpler arithmetic process. Of course, it is possible to convert the format of the encoded image data into the encoded image data of the reduced image while converting the format of the encoded image data.

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

【図1】 本発明の一実施例の概略構成ブロック図であ
る。
FIG. 1 is a schematic block diagram of an embodiment of the present invention.

【図2】 メモリ16に記憶される変換係数ブロックで
ある。
FIG. 2 is a transform coefficient block stored in a memory 16.

【図3】 変換係数合成回路20の動作説明図である。FIG. 3 is an operation explanatory diagram of a conversion coefficient synthesizing circuit 20.

【図4】 図3に示すブロックP,Q,R,Sから形成
したベクトルp,q,r,sの説明図である。
4 is an explanatory diagram of vectors p, q, r, s formed from blocks P, Q, R, S shown in FIG.

【図5】 図4にFIG. 5

【数9】を適用した結果である。This is the result of applying

【図6】 図5に示すデータを横方向に短冊状に切って
得られるデータである。
FIG. 6 is data obtained by cutting the data shown in FIG. 5 into strips in the horizontal direction.

【図7】 4:2:2フォーマットの画像データであ
る。
FIG. 7 shows image data in a 4: 2: 2 format.

【図8】 4:2:0フォーマットの画像データであ
る。
FIG. 8 is image data in a 4: 2: 0 format.

【図9】 4:2:2を4:2:0に変換する際のクロ
マ・データの処理単位である。
FIG. 9 is a processing unit of chroma data when converting 4: 2: 2 to 4: 2: 0.

【図10】 図9に示すブロックP,Qの変換係数を縦
に短冊状に切って得られるデータである。
10 is data obtained by vertically cutting the conversion coefficients of blocks P and Q shown in FIG. 9 into strips.

【図11】 フォーマット変換結果である。FIG. 11 is a format conversion result.

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

10:符号化画像データ入力端子 12:可変長復号化回路 14:逆量子化回路 16:メモリ 18:メモリ制御回路 20:変換係数合成回路 22:量子化回路 24:可変長符号化回路 26:出力端子 10: Encoded image data input terminal 12: Variable length decoding circuit 14: Inverse quantization circuit 16: Memory 18: Memory control circuit 20: Transform coefficient synthesis circuit 22: Quantization circuit 24: Variable length coding circuit 26: Output Terminal

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/41 Z ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical indication H04N 1/41 Z

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 ブロック単位で直交変換符号化された画
像符号データを変換する装置であって、当該画像符号デ
ータを直交変換係数データに復号する復号手段と、2以
上のn個の変換係数ブロックから1つの変換係数ブロッ
クを算出する合成手段と、当該合成手段による変換係数
ブロックを再符号化する符号化手段とからなることを特
徴とする符号化装置。
1. A device for converting image code data orthogonally coded in block units, the decoding device decoding the image code data into orthogonal transform coefficient data, and n or more transform coefficient blocks. An encoding apparatus comprising: a synthesizing unit that calculates one transform coefficient block from the above, and an encoding unit that re-encodes the transform coefficient block by the synthesizing unit.
【請求項2】 上記符号化手段が可変長符号化手段であ
る請求項1に記載の符号化装置。
2. The coding apparatus according to claim 1, wherein the coding means is a variable length coding means.
【請求項3】 上記符号化手段が、量子化手段及び可変
長符号化手段からなる請求項1に記載の符号化装置。
3. The coding apparatus according to claim 1, wherein the coding means comprises a quantizing means and a variable length coding means.
【請求項4】 直交変換符号化が離散コサイン変換であ
る請求項1乃至3の何れか1項に記載の符号化装置。
4. The coding apparatus according to claim 1, wherein the orthogonal transform coding is a discrete cosine transform.
【請求項5】 ブロック単位で直交変換符号化された画
像符号データを変換する方法であって、当該画像符号デ
ータを直交変換係数データに復号する復号ステップと、
2以上のn個の変換係数ブロックから1つの変換係数ブ
ロックを算出する合成ステップと、当該合成ステップに
よる変換係数ブロックを再符号化する符号化ステップと
からなることを特徴とする符号化方法。
5. A method for transforming image code data that has been orthogonally transformed and coded in block units, the decoding step of decoding the image code data into orthogonal transform coefficient data,
An encoding method comprising: a combining step of calculating one transform coefficient block from two or more n transform coefficient blocks; and an encoding step of re-encoding the transform coefficient block by the combining step.
【請求項6】 上記符号化ステップが可変長符号化ステ
ップである請求項5に記載の符号化方法。
6. The encoding method according to claim 5, wherein the encoding step is a variable length encoding step.
【請求項7】 上記符号化ステップが、当該合成手段に
よる変換係数ブロックのデータを量子化する量子化ステ
ップと、当該量子化ステップの結果を可変長符号化する
可変長符号化ステップとからなる請求項5に記載の符号
化方法。
7. The encoding step comprises a quantization step of quantizing the data of the transform coefficient block by the synthesizing means, and a variable length encoding step of variable length encoding the result of the quantization step. The encoding method according to Item 5.
【請求項8】 直交変換符号化が離散コサイン変換であ
る請求項5乃至7の何れか1項に記載の符号化方法。
8. The coding method according to claim 5, wherein the orthogonal transform coding is a discrete cosine transform.
JP6322462A 1994-12-26 1994-12-26 Method and device for coding Pending JPH08180194A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6322462A JPH08180194A (en) 1994-12-26 1994-12-26 Method and device for coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6322462A JPH08180194A (en) 1994-12-26 1994-12-26 Method and device for coding

Publications (1)

Publication Number Publication Date
JPH08180194A true JPH08180194A (en) 1996-07-12

Family

ID=18143927

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6322462A Pending JPH08180194A (en) 1994-12-26 1994-12-26 Method and device for coding

Country Status (1)

Country Link
JP (1) JPH08180194A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6473207B1 (en) 1997-08-26 2002-10-29 Nec Corporation Image size transformation method for orthogonal transformation coded image
US6683997B1 (en) 1999-11-08 2004-01-27 Matsushita Electric Industrial Co., Ltd. Apparatus and method for resolution transformation of orthogonal transformation image
JP2006101153A (en) * 2004-09-29 2006-04-13 Canon Inc Image generating device and method therefor
US7630568B2 (en) * 2005-03-25 2009-12-08 Microsoft Corporation System and method for low-resolution signal rendering from a hierarchical transform representation
US7630439B2 (en) 2003-06-18 2009-12-08 Kddi Corporation Apparatus for converting conversion encoding coefficients using sampling/resolution conversion

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6473207B1 (en) 1997-08-26 2002-10-29 Nec Corporation Image size transformation method for orthogonal transformation coded image
US6683997B1 (en) 1999-11-08 2004-01-27 Matsushita Electric Industrial Co., Ltd. Apparatus and method for resolution transformation of orthogonal transformation image
US7630439B2 (en) 2003-06-18 2009-12-08 Kddi Corporation Apparatus for converting conversion encoding coefficients using sampling/resolution conversion
JP2006101153A (en) * 2004-09-29 2006-04-13 Canon Inc Image generating device and method therefor
JP4630618B2 (en) * 2004-09-29 2011-02-09 キヤノン株式会社 Image generating apparatus and method
US7889936B2 (en) 2004-09-29 2011-02-15 Canon Kabushiki Kaisha Image forming apparatus and image forming method
US7630568B2 (en) * 2005-03-25 2009-12-08 Microsoft Corporation System and method for low-resolution signal rendering from a hierarchical transform representation

Similar Documents

Publication Publication Date Title
US7720310B2 (en) Scaling down of data
US5854858A (en) Image signal coder operating at reduced spatial resolution
US7634148B2 (en) Image signal transforming and inverse-transforming method and computer program product with pre-encoding filtering features
US7489827B2 (en) Scaling of multi-dimensional data in a hybrid domain
WO2005079054A1 (en) Image compression device
US6067384A (en) Fast scaling of JPEG images
US6563946B2 (en) Image processing apparatus and method
KR0128737B1 (en) Image sub-sampling apparatus
JPH09212484A (en) Discrete cosine transformation method
JPH08294119A (en) Image coder/decoder
JPH08180194A (en) Method and device for coding
JPH1075448A (en) Image compressor and image expander
JPH07143488A (en) Method and device for decoding image data
JPH04229382A (en) Method and device for resolution conversion of digital image data
US6970179B1 (en) Method and apparatus for the scaling up of data
JPH1169147A (en) Image size conversion method for orthogonal transformation coded image
JP2993212B2 (en) How to combine images
Wang et al. APBT-based image coding at low bit rates with down-sampling and all phase DCT interpolation
JP3425026B2 (en) Image encoding method and image encoding circuit
KR20040063650A (en) Video resizing system of video codec
JPH0646397A (en) Picture encoding device
JPH06338802A (en) Re-compression device
JPH0622301A (en) Picture corder
JPH0795415A (en) Method and device for picture communication
JPH0746407A (en) Picture data compressing device and picture data restoring device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041008

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041013

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041202

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050301