JPH0685580B2 - Two-dimensional code assignment method for motion vector - Google Patents

Two-dimensional code assignment method for motion vector

Info

Publication number
JPH0685580B2
JPH0685580B2 JP59042709A JP4270984A JPH0685580B2 JP H0685580 B2 JPH0685580 B2 JP H0685580B2 JP 59042709 A JP59042709 A JP 59042709A JP 4270984 A JP4270984 A JP 4270984A JP H0685580 B2 JPH0685580 B2 JP H0685580B2
Authority
JP
Japan
Prior art keywords
motion vector
code
value
motion
component value
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.)
Expired - Lifetime
Application number
JP59042709A
Other languages
Japanese (ja)
Other versions
JPS60186180A (en
Inventor
喜一 松田
俊隆 津田
英夫 黒田
直樹 武川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Nippon Telegraph and Telephone Corp
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd, Nippon Telegraph and Telephone Corp filed Critical Fujitsu Ltd
Priority to JP59042709A priority Critical patent/JPH0685580B2/en
Publication of JPS60186180A publication Critical patent/JPS60186180A/en
Publication of JPH0685580B2 publication Critical patent/JPH0685580B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 (a)発明の技術分野 本発明は動画像帯域圧縮伝送に於ける動き補償フレーム
間予測符号化に係わり、伝送効率を向上出来る動ベクト
ルの2次元符号割当て方式に関する。
Description: (a) Technical Field of the Invention The present invention relates to motion-compensated inter-frame predictive coding in moving image band compression transmission, and relates to a two-dimensional code allocation method of motion vectors capable of improving transmission efficiency.

(b)技術の背景 動画像帯域圧縮伝送に用いられる動き補償フレーム間予
測符号化方式では、入力フレームの1ブロック画像と、
このブロック画像に最も近似しているブロック画像を1
フレーム前のフレームの画像から見出し、この見出した
ブロック画像を入力フレーム上の1ブロック画像と同一
のポジションに移動し(ブロックの空間的移動は時間的
には可変遅延により得られる)、これを予測ブロック画
像として、入力フレームの画像ブロックとの誤差信号を
発生すると共に移動距離と移動方向からなる動ベクトル
を得て誤差信号と動ベクトルとを符号化して伝送するも
のである。本発明はこのうちの動ベクトルの符号化に関
するものである。
(B) Background of the Technology In the motion-compensated interframe predictive coding method used for moving image band compression transmission, one block image of an input frame,
The block image closest to this block image is 1
Detect from the image of the frame before the frame, move the found block image to the same position as one block image on the input frame (the spatial movement of the block is obtained by a variable delay in time), and predict this As a block image, an error signal with respect to an image block of an input frame is generated, a motion vector composed of a moving distance and a moving direction is obtained, and the error signal and the moving vector are encoded and transmitted. The present invention relates to the coding of motion vectors.

(c)従来技術と問題点 従来動ベクトルは水平方向垂直方向個別に可変長符号化
して伝送している。この可変長符号化の一例を第1図に
示している。即ち水平方向垂直方向毎に動きの差分値に
対して伝送符号を割当て符号化している。しかしこの従
来の方法では動ベクトルの情報伝送にかなりの伝送ビッ
トが必要で伝送効率が悪い欠点がある。
(C) Conventional Technology and Problems Conventional motion vectors are variable length coded individually in the horizontal and vertical directions and transmitted. An example of this variable length coding is shown in FIG. That is, the transmission code is assigned to the motion difference value for each horizontal and vertical direction and encoded. However, this conventional method has a drawback in that the transmission efficiency is poor because a considerable number of transmission bits are required to transmit the motion vector information.

(d)発明の目的 本発明の目的は上記の欠点に鑑み伝送効率を向上出来る
動ベクトルの2次元符号割当て方式の提供にある。
(D) Object of the Invention The object of the present invention is to provide a two-dimensional code assignment system of motion vectors which can improve the transmission efficiency in view of the above-mentioned drawbacks.

(e)発明の構成 本発明は上記の目的を達成するために、実際の動画の相
次ぐフレーム相互間では一般には動きの少ないブロック
画像が多いので、動ベクトルは実際には統計的に絶対値
が0の近傍に集中しており、この点に着目し絶対値の小
さい動ベクトルの符号長を短縮することにより、全体の
動ベクトルに符号の平均長を短縮せんとするものであ
る。
(E) Structure of the Invention In order to achieve the above object, the present invention generally has many block images with little motion between successive frames of an actual moving image, so that the motion vector actually has a statistically absolute value. It is concentrated in the vicinity of 0, and by paying attention to this point and shortening the code length of the motion vector having a small absolute value, the average length of the code is shortened to the whole motion vector.

即ち、動き補償フレーム間予測符号化に於いて、画素間
隔を単位とする水平成分値と垂直成分値とにより与えら
れる動ベクトルの符号化に際し、絶対値の平方値が0を
含む所定数n2以下の複数の動ベクトルには、絶対値の平
方値が小さい程符号長の短い可変長符号を割当てると共
に、絶対値の平方値がn2+1以上となる動ベクトルに
は、前記動ベクトルの水平成分値と垂直成分値とに夫々
等長符号を割当て、前記可変長符号と区別するための識
別符号を付加することを特徴とする動ベクトルの2次元
符号割当て方式である。
That is, in the motion-compensated inter-frame prediction encoding, when encoding a motion vector given by a horizontal component value and a vertical component value in units of pixel intervals, a predetermined number n 2 whose absolute square value includes 0 A variable length code having a shorter code length is assigned to the following plurality of motion vectors as the square value of the absolute value is smaller, and the horizontal vector of the motion vector is set to the motion vector having the square value of the absolute value of n 2 +1 or more. This is a two-dimensional code assigning method for motion vectors, characterized in that equal-length codes are assigned to the component values and vertical component values, respectively, and an identification code for distinguishing from the variable-length codes is added.

(f)発明の実施例 以下本発明n2=4(10進数)の場合の実施例につき図に
従って説明する。第2図は本発明の実施例の動ベクトル
の絶対値の平方値の2次元的配置図で、各動ベクトルの
頂点に対応する10進数表示の絶対値の平方値を記入した
ものであり、第3図は本発明の実施例の絶対値の平方値
に対する伝送符号割当て図、第4図は本発明の実施例の
動ベクトルの伝送符号への変換回路のブロック図、第5
図は動ベクトルの発生頻度及び符号化効率を示す図であ
る。
(F) Embodiments of the Invention Hereinafter, embodiments of the present invention where n 2 = 4 (decimal number) will be described with reference to the drawings. FIG. 2 is a two-dimensional layout diagram of the square value of the absolute value of the motion vector according to the embodiment of the present invention, in which the square value of the absolute value in decimal number corresponding to the vertex of each motion vector is entered. FIG. 3 is a transmission code assignment diagram for the squared absolute value according to the embodiment of the present invention, and FIG. 4 is a block diagram of a circuit for converting a motion vector into a transmission code according to the embodiment of the present invention.
The figure is a diagram showing the frequency of occurrence of motion vectors and the coding efficiency.

第4図中1はROM、2は多重化回路を示す。In FIG. 4, 1 is a ROM and 2 is a multiplexing circuit.

本実施例では、動ベクトルは、画素間隔を単位として、
水平,垂直方向の成分値は、2進4桁の数として与えら
れる。
In this embodiment, the motion vector has a pixel interval as a unit,
The component values in the horizontal and vertical directions are given as a binary 4-digit number.

動ベクトルの、水平方向ベクトルVxと垂直方向ベクトル
Vyの絶対値の平方値Vx2+Vy2を第2図に示す如く基準点
(絶対値の平方値0)を中心に2次元的に配置し、絶対
値の平方値が1,2,4となる夫々4個の動ベクトルには夫
々れ番号を付し、絶対値の平方値及び其の番号に応じて
第3図に示す如く基準点に近い程短いビットの可変符号
長を割当て伝送符号とする。この場合絶対値の平方値0
〜4迄は動ベクトルの絶対値と方向とを総合的に変換し
た符号を伝送する。一方、絶対値の平方値が5以上は00
001を先頭に識別符号として付加し、動ベクトルの水
平,垂直方向成分の等桁の2進数を夫々等長の符号とし
て伝送する。上記第2図に示す動ベクトルの2次元配置
及びこれに対応した第3図に示す伝送符号を第4図のRO
M1に記憶させておき、動ベクトルの水平ベクトルVx,垂
直ベクトルVyが入力した時、ROM1では絶対値の平方値を
検出し、これに応じた伝送符号を多重化回路2に送出す
る。この場合絶対値の平方値が0〜4迄は送られてきた
伝送符号を其の儘送信する。よって相対値ベクトル伝送
となる。5以上の場合はROM1より00001を多重化回路2
に送り多重化回路2では、入力している水平ベクトルV
x,Vy夫々れ4ビットの絶対値を示す8ビットの符号の先
頭に00001を付した伝送符号を送信する。よって絶対値
ベクトル伝送となる。動ベクトルの絶対値の平方値に対
する発生頻度は画像の性質より基準点が83%で1,2点が
各々1%、4の点が0.7%其の他が4.3%であると云われ
ている。これを元にして動ベクトルを伝送するのに第1
図の従来例の伝送符号を用いた場合、及び第3図の本の
実施例の伝送符号を用いた場合の平均符号長を求めると
第5図に示す如く4.05,1.52となり、本発明の場合は従
来例に比し37.5%の符号長で動ベクトルを送信出来るこ
とになる。
Horizontal vector Vx and vertical vector of motion vector
The square value Vx 2 + Vy 2 of the absolute value of Vy is arranged two-dimensionally around the reference point (square value 0 of the absolute value) as shown in FIG. 2, and the square value of the absolute value is 1,2,4. Each of the four motion vectors is given a number, and the variable code length of shorter bits is assigned to the transmission code as the square value of the absolute value and the number is closer to the reference point according to the number. To do. In this case, the absolute square value 0
Up to -4, a code obtained by comprehensively converting the absolute value of the motion vector and the direction is transmitted. On the other hand, if the absolute square value is 5 or more, 00
001 is added to the beginning as an identification code, and the binary digits of equal digits of the horizontal and vertical components of the motion vector are transmitted as equal length codes. The two-dimensional arrangement of the motion vectors shown in FIG. 2 and the transmission code shown in FIG.
When the horizontal vector Vx and the vertical vector Vy of the motion vector are input and stored in the M1, the ROM1 detects the square value of the absolute value and sends the transmission code corresponding thereto to the multiplexing circuit 2. In this case, the transmitted transmission code is transmitted for the square value of the absolute value from 0 to 4. Therefore, relative value vector transmission is performed. In case of 5 or more, 00001 from ROM1 is multiplexed circuit 2
To the multiplexing circuit 2, the input horizontal vector V
A transmission code in which 00001 is added to the beginning of an 8-bit code indicating the 4-bit absolute value for each of x and Vy is transmitted. Therefore, absolute value vector transmission is performed. The frequency of occurrence of the square value of the absolute value of the motion vector is said to be 83% at the reference point, 1% at 1 and 2 points respectively, 0.7% at 4 points and 4.3% at the other points due to the nature of the image. . It is the first to transmit motion vectors based on this.
In the case of the present invention, the average code length is 4.05, 1.52 as shown in FIG. 5 when the transmission code of the conventional example shown in the figure is used and when the transmission code of the embodiment of the book of FIG. 3 is used. Will transmit a motion vector with a code length of 37.5% compared to the conventional example.

尚、上述の実施例の説明では、動ベクトルの絶対値の平
方値がn2+1以上のものに対しては、動ベクトルの水
平,垂直の成分値の2進符号そのものに識別符号を付加
する例を示したが、水平,垂直の成分値が2進数として
与えられない場合は2進数化の過程を付加する必要があ
る。
In the description of the above-mentioned embodiment, when the square value of the absolute value of the motion vector is n 2 +1 or more, the identification code is added to the binary code itself of the horizontal and vertical component values of the motion vector. Although an example has been shown, when the horizontal and vertical component values are not given as binary numbers, it is necessary to add a process of binary conversion.

(g)発明の効果 以上詳細に説明せる如く、本発明によれば、動ベクトル
を2次元的に配置することでより少ないビット数で動ベ
クトルの情報伝送が可能となるので伝送効率が向上する
と共に帯域圧縮の効果がある。
(G) Effect of the Invention As described in detail above, according to the present invention, since the motion vector information can be transmitted with a smaller number of bits by arranging the motion vector two-dimensionally, the transmission efficiency is improved. Together with this, there is an effect of band compression.

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

第1図は従来例の動きの差分値に対する伝送符号を示す
図、第2図は本発明の実施例の動ベクトルの絶対値の平
方値の2次元的配置図、第3図は本発明の実施例の絶対
値の平方値に対する伝送符号割当て図、第4図は本発明
の実施例の動ベクトルの伝送符号への変換回路のブロッ
ク図、第5図は動ベクトルの発生頻度及び符号化効率を
示す図である。 第4図中1はROM、2は多重化回路を示す。
FIG. 1 is a diagram showing a transmission code for a motion difference value in a conventional example, FIG. 2 is a two-dimensional layout diagram of square values of absolute values of motion vectors according to an embodiment of the present invention, and FIG. FIG. 4 is a block diagram of a circuit for converting a motion vector into a transmission code according to an embodiment of the present invention, and FIG. 5 is a motion vector generation frequency and coding efficiency. FIG. In FIG. 4, 1 is a ROM and 2 is a multiplexing circuit.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 津田 俊隆 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 黒田 英夫 神奈川県横須賀市武1丁目2356番地 日本 電信電話公社横須賀電気通信研究所内 (72)発明者 武川 直樹 神奈川県横須賀市武1丁目2356番地 日本 電信電話公社横須賀電気通信研究所内 (56)参考文献 特開 昭58−197983(JP,A) 特開 昭53−146526(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Toshitaka Tsuda Toshitaka Tsuda 1015 Kamiodanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture, Fujitsu Limited (72) Inventor Hideo Kuroda 1-2356 Takeshi, Yokosuka City, Kanagawa Prefecture Yokosuka Electric Corporation In the Communications Research Laboratory (72) Inventor Naoki Takekawa 1-2356 Take, Yokosuka City, Kanagawa Inside the Yokosuka Telecommunications Research Laboratories, Nippon Telegraph and Telephone Public Corporation (56) Reference JP-A-58-197983 (JP, A) JP-A-53-146526 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】動画像データの動き補償フレーム間予測符
号化方式において、 画素間隔を単位とし、水平成分値と垂直成分値の2次元
座標で与えられる動き補償用の動ベクトルを符号化する
に際し、 それぞれ水平成分値と垂直成分値とが0の動ベクトルを
基準点として、各動ベクトルの水平成分値と垂直成分値
の平方値との和を求め、 求めた平方値の和が小さい程符号長が短くなるように、
予めこの動ベクトルの2次元座標に応じて可変長符号を
割当て、 各動ベクトルの2次元座標を割当てられた可変長符号に
より符号化することを特徴とする動ベクトルの2次元符
号割当て方法
1. In a motion compensation interframe predictive coding system for moving image data, when coding a motion compensation motion vector given by two-dimensional coordinates of a horizontal component value and a vertical component value in units of pixel intervals. , The sum of the square value of the horizontal component value of each motion vector and the square value of the vertical component value is calculated with the motion vector of which the horizontal component value and the vertical component value are 0 as a reference point. So that the length becomes shorter,
A method for allocating a two-dimensional code of a motion vector characterized in that a variable-length code is assigned in advance according to the two-dimensional coordinate of the motion vector and the two-dimensional coordinate of each motion vector is encoded by the assigned variable-length code.
JP59042709A 1984-03-06 1984-03-06 Two-dimensional code assignment method for motion vector Expired - Lifetime JPH0685580B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59042709A JPH0685580B2 (en) 1984-03-06 1984-03-06 Two-dimensional code assignment method for motion vector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59042709A JPH0685580B2 (en) 1984-03-06 1984-03-06 Two-dimensional code assignment method for motion vector

Publications (2)

Publication Number Publication Date
JPS60186180A JPS60186180A (en) 1985-09-21
JPH0685580B2 true JPH0685580B2 (en) 1994-10-26

Family

ID=12643595

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59042709A Expired - Lifetime JPH0685580B2 (en) 1984-03-06 1984-03-06 Two-dimensional code assignment method for motion vector

Country Status (1)

Country Link
JP (1) JPH0685580B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0746867B2 (en) * 1985-10-29 1995-05-17 富士通株式会社 Motion vector coding circuit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53146526A (en) * 1977-05-27 1978-12-20 Nippon Telegr & Teleph Corp <Ntt> Picture transmission system
JPS58197983A (en) * 1982-05-14 1983-11-17 Nec Corp Motion compensating inter-frame decoding device

Also Published As

Publication number Publication date
JPS60186180A (en) 1985-09-21

Similar Documents

Publication Publication Date Title
JP3716931B2 (en) Adaptive decoding device for continuous images
JP2506332B2 (en) High-efficiency coding method for moving image signals
EP0260721B1 (en) Method and apparatus for coding motion image signal
EP3300366A1 (en) Encoding device, decoding device, and encoding method and decoding method thereof
US5933105A (en) Context-based arithmetic encoding/decoding method and apparatus
JP2880051B2 (en) Video signal encoding device using 1D / 2D DCT
US5198898A (en) Data compressing system for compressing serial image data with color information
JPH0685580B2 (en) Two-dimensional code assignment method for motion vector
JPH0678295A (en) Picture coding device
KR0141058B1 (en) Apparatus and method of differential pulse code modulation
CA2087876C (en) Moving-image signal encoding apparatus
KR20010032315A (en) Encoding device and method, and decoding device and method
JPS62206981A (en) Coding processing system
JPH0537916A (en) Image transmission equipment
JP2861381B2 (en) Image signal encoding apparatus and method
JPS6326951B2 (en)
JP2861380B2 (en) Image signal encoding apparatus and method, image signal decoding apparatus and method
CN110602502B (en) Method for coding and decoding motion vector
CN111447453B (en) Image processing method and device
JP3855376B2 (en) Image encoding device
JPS631184A (en) Predictive coding system
JPH02130094A (en) Moving vector information encoding system for stereo moving picture
JP2557391B2 (en) Image coding device
JP2570788B2 (en) Decoding device for high efficiency coding of television signals
JP2696869B2 (en) Image coding device