JPH0937255A - Motion parameter detector, motion parameter detection method and image coder - Google Patents

Motion parameter detector, motion parameter detection method and image coder

Info

Publication number
JPH0937255A
JPH0937255A JP18242695A JP18242695A JPH0937255A JP H0937255 A JPH0937255 A JP H0937255A JP 18242695 A JP18242695 A JP 18242695A JP 18242695 A JP18242695 A JP 18242695A JP H0937255 A JPH0937255 A JP H0937255A
Authority
JP
Japan
Prior art keywords
chain
points
motion parameter
motion
point
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
JP18242695A
Other languages
Japanese (ja)
Inventor
Atsushi Murayama
淳 村山
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 JP18242695A priority Critical patent/JPH0937255A/en
Priority to US08/680,489 priority patent/US5923786A/en
Publication of JPH0937255A publication Critical patent/JPH0937255A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To calculate an accurate motion parameter with less calculation amount. SOLUTION: A reliability point calculation circuit 41 selects two prescribed points from points of a chain in an image and detects respective motion vectors of the two points. A motion parameter calculation circuit 42 obtains motion parameters representing respectively a chain translation amount (Vx, Vy), a magnification reduction factor S and a rotation amount R, as equations: (Vx, Vy)=((Vx1+Vx2)/2, (Vy1+Vy2)/2), S=((1-F)<2> +G<2> )<1/2> , and R=arctan(G/(1-F)), where (x1, y1),(x2, y2) are coordinates of two points, (Vx1, Vy1), (Vx2, Vy2) are respective motion vectors, F=(AC+BD)/E, G=(AD-BC)/E, A=Vx1-Vx2, B=Vy1-Vy2, C=x2-x1, D=y2-y1, and E=C<2> +D<2> .

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、動きパラメータ検
出装置および動きパラメータ検出方法、並びに画像符号
化装置に関する。特に、例えば、画像の特徴点を結ぶチ
ェーンなどのような連続点の動きを表す動きパラメータ
を正確に検出することができるようにした動きパラメー
タ検出装置および動きパラメータ検出方法、並びに画像
符号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a motion parameter detecting device, a motion parameter detecting method, and an image coding device. In particular, the present invention relates to a motion parameter detection device and a motion parameter detection method, and an image coding device capable of accurately detecting a motion parameter representing the motion of continuous points such as a chain connecting feature points of an image. .

【0002】[0002]

【従来の技術】従来より、画像を、限られた伝送帯域下
で伝送する装置や、限られた蓄積容量を持つ記録媒体
(メディア)への記録を行う装置などにおいては、画像
データをより少ない符号語で効率的に圧縮するための高
能率符号化方式が採用されている。画像の高能率符号化
方式としては、例えば入力画像をDCT(離散コサイン
変換)によって直交変換し、各周波数帯域ごとに、人間
の視覚特性にしたがった適応量子化を行う方式や、ウエ
ーブレット基底(ウエーブレット変換)により画像をサ
ブバンドに分割し、それぞれのバンドごとに重み付けを
して符号化する方式などが知られている。これらの符号
化方式によれば、視覚的に歪みが目立ちにくく、また、
高圧縮率を実現することができる。
2. Description of the Related Art Conventionally, in an apparatus for transmitting an image under a limited transmission band or an apparatus for recording on a recording medium having a limited storage capacity, the amount of image data is reduced. A high-efficiency coding method for efficiently compressing with code words is adopted. As a high-efficiency image coding method, for example, an input image is orthogonally transformed by DCT (discrete cosine transform) and adaptive quantization is performed for each frequency band according to human visual characteristics, and a wavelet basis ( A method is known in which an image is divided into subbands by wavelet transformation, and each band is weighted and encoded. According to these encoding methods, distortion is visually inconspicuous, and
A high compression rate can be realized.

【0003】しかしながら、これらの符号化方式におい
ては、さらに圧縮率を向上させようとすると、いわゆる
ブロック歪みなどの、視覚上好ましくない影響が顕著に
なる。
However, in these encoding systems, if the compression ratio is further improved, the visually unfavorable effects such as so-called block distortion become remarkable.

【0004】そこで、高圧縮率下でも視覚上有害な歪み
が生じない符号化方式として、例えば画像の構造の特徴
的な点(特徴点)(例えば、物体の輪郭を構成する点
(画素)など)を抽出し、その特徴点における画像デー
タを効率的に符号化する、画像の特徴点検出による構造
抽出符号化方式がなどが知られている。
Therefore, as an encoding method in which visually harmful distortion does not occur even at a high compression rate, for example, characteristic points (characteristic points) of the structure of an image (for example, points (pixels) forming the outline of an object, etc.) ) Is extracted and the image data at that feature point is efficiently encoded, and a structure extraction encoding method by image feature point detection is known.

【0005】図37は、構造抽出符号化方式により画像
を圧縮符号化する、従来の画像符号化装置の一例の構成
を示している。画像データは、量子化器11および2次
元変化点検出回路10に入力される。量子化器11で
は、画像データが量子化され、これにより量子化係数と
される。この量子化係数は、チェーン(チェイン)符号
化回路12に供給される。また、2次元変化点検出回路
10では、入力された画像データが特徴点かどうかが検
出され、入力された画像データが、特徴点である場合に
は、例えば値が1の特徴点データが、特徴点でない場合
には、例えば値が0の特徴点データが、チェーン符号化
回路12にそれぞれ出力される。
FIG. 37 shows the configuration of an example of a conventional image coding apparatus for compressing and coding an image by the structure extraction coding method. The image data is input to the quantizer 11 and the two-dimensional change point detection circuit 10. In the quantizer 11, the image data is quantized, and the quantized coefficient is obtained. This quantized coefficient is supplied to the chain (chain) encoding circuit 12. Further, the two-dimensional change point detection circuit 10 detects whether or not the input image data is a feature point, and if the input image data is a feature point, for example, the feature point data having a value of 1 is If it is not a feature point, feature point data having a value of 0 is output to the chain encoding circuit 12, respectively.

【0006】そして、量子化器11における量子化処理
と、2次元変化点検出回路10における特徴点の検出処
理とが、1フレームの画像データについて終了すると、
チェーン符号化回路12において、特徴点データが1の
点(画素)についての位置情報(特徴点の位置(座
標))がチェーン符号化され、さらに特徴点の量子化係
数(特徴点として検出された画素における画像データの
量子化係数)と多重化されて、チェーン符号化データと
される。このチェーン符号化データは、バッファ(バッ
ファメモリ)17に供給されて、一旦記憶された後、図
示せぬ記録媒体に記録され、あるいは伝送路に出力され
る。なお、チェーン符号化データは、バッファ17に一
旦記憶されることで、そのデータ量の平滑化がなされ、
これにより、記録媒体または伝送路には、ほぼ一定のデ
ータレートで、チェーン符号化データが出力される。
When the quantization process in the quantizer 11 and the feature point detection process in the two-dimensional change point detection circuit 10 are completed for one frame of image data,
In the chain encoding circuit 12, the position information (position (coordinates) of the feature point) about the point (pixel) having the feature point data of 1 is chain-encoded, and further the quantized coefficient of the feature point (detected as the feature point is detected. It is multiplexed with the quantized coefficient of the image data in the pixel) to form chain encoded data. The chain-encoded data is supplied to the buffer (buffer memory) 17, is temporarily stored, and then recorded on a recording medium (not shown) or output to the transmission path. Note that the chain-encoded data is temporarily stored in the buffer 17 so that the amount of data is smoothed,
As a result, the chain encoded data is output to the recording medium or the transmission path at a substantially constant data rate.

【0007】[0007]

【発明が解決しようとする課題】ところで、上述した画
像符号化装置は、静止画を、その符号化の対象とするた
め、この画像符号化装置により、動画像を符号化した場
合、時間方向の冗長成分を取り除くための、例えば動き
補償処理およびDCT処理などを含む変換符号化方式に
比較して、圧縮率が悪い。そこで、動画像を対象として
チェーン符号化を行った場合に、その圧縮率を向上させ
る方法として、例えば、複数フレーム間にわたって、同
一の輪郭を構成するチェーンどうしを対応付けるととも
に、チェーンの動きを表す動きパラメータ(動きベクト
ル)を検出し、対応づけたチェーンのうちのいずれかの
チェーン符号化データと、検出した動きパラメータとを
多重化して出力するものを、本件出願人は先に提案して
いる。
By the way, since the above-mentioned image coding apparatus targets a still image for coding, when a moving image is coded by this image coding apparatus, the moving picture in the time direction is The compression rate is poor as compared with a transform coding method for removing redundant components, which includes, for example, motion compensation processing and DCT processing. Therefore, when chain coding is performed on a moving image, a method for improving the compression rate is, for example, by associating chains having the same contour with each other over a plurality of frames and by indicating a motion indicating the motion of the chain. The applicant of the present application has previously proposed a method in which a parameter (motion vector) is detected and any one of the chain-encoded data in the associated chains and the detected motion parameter are multiplexed and output.

【0008】ここで、図38は、そのような画像符号化
装置、あるいは物体の輪郭の動きを追跡するモーション
トラッキング装置などで採用されている動きパラメータ
検出装置(動きベクトル検出装置)の構成例を示してい
る。チェーン座標生成回路311は、チェーン符号化回
路12より出力されるチェーン符号化データに含まれる
チェーンの方向成分(後述する)に基づいて、そのチェ
ーン符号化データに対応するチェーンを検出し、さらに
そのチェーンを構成する各特徴点の座標を求める。そし
て、チェーン座標生成回路311は、求めた座標を、現
フレーム座標として、差分計算回路314に順次出力す
る。
FIG. 38 shows an example of the configuration of a motion parameter detecting device (motion vector detecting device) adopted in such an image coding device or a motion tracking device for tracking the movement of the contour of an object. Shows. The chain coordinate generation circuit 311 detects a chain corresponding to the chain coded data based on a direction component (described later) of the chain included in the chain coded data output from the chain coding circuit 12, and further detects the chain. Find the coordinates of each feature point that makes up the chain. Then, the chain coordinate generation circuit 311 sequentially outputs the obtained coordinates as the current frame coordinates to the difference calculation circuit 314.

【0009】また、チェーン座標生成回路311は、画
像の動きを表す動きパラメータとしての、例えばアフィ
ンパラメータ(Affine Parameters)の各係数を一定範
囲で変化させながら、そのアフィンパラメータを用い
て、現フレーム座標の座標変換を行い、その結果得られ
る座標を、後フレーム座標として、差分計算回路314
に出力するとともに、そのとき用いたアフィンパラメー
タを、動きパラメータとして、セレクタ315に出力す
る。
Further, the chain coordinate generation circuit 311 uses the affine parameters while changing each coefficient of, for example, affine parameters, which is a motion parameter representing the motion of the image, within a certain range, and uses the affine parameters as the coordinates of the current frame. Of the difference calculation circuit 314.
And the affine parameters used at that time are output to the selector 315 as motion parameters.

【0010】即ち、アフィンパラメータの係数を、a,
b,c,d,e,fとするとともに、現フレーム座標ま
たは後フレーム座標を、それぞれ(x,y)または
(x’,y’)とするとき、チェーン座標生成回路31
1は、次式にしたがい、例えば係数a、b,d,eそれ
ぞれを−2乃至2の範囲で、係数cまたはfそれぞれを
−8乃至8の範囲で、適当なステップで変化させて、後
フレーム座標(x’,y’)を算出する。 x’=ax+by+c y’=dx+ey+f
That is, the coefficient of the affine parameter is a,
b, c, d, e, f, and the current frame coordinates or the subsequent frame coordinates are (x, y) or (x ', y'), respectively, the chain coordinate generation circuit 31
1 is changed according to the following equation, for example, by changing the coefficients a, b, d, and e in the range of −2 to 2, and the coefficients c or f in the range of −8 to 8, respectively, in appropriate steps, and The frame coordinates (x ', y') are calculated. x '= ax + by + cy' = dx + ey + f

【0011】ここで、上式は、一般には、図39に示す
ように表される。
Here, the above equation is generally expressed as shown in FIG.

【0012】従って、チェーン座標生成回路311から
差分計算回路314に対しては、1つの現フレーム座標
に対し、その現フレーム座標を、複数のアフィンパラメ
ータで変換した後フレーム座標、即ち複数の後フレーム
座標が出力され、また、チェーン座標生成回路311か
らセレクタ315に対しては、その複数のアフィンパラ
メータが出力される。
Therefore, from the chain coordinate generation circuit 311 to the difference calculation circuit 314, for one current frame coordinate, the current frame coordinate is converted by a plurality of affine parameters, that is, a post frame coordinate, that is, a plurality of post frame. Coordinates are output, and the chain coordinate generation circuit 311 outputs a plurality of affine parameters to the selector 315.

【0013】一方、現フレームバッファ312には、い
ま、動きパラメータの検出をしようとしているチェーン
が存在するフレームの画像データが供給されるようにな
されており、そこでは、その画像データ(以下、適宜、
現フレームデータという)が記憶される。また、後フレ
ームバッファ313には、現フレームデータの次のフレ
ーム(後フレーム)の画像データが供給されるようにな
されており、そこでは、その画像データ(以下、適宜、
後フレームデータという)が記憶される。
On the other hand, the current frame buffer 312 is supplied with image data of a frame in which a chain whose motion parameter is to be detected is present. ,
The current frame data) is stored. Further, the rear frame buffer 313 is supplied with image data of the next frame (rear frame) of the current frame data, in which the image data (hereinafter, appropriately,
The subsequent frame data) is stored.

【0014】差分計算回路314は、現フレームバッフ
ァ312または後フレームバッファ313それぞれに現
フレームデータまたは後フレームデータが記憶された
後、チェーン座標生成回路311から、現フレーム座標
および後フレーム座標を受信すると、その現フレーム座
標または後フレーム座標をそれぞれ中心とする所定の範
囲のブロックを対象に、ブロックマッチングを行う。
The difference calculation circuit 314 receives the current frame coordinates and the subsequent frame coordinates from the chain coordinate generation circuit 311 after the current frame data or the subsequent frame data is stored in the current frame buffer 312 or the subsequent frame buffer 313, respectively. Block matching is performed on blocks within a predetermined range centered on the current frame coordinates or the subsequent frame coordinates.

【0015】即ち、差分計算回路314は、チェーン座
標生成回路311から受信した現フレーム座標または後
フレーム座標をアドレスとして、それぞれ現フレームバ
ッファ312または後フレームバッファ313に出力
し、これにより、現フレームバッファ312または後フ
レームバッファ313から、現フレーム座標または後フ
レーム座標に対応する画素を中心とするQ×Q(横×
縦)画素の範囲の現フレームデータまたは後フレームデ
ータ(画素値)を、それぞれ読み出す。
That is, the difference calculation circuit 314 outputs the current frame coordinate or the subsequent frame coordinate received from the chain coordinate generation circuit 311 as an address to the current frame buffer 312 or the subsequent frame buffer 313, respectively. 312 or the rear frame buffer 313, Q × Q (horizontal ×) centered on the pixel corresponding to the current frame coordinate or the rear frame coordinate.
The current frame data or the subsequent frame data (pixel value) in the range of (vertical) pixels is read out.

【0016】そして、差分計算回路314は、現フレー
ム座標に対応する画素を中心とするQ×Q画素の範囲の
現フレームデータそれぞれと、後フレーム座標に対応す
る画素を中心とするQ×Q画素の範囲の後フレームデー
タそれぞれとの差分を求め(以下、適宜、この差分値
を、予測誤差という)、さらにその予測誤差の、例えば
絶対値和を算出する。
Then, the difference calculation circuit 314 determines each of the current frame data in the range of Q × Q pixels centered on the pixel corresponding to the current frame coordinates and the Q × Q pixels centered on the pixel corresponding to the subsequent frame coordinates. The difference with each of the subsequent frame data in the range (1) is obtained (hereinafter, this difference value is appropriately referred to as a prediction error), and further, for example, the sum of absolute values of the prediction error is calculated.

【0017】差分計算回路314では、以上のような予
測誤差の絶対値和が、1つの現フレーム座標に対して得
られる複数の後フレーム座標それぞれについて求めら
れ、セレクタ315に出力される。
The difference calculation circuit 314 obtains the sum of absolute values of the prediction errors as described above for each of a plurality of subsequent frame coordinates obtained for one current frame coordinate and outputs it to the selector 315.

【0018】セレクタ315は、チェーン座標生成回路
311が、あるチェーンに対する処理を開始する前に、
最小誤差レジスタ316に、例えば−1をセットするこ
とで、最小誤差レジスタ316を初期化する。そして、
セレクタ315は、差分計算回路314から、予測誤差
の絶対値和を受信すると、それと、最小誤差レジスタ3
16の記憶値とを比較し、予測誤差の絶対値和が最小誤
差レジスタ316の記憶値より小さいか、または最初誤
差レジスタ316の記憶値が−1の場合、差分計算回路
314からの予測誤差の絶対値和を、最小誤差レジスタ
316に新たにセットする。さらに、セレクタ315
は、チェーン座標生成回路311から供給されたアフィ
ンパラメータのうち、最小誤差レジスタ316にセット
した予測誤差の絶対値和を得るのに用いたものを、動き
パラメータレジスタ317に記憶させる。
Before the chain coordinate generation circuit 311 starts processing for a chain, the selector 315 starts
The minimum error register 316 is initialized by setting -1 in the minimum error register 316, for example. And
When the selector 315 receives the sum of absolute values of prediction errors from the difference calculation circuit 314, the selector 315 and the minimum error register 3
16 if the sum of absolute values of prediction errors is smaller than the storage value of the minimum error register 316, or if the storage value of the first error register 316 is −1, the prediction error from the difference calculation circuit 314 is calculated. The sum of absolute values is newly set in the minimum error register 316. Furthermore, the selector 315
Causes the motion parameter register 317 to store the affine parameters supplied from the chain coordinate generation circuit 311 and used to obtain the sum of the absolute values of the prediction errors set in the minimum error register 316.

【0019】そして、チェーン座標生成回路311が、
ある1つのチェーンに対する処理を終了すると、動きパ
ラメータ出力回路318は、そのとき動きパラメータレ
ジスタ317に記憶されているアフィンパラメータを読
み出し、これを動きパラメータとして出力する。
Then, the chain coordinate generation circuit 311
When the process for one chain is completed, the motion parameter output circuit 318 reads the affine parameter stored in the motion parameter register 317 at that time and outputs it as the motion parameter.

【0020】以上のように、図38に示した動きパラメ
ータ検出装置では、座標を、種々の値のアフィンパラメ
ータによって変換し、変換前の座標を中心とするQ×Q
の範囲の現フレームデータと、変換後の座標を中心とす
るQ×Qの範囲の後フレームデータとの差分の絶対値
和、即ち予測誤差の絶対値和を、チェーンを構成するす
べての特徴点の座標について求め、その予測誤差の絶対
値和を最小にするアフィンパラメータを、動きパラメー
タとして検出するようになされていた。
As described above, in the motion parameter detecting device shown in FIG. 38, the coordinates are converted by the affine parameters of various values, and the coordinates before conversion are Q × Q.
The sum of absolute values of the difference between the current frame data of the range and the post frame data of the range of Q × Q centered on the coordinates after conversion, that is, the sum of the absolute values of the prediction errors, The affine parameter that minimizes the sum of the absolute values of the prediction errors is detected as the motion parameter.

【0021】このため、誤った動きパラメータが検出さ
れる課題があった。
Therefore, there is a problem that an erroneous motion parameter is detected.

【0022】即ち、例えば、図40(A)に示すよう
に、現フレームに、直線状のチェーンCHAが存在する
場合において、図40(B)に示すように、後フレーム
(現フレームの次のフレーム)で、そのチェーンがまっ
たく動いていない状態になっているときには、図40
(C)に示すように、チェーンCHAが、そのチェーン
CHAに沿って平行移動された状態を表す動きパラメー
タが検出されたり、あるいは図40(D)に示すよう
に、チェーンCHAが縮小された状態を表す動きパラメ
ータが検出されることがあった。
That is, for example, when a linear chain CH A is present in the current frame as shown in FIG. 40 (A), as shown in FIG. Frame), and the chain is in a non-moving state,
(C), the chain CH A is, or motion parameters are detected that represent the translation state along the chain CH A, or, as shown in FIG. 40 (D), the chain CH A is reduced In some cases, a motion parameter that represents the generated state has been detected.

【0023】また、例えば、図41(A)に示すよう
に、現フレームに、V字型のチェーンCHBが存在する
場合において、図41(B)に示すように、後フレーム
で、そのチェーンが、その頂点の位置が移動することな
く、拡大された状態になっているときには、図41
(C)に示すように、チェーンCHBが平行移動された
状態を表す動きパラメータが検出されることがあった。
Further, for example, when a V-shaped chain CH B exists in the current frame as shown in FIG. 41 (A), the chain is changed in the rear frame as shown in FIG. 41 (B). However, when the position of the apex is in the expanded state without moving,
As shown in (C), a motion parameter representing a state in which the chain CH B is translated may be detected.

【0024】さらに、図38の動きベクトル検出装置に
よれば、上述したような6つの係数a乃至fを有するア
フィンパラメータを用いて動きパラメータの検出が行わ
れるため、物体の平行移動、拡大縮小、および回転など
の動きを表す動きパラメータを得ることができる。しか
しながら、この場合、係数a乃至fの6つもの係数それ
ぞれを、上述したような範囲で変更して予測誤差を算出
することとなるので、膨大な計算量が必要となり、この
ため、実時間処理を行うには、高速処理可能なハードウ
エアを用いなければならず、装置が高コスト化する課題
があった。
Further, according to the motion vector detecting device of FIG. 38, since the motion parameter is detected by using the affine parameter having the above-mentioned six coefficients a to f, the parallel movement of the object, the scaling, And motion parameters representing motion such as rotation can be obtained. However, in this case, since as many as six coefficients of the coefficients a to f are changed within the above-described range to calculate the prediction error, a huge amount of calculation is required, and therefore the real-time processing is performed. In order to perform the above, it is necessary to use hardware capable of high-speed processing, and there has been a problem that the cost of the device increases.

【0025】本発明は、このような状況に鑑みてなされ
たものであり、正確な動きパラメータを、迅速に検出す
ることができるようにするものである。
The present invention has been made in view of such a situation, and makes it possible to detect an accurate motion parameter quickly.

【0026】[0026]

【課題を解決するための手段】本発明の動きパラメータ
検出装置は、連続点のうちの1以上の点を選択する選択
手段と、選択手段により選択された1以上の点それぞれ
についての動きベクトルを検出する動きベクトル検出手
段と、動きベクトル検出手段により検出された動きベク
トルに基づいて、連続点の動きパラメータを算出する動
きパラメータ算出手段とを備えることを特徴とする。
A motion parameter detecting apparatus according to the present invention provides a selecting means for selecting one or more points among continuous points and a motion vector for each of the one or more points selected by the selecting means. It is characterized by comprising motion vector detecting means for detecting and motion parameter calculating means for calculating motion parameters of consecutive points based on the motion vector detected by the motion vector detecting means.

【0027】この動きパラメータ検出装置においては、
選択手段には、連続点のうちの2点を選択させ、動きパ
ラメータ算出手段には、2点それぞれについての動きベ
クトルに基づいて、連続点の平行移動量、拡大縮小率、
または回転量を表す動きパラメータを算出させることが
できる。また、選択手段には、連続点それぞれの信頼性
を表す信頼度を算出させ、その信頼度に基づいて、2点
を選択させることができる。さらに、選択手段には、連
続点それぞれの信頼度を、その点を中心とする所定の範
囲のブロックを用いてブロックマッチングを行わせ、そ
のときに得られる予測誤差に基づいて算出させることが
できる。さらに、選択手段には、連続点それぞれの信頼
度を、その点を頂点として、連続点がつくる角度に基づ
いて算出させることができる。また、選択手段には、連
続点のうち、所定の条件を満たすものであって、信頼度
の最も高い点と、その次に高い点を選択させることがで
きる。さらに、選択手段には、連続点の中に、所定の条
件を満たすものが2点以上存在しないとき、連続点の始
点および終点を選択させることができる。また、選択手
段には、連続点のうち、その始点および終点を選択させ
ることができる。
In this motion parameter detecting device,
The selection means is caused to select two points out of the continuous points, and the motion parameter calculation means is based on the motion vector for each of the two points, the parallel movement amount of the continuous points, the enlargement / reduction ratio,
Alternatively, a motion parameter representing the amount of rotation can be calculated. Further, the selecting means can calculate the reliability representing the reliability of each continuous point, and select two points based on the reliability. Furthermore, the reliability of each continuous point can be calculated by the selecting means by performing block matching using a block in a predetermined range centered on that point, and calculating the reliability based on the prediction error obtained at that time. . Furthermore, the selecting means can calculate the reliability of each continuous point based on the angle formed by the continuous points with the point as the vertex. Further, it is possible to cause the selection means to select a continuous point that satisfies a predetermined condition and has the highest reliability and the next highest point. Further, the selecting means can select the start point and the end point of the continuous points when no two or more continuous points satisfy the predetermined condition. Further, the selection means can select the start point and the end point of the continuous points.

【0028】動きパラメータ算出手段には、動きベクト
ル検出手段により検出された動きベクトルの平均値を、
連続点の平行移動量を表す動きパラメータとして算出さ
せることができる。また、この場合、選択手段には、連
続点それぞれの信頼性を表す信頼度を算出させ、その信
頼度に基づいて、連続点のうちの1以上の点を選択させ
ることができる。
In the motion parameter calculating means, the average value of the motion vectors detected by the motion vector detecting means is
It can be calculated as a motion parameter indicating the parallel movement amount of the continuous points. Further, in this case, the selecting means can be made to calculate the reliability representing the reliability of each continuous point and select one or more of the continuous points based on the reliability.

【0029】本発明の動きパラメータ検出方法は、連続
点のうちの1以上の点を選択し、その1以上の点それぞ
れについての動きベクトルを検出し、その動きベクトル
に基づいて、連続点の動きパラメータを算出することを
特徴とする。
According to the motion parameter detecting method of the present invention, one or more points are selected from the continuous points, the motion vector for each of the one or more points is detected, and the motion of the continuous points is calculated based on the motion vector. It is characterized by calculating parameters.

【0030】本発明の画像符号化装置は、特徴点を結ぶ
チェーンの動きを表すパラメータである動きパラメータ
を検出する動きパラメータ検出手段が、チェーンを構成
する特徴点のうちの1以上の点を選択する選択手段と、
選択手段により選択された1以上の点それぞれについて
の動きベクトルを検出する動きベクトル検出手段と、動
きベクトル検出手段により検出された動きベクトルに基
づいて、チェーンの動きパラメータを算出する動きパラ
メータ算出手段とを備えることを特徴とする。
In the image coding apparatus of the present invention, the motion parameter detecting means for detecting a motion parameter which is a parameter representing the motion of the chain connecting the feature points selects one or more of the feature points forming the chain. Selection means to
A motion vector detecting means for detecting a motion vector for each of the one or more points selected by the selecting means, and a motion parameter calculating means for calculating a motion parameter of the chain based on the motion vector detected by the motion vector detecting means. It is characterized by including.

【0031】本発明の動きパラメータ検出装置において
は、選択手段は、連続点のうちの1以上の点を選択し、
動きベクトル検出手段は、選択手段により選択された1
以上の点それぞれについての動きベクトルを検出するよ
うになされている。動きパラメータ算出手段は、動きベ
クトル検出手段により検出された動きベクトルに基づい
て、連続点の動きパラメータを算出するようになされて
いる。
In the motion parameter detecting device of the present invention, the selecting means selects one or more points among the continuous points,
The motion vector detecting means is 1 selected by the selecting means.
The motion vector for each of the above points is detected. The motion parameter calculation means is configured to calculate the motion parameter of the continuous points based on the motion vector detected by the motion vector detection means.

【0032】本発明の動きパラメータ検出方法において
は、連続点のうちの1以上の点を選択し、その1以上の
点それぞれについての動きベクトルを検出し、その動き
ベクトルに基づいて、連続点の動きパラメータを算出す
るようになされている。
In the motion parameter detecting method of the present invention, one or more points among the continuous points are selected, the motion vector for each of the one or more points is detected, and the continuous point is detected based on the motion vector. The motion parameters are calculated.

【0033】本発明の画像符号化装置においては、選択
手段は、チェーンを構成する特徴点のうちの1以上の点
を選択し、動きベクトル検出手段は、選択手段により選
択された1以上の点それぞれについての動きベクトルを
検出するようになされている。動きパラメータ算出手段
は、動きベクトル検出手段により検出された動きベクト
ルに基づいて、チェーンの動きパラメータを算出するよ
うになされている。
In the image coding apparatus of the present invention, the selecting means selects one or more points out of the characteristic points forming the chain, and the motion vector detecting means the one or more points selected by the selecting means. The motion vector for each is detected. The motion parameter calculation means is configured to calculate the motion parameter of the chain based on the motion vector detected by the motion vector detection means.

【0034】[0034]

【発明の実施の形態】以下に、本発明の実施例を説明す
るが、その前に、特許請求の範囲に記載の発明の各手段
と以下の実施例との対応関係を明らかにするために、各
手段の後の括弧内に、対応する実施例(但し、一例)を
付加して、本発明の特徴を記述すると、次のようにな
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below, but before that, in order to clarify the correspondence between each means of the invention described in the claims and the following embodiments. The features of the present invention are described as follows by adding a corresponding embodiment (however, an example) in parentheses after each means.

【0035】即ち、請求項1に記載の動きパラメータ検
出装置は、画像中の連続点の動きを表すパラメータであ
る動きパラメータを検出する動きパラメータ検出装置で
あって、連続点のうちの1以上の点を選択する選択手段
(例えば、図29に示す信頼点計算回路41など)と、
選択手段により選択された1以上の点それぞれについて
の動きベクトルを検出する動きベクトル検出手段(例え
ば、図29に示す信頼点計算回路41など)と、動きベ
クトル検出手段により検出された動きベクトルに基づい
て、連続点の動きパラメータを算出する動きパラメータ
算出手段(例えば、図29に示す動きパラメータ計算回
路42など)とを備えることを特徴とする。
That is, the motion parameter detection device according to the first aspect is a motion parameter detection device that detects a motion parameter that is a parameter representing the motion of a continuous point in an image, and one or more of the continuous points. Selection means for selecting points (for example, the confidence point calculation circuit 41 shown in FIG. 29),
Based on the motion vector detecting means (for example, the confidence point calculating circuit 41 shown in FIG. 29) for detecting the motion vector for each of the one or more points selected by the selecting means, and the motion vector detected by the motion vector detecting means. And a motion parameter calculation means (for example, the motion parameter calculation circuit 42 shown in FIG. 29) for calculating the motion parameters of the continuous points.

【0036】請求項12に記載の画像符号化装置は、動
画像の特徴点に関する情報を符号化し、符号化データを
出力する特徴点符号化手段(例えば、図1に示すチェー
ン符号化回路12など)と、特徴点を結ぶチェーンの動
きを表すパラメータである動きパラメータを検出する動
きパラメータ検出手段(例えば、図17に示す動きパラ
メータ算出回路125など)と、特徴点符号化手段より
出力された符号化データと、動きパラメータ検出手段に
より検出された動きパラメータとを多重化する多重化手
段(例えば、図1に示すセレクト多重化回路16など)
とを有する画像符号化装置であって、動きパラメータ検
出手段が、チェーンを構成する特徴点のうちの1以上の
点を選択する選択手段(例えば、図29に示す信頼点計
算回路41など)と、選択手段により選択された1以上
の点それぞれについての動きベクトルを検出する動きベ
クトル検出手段(例えば、図29に示す信頼点計算回路
41など)と、動きベクトル検出手段により検出された
動きベクトルに基づいて、チェーンの動きパラメータを
算出する動きパラメータ算出手段(例えば、図29に示
す動きパラメータ計算回路42など)とを備えることを
特徴とする。
An image coding apparatus according to a twelfth aspect of the present invention is a feature point coding means (for example, the chain coding circuit 12 shown in FIG. 1 or the like) that codes information relating to feature points of a moving image and outputs coded data. ), A motion parameter detecting means (for example, a motion parameter calculating circuit 125 shown in FIG. 17) that detects a motion parameter that is a parameter representing the motion of the chain connecting the feature points, and the code output from the feature point coding means. Multiplexing means for multiplexing the encoded data and the motion parameter detected by the motion parameter detecting means (for example, the select multiplexing circuit 16 shown in FIG. 1).
An image encoding apparatus having: and a motion parameter detecting means, and a selecting means (for example, a confidence point calculating circuit 41 shown in FIG. 29) for selecting one or more points among the characteristic points forming the chain. , The motion vector detecting means (for example, the confidence point calculating circuit 41 shown in FIG. 29) for detecting the motion vector for each of the one or more points selected by the selecting means, and the motion vector detected by the motion vector detecting means. On the basis of this, there is provided a motion parameter calculating means for calculating the motion parameter of the chain (for example, the motion parameter calculating circuit 42 shown in FIG. 29).

【0037】なお、勿論この記載は、各手段を上記した
ものに限定することを意味するものではない。
Of course, this description does not mean that each means is limited to those described above.

【0038】図1は、本発明を適用した画像符号化装置
の第1実施例の構成を示すブロック図である。なお、図
中、図37における場合と対応する部分については、同
一の符号を付してある。
FIG. 1 is a block diagram showing the configuration of a first embodiment of an image coding apparatus to which the present invention is applied. Note that, in the figure, portions corresponding to those in FIG. 37 are denoted by the same reference numerals.

【0039】この画像符号化装置は、動画像を、構造抽
出符号化方式により圧縮符号化するようになされてい
る。即ち、例えば動画の画像信号をディジタル化した入
力画像データは、図37で説明したように、2次元変化
点検出回路10または量子化器11をそれぞれ介して、
チェーン符号化回路12に供給されることで、チェーン
符号化データとされる。このチェーン符号化データは、
セレクタ13に供給される。セレクタ13は、チェーン
符号化データを、フレーム単位で、RAM(Chain Code
RAM)141乃至14Nに記憶させる。
This image coding apparatus is adapted to compress and code a moving image by the structure extraction coding method. That is, for example, the input image data obtained by digitizing the image signal of the moving image is passed through the two-dimensional change point detection circuit 10 or the quantizer 11 as described with reference to FIG.
By being supplied to the chain encoding circuit 12, it becomes chain encoded data. This chain encoded data is
It is supplied to the selector 13. The selector 13 stores the chain-encoded data in units of frames in a RAM (Chain Code).
RAM) 14 1 to 14 N.

【0040】即ち、後段のチェーン置換回路15および
セレクト多重化回路16は、Nフレーム単位(例えば、
15フレーム単位など)で処理を行うようになされてお
り、RAM141には、そのNフレーム単位のチェーン
符号化データのうちの先頭フレーム(第1フレーム)の
ものが記憶され、また、RAM142には、第2フレー
ムのチェーン符号化データが記憶され、以下、同様にし
て、RAM14nには、第nフレームのチェーン符号化
データが記憶される(但し、n=1,2,・・・,
N)。
That is, the chain replacing circuit 15 and the select multiplexing circuit 16 in the subsequent stage are in units of N frames (for example,
The processing is performed in units of 15 frames), and the first frame (first frame) of the chain encoded data in units of N frames is stored in the RAM 14 1 . Stores the chain encoded data of the second frame, and thereafter, similarly stores the chain encoded data of the nth frame in the RAM 14 n (however, n = 1, 2, ...,
N).

【0041】ここで、セレクタ13は、チェーン符号化
データを、RAM14に記憶させるとき、各チェーン符
号化データごとに(各チェーンごとに)、ユニークな番
号としてのチェーン番号を付加するようになされてい
る。図1の画像符号化装置では、チェーン(チェーン符
号化データ)を扱うにあたって、このチェーン番号が、
各チェーンを識別するのに用いられる。なお、チェーン
番号は、各フレームに存在するチェーンについてユニー
クなものとなっていれば良いが、チェーン置換回路15
の処理単位であるNフレームに存在するすべてのチェー
ンについてユニークなものとなるようにしても良い。
Here, the selector 13, when storing the chain encoded data in the RAM 14, adds a chain number as a unique number to each chain encoded data (each chain). There is. In the image encoding device of FIG. 1, when handling a chain (chain encoded data), this chain number is
Used to identify each chain. The chain number may be unique for the chains existing in each frame, but the chain replacement circuit 15
All chains existing in the N frame, which is the processing unit of, may be unique.

【0042】一方、この画像符号化装置においては、画
像データが、セレクタ19にも供給されるようになされ
ている。セレクタ19は、画像データを、フレーム単位
で、RAM201乃至20Nに記憶させる。即ち、これに
より、RAM20nには、RAM14nにおける場合と同
様に、第nフレームの画像データが記憶される。
On the other hand, in this image coding apparatus, the image data is also supplied to the selector 19. The selector 19 stores the image data in the RAMs 20 1 to 20 N in frame units. That is, thereby, the RAM 20 n, as in RAM 14 n, the image data of the n-th frame is stored.

【0043】RAM141乃至14Nに、Nフレーム分の
チェーン符号化データが記憶されるとともに、RAM2
1乃至20Nに、Nフレーム分の画像データが記憶され
ると、チェーン置換回路15では、RAM14nに記憶
されたチェーン符号化データが必要に応じて読み出され
る。そして、第1フレームに存在する、あるチェーン
(従って、RAM141に記憶された、あるチェーン)
についての、後フレームへの動きパラメータ(後フレー
ムに対する動きパラメータ)が検出される。なお、チェ
ーン置換回路15では、RAM20に記憶された画像デ
ータに基づいて、動きパラメータの検出が行われるよう
になされている。
In the RAMs 14 1 to 14 N , chain-coded data for N frames are stored, and the RAM 2
0 to 1 to 20 N, the image data of N frames are stored, the chain substitution circuit 15, is read out as necessary chain coded data stored in the RAM 14 n. Then, present in the first frame, there chain (thus, stored in RAM 14 1, there chain)
, The motion parameter to the subsequent frame (motion parameter for the subsequent frame) is detected. The chain replacement circuit 15 is adapted to detect a motion parameter based on the image data stored in the RAM 20.

【0044】さらに、そのチェーンが、検出された動き
パラメータにしたがって移動(平行移動だけでなく、例
えば回転や、拡大縮小などを含む(従って、正確には、
変換というべきもの))され、その移動後のチェーン
(以下、適宜、移動チェーンという)の、後フレームに
おける視覚的な重要性を表す重要度(Visual Significa
nt)が算出される。
Furthermore, the chain moves according to the detected motion parameters (not only translation but also rotation, scaling, etc. (thus, to be exact,
(Translation)), and the importance (Visual Significa) that represents the visual importance of the post-movement chain (hereinafter referred to as the "movement chain") in the subsequent frame.
nt) is calculated.

【0045】そして、チェーン置換回路15は、重要度
が所定の閾値T以上であるとき、後フレームに存在する
チェーンのうち、移動チェーンの周囲にあるものを、そ
の移動チェーンに置き換え、置き換え後のチェーンを用
い、そのさらに後フレームを対象にして同様の処理を行
うことを、重要度が閾値T以上とならなくなるまで、ま
たは第Nフレームついてまで行う。その後、チェーン置
換回路15は、最初に用いた第1フレームのチェーンの
チェーン番号、第1フレームからチェーンの置き換えを
行った最後のフレームまでの間の後フレームへの動きパ
ラメータ、その動きパラメータの数(第1フレームから
チェーンの置き換えを行った最後のフレームまでのフレ
ーム数)を、セレクト多重化回路16に出力する。
Then, when the importance is equal to or higher than the predetermined threshold value T, the chain replacement circuit 15 replaces the chain around the moving chain among the chains existing in the rear frame with the moving chain, and after the replacement, The same process is performed on the subsequent frames using the chain until the importance does not exceed the threshold value T or until the Nth frame. After that, the chain replacement circuit 15 determines the chain number of the chain of the first frame used first, the motion parameter to the subsequent frame from the first frame to the last frame where the chain has been replaced, and the number of the motion parameters. The (number of frames from the first frame to the last frame where chain replacement has been performed) is output to the select multiplexing circuit 16.

【0046】セレクト多重化回路16は、チェーン置換
回路15からのチェーン番号に対応するチェーンについ
てのチェーン符号化データを、RAM141から読み出
し、そのチェーン符号化データ、並びにチェーン置換回
路15からの動きパラメータおよびその数を多重化する
ことで、多重化チェーン符号化データとして出力する。
この多重化チェーン符号化データは、バッファ17を介
して、伝送路に出力される。あるいは、例えば磁気テー
プや、光ディスク、光磁気ディスクなどの記録媒体18
に供給されて記録される。
The select multiplexing circuit 16, the chain coded data for the chain corresponding to the chain number of the chain substitution circuit 15 reads from the RAM 14 1, the chain coded data, and motion parameters from the chain substitution circuit 15 And multiplexes the number of them and outputs as multiplexed chain encoded data.
This multiplexed chain encoded data is output to the transmission path via the buffer 17. Alternatively, for example, a recording medium 18 such as a magnetic tape, an optical disc, or a magneto-optical disc.
Will be supplied to and recorded.

【0047】図2は、図1のチェーン符号化回路12の
構成例を示している。量子化器11からの量子化係数
は、係数フレームバッファ21に供給されて記憶され
る。なお、係数フレームバッファ21では、画像上の点
(i,j)における画像データの量子化係数Qijが、例
えば図3に示すように、上位アドレスまたは下位アドレ
スが、それぞれiまたはjで表されるアドレスに記憶さ
れるようになされている(但し、iまたはjそれぞれ
は、例えば画像を構成する画素(点)の水平方向(x軸
方向)または水平方向(y軸方向)の座標を表す)。
FIG. 2 shows a configuration example of the chain encoding circuit 12 of FIG. The quantized coefficient from the quantizer 11 is supplied to and stored in the coefficient frame buffer 21. In the coefficient frame buffer 21, the quantization coefficient Q ij of the image data at the point (i, j) on the image is represented by i or j, respectively, as shown in FIG. (Where i and j represent, for example, the horizontal (x-axis direction) or horizontal (y-axis direction) coordinates of pixels (points) forming an image) .

【0048】また、2次元変化点検出回路10からの特
徴点データは、マスクフレームバッファ22に供給され
て記憶される。なお、マスクフレームバッファ22にお
いても、上述の係数フレームバッファ21における場合
と同様にして、特徴点データが記憶される。
The feature point data from the two-dimensional change point detection circuit 10 is supplied to the mask frame buffer 22 and stored therein. Note that the mask frame buffer 22 also stores the feature point data in the same manner as in the coefficient frame buffer 21 described above.

【0049】係数フレームバッファ21またはマスクフ
レームバッファ22に、1フレーム分の量子化係数また
は特徴点データが、それぞれ記憶されると、方向探索器
23において、図4に示すフローチャートにしたがった
処理が行われる。
When one frame of quantized coefficients or feature point data is stored in the coefficient frame buffer 21 or the mask frame buffer 22, respectively, the direction searcher 23 performs the processing according to the flowchart shown in FIG. Be seen.

【0050】即ち、まず最初に、ステップS1におい
て、状態レジスタ24,X座標レジスタ25、およびY
座標レジスタ26が、0に初期化され、ステップS2に
進み、状態レジスタ24の記憶値が0であるか否かが判
定される。ステップS2において、状態レジスタ24の
記憶値が0であると判定された場合、ステップS3に進
み、未処理の座標があるかどうかが判定される。即ち、
方向探索器23は、後述するステップS4において、X
座標レジスタ25またはY座標レジスタ26それぞれ
に、1フレームの画像を構成する画素のxまたはy座標
を、例えばいわゆるラインスキャン順(左から右、そし
て上から下方向)にセットするようになされており、ス
テップS3では、X座標レジスタ25またはY座標レジ
スタ26それぞれに、画像をラインスキャン順に見た場
合に、最後に位置する画素のxまたはy座標がセットさ
れているかどうかが判定される(例えば、1フレームの
画像が640×400画素でなる場合は、X座標レジス
タ25またはY座標レジスタ26それぞれに、640
(639)または400(399)がセットされている
かどうかが判定される)。
That is, first, in step S1, the status register 24, the X coordinate register 25, and the Y register.
The coordinate register 26 is initialized to 0, and the process proceeds to step S2 to determine whether the stored value of the state register 24 is 0 or not. When it is determined in step S2 that the value stored in the state register 24 is 0, the process proceeds to step S3, and it is determined whether there are unprocessed coordinates. That is,
The direction searcher 23 determines X in step S4 described later.
In the coordinate register 25 or the Y coordinate register 26, x or y coordinates of pixels forming one frame image are set in, for example, a so-called line scan order (from left to right and from top to bottom). In step S3, it is determined whether the x or y coordinate of the pixel located at the end when the image is viewed in the line scan order is set in the X coordinate register 25 or the Y coordinate register 26 (for example, When the image of one frame consists of 640 × 400 pixels, the X coordinate register 25 or the Y coordinate register 26 has 640
(639) or 400 (399) is set).

【0051】ステップS3において、未処理の座標があ
ると判定された場合、ステップS4に進み、画像をライ
ンスキャン順に見て最初に現れる未処理の座標(x,y
座標)が、X座標レジスタ25,Y座標レジスタ26に
セットされる。従って、係数フレームバッファ21また
はマスクフレームバッファ22に、1フレーム分の量子
化係数または特徴点データがそれぞれ記憶された直後
は、X座標レジスタ25およびY座標レジスタ26に
は、いずれも0がセットされる。
When it is determined in step S3 that there is an unprocessed coordinate, the process proceeds to step S4, and the unprocessed coordinate (x, y) that appears first in the line scan order of the image is displayed.
(Coordinates) are set in the X coordinate register 25 and the Y coordinate register 26. Therefore, immediately after the quantized coefficient for one frame or the feature point data is stored in the coefficient frame buffer 21 or the mask frame buffer 22, 0 is set in both the X coordinate register 25 and the Y coordinate register 26. It

【0052】ここで、チェーン符号化回路12では、X
座標レジスタ25およびY座標レジスタ26の記憶値に
対応する座標の画素が、最初に処理の対象となるが、こ
のように処理の対象となる(なっている)画素を、以
下、適宜、注目画素という。
Here, in the chain encoding circuit 12, X
The pixel of the coordinates corresponding to the stored values of the coordinate register 25 and the Y coordinate register 26 is the target of the process first, but the pixel which is (is) the target of the process is hereinafter referred to as the pixel of interest as appropriate. Say.

【0053】その後、ステップS5に進み、注目画素に
対応する特徴点データが、マスクフレームバッファ22
から読み出され(注目画素のx座標またはy座標をそれ
ぞれ上位アドレスまたは下位アドレスとするアドレスか
ら、特徴点データが読み出され)、それが1であるかど
うかが判定される。ステップS5において、特徴点デー
タが1でないと判定された場合(0であると判定された
場合)、即ち、注目画素が特徴点ではない場合、ステッ
プS2に戻る。また、ステップS5において、特徴点デ
ータが1であると判定された場合、即ち、注目画素が特
徴点である場合、ステップS6に進み、探索X座標レジ
スタ27または探索Y座標レジスタ28に、X座標レジ
スタ25またはY座標レジスタ26に記憶されている値
がセットされる。さらに、ステップS6では、3ビット
カウンタ29が0に初期化される。なお、3ビットカウ
ンタ29は、3ビットで表すことのできる数、即ち、例
えば0乃至7(23−1)をカウントすることができる
ようになされている。
Thereafter, the process proceeds to step S5, where the feature point data corresponding to the pixel of interest is mask frame buffer 22.
Is read out (the feature point data is read out from the address having the x-coordinate or the y-coordinate of the pixel of interest as the upper address or the lower address, respectively), and it is determined whether it is 1. If it is determined in step S5 that the feature point data is not 1 (if it is determined to be 0), that is, if the pixel of interest is not a feature point, the process returns to step S2. If it is determined in step S5 that the feature point data is 1, that is, if the pixel of interest is a feature point, the process proceeds to step S6, and the search X coordinate register 27 or the search Y coordinate register 28 stores the X coordinate. The value stored in the register 25 or the Y coordinate register 26 is set. Further, in step S6, the 3-bit counter 29 is initialized to 0. The 3-bit counter 29 can count a number that can be represented by 3 bits, that is, 0 to 7 (2 3 −1), for example.

【0054】そして、方向探索器23では、ステップS
7において、値が1(Hレベル)の有効データ選択信号
が出力される。なお、有効データ選択信号は、通常は、
0(Lレベル)とされている。また、有効データ選択信
号は、ラッチ回路34、セレクタ36、およびマルチプ
レクサ37に供給されるようになされている。さらに、
有効データ選択信号は、0から1にされた後、1クロッ
ク分の時間が経過すると、再び0にされるようになされ
ている。
Then, in the direction searching device 23, step S
At 7, the valid data selection signal whose value is 1 (H level) is output. The valid data selection signal is usually
It is set to 0 (L level). Further, the valid data selection signal is supplied to the latch circuit 34, the selector 36, and the multiplexer 37. further,
The valid data selection signal is set to 0 again when the time for one clock elapses after it is changed from 0 to 1.

【0055】さらに、ステップS7では、探索X座標レ
ジスタ27および探索Y座標レジスタ28に記憶されて
いる座標が読み出され、開始点座標として、セレクタ3
6に出力される。また、ステップS7では、状態レジス
タ24に1がセットされるとともに、マスクフレームバ
ッファ22に記憶されている、注目画素に対応する、値
が1の特徴点データが0に書き換えられて、ステップS
2に戻る。
Further, in step S7, the coordinates stored in the search X coordinate register 27 and the search Y coordinate register 28 are read out, and the selector 3 is set as the start point coordinate.
6 is output. In step S7, 1 is set in the status register 24, and the feature point data having a value of 1 and corresponding to the pixel of interest stored in the mask frame buffer 22 is rewritten to 0.
Return to 2.

【0056】ここで、セレクタ36には、方向探索器2
3から有効データ選択信号および開始点座標が供給され
る他、状態レジスタ24の記憶値、ROM(Direction
ROM)33の出力、および方向変化信号発生器35の出
力が供給されるようになされている。そして、セレクタ
36は、値が1の有効データ選択信号を受信すると、状
態レジスタ24の記憶値を参照し、それが0である場合
には、方向探索器23からの開始点座標、ROM33の
出力、または方向変化信号発生器35の出力のうちの方
向探索器23からの開始点座標を選択して、マルチプレ
クサ37に出力するようになされている。
Here, the selector 36 has a direction searching device 2
3, the valid data selection signal and the start point coordinates are supplied, the stored value of the state register 24, the ROM (Direction
The output of the ROM 33 and the output of the direction change signal generator 35 are supplied. When the selector 36 receives the valid data selection signal whose value is 1, the selector 36 refers to the value stored in the state register 24, and when it is 0, the start point coordinate from the direction searcher 23 and the output of the ROM 33. , Or the start point coordinate from the direction searching device 23 among the outputs of the direction change signal generator 35, and outputs it to the multiplexer 37.

【0057】また、マルチプレクサ37は、値が1の有
効データ選択信号を受信すると、注目画素の量子化係数
を、係数フレームバッファ21から読み出し、セレクタ
36の出力と多重化して出力するようになされている。
Further, when the multiplexer 37 receives the valid data selection signal having the value 1, the multiplexer 37 reads the quantized coefficient of the pixel of interest from the coefficient frame buffer 21, multiplexes it with the output of the selector 36, and outputs it. There is.

【0058】従って、ステップS7において、状態レジ
スタ24の記憶値が0の場合において、有効データ選択
信号が1となったとき(注目画素が特徴点であるとき)
には、チェーン符号化回路12(マルチプレクサ37)
からは、特徴点となっている注目画素の座標(開始点座
標)と、その特徴点における量子化係数とを多重化した
チェーン符号化データが出力される。
Therefore, in step S7, when the value stored in the status register 24 is 0, the valid data selection signal becomes 1 (when the pixel of interest is a feature point).
Includes the chain encoding circuit 12 (multiplexer 37)
Outputs chain coded data in which the coordinates (start point coordinates) of the pixel of interest as the feature point and the quantized coefficient at the feature point are multiplexed.

【0059】なお、状態レジスタ24の記憶値が0の場
合(以下、適宜、状態0の場合という)において、有効
データ選択信号が1となったときというのは、チェーン
を構成する特徴点であって、その始点となるものが見つ
かったときである。そして、この場合、上述したよう
に、ステップS7において、状態レジスタ24の記憶値
は1とされる。
When the value stored in the state register 24 is 0 (hereinafter, appropriately referred to as the state 0), the fact that the valid data selection signal becomes 1 is a characteristic feature of the chain. Then, when the starting point was found. Then, in this case, as described above, the stored value of the state register 24 is set to 1 in step S7.

【0060】一方、ステップS2において、状態レジス
タ24の記憶値が0でないと判定された場合、ステップ
S8に進み、その記憶値が1であるかどうかが判定され
る。ステップS8において、状態レジスタ24の記憶値
が1であると判定された場合、図5のステップS11に
進み、アドレス発生器32が発生しているアドレスに記
憶されている特徴点データが、マスクフレームバッファ
22から読み出される。
On the other hand, if it is determined in step S2 that the storage value of the status register 24 is not 0, the process proceeds to step S8, and it is determined whether or not the storage value is 1. If it is determined in step S8 that the value stored in the status register 24 is 1, the process proceeds to step S11 in FIG. 5, where the feature point data stored at the address generated by the address generator 32 is the mask frame. It is read from the buffer 22.

【0061】ここで、アドレス発生器32は、加算器3
8または39よりそれぞれ出力される値を、上位アドレ
スまたは下位アドレスとするアドレスを出力するように
なされている。加算器38には、探索X座標レジスタ2
7に記憶されているX座標とROM(Search X-ROM)3
0の出力値とが供給されるようになされており、そこで
は両者が加算されて出力されるようになされている。ま
た、加算器39には、探索Y座標レジスタ28に記憶さ
れているY座標とROM(Search Y-ROM)31の出力値
とが供給されるようになされており、そこでは、加算器
38における場合と同様に、やはり両者が加算されて出
力されるようになされている。
Here, the address generator 32 is the adder 3
An address having a value output from 8 or 39 as an upper address or a lower address is output. The adder 38 has a search X coordinate register 2
X coordinate stored in 7 and ROM (Search X-ROM) 3
An output value of 0 is supplied, and both are added and output there. Further, the Y coordinate stored in the search Y coordinate register 28 and the output value of the ROM (Search Y-ROM) 31 are supplied to the adder 39. As in the case, both are also added and output.

【0062】ROM30および31は、3ビットのアド
レス空間を有し、そこには、図6に示すような値が記憶
されている。そして、ROM30および31は、3ビッ
トカウンタ29の出力値をアドレスとし、そのアドレス
に記憶されている記憶値を出力するようになされてい
る。
The ROMs 30 and 31 have a 3-bit address space in which the values shown in FIG. 6 are stored. The ROMs 30 and 31 use the output value of the 3-bit counter 29 as an address and output the stored value stored at that address.

【0063】従って、加算器38および39の出力を、
(加算器38の出力,加算器39の出力)というように
表すとともに、探索X座標レジスタ27または探索Y座
標レジスタ28に記憶されている値を、それぞれxまた
はyと表すとすると、3ビットカウンタ29の出力値が
0乃至7であるとき、加算器38および39の出力は、
それぞれ(x−1,y−1),(x−1,y),(x−
1,y+1),(x,y−1),(x,y+1),(x
+1,y−1),(x+1,y),(x+1,y+1)
となる。
Therefore, the outputs of the adders 38 and 39 are
(Output of adder 38, output of adder 39), and the value stored in search X coordinate register 27 or search Y coordinate register 28 is expressed as x or y, respectively, a 3-bit counter. When the output value of 29 is 0 to 7, the outputs of the adders 38 and 39 are
(X-1, y-1), (x-1, y), (x-, respectively)
1, y + 1), (x, y-1), (x, y + 1), (x
+1, y-1), (x + 1, y), (x + 1, y + 1)
Becomes

【0064】よって、3ビットカウンタ29の出力値が
0乃至7に変化することで、アドレス発生器32は、図
7に示すように、探索X座標レジスタ27および探索Y
座標レジスタ28の記憶値で表される座標の画素(図
中、斜線を付してある部分)に隣接する8個の画素P0
乃至P7の座標に対応するアドレスを出力することにな
る。
Therefore, as the output value of the 3-bit counter 29 changes from 0 to 7, the address generator 32 causes the search X coordinate register 27 and the search Y to be changed, as shown in FIG.
Eight pixels P0 adjacent to the pixel of the coordinate represented by the stored value of the coordinate register 28 (the hatched portion in the drawing)
The address corresponding to the coordinates of P7 to P7 is output.

【0065】以上から、ステップS11では、探索X座
標レジスタ27および探索Y座標レジスタ28の記憶値
で表される座標の画素に隣接する画素(3ビットカウン
タ29が出力するカウント値に対応する画素)P0乃至
P7のいずれかにおける特徴点データが、マスクフレー
ムバッファ22から読み出されることになる。ここで、
後述する処理は、探索X座標レジスタ27および探索Y
座標レジスタ28の記憶値で表される座標の画素を元
に、それに隣接する画素を、いわば探索して(順次、注
目画素にして)行われるので、探索X座標レジスタ27
および探索Y座標レジスタ28の記憶値で表される座標
の画素を、以下、適宜、探索中心画素という。
From the above, in step S11, the pixel adjacent to the pixel of the coordinates represented by the stored values of the search X coordinate register 27 and the search Y coordinate register 28 (the pixel corresponding to the count value output by the 3-bit counter 29). The feature point data in any of P0 to P7 will be read from the mask frame buffer 22. here,
The process described below is performed by the search X coordinate register 27 and the search Y.
Based on the pixel of the coordinate represented by the value stored in the coordinate register 28, the pixel adjacent to the pixel is searched (sequentially as a target pixel), so the search X coordinate register 27
The pixel at the coordinate represented by the stored value of the search Y coordinate register 28 will be hereinafter referred to as a search center pixel, as appropriate.

【0066】特徴点データが読み出されると、ステップ
S12に進み、その値が1であるか否かが判定される。
ステップS12において、特徴点データが1でないと判
定された場合、即ち、注目画素が特徴点でない場合、ス
テップS13に進み、3ビットカウンタ29のカウント
値(出力値)が7であるかどうかが判定される。ステッ
プS13において、3ビットカウンタ29のカウント値
が7でないと判定された場合、即ち、探索中心画素に隣
接する画素すべてについて処理を行っていない場合、ス
テップS14に進み、3ビットカウンタ29のカウント
値が1だけインクリメントされ、図4のステップS2に
戻る。なお、この場合、状態レジスタ24の記憶値は1
のままであるから、ステップS2およびステップS8を
介して、再度ステップS11以下の処理が行われること
になる。
When the characteristic point data is read out, the process proceeds to step S12, and it is determined whether or not the value is 1.
If it is determined in step S12 that the feature point data is not 1, that is, if the pixel of interest is not a feature point, the process proceeds to step S13, and it is determined whether the count value (output value) of the 3-bit counter 29 is 7. To be done. If it is determined in step S13 that the count value of the 3-bit counter 29 is not 7, that is, if processing has not been performed for all pixels adjacent to the search center pixel, the process proceeds to step S14. Is incremented by 1 and the process returns to step S2 in FIG. In this case, the value stored in the status register 24 is 1
As it is, the processing from step S11 onward is performed again through step S2 and step S8.

【0067】また、ステップS13において、3ビット
カウンタ29のカウント値が7であると判定された場
合、即ち、探索中心画素に隣接する画素すべてについて
処理を行い、その結果、探索中心画素に隣接する画素に
特徴点がないことが判明した場合、ステップS15に進
み、状態レジスタ24に0がセットされ、ステップS2
に戻る。
When it is determined in step S13 that the count value of the 3-bit counter 29 is 7, that is, all the pixels adjacent to the search center pixel are processed, and as a result, the pixels adjacent to the search center pixel are processed. When it is determined that the pixel has no feature point, the process proceeds to step S15, 0 is set in the state register 24, and step S2 is performed.
Return to

【0068】一方、ステップS12において、特徴点デ
ータが1であると判定された場合、即ち、注目画素が特
徴点である場合、ステップS16に進み、その注目画素
が、新たに探索中心画素とされる。即ち、探索X座標レ
ジスタ27または探索Y座標レジスタ28の記憶値が、
それぞれ注目画素のxまたはy座標に更新される。その
後、ステップS17に進み、有効データ選択信号が1に
され、状態レジスタ24の記憶値が2にされる。さら
に、ステップS17では、3ビットカウンタ29が0に
初期化されるとともに、マスクフレームバッファ22に
記憶されている、注目画素に対応する、値が1の特徴点
データが0に書き換えられて、ステップS2に戻る。
On the other hand, if it is determined in step S12 that the feature point data is 1, that is, if the target pixel is a feature point, the process proceeds to step S16, and the target pixel is newly set as the search center pixel. It That is, the stored value of the search X coordinate register 27 or the search Y coordinate register 28 is
Each is updated to the x or y coordinate of the pixel of interest. Then, in step S17, the valid data selection signal is set to 1 and the value stored in the status register 24 is set to 2. Further, in step S17, the 3-bit counter 29 is initialized to 0, and the feature point data having a value of 1 and stored in the mask frame buffer 22 corresponding to the pixel of interest is rewritten to 0. Return to S2.

【0069】ここで、セレクタ36は、値が1の有効デ
ータ選択信号を受信すると、状態レジスタ24の記憶値
を参照し、それが1である場合には、方向探索器23か
らの開始点座標、ROM33の出力、または方向変化信
号発生器35の出力のうちのROM33の出力を選択し
て、マルチプレクサ37に出力するようになされてい
る。
Here, when the selector 36 receives the valid data selection signal having a value of 1, it refers to the value stored in the state register 24, and if it is 1, the starting point coordinate from the direction searcher 23. , The output of the ROM 33 from the outputs of the ROM 33 or the output of the direction change signal generator 35, and outputs the selected output to the multiplexer 37.

【0070】ROM33は、上述したROM30および
31と同様に、3ビットのアドレス空間を有し、そこに
は、図8に示すような値が記憶されている。そして、R
OM33は、やはり、ROM30および31と同様に、
3ビットカウンタ29の出力値をアドレスとし、そのア
ドレスに記憶されている記憶値(以下、適宜、この記憶
値を、方向データという)を出力するようになされてい
る。
The ROM 33 has a 3-bit address space, like the above-mentioned ROMs 30 and 31, in which values as shown in FIG. 8 are stored. And R
The OM33, like the ROMs 30 and 31, again
The output value of the 3-bit counter 29 is used as an address, and the stored value stored at that address (hereinafter, this stored value is referred to as direction data) is output.

【0071】従って、3ビットカウンタ29の出力値が
0乃至7であるとき、ROM33からは、方向データC
0乃至C7がそれぞれ出力される。この方向データC0
乃至C7は、探索中心画素を中心とする左上、左、左
下、上、下、右上、右、または右下方向を表すようにな
されている。即ち、方向データC0乃至C7は、例えば
図9に示すように、探索中心画素に対し、それに隣接す
る画素P0乃至P7が位置する方向をそれぞれ表す。
Therefore, when the output value of the 3-bit counter 29 is 0 to 7, the direction data C is read from the ROM 33.
0 to C7 are output respectively. This direction data C0
C7 to C7 represent the upper left, left, lower left, upper, lower, upper right, right, or lower right directions centered on the search center pixel. That is, the direction data C0 to C7 represent the directions in which the pixels P0 to P7 adjacent to the search center pixel are located, as shown in FIG. 9, for example.

【0072】よって、ROM33からは、探索中心画素
に対する注目画素の方向を表す方向データが出力される
ことになる。なお、方向データは、セレクタ36の他、
ラッチ回路34および方向変化信号発生器35にも供給
されるようになされている。
Therefore, the direction data representing the direction of the pixel of interest with respect to the search center pixel is output from the ROM 33. In addition to the selector 36, the direction data is
The latch circuit 34 and the direction change signal generator 35 are also supplied.

【0073】以上から、ステップS17において、状態
レジスタ24の記憶値が1の場合において、有効データ
選択信号が1となったとき(注目画素が特徴点であると
き)には、チェーン符号化回路12(マルチプレクサ3
7)からは、探索中心画素(開始点座標に位置する画
素)に隣接する注目画素であって特徴点となっているも
のが位置する方向を表す方向データと、その注目画素に
おける量子化係数とを多重化したチェーン符号化データ
が出力される。
From the above, in step S17, when the value stored in the state register 24 is 1, and the valid data selection signal becomes 1 (when the pixel of interest is a feature point), the chain encoding circuit 12 (Multiplexer 3
From 7), direction data indicating the direction in which the pixel of interest adjacent to the search center pixel (pixel located at the coordinates of the start point) and serving as the feature point is located, and the quantization coefficient of the pixel of interest. Is output as chain encoded data.

【0074】なお、状態レジスタ24の記憶値が1の場
合(以下、適宜、状態1の場合という)において、有効
データ選択信号が1となったときというのは、チェーン
を構成する特徴点であって、その始点に隣接するものが
見つかったときである。そして、この場合、上述したよ
うに、ステップS17において、状態レジスタ24の記
憶値は2とされる。
When the value stored in the state register 24 is 1 (hereinafter, appropriately referred to as state 1), the fact that the valid data selection signal becomes 1 is a characteristic feature of the chain. Then, the one adjacent to the starting point is found. In this case, as described above, the value stored in the status register 24 is set to 2 in step S17.

【0075】図4に戻り、ステップS8において、状態
レジスタ24の記憶値が1でないと判定された場合、図
10のステップS21に進む。ここで、状態レジスタ2
4には、0乃至2のいずれかの整数が記憶されるように
なされている。従って、状態レジスタ24の記憶値が、
図4のステップS2で0でないと判定され、同じく図4
のステップS8で1でもないと判定されたということ
は、その値は2になっているということになる。
Returning to FIG. 4, if it is determined in step S8 that the value stored in the state register 24 is not 1, the process proceeds to step S21 in FIG. Where status register 2
An integer from 0 to 2 is stored in 4. Therefore, the value stored in the status register 24 is
It is determined in step S2 in FIG.
If it is determined in step S8 that the value is not 1, it means that the value is 2.

【0076】図10のステップS21では、図5のステ
ップS11における場合と同様に、探索中心画素に隣接
するいずれかの画素(3ビットカウンタ29が出力する
カウント値に対応する画素)における特徴点データが、
マスクフレームバッファ22から読み出され、ステップ
S22に進み、その値が1であるか否かが判定される。
ステップS22において、特徴点データが1でないと判
定された場合、即ち、注目画素が特徴点でない場合、ス
テップS23に進み、3ビットカウンタ29のカウント
値が7であるかどうかが判定される。ステップS23に
おいて、3ビットカウンタ29のカウント値が7でない
と判定された場合、即ち、探索中心画素に隣接する画素
すべてについて処理を行っていない場合、ステップS2
4に進み、3ビットカウンタ29のカウント値が1だけ
インクリメントされ、図4のステップS2に戻る。な
お、この場合、状態レジスタ24の記憶値は2のままで
あるから、ステップS2およびステップS8を介して、
再度ステップS21以下の処理が行われることになる。
In step S21 of FIG. 10, as in the case of step S11 of FIG. 5, feature point data of any pixel (pixel corresponding to the count value output by the 3-bit counter 29) adjacent to the search center pixel. But,
It is read from the mask frame buffer 22, and the process proceeds to step S22, where it is determined whether or not the value is 1.
If it is determined in step S22 that the feature point data is not 1, that is, if the pixel of interest is not the feature point, the process proceeds to step S23, and it is determined whether the count value of the 3-bit counter 29 is 7. If it is determined in step S23 that the count value of the 3-bit counter 29 is not 7, that is, if processing is not performed for all pixels adjacent to the search center pixel, step S2
4, the count value of the 3-bit counter 29 is incremented by 1, and the process returns to step S2 in FIG. In this case, the value stored in the status register 24 remains 2, so that the values stored in step S2 and step S8 are
The processes in and after step S21 will be performed again.

【0077】また、ステップS23において、3ビット
カウンタ29のカウント値が7であると判定された場
合、即ち、探索中心画素に隣接する画素すべてについて
処理を行い、その結果、探索中心画素に隣接する画素に
特徴点がないことが判明した場合、ステップS25に進
み、状態レジスタ24に0がセットされ、ステップS2
に戻る。
If it is determined in step S23 that the count value of the 3-bit counter 29 is 7, that is, all the pixels adjacent to the search center pixel are processed, and as a result, the search center pixel is adjacent to the search center pixel. When it is determined that the pixel has no feature point, the process proceeds to step S25, 0 is set in the state register 24, and step S2
Return to

【0078】一方、ステップS22において、特徴点デ
ータが1であると判定された場合、即ち、注目画素が特
徴点である場合、ステップS26に進み、探索X座標レ
ジスタ27または探索Y座標レジスタ28の記憶値が、
それぞれ注目画素のxまたはy座標に更新されることに
よって、その注目画素が、新たに探索中心画素とされ
る。その後、ステップS27に進み、有効データ選択信
号が1にされる。さらに、ステップS27では、3ビッ
トカウンタ29が0に初期化されるとともに、マスクフ
レームバッファ22に記憶されている、注目画素に対応
する、値が1の特徴点データが0に書き換えられて、ス
テップS2に戻る。なお、この場合、状態レジスタ24
の記憶値は2のままであるから、ステップS2およびス
テップS8を介して、再度ステップS21以下の処理が
行われることになる。但し、この場合、ステップS26
において、前回の処理の対象とされていた注目画素が、
新たに探索中心画素とされているため、その新たな探索
中心画素に隣接する画素を注目画素として処理が行われ
る。
On the other hand, if it is determined in step S22 that the feature point data is 1, that is, if the pixel of interest is a feature point, the process proceeds to step S26 and the search X coordinate register 27 or the search Y coordinate register 28 is searched. The stored value is
The target pixel is newly set as the search center pixel by updating to the x or y coordinate of the target pixel. Then, the process proceeds to step S27, and the valid data selection signal is set to 1. Further, in step S27, the 3-bit counter 29 is initialized to 0, and the feature point data, which has a value of 1 and is stored in the mask frame buffer 22, is rewritten to 0. Return to S2. In this case, the status register 24
Since the stored value of 2 is still 2, the processing from step S21 onward is performed again through steps S2 and S8. However, in this case, step S26
At, the pixel of interest that was the target of the previous processing is
Since the pixel is newly set as the search center pixel, the pixel adjacent to the new search center pixel is processed as the pixel of interest.

【0079】ここで、セレクタ36は、値が1の有効デ
ータ選択信号を受信すると、状態レジスタ24の記憶値
を参照し、それが2である場合には、方向探索器23か
らの開始点座標、ROM33の出力、または方向変化信
号発生器35の出力のうちの方向変化信号発生器35の
出力を選択して、マルチプレクサ37に出力するように
なされている。
Here, when the selector 36 receives the valid data selection signal having a value of 1, it refers to the value stored in the state register 24, and if it is 2, the start point coordinate from the direction searcher 23. , The output of the direction change signal generator 35 from the output of the ROM 33 or the output of the direction change signal generator 35, and outputs the selected output to the multiplexer 37.

【0080】方向変化信号発生器35には、ROM33
から出力される方向データと、ラッチ回路34の出力が
供給されるようになされており、そこでは、これらの入
力に基づいて、後述するような方向変化データが生成さ
れるようになされている。
The direction change signal generator 35 includes a ROM 33.
And the output of the latch circuit 34 are supplied there, and based on these inputs, direction change data, which will be described later, is generated.

【0081】即ち、図11(A)に示すように、有効デ
ータ選択信号が1になると、ラッチ回路34は、ROM
33が出力する方向データ(図11(B))をラッチ
し、1クロック分遅延した後、次に、有効データ選択信
号が1になるまでの間、その方向データを、方向変化信
号発生器35に出力し続ける(図11(C))。つま
り、特徴点が見つかると(有効データ選択信号が1にな
ると)、ラッチ回路34からは、その特徴点への、探索
中心画素からの方向を表す方向データが、次の特徴点が
見つかるまで出力され続ける。ここで、ラッチ回路34
が出力する方向データを、以下、適宜、前方向データと
いう。
That is, as shown in FIG. 11 (A), when the valid data selection signal becomes 1, the latch circuit 34 causes the ROM
The direction data (FIG. 11 (B)) output by 33 is latched, delayed by one clock, and then the direction data is changed to the direction change signal generator 35 until the valid data selection signal becomes 1. To continue to output (FIG. 11 (C)). That is, when a feature point is found (when the effective data selection signal becomes 1), the latch circuit 34 outputs direction data indicating the direction from the search center pixel to the feature point until the next feature point is found. Continue to be done. Here, the latch circuit 34
Hereinafter, the direction data output by will be referred to as forward direction data as appropriate.

【0082】方向変化信号発生器35は、有効データ選
択信号が1になると、即ち特徴点が見つかると、ラッチ
回路34が出力している前方向データが示す方向と、R
OM33から出力される方向データが示す方向を比較
し、その比較結果に対応して、前方向データが示す方向
に対する、方向データが示す方向の変化を表す方向変化
データを出力するようになされている。
When the effective data selection signal becomes 1, that is, when the characteristic point is found, the direction change signal generator 35 outputs the direction indicated by the forward direction data output from the latch circuit 34 and R.
The direction indicated by the direction data output from the OM 33 is compared, and the direction change data indicating the change in the direction indicated by the direction data with respect to the direction indicated by the front direction data is output in accordance with the comparison result. .

【0083】即ち、方向変化信号発生器35は、例えば
図12(A)に示すように、前方向データが示す方向と
方向データが示す方向とが同一である場合、方向変化デ
ータとしてD0を出力する。また、方向変化信号発生器
35は、例えば図12(B)乃至(D)に示すように、
方向データが示す方向が、前方向データが示す方向と反
時計回りに45度、90度、または135度だけ異なる
場合、方向変化データとしてD1乃至D3をそれぞれ出
力する。さらに、方向変化信号発生器35は、図12
(E)乃至(G)に示すように、方向データが示す方向
が、前方向データが示す方向と時計回りに45度、90
度、または135度だけ異なる場合、方向変化データと
してD4乃至D6をそれぞれ出力する。
That is, the direction change signal generator 35 outputs D0 as the direction change data when the direction indicated by the forward direction data and the direction indicated by the direction data are the same as shown in FIG. 12A, for example. To do. In addition, the direction change signal generator 35 is, for example, as shown in FIGS.
When the direction indicated by the direction data differs from the direction indicated by the forward direction data by 45 degrees, 90 degrees, or 135 degrees counterclockwise, D1 to D3 are respectively output as the direction change data. Further, the direction change signal generator 35 has
As shown in (E) to (G), the direction indicated by the direction data is 90 degrees clockwise from the direction indicated by the forward direction data by 90 degrees.
In the case of a difference of 135 degrees or 135 degrees, D4 to D6 are output as the direction change data.

【0084】なお、方向データが示す方向と前方向デー
タが示す方向との関係としては、上述の場合の他、図1
2(H)に示すように、両者の方向が180度異なる場
合があるが、図2のチェーン符号化回路12では、上述
したように、特徴点が一度処理の対象となると、それに
対応する特徴点データは0に書き換えられるので、方向
データが示す方向と前方向データが示す方向とが180
度異なるような場合が生じることはない。このため、図
12(H)に示したように、方向データが示す方向と前
方向データが示す方向とが180度異なる場合について
は、方向変化データとして、コードは与えられていない
(与える必要がない)。
As for the relationship between the direction indicated by the direction data and the direction indicated by the forward direction data, in addition to the case described above, FIG.
As shown in FIG. 2 (H), the two directions may be different by 180 degrees. However, in the chain encoding circuit 12 of FIG. 2, once the feature point becomes a processing target, as described above, the corresponding feature Since the point data is rewritten to 0, the direction indicated by the direction data and the direction indicated by the forward direction data are 180
There will be no occasions where they differ. Therefore, as shown in FIG. 12H, when the direction indicated by the direction data and the direction indicated by the forward direction data are different by 180 degrees, no code is given as the direction change data (it is necessary to give the code). Absent).

【0085】実際には、方向変化信号発生器35は、例
えば図13および図14に示すような前方向データおよ
び方向データと、方向変化データとの対応表を記憶して
おり、ラッチ回路34が出力している前方向データと、
ROM33から出力された方向データとの組み合わせと
一致する行を、対応表から検索し、その行の右欄に記述
されている方向変化データを出力する。なお、方向変化
データD0乃至D6には、例えば図15に示すような符
号語が割り当てられており、実際には、この符号語が出
力される。
In reality, the direction change signal generator 35 stores a correspondence table of the direction change data and the forward direction data and direction data as shown in FIGS. 13 and 14, and the latch circuit 34 stores the correspondence table. The forward direction data being output,
A line matching the combination with the direction data output from the ROM 33 is searched from the correspondence table, and the direction change data described in the right column of the line is output. Note that the direction change data D0 to D6 are assigned with code words as shown in FIG. 15, for example, and the code words are actually output.

【0086】以上から、ステップS27において、状態
レジスタ24の記憶値が2の場合において、有効データ
選択信号が1となったとき(注目画素が特徴点であると
き)には、チェーン符号化回路12(マルチプレクサ3
7)からは、前回見つかった特徴点についての方向(前
々回見つかった特徴点から、前回見つかった特徴点への
方向)と、今回見つかった特徴点についての方向(前回
見つかった特徴点から、今回見つかった特徴点への方
向)との違いを表す方向変化データ、および今回見つか
った特徴点(注目画素)における量子化係数を多重化し
たチェーン符号化データが出力される。
From the above, in step S27, when the value stored in the status register 24 is 2 and the valid data selection signal becomes 1 (when the pixel of interest is a feature point), the chain encoding circuit 12 (Multiplexer 3
From 7), the direction about the feature point found last time (the direction from the feature point found two times before to the feature point found last time) and the direction about the feature point found this time (from the feature point found last time, found this time) Direction change data indicating the difference between the characteristic point and the target point), and chain encoded data in which the quantized coefficient at the characteristic point (pixel of interest) found this time is multiplexed.

【0087】なお、状態レジスタ24の記憶値が2の場
合(以下、適宜、状態2の場合という)において、有効
データ選択信号が1となったときというのは、3以上の
連続する特徴点からなるチェーンを構成する特徴点であ
って、その始点およびそれに隣接するもの以外のもの
(3番目以降の特徴点)が見つかったときである。そし
て、この場合、状態レジスタ24の記憶値は2のままと
される。
When the value stored in the state register 24 is 2 (hereinafter, appropriately referred to as the state 2), the valid data selection signal becomes 1 when the number of consecutive characteristic points is 3 or more. This is the case when a feature point that constitutes a chain that is other than the start point and ones adjacent thereto (third feature point and subsequent ones) is found. In this case, the value stored in the status register 24 remains 2.

【0088】図4に戻り、ステップS3において、未処
理の座標がないと判定された場合、処理を終了する。そ
して、次のフレームについての量子化係数または特徴点
データが係数フレームバッファ21またはマスクフレー
ムバッファ22に記憶されるのを待って、再び、ステッ
プS1からの処理が行われる。
Returning to FIG. 4, if it is determined in step S3 that there are no unprocessed coordinates, the process ends. Then, after waiting for the quantized coefficient or feature point data for the next frame to be stored in the coefficient frame buffer 21 or the mask frame buffer 22, the processing from step S1 is performed again.

【0089】次に、図16を参照して、セレクタ36の
出力について、さらに説明する。いま、例えば図16に
示したように、5個の連続する特徴点(図中、斜線を付
してある部分)を結んでなるチェーンが存在する場合、
ラインスキャン順に見ていくと、座標(i,j)に位置
する特徴点が最初に現れる。特徴点が最初に見つかった
場合の状態は、状態0であるから、セレクタ36から
は、方向探索器23が出力する、その特徴点の座標
(i,j)が開始点座標として出力される。その後、状
態は状態1とされ、座標(i,j)に位置する特徴点
(以下、適宜、特徴点(i,j)と記述する)に隣接す
る特徴点(i+1,j)が検出される。この特徴点(i
+1,j)は、前回見つかった特徴点(i,j)の右方
向に位置し、また、状態は状態1であるから、セレクタ
36からは、ROM33が出力する、右方向を表す方向
データC6(図9)が出力される。そして、この場合、
状態は状態2にされる。
Next, the output of the selector 36 will be further described with reference to FIG. Now, for example, as shown in FIG. 16, when there is a chain formed by connecting five consecutive characteristic points (hatched portions in the figure),
Looking at the line scan order, the feature point located at the coordinate (i, j) first appears. Since the state when the feature point is first found is state 0, the selector 36 outputs the coordinate (i, j) of the feature point, which is output by the direction searcher 23, as the start point coordinate. After that, the state is set to the state 1, and the feature point (i + 1, j) adjacent to the feature point located at the coordinate (i, j) (hereinafter, appropriately described as the feature point (i, j)) is detected. . This feature point (i
+1, j) is located to the right of the previously found feature point (i, j), and the state is state 1. Therefore, the selector 36 outputs the right direction data C6 output from the ROM 33. (FIG. 9) is output. And in this case,
The state is set to state 2.

【0090】次に、特徴点(i+1,j)に隣接する特
徴点(i+2,j+1)が検出される。この場合、状態
は状態2であるから、前回見つかった特徴点ついての方
向と、今回見つかった特徴点についての方向との違いを
表す方向変化データが、セレクタ36から出力される。
即ち、前回見つかった特徴点(i+1,j)についての
方向は、上述したように方向データC6で表される右方
向であり、また、今回見つかった特徴点(i+2,j+
1)についての方向は、この特徴点(i+2,j+1)
は、特徴点(i+1,j)の右下方向に位置するから、
方向データC7で表される。従って、図14に示した対
応表の、前方向データまたは方向データがそれぞれC6
またはC7となっている行の右欄に記述されている方向
変化データD4が、セレクタ36から出力される。
Next, the feature point (i + 2, j + 1) adjacent to the feature point (i + 1, j) is detected. In this case, since the state is the state 2, the direction change data indicating the difference between the direction of the previously found feature point and the direction of the currently found feature point is output from the selector 36.
That is, the direction of the feature point (i + 1, j) found last time is the right direction represented by the direction data C6 as described above, and the feature point (i + 2, j +) found this time.
The direction of 1) is the characteristic point (i + 2, j + 1)
Is located in the lower right direction of the feature point (i + 1, j),
It is represented by the direction data C7. Therefore, the forward direction data or the direction data in the correspondence table shown in FIG. 14 is C6, respectively.
Alternatively, the direction change data D4 described in the right column of the row of C7 is output from the selector 36.

【0091】さらに、特徴点(i+2,j+1)には、
特徴点(i+3,j+2)が隣接しているから、この特
徴点(i+3,j+2)が検出される。そして、この特
徴点(i+3,j+2)が位置する方向は、前回見つか
った特徴点(i+2,j+1)についての方向データC
7が表す方向と同一の右下方向であり、従って、今回見
つかった特徴点(i+3,j+2)についての方向は、
方向データC7で表される。また、状態は状態2のまま
であるから、この場合、セレクタ36からは、図13に
示した対応表の、前方向データおよび方向データがいず
れもC7となっている行の右欄に記述されている方向変
化データD0が出力される。
Further, the feature point (i + 2, j + 1) is
Since the feature points (i + 3, j + 2) are adjacent to each other, this feature point (i + 3, j + 2) is detected. The direction in which the feature point (i + 3, j + 2) is located is the direction data C for the previously found feature point (i + 2, j + 1).
It is the same lower right direction as the direction indicated by 7, and therefore the direction for the feature point (i + 3, j + 2) found this time is
It is represented by the direction data C7. In addition, since the state remains the state 2, in this case, from the selector 36, the forward direction data and the direction data in the correspondence table shown in FIG. Direction change data D0 being output.

【0092】そして、特徴点(i+3,j+2)に隣接
する特徴点(i+2,j+3)についても、特徴点(i
+3,j+2)と同様に処理され、その結果、セレクタ
36からは、方向変化データD6が出力される。
Then, for the feature points (i + 2, j + 3) adjacent to the feature point (i + 3, j + 2), the feature point (i
+3, j + 2), and as a result, the selector 36 outputs direction change data D6.

【0093】従って、画像上にチェーンが存在する場
合、チェーン符号化回路12からは、まず最初に、その
チェーンの始点となる特徴点の座標と、その特徴点にお
ける量子化係数とを多重化したものが出力される。その
後、その始点に隣接する特徴点についての方向データ
と、その特徴点における量子化係数とを多重化したもの
が出力される。そして、その特徴点に隣接する特徴点
(始点を除く)が存在する場合には、即ち、3番目以降
の特徴点が存在する場合には、その特徴点についての方
向変化データと、その特徴点における量子化係数とを多
重化したものが順次出力される。
Therefore, when there is a chain on the image, the chain encoding circuit 12 first multiplexes the coordinates of the feature point which is the starting point of the chain and the quantized coefficient at the feature point. Stuff is output. Then, the direction data of the feature point adjacent to the start point and the quantized coefficient at the feature point are multiplexed and output. If there is a feature point (excluding the start point) adjacent to the feature point, that is, if there is a third feature point or later, the direction change data about the feature point and the feature point And the quantized coefficient in 1 is multiplexed and sequentially output.

【0094】以上のようにして、チェーン符号化回路1
2から出力されたチェーン符号化データは、上述したよ
うに、セレクタ13(図1)を介して、RAM141
至14Nに供給されることで、RAM14nには、第nフ
レームのチェーン符号化データが記憶される。そして、
RAM141乃至14Nすべてにチェーン符号化データが
記憶されると、即ち、Nフレーム分のチェーン符号化デ
ータが記憶されると、チェーン置換回路15に読み出さ
れ、以下に詳述するような処理が施される。
As described above, the chain encoding circuit 1
As described above, the chain-encoded data output from No. 2 is supplied to the RAMs 14 1 to 14 N via the selector 13 (FIG. 1), so that the RAM 14 n receives the n-th frame of the chain-encoded data. The data is stored. And
When the chain coded data is stored in all of the RAMs 14 1 to 14 N , that is, when the chain coded data for N frames is stored, the chain replacement circuit 15 reads the chain coded data, and a process as described in detail below. Is applied.

【0095】図17は、図1のチェーン置換回路15の
構成例を示している。チェーンマップ回路121は、R
AM141乃至14Nに、Nフレーム分のチェーン符号化
データが記憶されると、RAM141から第1フレーム
のチェーン符号化データを読み出し、RAM(Chain RA
M)122に供給して記憶させる。
FIG. 17 shows a configuration example of the chain replacement circuit 15 of FIG. The chain map circuit 121 is R
When N frames of chain-encoded data are stored in the AM 14 1 to 14 N , the chain-encoded data of the first frame is read from the RAM 14 1 and the RAM (Chain RA
M) 122 for storage.

【0096】さらに、チェーンマップ回路121は、第
2乃至第Nフレームのチェーン符号化データについて
は、そこに含まれる開始点座標、方向データ、および方
向変化データ(以下、適宜、これらをまとめて、方向成
分という)を参照して、第2乃至第Nフレームに存在す
る、連続する特徴点を結ぶチェーン(従って、チェーン
は、画像中の連続点(連続する点列)である)のビット
マップを、RAM(MapRAM)1231乃至123N-1上に
それぞれ展開する(第nフレームのビットマップを、R
AM123n-1上に展開する(但し、この場合、nは2
以上N以下の整数))。
Furthermore, the chain map circuit 121, for the chain encoded data of the second to Nth frames, the start point coordinates, the direction data, and the direction change data included therein (hereinafter, these are collectively summarized as appropriate, (Referred to as a direction component), a bitmap of a chain connecting consecutive feature points existing in the second to Nth frames (hence, the chain is a continuous point (continuous point sequence) in the image) , RAM (MapRAM) 123 1 to 123 N-1 respectively (the bitmap of the nth frame is
Deploy on AM123 n-1 (however, in this case, n is 2
No less than N and no more than N)).

【0097】即ち、チェーンマップ回路121は、例え
ば図18に示すように、第nフレームのチェーンが存在
する位置に対応する、RAM123n-1のアドレスには
1を格納し、チェーンが存在しない位置に対応するアド
レスには0を格納する。
That is, for example, as shown in FIG. 18, the chain map circuit 121 stores 1 in the address of the RAM 123 n-1 corresponding to the position where the chain of the nth frame exists, and the position where the chain does not exist. 0 is stored in the address corresponding to.

【0098】RAM122に、第1フレームのチェーン
符号化データが記憶され、RAM1231乃至123N-1
に、第2乃至第Nフレームのチェーンについてのビット
マップがそれぞれ展開されると、置換回路124では、
RAM122に記憶された第1フレームに存在するチェ
ーンそれぞれについて、図19のフローチャートにした
がった処理が行われる。
The chain encoded data of the first frame is stored in the RAM 122, and the RAMs 123 1 to 123 N-1.
Then, when the bitmaps for the chains of the 2nd to Nth frames are respectively developed, in the replacement circuit 124,
The process according to the flowchart of FIG. 19 is performed for each chain existing in the first frame stored in the RAM 122.

【0099】即ち、まず最初に、ステップS121にお
いて、RAM(動きパラメータRAM)126が初期化
され、ステップS122に進み、第1フレーム(先頭フ
レーム)が注目フレームとされて、ステップS123に
進む。ステップS123では、注目フレーム、即ち第1
フレームに存在する、あるチェーン(注目チェーン)か
ら後フレーム(注目フレームの次のフレーム)への動き
パラメータが計算される。なお、ステップS123にお
ける動きパラメータの計算は、置換回路124が、その
動きパラメータの計算に必要なデータを、RAM12
2,123(RAM1231乃至123Nのいずれか)か
ら読み出し、動きパラメータ算出回路125に出力する
ことによって、動きパラメータ算出回路125に行わせ
るようになされている。なお、動きパラメータ算出回路
125の詳細については、図29乃至図36を参照して
後述する。
That is, first, in step S121, the RAM (motion parameter RAM) 126 is initialized, the process proceeds to step S122, the first frame (head frame) is set as the frame of interest, and the process proceeds to step S123. In step S123, the frame of interest, that is, the first frame
A motion parameter existing in a frame from a chain (chain of interest) to a subsequent frame (frame next to the frame of interest) is calculated. In the calculation of the motion parameter in step S123, the replacement circuit 124 stores the data required for the calculation of the motion parameter in the RAM 12
2, 123 ( one of the RAMs 123 1 to 123 N ) is read out and output to the motion parameter calculation circuit 125 so that the motion parameter calculation circuit 125 can perform the operation. The details of the motion parameter calculation circuit 125 will be described later with reference to FIGS. 29 to 36.

【0100】動きパラメータの計算後、ステップS12
4に進み、注目チェーンの、後フレームでの重要度(視
覚的重要度)が算出される。即ち、ステップS124で
は、例えば図47(A)に示すように、注目チェーン
が、ステップS123で求められた動きパラメータにし
たがって移動(変換)され、後フレームにおいて、同図
(B)に示すように、その移動後の注目チェーン(移動
チェーン)を構成する画素(図中、斜線を付してある部
分)それぞれを中心とするL1×L2画素の範囲(図
中、点線で囲んである範囲)に存在する特徴点の数が求
められる。さらに、ステップS124では、後フレーム
において、移動チェーンを構成する各画素を中心とする
L1×L2画素の範囲に存在する特徴点の数が算出され
た後、その平均値(移動チェーンを構成する各画素を中
心とするL1×L2画素の範囲に存在する、後フレーム
の特徴点の数の総和を、移動チェーンを構成する画素数
で除算したもの)が求められ、これが、重要度とされ
る。
After calculating the motion parameters, step S12
In step 4, the importance (visual importance) of the chain of interest in the subsequent frame is calculated. That is, in step S124, as shown in FIG. 47A, for example, the chain of interest is moved (converted) according to the motion parameter obtained in step S123, and in the subsequent frame, as shown in FIG. , The range of L1 × L2 pixels (the range surrounded by the dotted line in the figure) centered on each pixel (the hatched part in the figure) forming the target chain (moving chain) after the movement The number of existing feature points is calculated. Further, in step S124, after the number of characteristic points existing in the range of L1 × L2 pixels centered on each pixel forming the moving chain in the subsequent frame is calculated, the average value thereof (each of the forming points forming the moving chain is calculated). The sum of the number of feature points in the subsequent frame existing in the range of L1 × L2 pixels centered on the pixel divided by the number of pixels forming the moving chain) is obtained, and this is taken as the importance.

【0101】ここで、RAM123nにおいては、図1
8に示したように、第n+1フレームに存在するチェー
ンを構成する画素(特徴点)に対応するアドレスに1が
格納され、それ以外のアドレスには0が格納されている
から、いま注目フレームとなっているフレームを、第n
フレームとすると、ステップS124では、RAM12
nに記憶されているビットマップを参照し、そのうち
の、移動チェーンを構成する各画素を中心とするL1×
L2画素(例えば、L1=L2=3)の範囲に対応する
アドレスの格納値の総和を計算することで、後フレーム
(この場合、第n+1フレーム)において、移動チェー
ンを構成する各画素を中心とするL1×L2画素の範囲
に存在する特徴点の数が算出される。
Here, in the RAM 123 n , as shown in FIG.
As shown in FIG. 8, 1 is stored in the addresses corresponding to the pixels (feature points) forming the chain existing in the (n + 1) th frame, and 0 is stored in the other addresses. The nth frame
If it is a frame, in step S124, the RAM 12
The bit map stored in 3 n is referred to, and L1 × centered on each pixel forming the moving chain among them.
By calculating the sum of the stored values of the addresses corresponding to the range of L2 pixels (for example, L1 = L2 = 3), in the subsequent frame (in this case, the (n + 1) th frame), each pixel forming the moving chain is centered. The number of feature points existing in the range of L1 × L2 pixels is calculated.

【0102】なお、以上のようにして算出される重要度
は、後フレームにおいて、移動チェーンを構成する各画
素を中心とするL1×L2画素の範囲に存在する特徴点
の密度ということができるが、重要度としては、このよ
うな特徴点の密度以外の量を採用することが可能であ
る。
The importance calculated as described above can be said to be the density of feature points existing in the range of L1 × L2 pixels centering on each pixel forming the moving chain in the subsequent frame. As the degree of importance, it is possible to adopt an amount other than the density of such feature points.

【0103】即ち、例えば、後フレームにおいて、移動
チェーンを構成する画素のうち、それを中心とするL1
×L2画素の範囲に特徴点が存在するものの数を、移動
チェーンを構成する画素数で除算し、その結果得られる
値を、重要度とすることが可能である。また、例えば、
RAM201乃至20N-1(図1)に記憶されている第2
乃至第Nフレームの画像データを参照し、後フレームに
おいて、移動チェーンを構成する各画素に対応する画素
それぞれのエッジ強度(後フレームにおける移動チェー
ン上に存在する画素それぞれのエッジ強度)を求め、そ
のエッジ強度の平均値を、重要度とすることなども可能
である。
That is, for example, in the subsequent frame, of the pixels that make up the moving chain,
It is possible to divide the number of feature points existing in the range of × L2 pixels by the number of pixels forming the moving chain, and use the value obtained as a result as the importance. Also, for example,
The second stored in RAM 20 1 to 20 N-1 (FIG. 1)
Through reference to the image data of the Nth frame, the edge strength of each pixel corresponding to each pixel forming the moving chain in the subsequent frame (the edge strength of each pixel existing in the moving chain in the following frame) is calculated, and It is also possible to use the average value of the edge strength as the importance.

【0104】重要度の算出後は、ステップS125に進
み、その重要度が所定の閾値T以上であるかどうかが判
定される。ステップS125において、重要度が所定の
閾値T以上でないと判定された場合、後フレームには、
注目チェーンと同一物体の輪郭を構成するチェーン(移
動後の注目チェーンと(ほぼ)重なるチェーン)が存在
しないとして、ステップS126乃至S128をスキッ
プして、ステップS129に進む。また、ステップS1
25において、重要度が所定の閾値T以上であると判定
された場合、即ち、後フレームに、移動後の注目チェー
ンと(ほぼ)重なるチェーンが存在する場合、ステップ
S126に進み、その後フレームのチェーンが、移動チ
ェーンに置き換えられ(この置き換えというのは、置換
回路124において、後フレームのチェーンが、移動チ
ェーンに置き換えて認識されるようになるということで
ある)、これにより、注目チェーンと、後フレームのチ
ェーンとが対応付けられる。
After the importance is calculated, the process proceeds to step S125, and it is determined whether the importance is equal to or higher than a predetermined threshold value T. When it is determined in step S125 that the degree of importance is not equal to or higher than the predetermined threshold T, the subsequent frame is
Assuming that there is no chain that constitutes the contour of the same object as the target chain (a chain that (substantially) overlaps the target chain after movement), steps S126 to S128 are skipped, and the process proceeds to step S129. Step S1
25, if it is determined that the degree of importance is equal to or higher than the predetermined threshold value T, that is, if there is a chain that (substantially) overlaps the target chain after the movement in the rear frame, the process proceeds to step S126, and the chain of the frame thereafter. Is replaced by the moving chain (this replacement means that the chain in the rear frame is replaced by the moving chain and is recognized in the replacing circuit 124), whereby the target chain and the rear chain are recognized. It is associated with a chain of frames.

【0105】さらに、ステップS126では、ステップ
S123で算出された後フレームへの動きパラメータ
が、RAM126に記憶され、ステップS127に進
む。なお、ステップS126では、RAM123の更新
処理も行われる。即ち、後フレームに存在するチェーン
が、移動チェーンに置き換えられた場合、(そのチェー
ンの代わりに、移動チェーンが用いられるので)以後、
そのチェーンを処理対象とする必要はない。そこで、ス
テップS126では、例えば、いま、注目フレームが第
nフレームであるとすると、RAM123nに記憶され
た第n+1フレームのビットマップのうち、移動チェー
ンを構成する各画素を中心とするL1×L2画素の範囲
に対応するアドレスの格納値が、すべて0にされる。こ
れにより、第n+1フレームにおいて、移動チェーンを
構成する各画素を中心とするL1×L2画素の範囲にあ
る特徴点は、いわば消去される。
Further, in step S126, the motion parameter for the subsequent frame calculated in step S123 is stored in the RAM 126, and the process proceeds to step S127. In step S126, the RAM 123 is also updated. That is, if the chain existing in the rear frame is replaced by the moving chain (since the moving chain is used instead of the chain),
It is not necessary to process that chain. Therefore, in step S126, for example, assuming that the current frame is the nth frame, L1 × L2 centered on each pixel forming the moving chain in the bitmap of the (n + 1) th frame stored in the RAM 123 n. The stored values of the addresses corresponding to the pixel range are all set to 0. As a result, in the (n + 1) th frame, the characteristic points in the range of L1 × L2 pixels centered on each pixel forming the moving chain are erased, so to speak.

【0106】その後、ステップS127において、後フ
レームが新たに注目フレームとされ、ステップS128
に進み、注目フレームが第Nフレーム(最終フレーム)
であるかどうかが判定される。ステップS128におい
て、注目フレームが第Nフレームでないと判定された場
合、ステップS123に戻り、ステップS127で新た
に注目フレームとされたフレームに存在し、ステップS
126で置き換えられたチェーン(移動チェーン)を注
目チェーンとして、ステップS123以下の処理が行わ
れる。
Then, in step S127, the subsequent frame is newly set as the frame of interest, and step S128.
To the Nth frame (final frame).
Is determined. If it is determined in step S128 that the frame of interest is not the Nth frame, the process returns to step S123, and the frame of interest is newly included in step S127.
The process after step S123 is performed using the chain (moving chain) replaced in 126 as the target chain.

【0107】また、ステップS128において、新たな
注目フレームが第Nフレームであると判定された場合、
ステップS129に進み、ステップS122で注目フレ
ームとされたフレーム(従って、第1フレーム)のチェ
ーンであって、最初に注目チェーンとされたチェーンの
チェーン番号、RAM126に記憶された動きパラメー
タ(後フレームへの動きパラメータ)、およびその動き
パラメータの数が、セレクト多重化回路16に出力さ
れ、処理を終了する。
If it is determined in step S128 that the new frame of interest is the Nth frame,
Proceeding to step S129, the chain number of the chain which is the frame of interest (hence, the first frame) which is the frame of interest in step S122, which is the chain of interest first, and the motion parameter stored in the RAM 126 (to the next frame) Motion parameter) and the number of motion parameters are output to the select multiplexing circuit 16, and the process ends.

【0108】なお、上述したように、図19に示した処
理は、第1フレームに存在するチェーンすべてについて
行われる。
As described above, the processing shown in FIG. 19 is performed for all chains existing in the first frame.

【0109】セレクト多重化回路16では、上述したよ
うに、チェーン置換回路15(置換回路124)から出
力されたチェーン番号のチェーン符号化データが、RA
M141から読み出され、そのチェーン符号化データ
と、同じくチェーン置換回路15から出力された動きパ
ラメータおよびその数とが多重化されることにより、多
重化チェーン符号化データとされて出力される。
In the select multiplex circuit 16, as described above, the chain encoded data of the chain number output from the chain permutation circuit 15 (substitution circuit 124) is RA.
The chain encoded data read from M14 1 is multiplexed with the motion parameter and the number thereof which are also output from the chain permutation circuit 15 to be output as multiplexed chain encoded data.

【0110】即ち、例えば、いま、図21に示すよう
に、第1乃至第Nフレームにそれぞれ存在するチェーン
CH1乃至CHNが対応付けられたとすると、セレクト多
重化回路16からは、チェーンCH1についてのチェー
ン符号化データと、チェーンCH1からチェーンCHN-1
までの後フレームへの動きパラメータおよびその数N−
1とを多重化したものが出力される。
[0110] That is, for example, now, as shown in FIG. 21, when the chain CH 1 to CH N respectively present in the first through the N-th frame are associated, from the select multiplexing circuit 16, the chain CH 1 Chain-encoded data about, and chain CH 1 to chain CH N-1
Parameters to the subsequent frame and the number N−
A multiplexed version of 1 and 1 is output.

【0111】従って、第1フレームの注目チェーンと置
き換え(対応付け)可能なチェーンは、その注目チェー
ンについてのチェーン符号化データと、そのチェーンを
移動(動き補償)して他のチェーンを復元するための動
きパラメータとにされて出力されるので、従来のよう
に、各フレームに存在するチェーンをそれぞれチェーン
符号化データとして出力する場合に比較して、時間方向
の冗長度を低下させることができ、その結果、画像の圧
縮効率を向上させることができる。
Therefore, the chain that can be replaced (correlated) with the chain of interest of the first frame is the coded data for the chain of interest, and the chain is moved (motion compensated) to restore another chain. Since it is output as the motion parameter of, it is possible to reduce the redundancy in the time direction as compared with the case of outputting the chains existing in each frame as chain encoded data as in the conventional case. As a result, the compression efficiency of the image can be improved.

【0112】なお、図44のRAM122にも、RAM
1231乃至123N-1における場合と同様に、第1フレ
ームのビットマップを展開するようにすることが可能で
ある。但し、この場合、RAM122は、1フレーム分
のビットマップを記憶することのできるフレームメモリ
とする必要があり、従って、記憶容量の大きなものとす
る必要がある。これに対し、上述したように、RAM1
22に、第1フレームに存在するチェーン符号化データ
を記憶させるようにした場合には、通常、1フレーム分
のチェーン符号化データは、1フレーム分のビットマッ
プよりデータ量の少ないものであるから、RAM122
も記憶容量の小さいものを用いることが可能となる。
The RAM 122 shown in FIG.
As in the case of 123 1 to 123 N-1 , it is possible to expand the bitmap of the first frame. However, in this case, the RAM 122 needs to be a frame memory capable of storing a bit map for one frame, and therefore needs to have a large storage capacity. On the other hand, as described above, the RAM1
In the case where the chain encoded data existing in the first frame is stored in 22, the chain encoded data for one frame usually has a smaller data amount than the bitmap for one frame. , RAM122
Also, it is possible to use a memory having a small storage capacity.

【0113】ところで、図1の画像符号化装置によれ
ば、上述したように、画像データの圧縮効率の向上を図
ることができるが、第1フレームに存在するチェーンに
ついてのみ、図19に示した処理が行われるため、第2
フレーム以降のフレームで、初めてチェーンが現れた場
合(例えば、第2フレーム以降のフレームでシーンが変
わった場合など)には、そのチェーンについての情報
は、セレクト多重化回路16から出力されず、従って、
復号側において、そのチェーンを復号することが困難と
なる。
By the way, according to the image coding apparatus of FIG. 1, it is possible to improve the compression efficiency of image data as described above, but only the chains existing in the first frame are shown in FIG. Because the processing is performed, the second
When a chain first appears in a frame subsequent to the frame (for example, when the scene changes in the second frame and subsequent frames), the information about the chain is not output from the select multiplexing circuit 16, and accordingly, ,
It becomes difficult for the decryption side to decrypt the chain.

【0114】そこで、図22は、本発明を適用した画像
符号化装置の第2実施例の構成を示している。なお、図
中、図1における場合と対応する部分については、同一
の符号を付してある。即ち、この画像符号化装置は、チ
ェーン置換回路15またはセレクト多重化回路16に代
えて、チェーン置換回路215またはセレクト多重化回
路216がそれぞれ設けられている他は、図43の画像
符号化装置と同様に構成されている。
Therefore, FIG. 22 shows the configuration of the second embodiment of the image coding apparatus to which the present invention is applied. In the figure, the same reference numerals are given to portions corresponding to the case in FIG. That is, this image encoding device is the same as the image encoding device of FIG. 43 except that a chain replacement circuit 215 or a select multiplex circuit 216 is provided instead of the chain replacement circuit 15 or the select multiplex circuit 16. It is similarly configured.

【0115】チェーン置換回路215は、図1のチェー
ン置換回路15と同様の処理を、第1フレームに存在す
るチェーンだけでなく、第2フレーム以降のフレームに
存在するチェーンについても対象にして行い、後述する
ように、フレーム番号、チェーン番号、動きパラメー
タ、およびその動きパラメータの数を、セレクト多重化
回路216に出力する。
The chain replacement circuit 215 performs the same processing as the chain replacement circuit 15 of FIG. 1 on not only the chains existing in the first frame but also the chains existing in the second and subsequent frames. As will be described later, the frame number, chain number, motion parameter, and the number of motion parameters are output to the select multiplexing circuit 216.

【0116】セレクト多重化回路216は、チェーン置
換回路215からのチェーン番号に対応するチェーンに
ついてのチェーン符号化データを、同じくチェーン置換
回路215からのフレーム番号nをサフィックスとする
RAM14nから読み出し、そのチェーン符号化デー
タ、並びにチェーン置換回路215からの動きパラメー
タおよびその数を多重化することで、多重化チェーン符
号化データとし、バッファ17に出力する。
The select multiplex circuit 216 reads out the chain-encoded data of the chain corresponding to the chain number from the chain permutation circuit 215 from the RAM 14 n similarly having the frame number n from the chain permutation circuit 215 as a suffix. The chain encoded data, the motion parameter from the chain replacement circuit 215 and the number thereof are multiplexed to form multiplexed chain encoded data, which is output to the buffer 17.

【0117】図23は、図22のチェーン置換回路21
5の構成例を示している。なお、図中、図17のチェー
ン置換回路15における場合と対応する部分について
は、同一の符号を付してある。即ち、このチェーン置換
回路215は、置換回路124に代えて、置換回路13
2が設けられ、さらに、新規チェーン符号化回路131
1乃至131N-1およびチェーン復号化回路1331乃至
133N-1が新たに設けられている他は、図17のチェ
ーン置換回路15と同様に構成されている。
FIG. 23 shows the chain replacement circuit 21 of FIG.
5 shows a configuration example of No. 5. In the figure, parts corresponding to those in the chain replacement circuit 15 of FIG. 17 are designated by the same reference numerals. That is, the chain replacement circuit 215 is replaced by the replacement circuit 13 instead of the replacement circuit 124.
2 is provided, and further, a new chain encoding circuit 131
Our 1 to 131 N-1 and the chain decoding circuit 133 1 through 133 N-1 are newly provided, has the same configuration as the chain substitution circuit 15 of FIG. 17.

【0118】以上のように構成されるチェーン置換回路
215では、図17における場合と同様にして、RAM
122に、第1フレームのチェーン符号化データが記憶
され、RAM1231乃至123N-1に、第2乃至第Nフ
レームのチェーンについてのビットマップがそれぞれ展
開されると、置換回路132において、図24のフロー
チャートにしたがった処理が行われる。
In the chain replacement circuit 215 configured as described above, the RAM is replaced by the RAM in the same manner as in FIG.
To 122, the chain coded data of the first frame is stored, in the RAM 123 1 through 123 N-1, the bit map for the second to the chain of the N-th frame is deployed, respectively, in a substitution circuit 132, FIG. 24 The process according to the flowchart of FIG.

【0119】即ち、まず最初に、ステップS131にお
いて、フレーム数をカウントするための変数nに初期値
としての1がセットされ、ステップS132に進み、後
述するような第nフレームに基づく置換処理が行われ
る。そして、その第nフレームに基づく置換処理が終了
すると、ステップS133において、変数nが1だけイ
ンクリメントされ、ステップS134に進み、変数n
が、処理単位のフレーム数であるN以下であるかどうか
が判定される。ステップS134において、変数nがN
以下であると判定された場合、ステップS132に戻
り、再度、第nフレームに基づく置換処理が行われる。
また、ステップS134において、変数nがN以下でな
いと判定された場合、処理を終了する。
That is, first, in step S131, a variable n for counting the number of frames is set to 1 as an initial value, and the process proceeds to step S132 to perform a replacement process based on the nth frame as described later. Be seen. Then, when the replacement process based on the nth frame is completed, the variable n is incremented by 1 in step S133, the process proceeds to step S134, and the variable n
Is less than or equal to N, which is the number of frames in a processing unit. In step S134, the variable n is N
When it is determined that the following is true, the process returns to step S132, and the replacement process based on the nth frame is performed again.
If it is determined in step S134 that the variable n is not equal to or less than N, the process ends.

【0120】次に、図25は、図24の第nフレームに
基づく置換処理の詳細を示すフローチャートである。こ
の第nフレームに基づく置換処理では、ステップS14
1乃至S148において、ステップS142で、第1フ
レームではなく、第nフレームが注目フレームとされる
ことを除き、図19のステップS121乃至S128に
おける場合とそれぞれ同様の処理が行われる。
Next, FIG. 25 is a flow chart showing details of the replacement process based on the nth frame of FIG. In the replacement process based on the nth frame, step S14
In 1 to S148, the same processes as in steps S121 to S128 of FIG. 19 are performed, respectively, except that the nth frame is set as the frame of interest instead of the first frame in step S142.

【0121】ここで、第1フレームに存在するチェーン
についてのチェーン符号化データは、RAM122に記
憶されているので、第1フレームに存在するチェーンに
ついては、RAM122に記憶されているチェーン符号
化データにより、第1フレームに存在するチェーンそれ
ぞれを認識し、例えばステップS143において、その
チェーンからの後フレームへの動きパラメータを算出す
ることができるが、第2フレーム以降のフレームに存在
するチェーンについては、チェーンを構成する特徴点の
位置に対応するアドレスの格納値を1としたビットマッ
プが、RAM1231乃至123N-1に記憶されているだ
けなので、第2フレーム以降のフレームに存在するチェ
ーンを認識するには、置換回路132において、注目フ
レームのビットマップが展開されているRAM123の
記憶内容をスキャンして、1が連続する部分をチェーン
として再構成する必要があり、処理に時間を要すること
になる。
Here, since the chain coded data for the chain existing in the first frame is stored in the RAM 122, the chain coded data stored in the RAM 122 is used for the chain existing in the first frame. , It is possible to recognize each chain existing in the first frame and calculate the motion parameter from that chain to a subsequent frame in step S143. bitmap with 1 value stored at the address corresponding to the positions of feature points that make up the can, since only stored in the RAM 123 1 through 123 N-1, which recognizes the chains present in the second frame and subsequent frames In the replacement circuit 132, the bit Flops scans the stored contents of RAM123 being deployed, it is necessary to reconstruct the portion 1 is continuous as a chain, it takes time for processing.

【0122】さらに、RAM1231乃至123N-1に記
憶されているビットマップは、ステップS146におい
て、図19で説明したステップS126における場合と
同様に更新されるが、置換回路132では、その更新後
のチェーンを認識する必要がある。
[0122] Further, the bit map stored in RAM 123 1 through 123 N-1, in step S146, but is updated as in step S126 described in FIG. 19, the substitution circuit 132, after the update Need to recognize the chain of.

【0123】そこで、ステップS142において、第2
フレーム以降のフレームが注目フレームとされた場合、
置換回路132は、次のようにして、その注目フレーム
とされたフレームに存在するチェーンを認識するように
なされている。
Therefore, in step S142, the second
When the frame after the frame is set as the frame of interest,
The replacement circuit 132 recognizes a chain existing in the frame of interest as follows.

【0124】即ち、例えば、いま、ステップS142に
おいて、第nフレームが注目フレームとされたとすると
(但し、ここでは、nは2以上N以下の整数とする)、
図2で説明したチェーン符号化回路12と同様に構成さ
れる新規チェーン符号化回路131n-1に制御信号を出
力する。チェーン符号化回路131n-1は、置換回路1
32から制御信号を受信すると、チェーン復号化回路1
33n-1を制御し、これにより、RAM14nから第nフ
レームのチェーン符号化データを読み出させ、チェーン
復号化させる。チェーン復号化回路133n-1によって
チェーン復号化されることにより得られた第nフレーム
の画像データは、新規チェーン符号化回路131n-1
供給され、そこで、RAM123n-1の記憶内容を参照
しながら、再度チェーン符号化される。
That is, for example, if it is assumed that the n-th frame is the frame of interest in step S142 (here, n is an integer of 2 or more and N or less),
The control signal is output to the new chain encoding circuit 131 n-1 configured similarly to the chain encoding circuit 12 described in FIG. The chain encoding circuit 131 n-1 is the replacement circuit 1
When the control signal is received from 32, the chain decoding circuit 1
33 n-1 is controlled, whereby the chain encoded data of the nth frame is read from the RAM 14 n and the chain is decoded. The image data of the n-th frame obtained by being chain-decoded by the chain decoding circuit 133 n-1 is supplied to the new chain encoding circuit 131 n-1 , where the contents stored in the RAM 123 n-1 are stored. The chain is coded again with reference.

【0125】即ち、チェーン復号化回路133n-1から
は、第nフレームの画像データの他、第nフレームのチ
ェーン符号化データを復号することにより得られる第n
フレームの特徴点も、新規チェーン符号化回路131
n-1に供給されるようになされており、新規チェーン符
号化回路131n-1では、チェーン復号化回路133n-1
からの第nフレームの特徴点であって、その特徴点に対
応するRAM123n-1のアドレスの格納値が1になっ
ている点(画素)を、いわば真の特徴点として、チェー
ン復号化回路133n-1から供給される第nフレームの
画像データがチェーン符号化され、その結果得られるチ
ェーン符号化データが、置換回路132に出力される。
That is, from the chain decoding circuit 133 n-1 , the nth frame image data and the nth frame chain encoded data obtained by decoding are decoded.
The feature point of the frame is also the new chain encoding circuit 131.
In the new chain encoding circuit 131 n-1 , the chain decoding circuit 133 n-1 is supplied to the n-1.
The point (pixel) which is the feature point of the n-th frame from No. 1 and whose stored value of the address of the RAM 123 n-1 corresponding to the feature point is 1 is, so to speak, a true feature point, and is referred to as a chain decoding circuit. The image data of the n-th frame supplied from 133 n-1 is chain-coded, and the chain-coded data obtained as a result is output to the replacement circuit 132.

【0126】従って、新規チェーン符号化回路131
n-1より出力される第nフレームのチェーン符号化デー
タは、RAM131n-1の更新内容を反映したものとな
る。
Therefore, the new chain encoding circuit 131
The n- th frame chain encoded data output from n-1 reflects the updated contents of the RAM 131 n-1 .

【0127】置換回路132では、以上のようにして、
新規チェーン符号化回路131n-1から供給される、R
AM131n-1の更新内容を反映した第nフレームのチ
ェーン符号化データに基づいて、第nフレームに存在す
るチェーンが認識される。
In the replacement circuit 132, as described above,
R supplied from the new chain encoding circuit 131 n-1
The chain existing in the n-th frame is recognized based on the chain-encoded data of the n-th frame that reflects the updated contents of AM131 n-1 .

【0128】そして、置換回路132では、ステップS
149において、図19のステップS129における場
合と同様に、最初に注目チェーンとされたチェーンのチ
ェーン番号、RAM126に記憶された動きパラメータ
(後フレームへの動きパラメータ)、およびその動きパ
ラメータの数が、セレクト多重化回路216に出力さ
れ、さらに、最初に注目チェーンとされたチェーンが存
在するフレーム(ステップS142で注目フレームとさ
れたフレーム)のフレーム番号も、セレクト多重化回路
216に出力される。
Then, in the replacement circuit 132, step S
In 149, as in the case of step S129 of FIG. 19, the chain number of the chain initially set as the target chain, the motion parameter (motion parameter to the subsequent frame) stored in the RAM 126, and the number of motion parameters are The frame number of the frame in which the chain first set as the target chain exists (the frame set as the target frame in step S142) is output to the select multiplex circuit 216, and is also output to the select multiplex circuit 216.

【0129】なお、図25に示した処理は、ステップS
142で注目フレームとされる第nフレームに存在する
チェーンすべてについて行われる。
The process shown in FIG. 25 is performed in step S
This is performed for all chains existing in the nth frame which is the frame of interest at 142.

【0130】セレクト多重化回路216では、上述した
ように、チェーン置換回路215から出力されるフレー
ム番号nをサフィックスとするRAM14nから、同じ
くチェーン置換回路215から出力されるチェーン番号
に対応するチェーンについてのチェーン符号化データが
読み出され、そのチェーン符号化データと、チェーン置
換回路215からの動きパラメータおよびその数とが多
重化されることにより、多重化チェーン符号化データと
されて出力される。
In the select multiplex circuit 216, as described above, the RAM 14 n having the frame number n output from the chain replacement circuit 215 as a suffix, and the chain corresponding to the chain number also output from the chain replacement circuit 215 Of the chain encoded data is read out, and the chain encoded data is multiplexed with the motion parameter and the number thereof from the chain replacement circuit 215 to be output as multiplexed chain encoded data.

【0131】即ち、例えば、いま、図26に示すよう
に、第1乃至第Nフレームにそれぞれ存在するチェーン
CH1乃至CHNが対応付けられたとすると、セレクト多
重化回路216からは、図21における場合と同様に、
チェーンCH1についてのチェーン符号化データと、チ
ェーンCH1からチェーンCHN-1までの後フレームへの
動きパラメータおよびその数N−1とを多重化したもの
が出力される。さらに、同図に示すように、第2フレー
ムで、初めてチェーンCH2’が現れた場合でも、図2
4のステップS132において「第2フレームに基づく
置換処理」が行われることによって、チェーンCH2
は、それと対応付けられるべきチェーン(図26の実施
例においては、第3フレームのチェーンCH3’)と対
応付けられ、その結果、セレクト多重化回路216から
は、チェーンCH2’についてのチェーン符号化データ
と、チェーンCH2’の後フレームへの動きパラメータ
およびその数1とを多重化したものも出力される。
That is, for example, as shown in FIG. 26, assuming that the chains CH 1 to CH N existing in the first to Nth frames are associated with each other, from the select multiplexing circuit 216 in FIG. As in the case
The chain coded data for the chain CH 1, obtained by multiplexing the motion parameters and the number N-1 thereof to the frame after the chain CH 1 to the chain CH N-1 is output. Furthermore, as shown in FIG. 2, even if the chain CH 2 'has appeared for the first time in the second frame,
By performing the “replacement process based on the second frame” in step S132 of 4, the chain CH 2 '
Is associated with the chain to be associated with it (in the embodiment of FIG. 26, the chain CH 3 ′ of the third frame), and as a result, the select multiplex circuit 216 outputs the chain code for the chain CH 2 ′. The multiplexed data, the motion parameter for the subsequent frame of the chain CH 2 'and its number 1 are also output.

【0132】従って、この場合、第2フレーム以降のフ
レームで、初めてチェーンが現れたとしても、復号側に
おいて、そのチェーンを復号することが可能となる。
Therefore, in this case, even if the chain appears for the first time in the second and subsequent frames, the decoding side can decode the chain.

【0133】なお、図1および図22の画像符号化装置
から出力された多重化チェーン符号化データからは、次
のようにして復号画像を得ることができる。即ち、多重
化チェーン符号化データからチェーン符号化データおよ
び動きパラメータを取り出し、チェーン符号化データを
チェーン復号化する。そして、その結果得られる復号画
像(チェーン)を、動きパラメータにしたがって動き補
償する。これにより、最初の復号画像に続くフレームの
復号画像を得ることができる。
A decoded image can be obtained from the multiplexed chain coded data output from the image coding apparatus shown in FIGS. 1 and 22 as follows. That is, the chain encoded data and the motion parameter are extracted from the multiplexed chain encoded data, and the chain encoded data is chain decoded. Then, the decoded image (chain) obtained as a result is motion-compensated according to the motion parameter. As a result, the decoded image of the frame following the first decoded image can be obtained.

【0134】但し、その復号画像は、図27および図2
8に示すようなものとなる。即ち、画像符号化装置か
ら、チェーン符号化データとされて出力されたチェーン
を、基本チェーンというとすると、例えば、図27
(A)に示すように、元の画像において、第nフレーム
に、ある1つのチェーンが存在し、後フレームに、その
チェーンを分割したような3つのチェーンが存在する場
合に、第nフレームのチェーンが基本チェーンとされ、
後フレームの3つのチェーンと対応付けられた(置き換
えられた)とき、復号側では、基本チェーンを動き補償
することで、後フレームのチェーンが復号されるため、
後フレームの3つのチェーンは、同図(B)に示すよう
に、1つのチェーンとして復号される。
However, the decoded image is as shown in FIG. 27 and FIG.
As shown in FIG. That is, if a chain output as chain encoded data from the image encoding device is called a basic chain, for example, as shown in FIG.
As shown in (A), in the original image, when a certain chain is present in the nth frame and three chains which are obtained by dividing the chain are present in the rear frame, the nth frame The chain is the basic chain,
When associated (replaced) with the three chains of the subsequent frame, the decoding side decodes the chains of the subsequent frame by performing motion compensation on the basic chain.
The three chains of the subsequent frame are decoded as one chain as shown in FIG.

【0135】また、例えば、図28(A)に示すよう
に、元の画像において、第nフレームに、3つのチェー
ンが存在し、後フレームに、そのチェーンをつなぎ合わ
せたような1つのチェーンが存在する場合に、第nフレ
ームの3つのチェーンそれぞれが基本チェーンとされ、
後フレームの1のチェーンと対応付けられた(置き換え
られた)とき、復号側では、基本チェーンを動き補償す
ることで、後フレームのチェーンが復号されるため、後
フレームの1つのチェーンは、同図(B)に示すよう
に、3つのチェーンとして復号される。
Further, for example, as shown in FIG. 28A, in the original image, there are three chains in the nth frame, and in the rear frame, one chain is formed by connecting the chains. If present, each of the three chains in the nth frame is a base chain,
When associated with (replaced by) one chain of the subsequent frame, the decoding side decodes the chain of the subsequent frame by motion-compensating the basic chain. As shown in the figure (B), it is decoded as three chains.

【0136】次に、図29は、図17(図23)の動き
パラメータ算出回路125の構成例を示している。この
動きパラメータ算出回路125は、信頼点計算回路41
および動きパラメータ計算回路42から構成されてい
る。信頼点計算回路41には、置換回路124(または
132)から、動きパラメータを求めるべきチェーンの
チェーン符号化データが供給されるとともに、RAM2
0から画像データが供給されるようになされている。そ
して、信頼点計算回路41は、チェーン符号化データが
入力されると、それに対応するチェーンを検出し、その
チェーン(連続点)を構成する特徴点それぞれの信頼性
を表す信頼度を算出して、その信頼度に基づいて、特徴
点の中から、信頼性の高い順に2点を選択するようにな
されている(以下、適宜、選択された2点のうち、信頼
性の最も高い点または2番目に高い点を、それぞれ第1
信頼点または第2信頼点という)。さらに、信頼点計算
回路41は、第1または第2信頼点それぞれの動きベク
トルを検出し、第1および第2信頼点の座標とともに、
動きパラメータ計算回路42に出力するようになされて
いる。
Next, FIG. 29 shows a configuration example of the motion parameter calculation circuit 125 of FIG. 17 (FIG. 23). The motion parameter calculation circuit 125 is used in the confidence point calculation circuit 41.
And a motion parameter calculation circuit 42. The confidence point calculation circuit 41 is supplied from the replacement circuit 124 (or 132) with the chain-coded data of the chain for which the motion parameter is to be obtained, and the RAM 2
Image data is supplied from 0. Then, when the encoded code data is input, the confidence point calculation circuit 41 detects a chain corresponding to the chain encoded data, and calculates the reliability representing the reliability of each of the feature points forming the chain (continuous points). Based on the reliability, two points are selected from the feature points in the order of high reliability (hereinafter, the highest reliability point or 2 points out of the two selected points). The second highest point is the first
Confidence point or second confidence point). Further, the confidence point calculation circuit 41 detects the motion vector of each of the first and second confidence points, and together with the coordinates of the first and second confidence points,
It is adapted to be output to the motion parameter calculation circuit 42.

【0137】ここで、本明細書中において、動きベクト
ルとは、物体が平行移動された場合のその平行移動量
(正確には、平行移動量と移動方向)を表すベクトルを
意味する。一方、動きパラメータとは、物体が平行移動
された場合の平行移動量、即ち動きベクトルだけでな
く、拡大、縮小された場合の拡大縮小率(拡大率または
縮小率)や、回転された場合の回転量(正確には、回転
量と回転方向(但し、回転方向を、1方向に決めておけ
ば、回転方向は必要ない))などを表すパラメータをも
意味する。
Here, in the present specification, the motion vector means a vector representing the amount of parallel movement of an object (to be exact, the amount of parallel movement and the moving direction) when the object is translated. On the other hand, the motion parameter is not only the amount of translation when the object is translated, that is, the motion vector, but also the scaling factor (enlarging or reducing rate) when the object is scaled up or down, and when it is rotated. It also means a parameter indicating a rotation amount (more precisely, a rotation amount and a rotation direction (however, if the rotation direction is set to one direction, the rotation direction is not necessary)).

【0138】動きパラメータ計算回路42は、信頼点計
算回路41から、チェーンについての第1信頼点(第1
信頼点の座標)とその動きベクトルおよび第2信頼点
(第1信頼点の座標)とその動きベクトルを受信する
と、それらに基づいて、そのチェーンの平行移動量、拡
大縮小率、および回転量を表す動きパラメータを算出す
るようになされている。
The motion parameter calculation circuit 42 receives from the confidence point calculation circuit 41 the first confidence point (first
When the coordinate of the trust point) and its motion vector and the second confidence point (coordinate of the first confidence point) and its motion vector are received, the parallel movement amount, the scaling ratio, and the rotation amount of the chain are calculated based on them. A motion parameter to be expressed is calculated.

【0139】図30は、図29の信頼点計算回路41の
構成例を示している。形状信頼度算出回路51には、チ
ェーン符号化データが入力されるようになされており、
形状信頼度算出回路51は、そのチェーン符号化データ
に対応するチェーンの、そのチェーンを構成する各特徴
点の周囲における幾何学的形状に基づいて、その特徴点
の信頼度を算出するようになされている。さらに、形状
信頼度算出回路51は、求めた信頼度に基づいて、チェ
ーンを構成する特徴点から、第1または第2信頼点(以
下、適宜、単に、信頼点という)の候補となる点(以
下、適宜、信頼候補点という)を検出し、予測誤差信頼
度算出回路52に出力するようになされている。
FIG. 30 shows a configuration example of the confidence point calculation circuit 41 of FIG. Chain encoded data is input to the shape reliability calculation circuit 51,
The shape reliability calculation circuit 51 is configured to calculate the reliability of the feature point of the chain corresponding to the chain encoded data, based on the geometrical shape around each feature point forming the chain. ing. Furthermore, the shape reliability calculation circuit 51 is a point that is a candidate for a first or second reliability point (hereinafter, simply referred to as a reliability point) from the characteristic points forming the chain based on the obtained reliability ( Hereinafter, the reliability candidate point will be appropriately detected) and output to the prediction error reliability calculation circuit 52.

【0140】具体的には、形状信頼度算出回路51は、
チェーンを構成する各特徴点を頂点としてチェーンがつ
くる角度を、信頼度(以下、適宜、他の信頼度(本実施
例では、後述する予測誤差信頼度))と区別するため
に、角度信頼度という)として算出し、その角度信頼度
(本実施例では、上述のように、角度そのもの)が所定
の範囲内の値をとる特徴点を、信頼候補点とするように
なされている。
Specifically, the shape reliability calculation circuit 51
In order to distinguish the angle formed by the chain with each feature point forming the chain as the apex from the reliability (hereinafter, appropriately, other reliability (prediction error reliability, which will be described later in this embodiment)), the angle reliability is calculated. , And the angle reliability (in the present embodiment, the angle itself, as described above) takes a value within a predetermined range as the reliability candidate point.

【0141】予測誤差信頼度算出回路52は、形状信頼
度算出回路51からの信頼候補点の動きベクトルを、現
フレームバッファ54および後フレームバッファ55を
参照しながら、いわゆるブロックマッチングを行うこと
により算出し、そのときに得られる予測誤差に基づい
て、各信頼候補点の信頼度(以下、適宜、他の信頼度
(本実施例では、上述した角度信頼度)と区別するため
に、予測誤差信頼度という)を算出するようになされて
いる。なお、本実施例では、例えば予測誤差の絶対値の
平均値が、予測誤差信頼度とされるようになされてい
る。
The prediction error reliability calculation circuit 52 calculates the motion vector of the reliability candidate point from the shape reliability calculation circuit 51 by performing so-called block matching with reference to the current frame buffer 54 and the subsequent frame buffer 55. Then, based on the prediction error obtained at that time, in order to distinguish the reliability of each reliability candidate point (hereinafter, appropriately, from other reliability (the above-described angle reliability in this embodiment), the prediction error reliability Is called) is calculated. In this embodiment, for example, the average value of the absolute values of prediction errors is used as the prediction error reliability.

【0142】さらに、予測誤差信頼度算出回路52は、
予測誤差信頼度に基づいて、信頼候補点の中から、第1
および第2信頼点を選択し、それらの動きベクトルとと
もに、動きパラメータ計算回路42に出力するようにな
されている。
Furthermore, the prediction error reliability calculation circuit 52
Based on the reliability of prediction error, the first
And the second confidence point are selected and output to the motion parameter calculation circuit 42 together with their motion vectors.

【0143】読み出し回路53は、RAM20から、い
ま処理の対象となっているチェーン(注目チェーン)が
存在するフレーム(注目フレーム)の画像データ(以
下、適宜、注目フレームデータという)と、後フレーム
(注目フレームの次のフレーム)の画像データ(後フレ
ームデータ)を読み出し、注目フレームデータまたは後
フレームデータを、それぞれ現フレームバッファ54ま
たは後フレームバッファ55に記憶させるようになされ
ている。
The read circuit 53 reads from the RAM 20 the image data (hereinafter, referred to as attention frame data) of a frame (attention frame) in which a chain (attention chain) currently being processed exists (hereinafter referred to as attention frame data) and a subsequent frame (attention). The image data (post frame data) of the frame next to the frame of interest is read out, and the frame data of interest or the post frame data is stored in the current frame buffer 54 or the post frame buffer 55, respectively.

【0144】次に、その動作について説明する。置換回
路124(または132)から、動きパラメータを求め
るべきチェーンのチェーン符号化データが入力される
と、そのチェーン符号化データは、形状信頼度算出回路
51に供給される。さらに、このとき、読み出し回路5
3は、入力されたチェーン符号化データに対応するチェ
ーンが存在するフレーム、即ち注目フレームの画像デー
タ(注目フレームデータ)と、後フレームデータとを、
RAM20から読み出し、現フレームバッファ54また
は後フレームバッファ55にそれぞれ供給して記憶させ
る。
Next, the operation will be described. When the chain encoded data of the chain for which the motion parameter is to be obtained is input from the replacement circuit 124 (or 132), the chain encoded data is supplied to the shape reliability calculation circuit 51. Further, at this time, the reading circuit 5
Reference numeral 3 indicates a frame in which a chain corresponding to the input chain-encoded data exists, that is, image data of a frame of interest (frame of interest data) and subsequent frame data.
It is read from the RAM 20 and supplied to the current frame buffer 54 or the subsequent frame buffer 55 to be stored therein.

【0145】その後、形状信頼度算出回路51では、図
31のフローチャートにしたがった処理が行われる。即
ち、形状信頼度算出回路51では、まず最初に、ステッ
プS31において、入力されたチェーン符号化データの
方向成分に基づいて、そのチェーン符号化データに対応
するチェーン(注目チェーン)が検出される。さらに、
ステップS31では、その注目チェーンを構成する各画
素(特徴点)に対し、例えば、その始点から終点方向
に、シリアルに番号(以下、適宜、画素番号という)が
付される。即ち、例えば、注目チェーンが、P個の画素
で構成される場合、その始点には1が付され、始点の次
の点には2が付され、・・・、始点からp番目の点には
nが付され、・・・、終点にはPが付される。
Thereafter, the shape reliability calculation circuit 51 performs the processing according to the flowchart of FIG. That is, in the shape reliability calculation circuit 51, first, in step S31, the chain (target chain) corresponding to the chain encoded data is detected based on the direction component of the input chain encoded data. further,
In step S31, a number (hereinafter, appropriately referred to as a pixel number) is serially assigned to each pixel (characteristic point) forming the target chain, for example, from the start point to the end point. That is, for example, if the chain of interest is composed of P pixels, 1 is attached to the starting point, 2 is attached to the point next to the starting point, ..., And the p-th point from the starting point. Is attached with n, ..., P is attached to the end point.

【0146】その後、ステップS32に進み、注目チェ
ーンを構成する画素のうち、未処理の画素が存在するか
どうかが判定される。ステップS32において、未処理
の画素が存在すると判定された場合、その注目チェーン
を構成する画素を、例えば画素番号の昇順に見たとき
に、最初に検出される未処理の画素が注目画素とされ
て、ステップS33に進む。
Then, in step S32, it is determined whether or not there is an unprocessed pixel among the pixels forming the target chain. When it is determined in step S32 that there is an unprocessed pixel, when the pixels forming the target chain are viewed in ascending order of pixel number, for example, the first unprocessed pixel detected is set as the target pixel. Then, the process proceeds to step S33.

【0147】ステップS33では、注目画素Pcを中心
とするM1×M2画素の範囲内に存在する、注目チェー
ンを構成する画素のうち、その画素番号が最大の画素
(以下、適宜、第1参照点という)Pmaxと、最小の画
素(以下、適宜、第2参照点という)Pminとが検出さ
れる。即ち、例えば、図32に示すような、1乃至22
の画像番号が付された画素で構成されるチェーン(図
中、影を付してある部分)が注目チェーンとされている
場合において、画素番号13の画素が注目画素とされて
いるときには、その注目画素を中心とするM1×M2画
素の範囲内(図中、太線の枠で示す範囲内)に存在す
る、注目チェーンを構成する画素のうち、最大の画素番
号16の画素が、第1参照点Pmaxとして、また、最小
の画素番号9の画素が、第2参照点Pminとして検出さ
れる。なお、図32の実施例では、M1=M2=7とさ
れている。
In step S33, of the pixels forming the chain of interest existing within the range of M1 × M2 pixels centered on the pixel of interest P c , the pixel having the largest pixel number (hereinafter, appropriately referred to as the first reference). A point) P max and a minimum pixel (hereinafter appropriately referred to as a second reference point) P min are detected. That is, for example, as shown in FIG.
In the case where the chain composed of pixels with the image number of (the shaded portion in the drawing) is the target chain, when the pixel of pixel number 13 is the target pixel, Of the pixels forming the chain of interest, which exists within the range of M1 × M2 pixels centered on the pixel of interest (in the range indicated by the bold frame in the figure), the pixel with the maximum pixel number 16 is the first reference The pixel having the smallest pixel number 9 is detected as the point P max and the second reference point P min . In the example of FIG. 32, M1 = M2 = 7.

【0148】その後、ステップS34に進み、注目画素
cを頂点として、点Pc,Pmax,Pminがつくる角度θ
(=∠Pmincmax)が、角度信頼度として算出され
る(ここでは、θの単位は、度とする)。即ち、図32
に示したような注目画素Pc、第1参照点Pmax、第2参
照点Pminが得られている場合には、図33に示すよう
な、角度θが、角度信頼度として算出される。ここで、
ステップS34において、角度(角度信頼度)θは、具
体的には、例えば次のようにして算出される。即ち、点
c,Pmax,Pminの座標を、それぞれ(x,y),
(xa,ya),(xb,yb)とするとき、角度信頼度θ
は、式 θ=|arctan(ya-y/(xa-x))-arctan(yb-y/(xb-x))| にしたがって算出される。
After that, the process proceeds to step S34, and the angle θ formed by the points P c , P max and P min with the target pixel P c as the apex.
(= ∠P min P c P max ) is calculated as the angle reliability (here, the unit of θ is degree). That is, FIG.
When the target pixel P c , the first reference point P max , and the second reference point P min as shown in FIG. 33 are obtained, the angle θ as shown in FIG. 33 is calculated as the angle reliability. . here,
In step S34, the angle (angle reliability) θ is specifically calculated as follows, for example. That is, the coordinates of the points P c , P max , and P min are (x, y), respectively.
(X a, y a), when the (x b, y b), the angle reliability θ
Is calculated according to the formula θ = | arctan (y a -y / (x a -x))-arctan (y b -y / (x b -x)) |.

【0149】さらに、ステップS34では、θ0<θ1
とするとき(ここでは、θ0,θ1の単位は、度とす
る)、角度信頼度θが、θ0より大きく、かつθ1未満
であるか、または180−θ1より大きく、かつ180
−θ0未満であるか否かが判定される。ステップS34
において、角度信頼度θが、θ0より大きく、かつθ1
未満でなく、また180−θ1より大きく、かつ180
−θ0未満でもないと判定された場合、ステップS32
に戻る。また、ステップS34において、角度信頼度θ
が、θ0より大きく、かつθ1未満であると判定される
か、または180−θ1より大きく、かつ180−θ0
未満であると判定された場合、ステップS35に進み、
その角度信頼度θを与える注目画素Pc(注目画素Pc
座標)が、信頼候補点として、予測誤差信頼度算出回路
52に出力される。
Further, in step S34, θ0 <θ1
(Here, the units of θ0 and θ1 are degrees), the angular reliability θ is greater than θ0 and less than θ1, or greater than 180−θ1 and 180.
It is determined whether it is less than −θ0. Step S34
, The angle reliability θ is larger than θ0, and θ1
Not less than or greater than 180-θ1 and 180
If it is determined that it is not less than −θ0, step S32.
Return to Further, in step S34, the angle reliability θ
Is determined to be greater than θ0 and less than θ1, or greater than 180−θ1 and 180−θ0.
If it is determined that it is less than,
The pixel of interest P c (coordinates of the pixel of interest P c ) that gives the angle reliability θ is output to the prediction error reliability calculation circuit 52 as a reliability candidate point.

【0150】ここで、θ0またはθ1は、それぞれ、例
えば20度または70度程度とされている。これは、次
のような理由による。即ち、注目画素Pcに対応する角
度信頼度θが、45度前後(例えば、20度乃至70度
程度)の場合、または135度前後(例えば、110度
乃至160度程度)の場合において、その注目画素Pc
の動きベクトルを、例えばブロックマッチングを行うこ
とによって求めたときには、その動きベクトルの信頼性
が高いことが、経験的に分かっている。一方、後段の予
測誤差信頼度算出回路52では、後述するように、ブロ
ックマッチングにより動きベクトルが検出される。そこ
で、予測誤差信頼度算出回路52において、信頼性の高
い動きベクトルを検出するため、θ0またはθ1は、上
述したように、それぞれ20度または70度程度として
ある。このことから、角度信頼度θが、θ0より大き
く、かつθ1未満であるか、または180−θ1より大
きく、かつ180−θ0未満である画素は、形状的に信
頼性が高い点であるということができる。
Here, θ0 or θ1 is, for example, about 20 degrees or 70 degrees, respectively. This is for the following reason. That is, when the angular reliability θ corresponding to the pixel of interest P c is around 45 degrees (for example, about 20 degrees to 70 degrees) or around 135 degrees (for example, about 110 degrees to 160 degrees), Target pixel P c
It has been empirically known that the motion vector of is highly reliable when it is obtained by performing block matching, for example. On the other hand, in the prediction error reliability calculation circuit 52 in the subsequent stage, the motion vector is detected by block matching, as described later. Therefore, in order to detect a highly reliable motion vector in the prediction error reliability calculation circuit 52, θ0 or θ1 is set to about 20 degrees or 70 degrees, respectively, as described above. From this, it can be said that a pixel whose angle reliability θ is larger than θ0 and smaller than θ1 or larger than 180−θ1 and smaller than 180−θ0 has high geometrical reliability. You can

【0151】以上のようにして、ステップS35におい
て、信頼候補点が出力された後は、ステップS32に戻
り、以下、ステップS32において、未処理の画素がな
いと判定されるまで、ステップS32乃至S35の処理
を繰り返す。そして、ステップS32において、未処理
の画素がないと判定された場合、処理を終了し、新たな
チェーン符号化データが入力されるのを待って、再び、
ステップS31からの処理を繰り返す。
After the reliability candidate points are output in step S35 as described above, the process returns to step S32, and steps S32 to S35 are repeated until it is determined in step S32 that there are no unprocessed pixels. The process of is repeated. Then, in step S32, when it is determined that there is no unprocessed pixel, the process is ended, waits for new chain encoded data to be input, and
The processing from step S31 is repeated.

【0152】なお、ステップS33において、第1参照
点、第2参照点が得られなかった場合には、以降の処理
を行わす、ステップS32に戻り、再び、ステップS3
2からの処理を繰り返す。
In step S33, if the first reference point and the second reference point are not obtained, the subsequent processing is performed, the process returns to step S32, and step S3 is performed again.
The processing from step 2 is repeated.

【0153】予測誤差信頼度算出回路52では、1つの
チェーンについての信頼候補点が、形状信頼度算出回路
51から出力されるのを待って、図34のフローチャー
トにしたがった処理が行われる。即ち、予測誤差信頼度
算出回路52では、形状信頼度算出回路51から、1つ
のチェーンについてのすべての信頼候補点を受信する
と、ステップS41において、形状信頼度算出回路52
から受信した、1つのチェーンについてのすべての信頼
候補点の中に、未処理のものがあるかどうかが判定され
る。ステップS41において、形状信頼度算出回路52
から受信した信頼候補点の中に、未処理のものがあると
判定された場合、その信頼候補点(未処理の信頼候補
点)を、例えば画素番号の昇順に見たときに、最初に検
出されるものが注目信頼候補点とされて、ステップS4
2に進む。
The prediction error reliability calculation circuit 52 waits for the reliability candidate points for one chain to be output from the shape reliability calculation circuit 51, and then performs the processing according to the flowchart of FIG. That is, when the prediction error reliability calculation circuit 52 receives all the reliability candidate points for one chain from the shape reliability calculation circuit 51, in step S41, the shape reliability calculation circuit 52.
It is determined whether or not all of the candidate trust points for a chain received from the unprocessed ones. In step S41, the shape reliability calculation circuit 52
If it is determined that there is an unprocessed reliability candidate point received from, the reliability candidate point (unprocessed reliability candidate point) is first detected when looking at the ascending order of pixel numbers, for example. The selected one is set as the focused trust candidate point, and step S4
Proceed to 2.

【0154】ステップS42では、注目信頼候補点を中
心としたN1×N2画素の範囲を対象としたブロックマ
ッチングによる動きベクトルの検出が行われる。即ち、
注目信頼候補点の座標を(x,y)とすると、ステップ
S42では、例えば注目信頼候補点(x,y)を中心と
したN1×N2画素の範囲の注目フレームデータが、現
フレームバッファ54から読み出されるとともに、点
(x+△x,y+△y)を中心としたN1×N2画素の
範囲の後フレームデータが、後フレームバッファ55か
ら読み出される。さらに、ステップS42では、点
(x,y)を中心とするN1×N2画素の範囲の注目フ
レームデータそれぞれと、点(x+△x,y+△y)を
中心とするN1×N2画素の範囲の後フレームデータそ
れぞれとの差分、即ち予測誤差が算出され、その後、例
えば、その予測誤差の絶対値の平均値が算出される。
In step S42, a motion vector is detected by block matching for a range of N1 × N2 pixels centered on the target reliable candidate point. That is,
Assuming that the coordinates of the focused reliability candidate point are (x, y), the focused frame data in the range of N1 × N2 pixels centered on the focused reliability candidate point (x, y) is extracted from the current frame buffer 54 in step S42. At the same time as the reading, the rear frame data in the range of N1 × N2 pixels centering on the point (x + Δx, y + Δy) is read from the rear frame buffer 55. Further, in step S42, each of the target frame data in the range of N1 × N2 pixels centered on the point (x, y) and the range of N1 × N2 pixels centered on the point (x + Δx, y + Δy) are selected. The difference with each of the subsequent frame data, that is, the prediction error is calculated, and then, for example, the average value of the absolute values of the prediction errors is calculated.

【0155】そして、ステップS42においては、以上
の処理が、△xまたは△yそれぞれを所定の範囲で変化
させながら繰り返され、その所定の範囲内における△x
または△yそれぞれについて、予測誤差の絶対値の平均
値を得ると、その最小値を与える(△xmin,△ymin
が、注目信頼候補点(x,y)の、後フレームへの動き
ベクトルとして算出される。
Then, in step S42, the above processing is repeated while changing Δx or Δy within a predetermined range, and Δx within the predetermined range is repeated.
Or △ y for each obtains a mean value of the absolute values of the prediction error, gives the minimum value (△ x min, △ y min )
Is calculated as the motion vector of the target reliability candidate point (x, y) to the subsequent frame.

【0156】その後、ステップS43に進み、ステップ
S42でブロックマッチングを行ったときに得られた予
測誤差に基づいて、注目信頼候補点の信頼度(予測誤差
信頼度)が算出される。即ち、本実施例においては、ス
テップS43において、例えば、動きベクトル(△x
min,△ymin)が得られたときの予測誤差の絶対値の平
均値が、そのまま、予測誤差信頼度とされる。そして、
ステップS41に戻り、再び、ステップS41からの処
理を繰り返す。
After that, the process proceeds to step S43, and the reliability (prediction error reliability) of the target reliable candidate point is calculated based on the prediction error obtained when the block matching is performed in step S42. That is, in the present embodiment, in step S43, for example, the motion vector (Δx
min , Δy min ) is obtained, the average value of the absolute values of the prediction errors is directly used as the prediction error reliability. And
Returning to step S41, the processing from step S41 is repeated again.

【0157】なお、予測誤差信頼度としては、予測誤差
の絶対値の平均値の他、例えば予測誤差の絶対値和や自
乗和などを用いることが可能である。
As the prediction error reliability, it is possible to use, in addition to the average value of the absolute values of the prediction errors, for example, the sum of absolute values of the prediction errors or the sum of squares.

【0158】その後、ステップS41において、形状信
頼度算出回路52から受信した信頼候補点の中に、未処
理のものがないと判定された場合、即ち、1つのチェー
ンの信頼候補点すべてについて、その動きベクトルおよ
び予測誤差信頼度の算出が終了した場合、ステップS4
4に進み、予測誤差信頼度の値の最も小さい(予測誤差
信頼度が最も高い(本実施例では、予測誤差信頼度は、
その値が小さいほど、その信頼度が高い))信頼度候補
点およびその値の2番目に小さい(予測誤差信頼度が2
番目に高い)信頼度候補点が、チェーン(形状信頼度算
出回路51に入力されたチェーン符号化データに対応す
るチェーン)を構成する点(特徴点)の中で最も信頼す
ることのできる点として選択され、それぞれ第1信頼点
または第2信頼点として、その動きベクトルとともに出
力される。
After that, in step S41, when it is determined that there is no unprocessed reliability candidate point received from the shape reliability calculation circuit 52, that is, for all the reliability candidate points of one chain, When the calculation of the motion vector and the prediction error reliability is completed, step S4
4, the prediction error reliability value is the smallest (the prediction error reliability is the highest (in the present embodiment, the prediction error reliability is
The smaller the value is, the higher the reliability is.)) The reliability candidate point and the second smallest value thereof (the prediction error reliability is 2).
The second highest reliability candidate point is the most reliable point among the points (feature points) forming the chain (the chain corresponding to the chain encoded data input to the shape reliability calculation circuit 51). The motion vector is selected and output as the first confidence point or the second confidence point, respectively, together with the motion vector.

【0159】なお、信頼点が得られなかった場合、ある
いは第1信頼点しか得られなかった場合(形状信頼度算
出回路51から、信頼候補点が2点以上出力されなかっ
た場合、即ち、ステップS34で説明した条件を満たす
点が2点以上存在しない場合)は、チェーンの始点また
は終点それぞれが、第1または第2信頼点とされる。
When no confidence point is obtained, or only the first confidence point is obtained (when two or more confidence candidate points are not output from the shape reliability calculation circuit 51, that is, step In the case where two or more points satisfying the condition described in S34 do not exist), the start point or the end point of the chain is set as the first or second confidence point.

【0160】以上のようにして得られた第1および第2
信頼点並びにそれらの動きベクトルは、上述したよう
に、動きパラメータ計算回路42(図29)に供給され
る。
The first and second obtained as described above
The confidence points and their motion vectors are supplied to the motion parameter calculation circuit 42 (FIG. 29) as described above.

【0161】動きパラメータ計算回路42は、信頼点計
算回路41(予測誤差信頼度算出回路52)から、第1
および第2信頼点並びにそれらの動きベクトルを受信す
ると、チェーンの後フレームへの動きパラメータを、次
式にしたがって算出する。
The motion parameter calculation circuit 42 calculates the first from the confidence point calculation circuit 41 (prediction error reliability calculation circuit 52).
Upon receiving the second confidence point and their motion vectors, the motion parameters for the subsequent frames of the chain are calculated according to the following equation.

【0162】即ち、第1または第2信頼点の座標それぞ
れを(x1,y1)または(x2,y2)、第1または
第2信頼点の動きベクトルそれぞれを(MVx1,MV
y1)または(MVx2,MVy2)、チェーンの平行
移動量を表す動きパラメータ(平行移動ベクトル)を
(MVx,MVy)、チェーンの拡大または縮小率を表
す動きパラメータ(拡大縮小パラメータ)をS、チェー
ンの回転量を表す動きパラメータ(回転パラメータ)を
Rとすると、動きパラメータ計算回路42では、例えば
次式にしたがって、動きパラメータ(MVx,MV
y),S、およびRが算出される。
That is, the coordinates of the first or second confidence point are (x1, y1) or (x2, y2), and the motion vectors of the first or second confidence point are (MVx1, MV).
y1) or (MVx2, MVy2), a movement parameter (parallel movement vector) indicating the parallel movement amount of the chain (MVx, MVy), a movement parameter (enlargement / reduction parameter) indicating the expansion or reduction ratio of the chain S, and a chain When the motion parameter (rotation parameter) representing the rotation amount is R, the motion parameter calculation circuit 42 calculates the motion parameters (MVx, MV) according to the following equation, for example.
y), S, and R are calculated.

【0163】 (MVx,MVy)=((MVx1+MVx2)/2,(MVy1+MVx2)/2) S=((1-F)2+G2)1/2 R=arctan(G/(1-F)) 但し、F=(AC+BD)/E,G=(AD-BC)/Eで、A=MVx1-MVx2,B=M
Vy1-MVx2,C=x2-x1,D=y2-y1,E=C2+D2
(MVx, MVy) = ((MVx1 + MVx2) / 2, (MVy1 + MVx2) / 2) S = ((1-F) 2 + G 2 ) 1/2 R = arctan (G / (1 -F)) where F = (AC + BD) / E, G = (AD-BC) / E, A = MVx1-MVx2, B = M
Vy1-MVx2, C = x2-x1, D = y2-y1, E = C 2 + D 2 .

【0164】なお、上式は、2点の座標およびその2点
の動きベクトルを、図39に示したアフィンパラメータ
を用いた式に代入して解くことによって得られる。
The above equation is obtained by substituting the coordinates of two points and the motion vector of the two points into the equation using the affine parameters shown in FIG.

【0165】以上のような動きパラメータ算出回路12
5によれば、次のような動きパラメータが検出される。
即ち、例えば、図35(A)に示すように、現フレーム
に、直線状のチェーンCHAが存在する場合において、
後フレームで、そのチェーンがまったく動いていない状
態になっているときには、図45(B)に示すように、
例えばチェーンCHAの始点または終点それぞれが、第
1または第2信頼点とされ(この場合、チェーンCHA
が直線状になっており、このため形状信頼度算出回路5
1から信頼候補点が出力されないので、チェーンCHA
の始点または終点それぞれが、第1または第2信頼点と
される)、これにより、チェーンCHAが動いていない
ことを表す動きパラメータが算出される。
The motion parameter calculation circuit 12 as described above
According to 5, the following motion parameters are detected.
That is, for example, as shown in FIG. 35 (A), when the linear chain CH A exists in the current frame,
When the chain is not moving at all in the rear frame, as shown in FIG. 45 (B),
For example, the start point or the end point of the chain CH A is set as the first or second trust point (in this case, the chain CH A
Is linear, and therefore the shape reliability calculation circuit 5
No trust candidate points are output from 1, so chain CH A
The start point or the end point of is the first or second confidence point), and the motion parameter indicating that the chain CH A is not moving is calculated.

【0166】また、例えば、図36(A)に示すよう
に、現フレームに、コの字型のチェーンCHBが存在す
る場合において、後フレームで、そのチェーンが、拡大
された状態になっているときには、図36(B)に示す
ように、例えばチェーンCHBの、コの字の2つの頂点
それぞれが、第1または第2信頼点とされ(この場合、
チェーンCHBがコの字型になっており、このため形状
信頼度算出回路51では、ステップS34で説明した条
件を満たすこととなる、コの字の2つの頂点付近の点が
信頼候補点とされる(本実施例では、そのような信頼候
補点のうち、コの字の2つの頂点それぞれが、予測誤差
信頼度算出回路52で第1または第2信頼点とされてい
る))、さらに、その第1または第2の信頼候補点の動
きベクトルとして、それぞれ左下方向または右下方向へ
の移動を表すベクトルが検出される。その結果、チェー
ンCHBが拡大されたことを表す動きパラメータが算出
される。
Further, for example, as shown in FIG. 36 (A), when a U-shaped chain CH B exists in the current frame, the chain is expanded in the rear frame. 36B, for example, each of the two vertices of the U shape of the chain CH B is set as the first or second confidence point (in this case,
Since the chain CH B has a U-shape, the shape reliability calculation circuit 51 determines that the points near the two vertices of the U-shape that satisfy the condition described in step S34 are the reliability candidate points. (In the present embodiment, among such reliability candidate points, two vertices in a U-shape are each regarded as the first or second reliability point by the prediction error reliability calculation circuit 52)). As the motion vector of the first or second confidence candidate point, a vector indicating the movement in the lower left direction or the lower right direction is detected. As a result, a motion parameter indicating that the chain CH B has been expanded is calculated.

【0167】以上のように、動きパラメータ算出回路1
25によれば、剛体に許される平行移動、拡大縮小、回
転を表す動きパラメータが、チェーンを構成する点(特
徴点)のうち、信頼することのできる(動きパラメータ
を算出するにあたって信頼することのできる)2つの点
と、その2つの点の動きベクトルから算出される。従っ
て、正確な動きパラメータを得ることができる。
As described above, the motion parameter calculation circuit 1
According to 25, the motion parameters that represent the parallel movement, scaling, and rotation that are allowed by the rigid body can be trusted among the points (feature points) that make up the chain. It can be calculated from two points and the motion vector of the two points. Therefore, an accurate motion parameter can be obtained.

【0168】さらに、信頼点の動きベクトルは、上述し
た△xおよび△yの2つの係数を変更しながら予測誤差
を求めることだけで算出することができるので、従来の
ように、係数a乃至fの6つもの係数それぞれを変更し
ながら予測誤差を算出する場合に比較して、計算量を大
幅に低減することができ、その結果、実時間処理を行う
ハードウエアを、容易かつ低コストで実現することが可
能となる。
Further, the motion vector of the confidence point can be calculated only by obtaining the prediction error while changing the above-mentioned two coefficients Δx and Δy. Therefore, as in the conventional case, the coefficients a to f can be calculated. The calculation amount can be significantly reduced compared to the case where the prediction error is calculated while changing each of the six coefficients, and as a result, the hardware that performs the real-time processing is realized easily and at low cost. It becomes possible to do.

【0169】以上、本発明を、チェーン符号化を行う画
像符号化装置に適用した場合について説明したが、本発
明は、その他、画像の連続点の動きを検出して符号化を
行う、あらゆる画像符号化装置に適用可能である。さら
に、本発明は、画像符号化装置の他、例えば、ビデオテ
ープレコーダや、テレビ会議システム、画像編集装置な
どにも適用可能である。
Although the present invention has been described in the case of being applied to an image coding apparatus for performing chain coding, the present invention is not limited to this, and any other image can be coded by detecting the motion of consecutive points in the image. It is applicable to an encoding device. Further, the present invention can be applied to, for example, a video tape recorder, a video conference system, an image editing device, etc., in addition to the image encoding device.

【0170】なお、本実施例においては、チェーンを構
成する点から、信頼することのできる点を選択するため
の信頼度として、角度信頼度および予測誤差信頼度を用
いるようにしたが、信頼度としては、その他のもの(指
標値)(評価量)を用いることが可能である。即ち、例
えば、注目画素周辺をハイパスフィルタでフィルタリン
グし、その出力値を、注目画素の信頼度として用いるこ
とが可能である。また、例えば、注目画素のエッジ強度
を、その信頼度として用いることも可能である。さら
に、本実施例では、角度信頼度および予測誤差信頼度の
2種類の信頼度を併用するようにしたが、信頼度は、1
種類だけ用いても良いし、3種類以上用いても良い。
In the present embodiment, the angle reliability and the prediction error reliability are used as the reliability for selecting a reliable point from the points forming the chain. As for, it is possible to use other things (index value) (evaluation amount). That is, for example, it is possible to filter the periphery of the pixel of interest with a high-pass filter and use the output value as the reliability of the pixel of interest. Also, for example, the edge strength of the pixel of interest can be used as its reliability. Furthermore, in this embodiment, two types of reliability, that is, the angle reliability and the prediction error reliability are used together, but the reliability is 1
Only one kind may be used, or three or more kinds may be used.

【0171】また、本実施例では、チェーンの始点およ
び終点が、必ずしも信頼候補点とはならないようになさ
れているが、チェーンの始点および終点は、必ず信頼候
補点とするようにすることが可能である。さらに、チェ
ーンの始点または終点それぞれを、常時、第1または第
2信頼点とするようにすることも可能である。
Further, in the present embodiment, the starting point and the ending point of the chain are not necessarily the candidate points for reliability, but the starting point and the ending point of the chain can always be the candidate points for reliability. Is. Furthermore, it is also possible to always make the start point or the end point of the chain the first or second confidence point, respectively.

【0172】また、本実施例では、チェーンの、後フレ
ームへの動きパラメータを検出するようにしたが、前フ
レーム(動きパラメータを求めようとするチェーンが存
在するフレームの1フレーム前のフレーム)への動きパ
ラメータを検出するようにすることも可能である。これ
は、上述した説明において、後フレームデータを記憶さ
せるところで、後フレームデータに代えて、前フレーム
の画像データを記憶させるようにすれば良い。
Further, in the present embodiment, the motion parameter of the chain to the rear frame is detected, but to the previous frame (the frame one frame before the frame in which the chain for which the motion parameter is to be obtained exists). It is also possible to detect the motion parameter of the. This may be done by storing the image data of the previous frame instead of the subsequent frame data at the place where the subsequent frame data is stored in the above description.

【0173】さらに、本実施例では、チェーンを構成す
る点のうちの2点を選択して、そのチェーンの動きパラ
メータを算出するようにしたが、2点に限らず、例えば
1点あるいは3点以上を選択して、そのチェーンの動き
パラメータを算出するようにすることも可能である。1
点だけを選択するには、予測誤差信頼度算出回路52
に、信頼候補点から、予測誤差信頼度の最も高いものを
選択させるようにすれば良い。また、3点以上選択する
には、予測誤差信頼度算出回路52に、信頼候補点を、
その予測誤差信頼度の高い順に選択させるようにすれば
良い。このようにすることにより、信頼点計算回路41
(予測誤差信頼度算出回路52)からは、1以上の点
と、その動きベクトルが出力されることとなるが、この
場合、動きパラメータ計算回路42には、例えば、その
動きベクトルの平均値を、チェーンの平行移動量を表す
動きパラメータとして算出させるようにすることができ
る。
Further, in the present embodiment, two of the points composing the chain are selected and the motion parameter of the chain is calculated. However, the number of points is not limited to two, and for example, one or three. It is also possible to select the above and calculate the motion parameter of the chain. 1
To select only points, the prediction error reliability calculation circuit 52
Then, from among the reliability candidate points, the one with the highest prediction error reliability may be selected. In addition, in order to select three or more points, the prediction candidate reliability reliability calculation circuit 52
The prediction error reliability may be selected in descending order. By doing so, the confidence point calculation circuit 41
From the (prediction error reliability calculation circuit 52), one or more points and their motion vectors are output. In this case, the motion parameter calculation circuit 42 outputs, for example, the average value of the motion vectors. , Can be calculated as a motion parameter indicating the parallel movement amount of the chain.

【0174】[0174]

【発明の効果】以上の如く、本発明の動きパラメータ検
出装置および動きパラメータ検出方法によれば、画像の
連続点のうちの1以上の点が選択され、その1以上の点
それぞれについての動きベクトルが検出される。そし
て、その動きベクトルに基づいて、連続点の動きパラメ
ータが算出される。従って、正確な動きパラメータを、
少ない計算量で算出することが可能となる。
As described above, according to the motion parameter detecting apparatus and the motion parameter detecting method of the present invention, one or more points are selected from the continuous points of the image, and the motion vector for each of the one or more points is selected. Is detected. Then, the motion parameters of the continuous points are calculated based on the motion vector. Therefore, the accurate motion parameters are
It is possible to calculate with a small calculation amount.

【0175】本発明の画像符号化装置によれば、チェー
ンを構成する特徴点のうちの1以上の点が選択され、そ
の1以上の点それぞれについての動きベクトルが検出さ
れる。そして、その動きベクトルに基づいて、チェーン
の動きパラメータが算出される。従って、正確な動きパ
ラメータを、少ない計算量で算出することが可能とな
り、その結果、符号化処理の高速化を図ることが可能と
なる。
According to the image coding apparatus of the present invention, one or more points are selected from the characteristic points forming the chain, and the motion vector for each of the one or more points is detected. Then, the motion parameter of the chain is calculated based on the motion vector. Therefore, it is possible to calculate an accurate motion parameter with a small amount of calculation, and as a result, it is possible to speed up the encoding process.

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

【図1】本発明を適用した画像符号化装置の第1実施例
の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a first embodiment of an image encoding device to which the present invention has been applied.

【図2】図1のチェーン符号化回路12の構成例を示す
ブロック図である。
2 is a block diagram showing a configuration example of a chain encoding circuit 12 in FIG.

【図3】図2の係数フレームバッファ21の記憶内容を
説明するための図である。
FIG. 3 is a diagram for explaining storage contents of a coefficient frame buffer 21 of FIG.

【図4】図2の方向探索器23の動作を説明するフロー
チャートである。
FIG. 4 is a flowchart illustrating an operation of the direction searcher 23 of FIG.

【図5】図4のフローチャートに続くフローチャートで
ある。
FIG. 5 is a flowchart that follows the flowchart of FIG.

【図6】図2のROM30および31の記憶内容を示す
図である。
FIG. 6 is a diagram showing storage contents of ROMs 30 and 31 of FIG.

【図7】図2のアドレス発生器32が出力するアドレス
を説明するための図である。
FIG. 7 is a diagram for explaining an address output by the address generator 32 of FIG.

【図8】図2のROM33の記憶内容を示す図である。FIG. 8 is a diagram showing stored contents of a ROM 33 of FIG.

【図9】図2のROM33から出力される方向データが
表す方向を示す図である。
9 is a diagram showing a direction represented by direction data output from a ROM 33 of FIG.

【図10】図4のフローチャートに続くフローチャート
である。
10 is a flowchart following the flowchart of FIG.

【図11】図2の方向探索器23からの有効データ選択
信号、ROM33からの方向データ、およびラッチ回路
34からの前方向データの出力タイミングを示すタイミ
ングチャートである。
11 is a timing chart showing the output timing of the valid data selection signal from the direction searcher 23, the direction data from the ROM 33, and the forward direction data from the latch circuit 34 in FIG.

【図12】図2の方向変化信号発生器35から出力され
る方向変化データを説明するための図である。
12 is a diagram for explaining direction change data output from the direction change signal generator 35 of FIG.

【図13】図2の方向変化信号発生器35が記憶してい
る前方向データおよび方向データと、方向変化データと
の対応表を示す図である。
13 is a diagram showing a correspondence table of forward direction data and direction data stored in a direction change signal generator 35 of FIG. 2 and direction change data.

【図14】図2の方向変化信号発生器35が記憶してい
る前方向データおよび方向データと、方向変化データと
の対応表を示す図である。
14 is a diagram showing a correspondence table of forward direction data and direction data stored in the direction change signal generator 35 of FIG. 2 and direction change data.

【図15】図2の方向変化信号発生器35が出力する方
向変化データに割り当てられている符号語を示す図であ
る。
15 is a diagram showing code words assigned to the direction change data output from the direction change signal generator 35 of FIG.

【図16】図2のセレクタ36から出力されるデータを
説明するための図である。
16 is a diagram for explaining the data output from the selector 36 of FIG.

【図17】図1のチェーン置換回路15の構成例を示す
ブロック図である。
17 is a block diagram showing a configuration example of a chain replacement circuit 15 of FIG.

【図18】図17のRAM123nの記憶内容を示す図
である。
18 is a diagram showing stored contents of a RAM 123 n shown in FIG.

【図19】図17の置換回路124の動作を説明するフ
ローチャートである。
FIG. 19 is a flowchart illustrating the operation of the replacement circuit 124 of FIG.

【図20】図19のステップS124の処理を説明する
ための図である。
FIG. 20 is a diagram for explaining the process of step S124 of FIG.

【図21】図1のセレクト多重化回路16より出力され
る多重化チェーン符号化データを説明するための図であ
る。
21 is a diagram for explaining multiplexed chain encoded data output from the select multiplex circuit 16 of FIG. 1. FIG.

【図22】本発明を適用した画像符号化装置の第2実施
例の構成を示すブロック図である。
FIG. 22 is a block diagram showing a configuration of a second embodiment of an image encoding device to which the present invention has been applied.

【図23】図22のチェーン置換回路215の構成例を
示すブロック図である。
23 is a block diagram showing a configuration example of a chain replacement circuit 215 of FIG.

【図24】図23の置換回路132の動作を説明するフ
ローチャートである。
FIG. 24 is a flowchart illustrating an operation of the replacement circuit 132 of FIG. 23.

【図25】図24のステップS132の処理の詳細を説
明するフローチャートである。
FIG. 25 is a flowchart illustrating details of the process of step S132 of FIG. 24.

【図26】図22のセレクト多重化回路216より出力
される多重化チェーン符号化データを説明するための図
である。
FIG. 26 is a diagram for explaining multiplexed chain encoded data output from the select multiplex circuit 216 of FIG. 22.

【図27】図1(図22)の画像符号化装置より出力さ
れた多重化チェーン符号化データを復号して得られる復
号画像を説明するための図である。
27 is a diagram for explaining a decoded image obtained by decoding the multiplexed chain encoded data output from the image encoding device in FIG. 1 (FIG. 22).

【図28】図1(図22)の画像符号化装置より出力さ
れた多重化チェーン符号化データを復号して得られる復
号画像を説明するための図である。
28 is a diagram for describing a decoded image obtained by decoding the multiplexed chain encoded data output from the image encoding device in FIG. 1 (FIG. 22).

【図29】図17(図23)の動きパラメータ算出回路
125の構成例を示すブロック図である。
29 is a block diagram showing a configuration example of the motion parameter calculation circuit 125 of FIG. 17 (FIG. 23).

【図30】図29の信頼点計算回路41の構成例を示す
ブロック図である。
30 is a block diagram showing a configuration example of a confidence point calculation circuit 41 in FIG.

【図31】図30の形状信頼度算出回路51の動作を説
明するフローチャートである。
FIG. 31 is a flowchart illustrating an operation of the shape reliability calculation circuit 51 of FIG. 30.

【図32】図31のステップS33の処理を説明するた
めの図である。
32 is a diagram for explaining the process of step S33 in FIG. 31. FIG.

【図33】図31のステップS34の処理を説明するた
めの図である。
FIG. 33 is a diagram for explaining the process of step S34 of FIG.

【図34】図30の予測誤差信頼度算出回路52の動作
を説明するフローチャートである。
FIG. 34 is a flowchart illustrating an operation of the prediction error reliability calculation circuit 52 of FIG. 30.

【図35】図17(図23)の動きパラメータ算出回路
125によって算出される動きパラメータを説明するた
めの図である。
FIG. 35 is a diagram for explaining motion parameters calculated by the motion parameter calculation circuit 125 of FIG. 17 (FIG. 23).

【図36】図17(図23)の動きパラメータ算出回路
125によって算出される動きパラメータを説明するた
めの図である。
36 is a diagram for explaining motion parameters calculated by the motion parameter calculation circuit 125 of FIG. 17 (FIG. 23).

【図37】従来の画像符号化装置の一例の構成を示すブ
ロック図である。
[Fig. 37] Fig. 37 is a block diagram illustrating a configuration of an example of a conventional image encoding device.

【図38】従来の動きパラメータ検出装置の一例の構成
を示すブロック図である。
FIG. 38 is a block diagram showing a configuration of an example of a conventional motion parameter detection device.

【図39】アフィンパラメータによる座標の変換式(Mo
tion Vector Transform Equation)の一般的な表現形式
を示す図である。
FIG. 39 is a coordinate conversion formula (Mo
It is a figure which shows the general expression format of (tion Vector Transform Equation).

【図40】図38の動きパラメータ検出装置によって求
められる動きパラメータを説明するための図である。
FIG. 40 is a diagram for explaining motion parameters obtained by the motion parameter detection device of FIG. 38.

【図41】図38の動きパラメータ検出装置によって求
められる動きパラメータを説明するための図である。
41 is a diagram for explaining motion parameters obtained by the motion parameter detection device of FIG. 38. FIG.

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

10 2次元変化点検出回路 11 量子化器 12 チェーン符号化回路 15 チェーン置換回路 16 セレクト多重化回路 41 信頼点計算回路 42 動きパラメータ計算回路 51 形状信頼度算出回路 52 予測誤差信頼度算出回路 53 読み出し回路 54 現フレームバッファ 55 後フレームバッファ 121 チェーンマップ回路 124 置換回路 125 動きベクトル算出回路 1311乃至131N-1 新規チェーン符号化回路 132 置換回路 1331乃至133N-1 チェーン復号化回路 215 チェーン置換回路 216 セレクト多重化回路10 Two-dimensional change point detection circuit 11 Quantizer 12 Chain coding circuit 15 Chain replacement circuit 16 Select multiplexing circuit 41 Confidence point calculation circuit 42 Motion parameter calculation circuit 51 Shape reliability calculation circuit 52 Prediction error reliability calculation circuit 53 Read Circuit 54 Current frame buffer 55 Rear frame buffer 121 Chain map circuit 124 Replacement circuit 125 Motion vector calculation circuit 131 1 to 131 N-1 New chain coding circuit 132 Replacement circuit 133 1 to 133 N-1 Chain decoding circuit 215 Chain replacement Circuit 216 select multiplex circuit

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 画像中の連続点の動きを表すパラメータ
である動きパラメータを検出する動きパラメータ検出装
置であって、 前記連続点のうちの1以上の点を選択する選択手段と、 前記選択手段により選択された前記1以上の点それぞれ
についての動きベクトルを検出する動きベクトル検出手
段と、 前記動きベクトル検出手段により検出された前記動きベ
クトルに基づいて、前記連続点の動きパラメータを算出
する動きパラメータ算出手段とを備えることを特徴とす
る動きパラメータ検出装置。
1. A motion parameter detection device for detecting a motion parameter, which is a parameter representing the motion of continuous points in an image, comprising: selecting means for selecting at least one of the continuous points; and selecting means. Motion vector detecting means for detecting a motion vector for each of the one or more points selected by: and a motion parameter for calculating a motion parameter of the continuous point based on the motion vector detected by the motion vector detecting means. A motion parameter detecting device comprising: a calculating unit.
【請求項2】 前記選択手段は、前記連続点のうちの2
点を選択し、 前記動きパラメータ算出手段は、前記2点それぞれにつ
いての動きベクトルに基づいて、前記連続点の平行移動
量、拡大縮小率、または回転量を表す前記動きパラメー
タを算出することを特徴とする請求項1に記載の動きパ
ラメータ検出装置。
2. The selecting means is configured to select two of the continuous points.
A point is selected, and the motion parameter calculation means calculates the motion parameter indicating the parallel movement amount, the enlargement / reduction ratio, or the rotation amount of the continuous point based on the motion vector for each of the two points. The motion parameter detection device according to claim 1.
【請求項3】 前記選択手段は、前記連続点それぞれの
信頼性を表す信頼度を算出し、その信頼度に基づいて、
前記2点を選択することを特徴とする請求項2に記載の
動きパラメータ検出装置。
3. The selecting means calculates a reliability representing reliability of each of the continuous points, and based on the reliability,
The motion parameter detection device according to claim 2, wherein the two points are selected.
【請求項4】 前記選択手段は、前記連続点それぞれの
前記信頼度を、その点を中心とする所定の範囲のブロッ
クを用いてブロックマッチングを行い、そのときに得ら
れる予測誤差に基づいて算出することを特徴とする請求
項3に記載の動きパラメータ検出装置。
4. The selecting means calculates the reliability of each of the continuous points based on a prediction error obtained by performing block matching using blocks in a predetermined range centered on the continuous point. The motion parameter detection device according to claim 3, wherein
【請求項5】 前記選択手段は、前記連続点それぞれの
前記信頼度を、その点を頂点として、前記連続点がつく
る角度に基づいて算出することを特徴とする請求項3に
記載の動きパラメータ検出装置。
5. The motion parameter according to claim 3, wherein the selecting unit calculates the reliability of each of the continuous points based on an angle formed by the continuous points with the point as an apex. Detection device.
【請求項6】 前記選択手段は、前記連続点のうち、所
定の条件を満たすものであって、前記信頼度の最も高い
点と、その次に高い点を選択することを特徴とする請求
項3に記載の動きパラメータ検出装置。
6. The selecting means selects one of the continuous points that satisfies a predetermined condition and has the highest reliability and the next highest point. 3. The motion parameter detection device according to item 3.
【請求項7】 前記選択手段は、前記連続点の中に、前
記所定の条件を満たすものが2点以上存在しないとき、
前記連続点の始点および終点を選択することを特徴とす
る請求項3に記載の動きパラメータ検出装置。
7. The selecting means, when two or more points satisfying the predetermined condition do not exist among the continuous points,
The motion parameter detection device according to claim 3, wherein a start point and an end point of the continuous points are selected.
【請求項8】 前記選択手段は、前記連続点のうち、そ
の始点および終点を選択することを特徴とする請求項2
に記載の動きパラメータ検出装置。
8. The selection means selects a start point and an end point of the continuous points.
The motion parameter detection device described in 1.
【請求項9】 前記動きパラメータ算出手段は、前記動
きベクトル検出手段により検出された動きベクトルの平
均値を、前記連続点の平行移動量を表す前記動きパラメ
ータとして算出することを特徴とする請求項1に記載の
動きパラメータ検出装置。
9. The motion parameter calculating means calculates an average value of the motion vectors detected by the motion vector detecting means as the motion parameter representing the parallel movement amount of the continuous points. 1. The motion parameter detection device according to 1.
【請求項10】 前記選択手段は、前記連続点それぞれ
の信頼性を表す信頼度を算出し、その信頼度に基づい
て、前記連続点のうちの前記1以上の点を選択すること
を特徴とする請求項9に記載の動きパラメータ検出装
置。
10. The selecting means calculates a reliability representing the reliability of each of the continuous points, and selects one or more of the continuous points based on the reliability. The motion parameter detection device according to claim 9.
【請求項11】 画像中の連続点の動きを表すパラメー
タである動きパラメータを検出する動きパラメータ検出
方法であって、 前記連続点のうちの1以上の点を選択し、 前記1以上の点それぞれについての動きベクトルを検出
し、 前記動きベクトルに基づいて、前記連続点の動きパラメ
ータを算出することを特徴とする動きパラメータ検出方
法。
11. A motion parameter detection method for detecting a motion parameter, which is a parameter representing a motion of continuous points in an image, wherein one or more points among the continuous points are selected, and each of the one or more points is selected. Is detected, and the motion parameter of the continuous point is calculated based on the motion vector.
【請求項12】 動画像の特徴点に関する情報を符号化
し、符号化データを出力する特徴点符号化手段と、 前記特徴点を結ぶチェーンの動きを表すパラメータであ
る動きパラメータを検出する動きパラメータ検出手段
と、 前記特徴点符号化手段より出力された符号化データと、
前記動きパラメータ検出手段により検出された前記動き
パラメータとを多重化する多重化手段とを有する画像符
号化装置であって、 前記動きパラメータ検出手段は、 前記チェーンを構成する前記特徴点のうちの1以上の点
を選択する選択手段と、 前記選択手段により選択された前記1以上の点それぞれ
についての動きベクトルを検出する動きベクトル検出手
段と、 前記動きベクトル検出手段により検出された動きベクト
ルに基づいて、前記チェーンの動きパラメータを算出す
る動きパラメータ算出手段とを備えることを特徴とする
画像符号化装置。
12. A feature point coding unit that encodes information about a feature point of a moving image and outputs coded data, and a motion parameter detection that detects a motion parameter that is a parameter representing a motion of a chain connecting the feature points. Means, encoded data output from the feature point encoding means,
An image coding apparatus comprising: a multiplexing unit that multiplexes the motion parameter detected by the motion parameter detecting unit, wherein the motion parameter detecting unit is one of the feature points forming the chain. Based on the selection means for selecting the above points, the motion vector detection means for detecting the motion vector for each of the one or more points selected by the selection means, and the motion vector detected by the motion vector detection means And a motion parameter calculation unit that calculates a motion parameter of the chain.
JP18242695A 1995-07-17 1995-07-19 Motion parameter detector, motion parameter detection method and image coder Pending JPH0937255A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP18242695A JPH0937255A (en) 1995-07-19 1995-07-19 Motion parameter detector, motion parameter detection method and image coder
US08/680,489 US5923786A (en) 1995-07-17 1996-07-15 Method and device for encoding and decoding moving images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18242695A JPH0937255A (en) 1995-07-19 1995-07-19 Motion parameter detector, motion parameter detection method and image coder

Publications (1)

Publication Number Publication Date
JPH0937255A true JPH0937255A (en) 1997-02-07

Family

ID=16118077

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18242695A Pending JPH0937255A (en) 1995-07-17 1995-07-19 Motion parameter detector, motion parameter detection method and image coder

Country Status (1)

Country Link
JP (1) JPH0937255A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7773828B2 (en) 2005-01-13 2010-08-10 Olympus Imaging Corp. Method and device for stabilizing an image by applying an affine transform based on a weighted average of motion vectors
WO2010100677A1 (en) * 2009-03-05 2010-09-10 富士通株式会社 Image processing device and shake amount calculation method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7773828B2 (en) 2005-01-13 2010-08-10 Olympus Imaging Corp. Method and device for stabilizing an image by applying an affine transform based on a weighted average of motion vectors
WO2010100677A1 (en) * 2009-03-05 2010-09-10 富士通株式会社 Image processing device and shake amount calculation method
JPWO2010100677A1 (en) * 2009-03-05 2012-09-06 富士通株式会社 Image processing apparatus and blur amount calculation method

Similar Documents

Publication Publication Date Title
US7643690B2 (en) Image decoding and encoding apparatus, method and computer readable storage medium
JP4444252B2 (en) Method and apparatus for wide area-local block motion estimation
JP3590996B2 (en) Hierarchical encoding and decoding apparatus for digital image signal
US6128047A (en) Motion estimation process and system using sparse search block-matching and integral projection
US6130912A (en) Hierarchical motion estimation process and system using block-matching and integral projection
US6148028A (en) Video coding apparatus and method which codes information indicating whether an intraframe or interframe predictive coding mode is used
US5686973A (en) Method for detecting motion vectors for use in a segmentation-based coding system
US6195389B1 (en) Motion estimation system and methods
JP4224748B2 (en) Image encoding apparatus, image encoding method, image decoding apparatus, image decoding method, recording medium, and image processing apparatus
US6327391B1 (en) Protecting image quality from occurrence of uncorrectable errors
US6744817B2 (en) Motion predictive arbitrary visual object encoding and decoding system
EP1379000A1 (en) Signal encoding method and apparatus and decoding method and apparatus
US20050265443A1 (en) Coding apparatus and method, decoding apparatus and method, data processing system, storage medium, and signal
JP5313326B2 (en) Image decoding apparatus, method and program, and image encoding apparatus, method and program
US5436666A (en) Limited-domain motion estimation/compensation for video encoding/decoding
JPH09233477A (en) Motion vector generating method
US5923786A (en) Method and device for encoding and decoding moving images
JP3120664B2 (en) Image encoding device, image decoding device
US6081553A (en) Block-matching motion estimation technique for video compression of noisy source signals
JP3175914B2 (en) Image encoding method and image encoding device
JPH0937255A (en) Motion parameter detector, motion parameter detection method and image coder
JP3063380B2 (en) High efficiency coding device
JP2861971B2 (en) Motion vector prediction device
JP3470326B2 (en) Image coding method
JPH0937264A (en) Image coder, image coding method, image decoder, image decoding method and recording medium

Legal Events

Date Code Title Description
A02 Decision of refusal

Effective date: 20040330

Free format text: JAPANESE INTERMEDIATE CODE: A02