JPH0974562A - Image signal encoding method - Google Patents

Image signal encoding method

Info

Publication number
JPH0974562A
JPH0974562A JP7248338A JP24833895A JPH0974562A JP H0974562 A JPH0974562 A JP H0974562A JP 7248338 A JP7248338 A JP 7248338A JP 24833895 A JP24833895 A JP 24833895A JP H0974562 A JPH0974562 A JP H0974562A
Authority
JP
Japan
Prior art keywords
order
scanning
coefficient
area
blocks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7248338A
Other languages
Japanese (ja)
Inventor
Yutaka Watanabe
裕 渡辺
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP7248338A priority Critical patent/JPH0974562A/en
Publication of JPH0974562A publication Critical patent/JPH0974562A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To determine a scanning order excellent in encoding efficiency for a quantization coefficient in an encoding method for spatially dividing the inside of a block and performing an arbitrary shaped conversion. SOLUTION: An image is blocked and the blocked image data 11 is divided into two areas A and B. For area A and B data 12 and 13, an arbitrary shape DGT is performed according to the shapes of the data The coefficient obtained by performing the arbitrary shape DCT is quantized and quantization coefficients 14 and 15 are obtained. An index matching is performed for the index showing the row and columns of the qunatization coefficients 14 and 15 and the shapes of the areas, and a scanning is performed for the area where the coefficient exists in order from the lowest order coefficient. Based on these scanning information 16 and 17, the area A and the area B are integrated and the conversion coefficient for every area is scanned. Whether a 0 level is continuous or not according to the integrated scanning order 18 is investigated and a 0-run is detected. As a result, an entropy encoding is performed according to the level outputted according to the scanning order and the event of the 0-run.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は符号化方法に関し、
特に変換やフィルタ処理をブロックを重複ブロック単位
に行い、これらブロック中にエッジなどの境界を検出
し、この境界の位置に基づいて、フィルタ処理や変換を
空間的に分割して符号化する画像信号符号化方法に関す
る。
TECHNICAL FIELD The present invention relates to an encoding method,
In particular, an image signal in which transform or filter processing is performed in units of overlapping blocks, boundaries such as edges are detected in these blocks, and the filter processing or transform is spatially divided and encoded based on the position of this boundary. The present invention relates to an encoding method.

【0002】[0002]

【従来の技術】従来の画像符号化方法では、画像を一定
のサイズのブロックに区切り、そのブロックごとに2次
元離散コサイン変換(Discrete Cosine Transform, DC
T) などの変換が施され、変換係数が量子化され、量子
化番号がエントロピー符号化されている。あるいはDC
Tの代わりに2次元フィルタバンクが用いられる場合も
ある。これらはブロック単位あるいは重複ブロック単位
で一つの変換が用いられ、量子化係数はブロック内をジ
グザグに走査されている。
2. Description of the Related Art In a conventional image coding method, an image is divided into blocks of a certain size, and each block is divided into two-dimensional Discrete Cosine Transform (DC).
T) is transformed, the transform coefficient is quantized, and the quantization number is entropy coded. Or DC
A two-dimensional filter bank may be used instead of T. For these, one transform is used in block units or in overlapping block units, and the quantized coefficients are scanned in a zigzag manner in the block.

【0003】[0003]

【発明が解決しようとする課題】ブロック内を空間的に
分割し任意形状の変換を施し、変換係数を量子化する場
合には、次数の異なる複数の変換により係数が生成され
るため、従来法のジグザグ走査をそのまま適用すること
ができない。
When a block is spatially divided, an arbitrary shape is transformed, and the transform coefficient is quantized, the coefficient is generated by a plurality of transforms of different orders. Zigzag scanning cannot be applied as it is.

【0004】本発明の目的は、量子化レベルと0レベル
の長さの混合事象に対してエントロピー符号を用いるこ
とができるように、量子化係数にとって符号化効率のよ
い走査順序を決定する画像信号符号化方法を提供するこ
とにある。
It is an object of the present invention to provide an image signal which determines a scan order which is coding efficient for quantization coefficients so that entropy codes can be used for mixed events of quantization level and zero level length. It is to provide an encoding method.

【0005】[0005]

【課題を解決するための手段】本発明の画像信号符号化
方法は、境界で空間的に分割された領域ごとに任意形状
の変換を施し、変換係数を量子化し、低い次数の基底に
対応する変換係数から順に変換係数の存在する位置の行
番号と列番号の1次結合をとり、走査方向変更規則を与
え、前記1次結合の値の順番および前記走査方向変更規
則で前記変換係数を走査し、量子化レベルの番号とレベ
ル0の連続する長さの値に応じエントロピー符号化を行
う。
According to the image signal coding method of the present invention, an arbitrary shape is transformed for each region spatially divided by a boundary, the transform coefficient is quantized, and a low-order basis is dealt with. From the conversion coefficient, the primary combination of the row number and the column number at the position where the conversion coefficient exists is given, a scanning direction change rule is given, and the conversion coefficient is scanned according to the order of the value of the primary combination and the scanning direction change rule. Then, entropy coding is performed according to the quantization level number and the continuous length value of level 0.

【0006】本発明の他の画像信号符号化方法は、境界
で空間的に分割された領域ごとに任意形状の変換を施
し、変換係数を量子化し、低い次数の基底に対応する変
換係数から順に変換係数の存在する位置の行番号と列番
号の1次結合をとり、走査変更規則を与え、前記1次結
合の値の順番および前記走査方向変更規則で走査の順番
付けを行い、変換された複数の領域に順番付けを行い、
走査順の第1番目の変換係数に関して第1番目の領域か
ら複数の領域にまたがって走査し、次に走査順の第2番
目の変換係数に関して第1番目の領域から複数の領域に
またがって走査し、走査順の最後の変換係数まで複数の
領域にまたがって走査を行い、量子化レベルの番号とレ
ベル0の連続する長さの値に応じてエントロピー符号化
を行う。
In another image signal coding method of the present invention, an arbitrary shape is transformed for each region spatially divided by a boundary, the transform coefficient is quantized, and the transform coefficient corresponding to a base of a low order is sequentially arranged. The primary combination of the row number and the column number at the position where the conversion coefficient exists is given, the scan change rule is given, and the order of the values of the primary combination and the scan order according to the scan direction change rule are used to perform the conversion. Order multiple areas,
Scan across the first region from the first region with respect to the first transform coefficient in the scan order, then scan across the multiple regions from the first region with respect to the second transform coefficient in the scan order. Then, scanning is performed over a plurality of regions up to the last transform coefficient in the scanning order, and entropy coding is performed according to the quantization level number and the value of the continuous length of level 0.

【0007】[0007]

【発明の実施の形態】本発明では、画像をブロックに分
割し、それぞれのブロック内を空間的に分割し任意形状
の変換を行う。ブロック内の画像データの急峻な変化を
エッジフィルタやテクスチャ解析などの手法を用いて検
出し、検出した境界の位置に基づいて、フィルタ処理や
変換を空間的に分割して施す。
BEST MODE FOR CARRYING OUT THE INVENTION In the present invention, an image is divided into blocks, and each block is spatially divided to perform conversion of an arbitrary shape. A sharp change of image data in a block is detected by using a technique such as an edge filter or texture analysis, and filtering processing and conversion are spatially divided based on the detected boundary position.

【0008】境界の検出例と空間的な分割の例を図3に
示す。これは、8×8画素のブロック中に輝度の大きさ
の異なる境界が右上から左下にかけて存在する場合であ
る。このとき、ブロック形状はAと形状Bに分割でき
る。通常、フレーム間予測誤差の変換には、ブロック単
位のDCT(例えば8×8点DCT)が用いられる。し
かし、形状AとBに分離できる場合には、各々を任意形
状DCTを用いて変換する。すなわち、DCTの基底ベ
クトルがブロック全体におよぶ変換を用いるのではな
く、形状Aに整合する基底を持つ変換と、形状Bに整合
する基底を持つ変換の2種類を用いる。
An example of boundary detection and an example of spatial division are shown in FIG. This is a case where a boundary having different luminance levels exists in the block of 8 × 8 pixels from the upper right to the lower left. At this time, the block shape can be divided into A and shape B. Usually, a block-based DCT (for example, 8 × 8 point DCT) is used to convert the inter-frame prediction error. However, if the shapes A and B can be separated, each of them is transformed using the arbitrary shape DCT. That is, instead of using the transform in which the basis vector of the DCT extends over the entire block, two types of transforms, one having a base matching the shape A and the other having a base matching the shape B are used.

【0009】例えば形状Aは、行および列当たりの画素
の個数は表1のようになっている。
For example, the shape A has the number of pixels per row and column as shown in Table 1.

【0010】[0010]

【表1】 このとき、形状Aに含まれるデータは、行および列に含
まれる画素数に対応するN点DCT(N:任意の整数)
を用いて変換する。
[Table 1] At this time, the data included in the shape A is the N-point DCT (N: any integer) corresponding to the number of pixels included in the row and the column.
Is converted using.

【0011】2次元の任意形状DCTは、まず行方向の
ベクトルに関して1次元のN点DCTが用いられる。画
像信号をf(x,y)(x:水平方向の画素番号、y:
垂直方向の画素番号)とすれば行方向にDCTを施した
結果G(u,y)は
For the two-dimensional arbitrary shape DCT, first, a one-dimensional N-point DCT is used for a vector in the row direction. The image signal is f (x, y) (x: horizontal pixel number, y:
(Vertical pixel number), the result of performing DCT in the row direction is G (u, y)

【0012】[0012]

【数1】 である。次に、得られたG(u,y)に対して、列方向
に1次元のN点DCTを施して、DCT係数F(u,
v)が得られる。
[Equation 1] It is. Next, the obtained G (u, y) is subjected to a one-dimensional N-point DCT in the column direction to obtain a DCT coefficient F (u,
v) is obtained.

【0013】[0013]

【数2】 行方向と列方向のベクトルを図4に示す。変換により2
9個の係数が得られる。形状Aに対して任意形状DCT
を施すと、変換係数FA (i,j)は表2のようにな
る。
[Equation 2] The vectors in the row and column directions are shown in FIG. 2 by conversion
Nine coefficients are obtained. Arbitrary shape DCT for shape A
Then, the conversion coefficient F A (i, j) is as shown in Table 2.

【0014】[0014]

【表2】 一方、形状Bに対しても行および列の長さに基づきN点
DCT(N:任意の整数)を用いて変換し、35個の係
数が得られる。形状Bに対して任意形状DCTを施す
と、変換係数FB (i,j)は表3のようになる。任意
形状DCTでは、列および行の変換の両者において、画
素数の多いベクトルの順に並べ替える。
[Table 2] On the other hand, the shape B is also converted using the N-point DCT (N: arbitrary integer) based on the lengths of the rows and columns, and 35 coefficients are obtained. When the arbitrary shape DCT is applied to the shape B, the conversion coefficient F B (i, j) is as shown in Table 3. In the arbitrary shape DCT, the vectors having the largest number of pixels are rearranged in both column and row conversions.

【0015】[0015]

【表3】 本発明の請求項1は、変換係数FA (u,v)とFB
(u,v)の走査順序を表す番号(小さい値が先に走査
されることを意味する)をそれぞれOA (k)(k=
0,・・・・,28)、OB (l)(l=0,・・・
・,34)とすると、以下のように設定することに相当
する。
[Table 3] According to claim 1 of the present invention, the conversion coefficients F A (u, v) and F B
The numbers indicating the scanning order of (u, v) (meaning that the smaller value is scanned first) are respectively O A (k) (k =
0, ····, 28), O B (l) (l = 0, ···
., 34) is equivalent to setting as follows.

【0016】[0016]

【数3】 である。(Equation 3) It is.

【0017】右辺の条件は、ジグザグスキャンのための
方向の変更の規則に相当する。この式ではu1<u2
(u1:奇数)、u1>u2(u1:偶数)としたが、
逆にu1<u2(u1:偶数)、u1>u2(u1:奇
数)とすることもできる。
The condition on the right side corresponds to the rule of changing the direction for zigzag scanning. In this formula u1 <u2
(U1: odd number) and u1> u2 (u1: even number),
Conversely, u1 <u2 (u1: even number) and u1> u2 (u1: odd number) can be set.

【0018】OB (k)についても同様である。ブロッ
ク全体での走査順序については、OA (k)の走査を終
了した後にOB (k)の走査を開始する。
The same applies to O B (k). The scanning order of the entire block, begins scanning O B (k) after completing the scanning of O A (k).

【0019】NTT技術ジャーナル1994、Vol.
6,No.10「画像符号化技術の動向(1)」p.4
3の図8には8×8のブロックでジグザグスキャンし、
レベル番号ゼロが連続した数(ゼロランの長さ)と、そ
れに続くゼロでないレベル番号(ノンゼロ係数)を組に
して1つの組に1つの符号を割り当てた例が記載されて
いる。本発明ではこのジグザグスキャンを任意形状で実
現しようとするものである。なお、基本的にはジグザグ
であるが、変換係数が存在しない場合にはスキップする
ことと傾いたジグザグも含めるために行番号と列番号の
1次結合を考慮している。
NTT Technology Journal 1994, Vol.
6, No. 10 “Trend of Image Coding Technology (1)” p. Four
In FIG. 8 of 3, zigzag scanning is performed with 8 × 8 blocks,
An example is described in which the number of consecutive level numbers zero (length of zero run) and the subsequent non-zero level number (non-zero coefficient) are grouped and one code is assigned to one group. The present invention is intended to realize this zigzag scanning with an arbitrary shape. It is basically zigzag, but in order to include skipping and zigzag tilting when the conversion coefficient does not exist, the primary combination of the row number and the column number is considered.

【0020】また、一般的にはau+bvの値の大きさ
の順序とスキャンの方向変更の規則によって、傾いたジ
グザグスキャンを用いることもできる。例えば、2u+
vの値で順序付けし、方向転換を規則として与えた場合
には、F(0,0)<F(0,1)<F(0,2)<F
(1,0)<F(1,1)<F(0,3)<F(1,
2)<F(2,0)<・・・・・となり、縦に傾いたス
キャン順となる。逆に、u+2vを用いると横に傾いた
スキャンとなる。
In general, it is also possible to use an inclined zigzag scan depending on the order of the magnitude of the value of au + bv and the rule of changing the scan direction. For example, 2u +
When ordering by the value of v and giving the direction change as a rule, F (0,0) <F (0,1) <F (0,2) <F
(1,0) <F (1,1) <F (0,3) <F (1,
2) <F (2,0) <..., and the scan order is tilted vertically. On the contrary, when u + 2v is used, the scan is tilted horizontally.

【0021】本発明の請求項2は、ブロックに閉じて処
理する場合と、画像内のより拡大された領域におよぶ場
合(画像内の全ての領域を走査する場合を含む)の2通
りの適用例がある。ブロックに閉じる場合には、
[0021] Claim 2 of the present invention has two applications, that is, when processing is performed by closing in a block and when processing is performed in a more enlarged area in the image (including scanning of all areas in the image). There is an example. To close the block,

【0022】[0022]

【数4】 とする。走査が進み、変換係数FA (u,v)あるいは
B (u,v)がなくなった場合には、変換係数が存在
する領域だけを走査する。
(Equation 4) And When the scanning progresses and the conversion coefficient F A (u, v) or F B (u, v) disappears, only the area where the conversion coefficient exists is scanned.

【0023】画像内のより拡大された領域を横断して走
査する場合には、F1 (u,v),F2 (u,v),・
・・・,Fm (u,v)のように領域に番号を付与した
とき、対応する領域内の順序をO1 (k),O2
(k),・・・,Om (k)とすると、
When scanning across a larger area in the image, F 1 (u, v), F 2 (u, v) ,.
.., F m (u, v), when the areas are numbered, the order in the corresponding area is O 1 (k), O 2
(K), ..., O m (k),

【0024】[0024]

【数5】 で定義する。走査が進み、ある領域で係数Fk (u,
v)が存在しないときには、次の領域に読み飛ばす処理
を行う。
(Equation 5) Defined by As the scanning proceeds, the coefficient F k (u,
When v) does not exist, the process of skipping to the next area is performed.

【0025】ここでは、ブロックを任意形状の画像デー
タに分割して、N点DCTを用いる場合について説明し
た。しかし、隣接ブロックとの重複を許す「重複ブロッ
ク」を用いて画像を分割することもできる。この場合、
重複ブロックを任意形状に分割し、N点サブバンドフィ
ルタバンクをDCTの代わりに用いる。
Here, the case where the block is divided into image data of an arbitrary shape and the N-point DCT is used has been described. However, it is also possible to divide an image using "overlapping blocks" that allow overlapping with adjacent blocks. in this case,
The overlapping block is divided into arbitrary shapes, and an N-point subband filter bank is used instead of the DCT.

【0026】本発明では、空間的に分割されたブロック
内の画像データを、任意形状のDCTを用いて変換した
とき、それぞれの領域内で統計的に分散の大きい低次の
係数から順番に走査するため、量子化レベル値とレベル
0の連続する長さの混合事象に対してエントロピー符号
を設計する符号化方式にとっては、レベル0の連続する
長さが長くなり符号化効率が改善される。これは、変換
係数のうち高次の係数が統計的に小さなレベルを持ち、
量子化幅が大きくなるにつれて、レベルが0となること
が多いためである。
According to the present invention, when image data in a spatially divided block is transformed using a DCT of an arbitrary shape, scanning is performed in order from a low-order coefficient having a statistically large variance in each area. Therefore, for a coding method for designing an entropy code for a mixed event of a quantized level value and a continuous length of level 0, the continuous length of level 0 becomes longer and the coding efficiency is improved. This is because the higher order coefficient of the conversion coefficient has a statistically small level,
This is because the level often becomes 0 as the quantization width increases.

【0027】また、領域に関して横断的に分散の大きい
低次の係数から順番に走査する手法を用いる場合にも、
レベル0の連続する長さが長くなり符号化効率の改善が
見込まれる。
Also, when using a method of sequentially scanning the low-order coefficients having a large dispersion across the area,
It is expected that the continuous length of level 0 becomes longer and the coding efficiency is improved.

【0028】[0028]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0029】図1は本発明の一実施例の画像符号化方法
(請求項1に対応)のフローチャートである。
FIG. 1 is a flowchart of an image coding method (corresponding to claim 1) of an embodiment of the present invention.

【0030】まず、画像はブロック化され(ステップ
1)、定められた大きさのブロック画像データ11が領
域分割される(ステップ2)。ただし、予め何らかの手
段で境界情報を得ておく必要がある。ブロック内に境界
が一つ存在する場合には、ブロック化画像データ11は
二つの領域A,Bに分けられる。いま、これらを領域A
のデータ12および領域Bのデータ13とする。これら
のデータ12,13に対して、その形状に応じて、任意
形状DCTが施される(ステップ3,4)。任意形状D
CTを行って得られた係数は量子化され、量子化係数1
4,15が得られる。量子化係数14,15の行と列を
表すインデクスと、領域の形状がインデクス照合され
(ステップ5,6)、変換係数の存在する領域が最も低
次の係数から順番に走査される。この走査順情報16,
17を基にして、領域A、領域Bを情報を統合して、領
域ごとに走査される(ステップ7)。統合された走査順
18に応じて0レベルが連続するかどうか、0ランの検
出が行われる(ステップ8)。その結果、走査順にした
がって出力されるレベルと0ランの事象19に応じてエ
ントロピー符号化が行われる(ステップ9)。
First, the image is divided into blocks (step 1), and the block image data 11 having a predetermined size is divided into regions (step 2). However, it is necessary to obtain boundary information by some means in advance. When there is one boundary in the block, the blocked image data 11 is divided into two areas A and B. Now these are areas A
Data 12 and area B data 13. An arbitrary shape DCT is applied to these data 12 and 13 according to the shape (steps 3 and 4). Arbitrary shape D
The coefficient obtained by performing CT is quantized, and the quantized coefficient 1
4, 15 are obtained. The indexes representing the rows and columns of the quantized coefficients 14 and 15 are index-matched with the shape of the area (steps 5 and 6), and the area where the transform coefficient exists is scanned sequentially from the lowest coefficient. This scanning order information 16,
On the basis of 17, information on areas A and B is integrated and scanned for each area (step 7). Depending on the integrated scanning order 18, whether 0 levels continue or not, a 0 run is detected (step 8). As a result, the entropy coding is performed according to the level 19 and the event 19 of 0 run according to the scanning order (step 9).

【0031】図2は本発明の他の実施例の画像符号化方
法(請求項2に対応)のフローチャートである。
FIG. 2 is a flowchart of an image coding method (corresponding to claim 2) of another embodiment of the present invention.

【0032】画像入力(ステップ21)において読み込
まれた画像データ31は定められた大きさにブロック化
される(ステップ221 ,222 )。ここでは、簡単の
ために、二つのブロックを例にとりフローチャートを説
明する。しかし、通常は画像全体がブロックに分割され
る。したがって、画像は多数のブロックに分けられる。
ブロック化画像データ321 ,322 が領域分割され
る(ステップ231 ,232 )。これには、予め何らか
の手段(例えばエッジ検出など)で境界情報が得られて
いることを前提としている。ブロック内に境界が一つ存
在する場合には、ブロック化画像データ321 ,322
は二つの領域に分けられる。ブロック化画像データ32
1 に対しては、領域Aのデータ331 および領域Bのデ
ータ332 とし、ブロック化画像データ322 に対して
は、領域Cのデータ333 および領域Dのデータ334
とする。
The image data 31 read in the image input (step 21) is divided into blocks of a predetermined size (steps 22 1 and 22 2 ). Here, for the sake of simplicity, the flowchart will be described taking two blocks as an example. However, usually the entire image is divided into blocks. Therefore, the image is divided into a large number of blocks.
The block image data 32 1 and 32 2 are divided into regions (steps 23 1 and 23 2 ). This is premised on that the boundary information is obtained in advance by some means (for example, edge detection). If there is one boundary in the block, the block image data 32 1 , 32 2
Is divided into two areas. Blocked image data 32
For area 1 , data 33 1 for area A and data 33 2 for area B are used, and for blocked image data 32 2 , data 33 3 for area C and data 33 4 for area D are used.
And

【0033】これらのデータ331 〜334 に対して、
その形状に応じて、任意形状DCTが施される(ステッ
プ241 ,242 ,243 ,244 )。任意形状DCT
を行って得られた係数は量子化され、量子化係数34
1 ,342 ,343 ,344 が得られる。量子化係数3
1 ,342 ,343 ,344 の行と列を表すインデク
スと領域の形状がインデクス照合され(ステップ25
1 ,252 ,253 ,254 )、係数の存在する領域内
で最も低次の係数から順番に走査される。この走査順情
報351 ,352 ,353 ,354 を基にして、領域
A、領域B、領域C、領域Dを情報を統合して、個々の
領域を横断して低次の係数から走査される(ステップ2
6)。
[0033] For these data 33 to 333 4,
An arbitrary shape DCT is applied according to the shape (steps 24 1 , 24 2 , 24 3 , 24 4 ). Arbitrary shape DCT
The coefficient obtained by performing
1 , 34 2 , 34 3 , 34 4 are obtained. Quantization coefficient 3
4 1, 34 2, 34 3, 34 4 of the shape of the index and the region representing the rows and columns are indexed verification (Step 25
1 , 25 2 , 25 3 , 25 4 ) are sequentially scanned from the lowest coefficient in the area where the coefficient exists. Based on the scanning order information 35 1 , 35 2 , 35 3 , 35 4 , information on the areas A, B, C, and D is integrated, and low-order coefficients are crossed across the individual areas. Scanned (step 2
6).

【0034】統合された走査順36に応じて0レベルが
連続するかどうか、0ランの検出が行われる(ステップ
27)。その結果、走査順にしたがって出力されるレベ
ルと0ランの事象37に応じてエントロピー符号化が行
われる(ステップ28)。
Whether or not the 0 level continues according to the integrated scanning order 36 is detected (step 27). As a result, entropy coding is performed according to the level 37 and the 0 run event 37 output according to the scan order (step 28).

【0035】[0035]

【発明の効果】以上説明したように、本発明は、空間的
に分割されたブロック内の画像データを、任意形状のD
CTを用いて変換したとき、それぞれの領域内で統計的
に分散の大きい低次の係数から順番に変換係数を走査す
ることにより、量子化レベル値とレベル0の連続する長
さの混合事象に対してエントロピー符号を設計する場
合、統計的にレベル0の連続する長さが長くなり、より
少ないビット数で符号化できるため、符号化効率が改善
される効果がある。
As described above, according to the present invention, the image data in the spatially divided block is converted into D of an arbitrary shape.
When the transform is performed using CT, the transform coefficients are scanned in order from the low-order coefficient having a statistically large variance in each region, so that a mixed event having a continuous length of the quantization level value and the level 0 is obtained. On the other hand, when designing an entropy code, the continuous length of level 0 is statistically lengthened, and since coding can be performed with a smaller number of bits, the coding efficiency is improved.

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

【図1】本発明の一実施例の画像信号符号化方法(請求
項1に対応)のフローチャートである。
FIG. 1 is a flowchart of an image signal coding method (corresponding to claim 1) of an embodiment of the present invention.

【図2】本発明の他の実施例の画像信号符号化方法(請
求項2に対応)のフローチャートである。
FIG. 2 is a flowchart of an image signal coding method (corresponding to claim 2) of another embodiment of the present invention.

【図3】画像信号の境界の検出例と空間的な分割例を示
す図である。
FIG. 3 is a diagram illustrating an example of detecting a boundary of an image signal and an example of spatial division.

【図4】行方向と列方向の変換ベクトルを示す図であ
る。
FIG. 4 is a diagram showing conversion vectors in a row direction and a column direction.

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

1〜9,21〜28 ステップ 11 ブロック化画像データ 12 領域Aのデータ 13 領域Bのデータ 14,15 量子化係数 16,17 走査順情報 18 統合された走査順 19 レベルと0ランの事象 31 画像データ 321 ,322 ブロック化画像データ 331 領域Aのデータ 332 領域Bのデータ 333 領域Cのデータ 334 領域Dのデータ 341 〜344 量子化係数 351 〜354 走査順情報 36 統合された走査順 37 レベルと0ランの事象1-9, 21-28 Step 11 Blocked image data 12 Area A data 13 Area B data 14,15 Quantization coefficient 16,17 Scan order information 18 Integrated scan order 19 Level and 0 run event 31 Image Data 32 1 and 32 2 Blocked image data 33 1 Data of area A 33 2 Data of area B 33 3 Data of area C 33 4 Data of area D 34 1 to 34 4 Quantization coefficient 35 1 to 35 4 Scan order information 36 Integrated Scan Order 37 Level and 0 Run Events

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 変換やフィルタ処理をブロックあるいは
重複ブロック単位に行い、これらのブロック中にエッジ
などの境界を検出し、この境界の位置に基づいて、フィ
ルタ処理や変換を空間的に分割して符号化する画像信号
符号化方法において、 境界で空間的に分割された領域ごとに任意形状の変換を
施し、変換係数を量子化し、低い次数の基底に対応する
変換係数から順に変換係数の存在する位置の行番号と列
番号の1次結合をとり、走査方向変更規則を与え、前記
1次結合の値の順番および走査方向変更規則で前記変換
係数を走査し、量子化レベルの番号とレベル0の連続す
る長さの値に応じエントロピー符号化を行うことを特徴
とする画像信号符号化方法。
1. Transforms and filters are performed in blocks or overlapping blocks, boundaries such as edges are detected in these blocks, and the filters and transforms are spatially divided based on the positions of these boundaries. In the image signal coding method to be coded, transforms of arbitrary shape are performed for each of the regions spatially divided at the boundary, the transform coefficients are quantized, and transform coefficients corresponding to low-order bases exist in order. A linear combination of the row number and the column number of the position is taken, a scan direction change rule is given, the transform coefficient is scanned according to the order of the value of the primary combination and the scan direction change rule, and the quantization level number and level 0 An image signal coding method, characterized in that entropy coding is performed according to the value of the continuous length of.
【請求項2】 変換やフィルタ処理をブロックあるいは
重複ブロック単位に行い、これらのブロック中にエッジ
などの境界を検出し、この境界の位置に基づいて、フィ
ルタ処理や変換を空間的に分割して符号化する画像信号
符号化方法において、 境界で空間的に分割された領域ごとに任意形状の変換を
施し、変換係数を量子化し、低い次数の基底に対応する
変換係数から順に変換係数の存在する位置の行番号と列
番号の1次結合をとり走査方向変換規則を与え、前記一
次結合の値の順番および前記走査方向変更規則で走査の
順番付けを行い、変換された複数の領域に順番付けを行
い、前記走査順の第1番目の変換係数に関して第1番目
の領域から複数の領域にまたがって走査し、次に前記走
査順の第2番目の変換係数に関して、第1番目の領域か
ら複数の領域にまたがって走査し、走査順の最後の変換
係数まで複数の領域にまたがって走査を行い、量子化レ
ベルの番号とレベル0の連続する長さの値に応じてエン
トロピー符号化を行うことを特徴とする画像信号符号化
方法。
2. Transform or filter processing is performed in units of blocks or overlapping blocks, boundaries such as edges are detected in these blocks, and the filter processing or transform is spatially divided based on the position of this boundary. In the image signal coding method to be coded, transforms of arbitrary shape are performed for each of the regions spatially divided at the boundary, the transform coefficients are quantized, and transform coefficients corresponding to low-order bases exist in order. The scanning direction conversion rule is given by taking the primary combination of the row number and the column number of the position, and the scanning order is performed by the order of the values of the primary combination and the scanning direction changing rule, and the plurality of converted regions are ordered. Scanning for a first transform coefficient in the scan order from a first region over a plurality of regions, and then a first region for the second transform coefficient in the scan order. To a plurality of regions, and up to the last transform coefficient in the scanning order, a plurality of regions are scanned, and entropy coding is performed according to the quantization level number and the continuous length value of level 0. An image signal encoding method characterized by performing.
JP7248338A 1995-09-04 1995-09-04 Image signal encoding method Pending JPH0974562A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7248338A JPH0974562A (en) 1995-09-04 1995-09-04 Image signal encoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7248338A JPH0974562A (en) 1995-09-04 1995-09-04 Image signal encoding method

Publications (1)

Publication Number Publication Date
JPH0974562A true JPH0974562A (en) 1997-03-18

Family

ID=17176607

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7248338A Pending JPH0974562A (en) 1995-09-04 1995-09-04 Image signal encoding method

Country Status (1)

Country Link
JP (1) JPH0974562A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011125038A (en) * 2004-12-31 2011-06-23 Microsoft Corp Adaptive coefficient scan order

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011125038A (en) * 2004-12-31 2011-06-23 Microsoft Corp Adaptive coefficient scan order
US8311119B2 (en) 2004-12-31 2012-11-13 Microsoft Corporation Adaptive coefficient scan order
US8824557B2 (en) 2004-12-31 2014-09-02 Microsoft Corporation Adaptive coefficient scan order

Similar Documents

Publication Publication Date Title
CA2676099C (en) Method of compressing digital images
CN112383780B (en) Encoding and decoding method and device for point matching reference set and index back and forth scanning string matching
US6608865B1 (en) Coding method for video signal based on the correlation between the edge direction and the distribution of the DCT coefficients
US6236762B1 (en) System and method for unified DCT and wavelet data coding
US6351570B1 (en) Image coding and decoding apparatus, method of image coding and decoding, and recording medium for recording program for image coding and decoding
JP4700491B2 (en) Adaptive coefficient scan ordering
CN101087423B (en) Methods and systems for estimating pixle intra-predication for encoding or decoding digital video
EP0797356A2 (en) Image encoding method and image encoder
US7065252B1 (en) System and method providing improved data compression via wavelet coefficient encoding
KR20070023695A (en) Method and device for encoding blocks of values
JPH0738760A (en) Orthogonal transformation base generating system
JPH0974562A (en) Image signal encoding method
JP3866580B2 (en) Image encoding device, image decoding device, image encoding program, image decoding program, and computer-readable recording medium recording these programs
US7095897B2 (en) Zero length or run length coding decision
JP3191753B2 (en) Image encoding device, image decoding device, image encoding method, image decoding method
JP2845098B2 (en) Decoding method and apparatus for multi-level image compression code
JP3675135B2 (en) Video encoding method and decoding method
JPH0856358A (en) Image data encoding device
JPH11136674A (en) Image coding method and storage medium
KR100695138B1 (en) Image compressing apparatus and method thereof
US7787698B2 (en) Sign coding and decoding
JPH11103463A (en) Picture encoding method and storage medium
JP3937646B2 (en) Transform coding apparatus and transform coding method
JP3047562B2 (en) High efficiency coding method and apparatus therefor
JP3733883B2 (en) Two-dimensional orthogonal transformation processing method and two-dimensional orthogonal transformation processing device