JP2000115785A - Coder - Google Patents

Coder

Info

Publication number
JP2000115785A
JP2000115785A JP28771998A JP28771998A JP2000115785A JP 2000115785 A JP2000115785 A JP 2000115785A JP 28771998 A JP28771998 A JP 28771998A JP 28771998 A JP28771998 A JP 28771998A JP 2000115785 A JP2000115785 A JP 2000115785A
Authority
JP
Japan
Prior art keywords
search area
information
motion vector
motion
scale parameter
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
JP28771998A
Other languages
Japanese (ja)
Inventor
Masayuki Taniyama
昌之 谷山
Akihiro Watabe
彰啓 渡部
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP28771998A priority Critical patent/JP2000115785A/en
Publication of JP2000115785A publication Critical patent/JP2000115785A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide the coder that makes a task efficient so as to reduce a data quantity by providing a proper scale parameter to a coding means to attain the task of necessity of zero filling against a low efficiency in the case that the number of bits is less than the number of assigned bits due to a setting value of the scale parameter when a motion vector is coded. SOLUTION: A coding information detection means 303 decides a scale parameter 314 based on information 312 in a state of being photographed by a photographing means 302 and information 311 detected by a photographing information detection means 301 and a coding means 305 encodes a motion vector by using the parameter. A coding information decision means may decide the scale parameter based on the motion vector data by means of the coding means.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、カメラ一体型VT
R や監視カメラなどにおけるシステムにおいて、発生符
号量を少なくすることにより、より好適な録画時間を確
保するための符号化装置に関するものである。
The present invention relates to a camera-integrated VT
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an encoding apparatus for securing a more suitable recording time by reducing the amount of generated codes in a system such as an R camera or a monitoring camera.

【0002】[0002]

【従来の技術】画像信号はデータ量が膨大であるため
に、記録したり、伝送したりするのが不都合であるの
で、さまざまな圧縮技術を用いてデータを圧縮し、記
録、伝送を行なっている。これらの圧縮技術の中で、現
フレームと前フレームの画像の構成要素の位置の関係を
表す要素として、動きベクトルがある。
2. Description of the Related Art Since an image signal has an enormous amount of data, it is inconvenient to record and transmit the image signal. Therefore, data is compressed using various compression techniques, and recording and transmission are performed. I have. Among these compression techniques, there is a motion vector as an element representing the relationship between the positions of the components of the image of the current frame and the image of the previous frame.

【0003】動きベクトルは、図5に示すように、現フ
レーム101の構成要素(MPEGではマクロブロック
という)102の画素の平均値と、対象となるフレーム
103における、探索領域(範囲)104内を順次移動
してマクロブロック内の画素の平均値の差分値を求め、
この差分値が最小となる位置を検出することで動きベク
トルを求めている。この動きベクトルを効率良く検出す
るための技術として、特開平8-140087号公報などがあ
る。
As shown in FIG. 5, a motion vector is obtained by calculating the average value of the pixels of a component 102 (referred to as a macroblock in MPEG) 102 of a current frame 101 and a search area (range) 104 in a target frame 103. Move sequentially to find the difference value of the average value of the pixels in the macroblock,
The motion vector is obtained by detecting the position where the difference value is minimum. Japanese Patent Laid-Open No. 8-140087 discloses a technique for efficiently detecting the motion vector.

【0004】上記手法で求めた動きベクトルを符号化す
る場合、画像は隣接しているマクロブロックでは、動き
ベクトルは類似しているはずであることを利用して、現
在のマクロブロックの1つ前のマクロブロックの動きベ
クトルとの差分を符号化するようにしている。この差分
値(delta) は、基本ベクトル成分(motion code) 、スケ
ールパラメータ(f) 及び残差ベクトル成分(motion resi
dual) を用い、数式(1)を用いて delta = Sign(motion code)×〔{Abs(motion code - 1)×f } + motion residual + 1 〕 …(1) で表される。ここで、スケールパラメータf は、ピクチ
ャごとに設定することが許されており、通常、動きベク
トルの探索範囲に合わせて、あらかじめ設定されてい
る。つまり探索範囲を固定する場合には、常に一定の値
を設定する。
[0004] When coding a motion vector obtained by the above-mentioned method, an image is immediately preceding a current macroblock by using the fact that the motion vector should be similar in an adjacent macroblock. Is encoded with the difference from the motion vector of the macroblock. The difference value (delta) is calculated based on the basic vector component (motion code), the scale parameter (f), and the residual vector component (motion resi
dual), and using Expression (1), delta = Sign (motion code) × [{Abs (motion code−1) × f} + motion residual + 1] (1) Here, the scale parameter f is allowed to be set for each picture, and is usually set in advance in accordance with the motion vector search range. That is, when the search range is fixed, a constant value is always set.

【0005】図6は動きベクトルを符号化するための処
理の流れを示している。図6において、212は、現在
のマクロブロックに対する動きベクトルと1つ前のマク
ロブロックに対する動きベクトルの差分値delta の絶対
値である。この212の値で、数式(1)を満たし、か
つ、最大となるmotion code を算出する。213は、mo
tion code の最大値であり、214は、motion residua
l である。次に、201は動きベクトルを符号化するた
めの可変長符号化テーブルであり、MPEG2 では、ISO138
18-2 Annex B TableB-10に相当する。動きベクトル差分
値delta の符号化ビット211とmotion code 213よ
り、可変長符号化テーブル201を用いて、可変長符号
215を得る。この値は、MPEG2 では、1〜11ビット
の値である。一方、motion residual 214は、f−1
ビットのデータとして、剰余ビットとしてそのまま出力
される。例えば、MPEG2 の場合に、スケールパラメータ
f=6とし、delta =33のときには、符号ビット21
1は正(0)、motion code =6、motion residual =
2となる。このとき、可変長符号データ202は、符号
ビットも考慮して、00001000となり、剰余ビッ
ト203は、00010となる。
FIG. 6 shows a flow of processing for encoding a motion vector. In FIG. 6, reference numeral 212 denotes the absolute value of the difference value delta between the motion vector for the current macroblock and the motion vector for the immediately preceding macroblock. The motion code that satisfies Expression (1) and is the maximum is calculated with the value of 212. 213 is mo
is the maximum value of the action code, and 214 is the motion residua
l. Next, reference numeral 201 denotes a variable length encoding table for encoding a motion vector.
18-2 Annex B Corresponds to Table B-10. The variable length code 215 is obtained from the coded bits 211 of the motion vector difference value delta and the motion code 213 using the variable length coding table 201. This value is a value of 1 to 11 bits in MPEG2. On the other hand, motion residual 214 is f-1
It is output as bit data as it is as a remainder bit. For example, in the case of MPEG2, the scale parameter f = 6, and when delta = 33, the sign bit 21
1 is positive (0), motion code = 6, motion residual =
It becomes 2. At this time, the variable-length code data 202 becomes 00001000 in consideration of the code bits, and the remainder bit 203 becomes 00010.

【0006】これらの符号化は、マクロブロック単位、
さらに前方、後方に対してそれぞれ、さらには水平垂直
方向のそれぞれに対して行なわれるため、1マクロブロ
ックあたり最大8個の動きベクトルが必要になる。これ
がMPEGのMP@MLの場合であれば、1ピクチゃあ
たり10800個の動きベクトルが必要になる。
[0006] These encodings are performed on a macroblock basis,
Further, since the processing is performed in the forward and backward directions and further in the horizontal and vertical directions, a maximum of eight motion vectors are required for one macroblock. If this is the case of MPEG MP {ML, 10800 motion vectors are required per picture.

【0007】[0007]

【発明が解決しようとする課題】ところで、上述した動
きベクトルを符号化する方法であれば、スケールファク
タは探索範囲に依存して決定されるため、どのような動
きベクトルに対してもmotion residual にf-1 ビットの
符号を割り当てることになる。つまり、動きの小さな画
像に対してまで、f-1 ビットの符号を割り当てることに
なる(余ったビットはゼロ埋めされる)ため、無意味な
符号を生成していることになる。
By the way, according to the above-described method of encoding a motion vector, the scale factor is determined depending on the search range. f-1 bits of code will be assigned. In other words, a code of f-1 bits is assigned to an image with a small motion (excess bits are padded with zeros), so that a meaningless code is generated.

【0008】一方、画像データは、データ量が膨大であ
り、記録、伝送するには多少でもデータ量を削減したい
というのがユーザーから要望されている。
On the other hand, image data has a huge data amount, and users have requested that the data amount be reduced to some extent for recording and transmission.

【0009】そこで、本発明は、このような構成におい
て、符号化効率をあげ、データ量を削減することができ
る符号化装置を提供することを目的とする。
Accordingly, an object of the present invention is to provide an encoding device capable of increasing the encoding efficiency and reducing the data amount in such a configuration.

【0010】[0010]

【課題を解決するための手段】請求項1記載の符号化装
置は、撮影手段から撮影した画像を元に、現画像フレー
ム中の注目画像領域に対応して、前フレーム中に探索領
域を設定し、その探索領域内を順次移動させることによ
り、注目画像領域の画像データと探索領域の画像データ
の差分絶対値をとり、この差分絶対値の最小値が得られ
た探索領域から動きベクトルを求め、探索領域に隣接す
る他の探索領域から同様にして得られる動きベクトルと
の差分値を、スケールパラメータを用いて基本ベクトル
成分と残差ベクトル成分で表し、基本ベクトル成分と残
差成分ベクトル成分を符号化し、残差ベクトル成分のビ
ット数はスケールパラメータにより割り当てられるよう
に構成した符号化装置であって、撮影手段そのものの動
きを得るための撮影情報検出手段を有し、この撮影情報
検出手段から得られた撮影情報によりスケールパラメー
タを決定するための撮影情報判定手段を有することを特
徴とするものである。
According to a first aspect of the present invention, there is provided an encoding apparatus for setting a search area in a previous frame corresponding to a target image area in a current image frame based on an image captured by an image capturing means. Then, by sequentially moving within the search area, the absolute value of the difference between the image data of the image area of interest and the image data of the search area is obtained, and a motion vector is obtained from the search area in which the minimum value of the absolute difference is obtained. The difference value between the motion vector obtained in the same manner from another search area adjacent to the search area is represented by a basic vector component and a residual vector component using a scale parameter. An encoding apparatus configured to encode and assign the number of bits of a residual vector component by a scale parameter, and to obtain a motion of the imaging means itself. It includes an information detecting means, is characterized in that it has a shooting information determination means for determining a scale parameter by capturing information obtained from the imaging information detecting means.

【0011】請求項1記載の符号化装置によれば、動き
ベクトルを符号化する場合、スケールパラメータf は、
動きベクトルの探索範囲に合わせて決定される。つま
り、動きベクトルの範囲が変化しない限り通常変更する
ことがなく、またこのスケールパラメータは符号化を開
始する前にユーザーにより設定されるものである。そこ
で、本発明はカメラの撮影状態(カメラ、レンズの向
き、移動速度)から動きベクトルの範囲を予測し、この
情報を元に、スケールパラメータf を設定し、これを用
いて動きベクトルを符号化することにより、特に動きの
少ない場合における動きベクトルの符号化効率を向上さ
せることができる。
According to the encoding apparatus of the first aspect, when encoding a motion vector, the scale parameter f is
It is determined according to the search range of the motion vector. That is, it is not changed normally unless the range of the motion vector changes, and this scale parameter is set by the user before starting the encoding. Therefore, the present invention predicts the range of the motion vector from the shooting state of the camera (camera, lens orientation, moving speed), sets a scale parameter f based on this information, and encodes the motion vector using this. By doing so, it is possible to improve the coding efficiency of the motion vector especially when there is little motion.

【0012】このため、動きベクトルの符号化におい
て、スケールパラメータを効率良く設定することがで
き、無駄なデータを削減することができる。特に、動き
の大きな映像から動きの小さな被写体を撮影する場合に
おいて、有利な効果が得られる。
For this reason, in coding a motion vector, a scale parameter can be set efficiently, and useless data can be reduced. In particular, an advantageous effect can be obtained when a subject with a small motion is photographed from a video with a large motion.

【0013】請求項2記載の符号化装置は、請求項1に
おいて、撮影情報が、撮影手段のレンズの角度を調節す
る角度情報であるものである。
According to a second aspect of the present invention, in the first aspect, the photographing information is angle information for adjusting an angle of a lens of the photographing means.

【0014】請求項2記載の符号化装置によれば、請求
項1と同様な効果がある。
According to the coding apparatus of the second aspect, the same effect as that of the first aspect is obtained.

【0015】請求項3記載の符号化装置は、請求項1に
おいて、撮影情報が、複数フレーム分の動き情報のうち
絶対値の最大値であるものである。
According to a third aspect of the present invention, in the encoding apparatus according to the first aspect, the photographing information is a maximum absolute value of motion information for a plurality of frames.

【0016】請求項3記載の符号化装置によれば、請求
項1と同様な効果がある。
According to the encoding apparatus of the third aspect, the same effect as that of the first aspect is obtained.

【0017】請求項4記載の符号化装置は、撮影手段か
ら撮影した画像を元に、現画像フレーム中の注目画像領
域に対応して、前フレーム中に探索領域を設定し、その
探索領域内を順次移動させることにより、注目画像領域
の画像データと探索領域の画像データの差分絶対値をと
り、この差分絶対値の最小値が得られた探索領域から動
きベクトルを求め、探索領域に隣接する他の探索領域か
ら同様にして得られる動きベクトルとの差分値を、スケ
ールパラメータを用いて基本ベクトル成分と残差ベクト
ル成分で表し、基本ベクトル成分と残差成分ベクトル成
分を符号化し、残差ベクトル成分のビット数はスケール
パラメータにより割り当てられるように構成した符号化
装置であって、スケールパラメータは、以前に符号化し
た動きベクトルの絶対値を参照して決定することを特徴
とするものである。
According to a fourth aspect of the present invention, a search area is set in a previous frame corresponding to an image area of interest in a current image frame based on an image captured by an image capturing means. Are sequentially moved to obtain the absolute value of the difference between the image data of the image area of interest and the image data of the search area, obtain a motion vector from the search area in which the minimum value of the difference absolute value is obtained, and obtain a motion vector adjacent to the search area. A difference value from a motion vector similarly obtained from another search area is represented by a basic vector component and a residual vector component using a scale parameter, and the basic vector component and the residual component vector component are encoded, and the residual vector An encoding device configured such that the number of bits of the component is assigned by a scale parameter, wherein the scale parameter is a value of a previously encoded motion vector. It is characterized in that determined with reference to the relative value.

【0018】請求項4記載の符号化装置によれば、請求
項1と同様な効果がある。
According to the encoding apparatus of the fourth aspect, the same effect as that of the first aspect is obtained.

【0019】請求項5記載の符号化装置は、請求項4に
おいて、スケールパラメータが、複数フレーム分の動き
情報を検出し、動き情報のうち絶対値の最大値を用いて
決定するものである。
According to a fifth aspect of the present invention, in the encoding apparatus according to the fourth aspect, the scale parameter is obtained by detecting motion information for a plurality of frames and using the maximum absolute value of the motion information.

【0020】請求項5記載の符号化装置によれば、請求
項4と同様な効果がある。
According to the coding apparatus of the fifth aspect, the same effect as that of the fourth aspect is obtained.

【0021】[0021]

【発明の実施の形態】(実施の形態1)本発明の第1の
実施の形態の符号化装置を図1から図3により示す。図
1において、301は撮影時におけるカメラのレンズの
向きの撮影情報を検出する撮影情報検出手段である。3
02はカメラなどの被写体の映像を得るための撮影手段
であり、この中には、撮影者が設定可能なフォーカスや
ズームなどの情報も設定される。303はこれらの撮影
時に得られた情報を用いて、符号化に必要な情報を決定
するための撮影情報判定手段である符号化情報決定手
段、304は撮影手段302により得られた映像情報を
一時的に保存するためのメモリ手段、305は符号化情
報決定手段303とメモリ手段304のそれぞれから得
られたデータ314、315をもとに符号化するための
符号化手段、306は符号化手段305で符号化された
符号を記録するための記録手段である。311は撮影情
報検出手段301で得られたレンズの向きの撮影情報で
あり、312はズーム、フォーカスデータなどの撮影時
のカメラの設定状態情報である。これらの311、31
2の情報を用いて、符号化情報決定手段303で動きベ
クトルの符号化に必要なスケールパラメータを決定す
る。そのスケールパラメータの決定方法については、後
ほど述べることにする。313は、撮影した映像データ
であり、このデータが画像圧縮の対象となる。これらの
映像データは、メモリ手段304に一時的に蓄えられ、
符号化手段305に符号化される順に読み出される。3
16は符号化されたビットストリームデータである。
(Embodiment 1) An encoding apparatus according to a first embodiment of the present invention is shown in FIGS. In FIG. 1, reference numeral 301 denotes photographing information detecting means for detecting photographing information of the direction of a camera lens at the time of photographing. 3
Reference numeral 02 denotes a photographing unit for obtaining an image of a subject such as a camera, in which information such as focus and zoom that can be set by a photographer is also set. Reference numeral 303 denotes coded information determining means which is photographic information determining means for determining information necessary for coding using the information obtained at the time of shooting, and 304 temporarily stores video information obtained by the shooting means 302. 305 is a coding means for coding based on the data 314 and 315 obtained from the coding information determining means 303 and the memory means 304, respectively, and 306 is a coding means 305 It is a recording means for recording the code coded by. Reference numeral 311 denotes photographing information of the direction of the lens obtained by the photographing information detecting means 301, and reference numeral 312 denotes camera setting state information such as zoom and focus data at the time of photographing. These 311 and 31
The coding information determining means 303 determines a scale parameter necessary for coding the motion vector using the information of the second type. The method of determining the scale parameter will be described later. Reference numeral 313 denotes photographed video data, and this data is a target of image compression. These video data are temporarily stored in the memory means 304,
They are read out in the order in which they are encoded by the encoding means 305. 3
Reference numeral 16 denotes encoded bit stream data.

【0022】図2は、撮影情報検出手段301及び撮影
手段302の構成例を示した図である。401は光学系
であり、垂直制御信号422、水平制御信号424によ
り垂直、水平方向の撮影方向(レンズの向き)の角度の
制御を行なう。402は光学系401で得られた光の信
号420を電気信号に変換する光電変換部であり、CC
Dなどの光電素子である。403は光電変換部402で
得られた電気信号421をデジタル信号411に変換処
理を行なう信号処理部である。撮影手段302の垂直方
向の動き情報を検出する垂直方向動き検出センサ405
により垂直方向撮影手段動き信号423を検出し、垂直
方向レンズ制御部404に入力される。垂直方向レンズ
制御部404で垂直方向のレンズを制御する制御信号4
22により、光学系401を制御する。同様に、撮影手
段302の水平方向の動き情報を検出する水平方向動き
検出センサ407により水平方向撮影手段動き信号42
5を検出し、水平方向レンズ制御部406に入力され
る。水平方向レンズ制御部406で水平方向のレンズを
制御する制御信号424により、光学系401を制御す
る。
FIG. 2 is a diagram showing a configuration example of the photographing information detecting means 301 and the photographing means 302. Reference numeral 401 denotes an optical system which controls the angles of the vertical and horizontal photographing directions (lens directions) in accordance with a vertical control signal 422 and a horizontal control signal 424. Reference numeral 402 denotes a photoelectric conversion unit which converts a light signal 420 obtained by the optical system 401 into an electric signal.
D and the like. A signal processing unit 403 converts the electric signal 421 obtained by the photoelectric conversion unit 402 into a digital signal 411. A vertical motion detection sensor 405 for detecting vertical motion information of the photographing means 302
To detect the vertical direction photographing means movement signal 423, and input to the vertical direction lens control unit 404. A control signal 4 for controlling the vertical lens by the vertical lens controller 404
22 controls the optical system 401. Similarly, a horizontal direction motion detecting sensor 407 for detecting horizontal direction motion information of the image capturing unit 302 causes a horizontal direction photographing unit motion signal 42 to be detected.
5 is input to the horizontal lens control unit 406. The optical system 401 is controlled by the control signal 424 for controlling the horizontal lens by the horizontal lens control unit 406.

【0023】ここで、角度情報となる、垂直方向撮影手
段動き信号423及び水平方向撮影手段動き信号425
は、垂直、水平方向動き情報出力端子409、410よ
り符号化情報決定手段303にも出力される。
Here, the vertical direction photographing means movement signal 423 and the horizontal direction photographing means movement signal 425 which become angle information.
Is also output from the vertical and horizontal motion information output terminals 409 and 410 to the encoded information determining means 303.

【0024】図3は、符号化情報決定手段303の構成
図であり、撮影手段302および撮影情報検出手段30
1から複数フレーム分の動き情報を入力し、動き情報の
うち絶対値の最大値を用いて、スケールパラメータを決
定する。すなわち、撮影情報検出手段301の出力端子
409、410のそれぞれが、垂直、水平方向それぞれ
の動き情報入力端子511、512に垂直、水平方向の
撮影手段動き情報を入力し、これらの動き情報のうち絶
対値の最大値を選択する回路が動き情報最大値検出部5
01である。動き情報最大値検出部501では、1フレ
ーム以上の間隔をおいて、リセット信号515によっ
て、絶対値の最大値がリセットされる構成になってい
る。動き情報最大値検出部501で検出された最大値動
き情報513から、スケールパラメータ決定部502に
おいて、drを焦点距離とし、θは水平、垂直方向にお
ける角度、撮影した物体を画面上に表示するための比率
をαとすると、これらのパラメータより数式(2)を用
いて画面上の物体の移動距離dsを算出し(514)、
これをスケールパラメータの値に反映させる。
FIG. 3 is a block diagram of the encoding information determining means 303, and includes the photographing means 302 and the photographing information detecting means 30.
Motion information for one to a plurality of frames is input, and a scale parameter is determined using the maximum absolute value of the motion information. That is, each of the output terminals 409 and 410 of the photographing information detecting means 301 inputs vertical and horizontal photographing means motion information to vertical and horizontal motion information input terminals 511 and 512, respectively. The circuit for selecting the maximum value of the absolute value is the motion information maximum value detection unit 5
01. The motion information maximum value detection unit 501 is configured to reset the maximum value of the absolute value by the reset signal 515 at intervals of one frame or more. From the maximum value motion information 513 detected by the motion information maximum value detection unit 501, in the scale parameter determination unit 502, dr is the focal length, θ is the angle in the horizontal and vertical directions, and θ is the angle for displaying the photographed object on the screen. Assuming that the ratio is α, the moving distance ds of the object on the screen is calculated from these parameters using Expression (2) (514),
This is reflected in the value of the scale parameter.

【0025】 ds = dr×tan θ×α …(2) このdsの絶対値の有効ビット幅分を初期のスケールパ
ラメータに加算し、スケールパラメータを決定する。
Ds = dr × tan θ × α (2) The scale parameter is determined by adding the effective bit width of the absolute value of ds to the initial scale parameter.

【0026】なお、第1の実施の形態では、移動距離d
sの絶対値の有効ビット幅にしたがってスケールパラメ
ータを設定したが、ある一定の値を閾値として、それを
超えた場合に現状のスケールパラメータに1を加えて、
スケールパラメータとするなどの設定方法も可能であ
る。
In the first embodiment, the moving distance d
Although the scale parameter is set according to the effective bit width of the absolute value of s, a certain value is set as a threshold, and when it exceeds the threshold, 1 is added to the current scale parameter,
A setting method such as a scale parameter is also possible.

【0027】なお、この符号化情報決定手段303は、
マイコンなどのプロセッサで処理することも可能であ
る。
Note that the encoded information determining means 303
Processing by a processor such as a microcomputer is also possible.

【0028】(実施の形態2)本発明の第2の実施の形
態の符号化装置を図4により、説明する。
(Embodiment 2) An encoding apparatus according to a second embodiment of the present invention will be described with reference to FIG.

【0029】図4において、601は被写体を撮影する
ための撮影手段であり、撮影手段601で得られた映像
データ611を一時的にメモリ手段603に蓄え、符号
化手段604に符号化を行なう順に読み込まれる(61
2)。ここで、符号化手段604では、動きベクトルを
符号化する処理も行なうが、このときに検出される動き
ベクトルのうち、符号として符号化される動きベクトル
データ613を符号化するとともに符号化情報決定手段
602にも出力し、動きベクトルデータ613をもとに
符号化情報決定手段602は、スケールパラメータ61
4を決定する。このスケールパラメータの設定は、ピク
チャ単位を最短の期間とし、ピクチャのグループ(MP
EGではGOPなどに相当する)などで設定することが
可能である。
In FIG. 4, reference numeral 601 denotes a photographing means for photographing a subject, in which video data 611 obtained by the photographing means 601 is temporarily stored in a memory means 603, and is sequentially encoded by an encoding means 604. Is read (61
2). Here, the encoding unit 604 also performs a process of encoding a motion vector. Of the motion vectors detected at this time, the encoding unit 604 encodes motion vector data 613 encoded as a code, and determines encoding information. The coding information determination unit 602 also outputs to the scale parameter 61 based on the motion vector data 613.
4 is determined. The setting of the scale parameter is such that the picture unit is set to the shortest period and the group of pictures (MP
In the case of EG, this can be set as a GOP).

【0030】符号化情報決定手段602は、符号化手段
604から得られる動きベクトルデータ613のうち最
大となる動きベクトルを検出し、その結果から、動きベ
クトルのビット数から、表1に基づいてスケールパラメ
ータを設定する。
The coding information determining means 602 detects the maximum motion vector from the motion vector data 613 obtained from the coding means 604, and, based on the result, calculates the scale number based on the number of bits of the motion vector based on Table 1. Set parameters.

【0031】[0031]

【表1】 なお、符号化情報決定手段602については、第1の実
施の形態と同様に、マイコンなどのプロセッサで処理す
ることも可能である。
[Table 1] Note that the encoded information determining means 602 can be processed by a processor such as a microcomputer as in the first embodiment.

【0032】[0032]

【発明の効果】請求項1記載の符号化装置によれば、動
きベクトルを符号化する場合、スケールパラメータf
は、動きベクトルの探索範囲に合わせて決定される。つ
まり、動きベクトルの範囲が変化しない限り通常変更す
ることがなく、またこのスケールパラメータは符号化を
開始する前にユーザーにより設定されるものである。そ
こで、本発明はカメラの撮影状態(カメラ、レンズの向
き、移動速度)から動きベクトルの範囲を予測し、この
情報を元に、スケールパラメータf を設定し、これを用
いて動きベクトルを符号化することにより、特に動きの
少ない場合における動きベクトルの符号化効率を向上さ
せることができる。
According to the encoding apparatus of the first aspect, when encoding a motion vector, the scale parameter f
Is determined according to the search range of the motion vector. That is, it is not changed normally unless the range of the motion vector changes, and this scale parameter is set by the user before starting the encoding. Therefore, the present invention predicts the range of the motion vector from the shooting state of the camera (camera, lens orientation, moving speed), sets a scale parameter f based on this information, and encodes the motion vector using this. By doing so, it is possible to improve the coding efficiency of the motion vector especially when there is little motion.

【0033】このため、動きベクトルの符号化におい
て、スケールパラメータを効率良く設定することがで
き、無駄なデータを削減することができる。特に、動き
の大きな映像から動きの小さな被写体を撮影する場合に
おいて、有利な効果が得られる。
For this reason, in encoding a motion vector, a scale parameter can be set efficiently, and useless data can be reduced. In particular, an advantageous effect can be obtained when a subject with a small motion is photographed from a video with a large motion.

【0034】請求項2記載の符号化装置によれば、請求
項1と同様な効果がある。
According to the encoding device of the second aspect, the same effect as that of the first aspect is obtained.

【0035】請求項3記載の符号化装置によれば、請求
項1と同様な効果がある。
According to the encoding device of the third aspect, the same effect as that of the first aspect is obtained.

【0036】請求項4記載の符号化装置によれば、請求
項1と同様な効果がある。
According to the encoding device of the fourth aspect, the same effect as that of the first aspect is obtained.

【0037】請求項5記載の符号化装置によれば、請求
項4と同様な効果がある。
According to the coding apparatus of the fifth aspect, the same effect as that of the fourth aspect is obtained.

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

【図1】この発明の第1の実施の形態のブロック構成図
である。
FIG. 1 is a block diagram of a first embodiment of the present invention.

【図2】この発明の撮影情報検出手段および撮影手段の
ブロック構成図である。
FIG. 2 is a block diagram of a photographing information detecting means and a photographing means of the present invention.

【図3】符号化情報決定手段のブロック構成図である。FIG. 3 is a block diagram of an encoding information determining unit.

【図4】この発明の第2の実施の形態のブロック構成図
である。
FIG. 4 is a block diagram of a second embodiment of the present invention.

【図5】動きベクトル検出方法の概略説明図である。FIG. 5 is a schematic explanatory diagram of a motion vector detection method.

【図6】動きベクトルの符号化を示した説明図である。FIG. 6 is an explanatory diagram showing encoding of a motion vector.

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

101 現フレーム 102 現フレーム内の対象領域 103 対象フレーム 104 対象フレーム内探索領域 105 対象フレーム内比較領域 301 撮影情報検出手段 302 撮影手段 303 符号化情報決定手段 304 メモリ手段 305 符号化手段 306 記録手段 311 垂直、水平方向撮影手段動き情報 312 撮影情報(ズーム、フォーカス) 313 映像信号 314 スケールパラメータ 315 映像信号(ソートされたもの) 316 ビットストリーム 401 光学系 402 光電変換部 403 信号処理部 404 垂直方向レンズ制御部 405 垂直方向動き検出センサ 406 水平方向レンズ制御部 407 水平方向動き検出センサ 409 垂直方向動き情報出力端子 410 水平方向動き情報出力端子 411 映像信号出力端子 420 映像データ(光) 421 映像信号 422 垂直方向レンズ制御信号 423 垂直方向撮影手段動き情報 424 水平方向レンズ制御信号 425 水平方向撮影手段動き情報 501 動き情報最大値検出部 502 スケールパラメータ決定部 511 垂直方向動き情報入力端子 512 水平方向動き情報入力端子 513 動き情報最大値データ 514 スケールパラメータ出力端子 601 撮影手段 602 符号化情報決定手段 603 メモリ手段 604 符号化手段 605 記録手段 611 映像信号 612 映像信号(ソートされたもの) 613 動きベクトル 614 スケールパラメータ 615 ビットストリーム 101 current frame 102 target area in current frame 103 target frame 104 target frame search area 105 target frame comparison area 301 shooting information detecting means 302 shooting means 303 coding information determining means 304 memory means 305 coding means 306 recording means 311 Vertical and horizontal shooting means motion information 312 shooting information (zoom, focus) 313 video signal 314 scale parameter 315 video signal (sorted) 316 bit stream 401 optical system 402 photoelectric conversion unit 403 signal processing unit 404 vertical lens control Unit 405 Vertical motion detection sensor 406 Horizontal lens control unit 407 Horizontal motion detection sensor 409 Vertical motion information output terminal 410 Horizontal motion information output terminal 411 Video signal output terminal 420 Video data (light) 421 Video signal 422 Vertical lens control signal 423 Vertical shooting means movement information 424 Horizontal lens control signal 425 Horizontal shooting means movement information 501 Motion information maximum value detection section 502 Scale parameter determination section 511 Vertical movement Information input terminal 512 Horizontal direction motion information input terminal 513 Motion information maximum value data 514 Scale parameter output terminal 601 Imaging means 602 Encoding information determining means 603 Memory means 604 Encoding means 605 Recording means 611 Video signal 612 Video signal (sorted) Thing) 613 motion vector 614 scale parameter 615 bit stream

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C018 FA02 FB03 5C053 GA10 GB19 GB30 GB37 KA03 KA24 LA01 5C059 KK19 NN03 NN11 NN19 SS14 TA63 TB07 TC12 TC42 TC47 TD02  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5C018 FA02 FB03 5C053 GA10 GB19 GB30 GB37 KA03 KA24 LA01 5C059 KK19 NN03 NN11 NN19 SS14 TA63 TB07 TC12 TC42 TC47 TD02

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 撮影手段から撮影した画像を元に、現画
像フレーム中の注目画像領域に対応して、前フレーム中
に探索領域を設定し、その探索領域内を順次移動させる
ことにより、前記注目画像領域の画像データと前記探索
領域の画像データの差分絶対値をとり、この差分絶対値
の最小値が得られた探索領域から動きベクトルを求め、
前記探索領域に隣接する他の探索領域から同様にして得
られる動きベクトルとの差分値を、スケールパラメータ
を用いて基本ベクトル成分と残差ベクトル成分で表し、
前記基本ベクトル成分と前記残差成分ベクトル成分を符
号化し、前記残差ベクトル成分のビット数は前記スケー
ルパラメータにより割り当てられるように構成した符号
化装置であって、 前記撮影手段そのものの動きを得るための撮影情報検出
手段を有し、この撮影情報検出手段から得られた撮影情
報により前記スケールパラメータを決定するための撮影
情報判定手段を有することを特徴とする符号化装置。
1. A search area is set in a previous frame corresponding to a target image area in a current image frame based on an image captured by an image capturing means, and the search area is sequentially moved in the search area. Taking the absolute value of the difference between the image data of the image area of interest and the image data of the search area, obtaining a motion vector from the search area in which the minimum value of the difference absolute value was obtained,
A difference value between a motion vector and a motion vector similarly obtained from another search area adjacent to the search area is represented by a basic vector component and a residual vector component using a scale parameter,
An encoding device configured to encode the basic vector component and the residual component vector component, and to assign the number of bits of the residual vector component by the scale parameter. An encoding apparatus comprising: a photographing information detecting unit; and a photographing information determining unit for determining the scale parameter based on photographing information obtained from the photographing information detecting unit.
【請求項2】 撮影情報は、撮影手段のレンズの角度を
調節する角度情報である請求項1記載の符号化装置。
2. The encoding apparatus according to claim 1, wherein the photographing information is angle information for adjusting an angle of a lens of the photographing means.
【請求項3】 撮影情報は、複数フレーム分の動き情報
のうち絶対値の最大値である請求項1記載の符号化装
置。
3. The encoding apparatus according to claim 1, wherein the shooting information is a maximum value of an absolute value among motion information for a plurality of frames.
【請求項4】 撮影手段から撮影した画像を元に、現画
像フレーム中の注目画像領域に対応して、前フレーム中
に探索領域を設定し、その探索領域内を順次移動させる
ことにより、前記注目画像領域の画像データと前記探索
領域の画像データの差分絶対値をとり、この差分絶対値
の最小値が得られた探索領域から動きベクトルを求め、
前記探索領域に隣接する他の探索領域から同様にして得
られる動きベクトルとの差分値を、スケールパラメータ
を用いて基本ベクトル成分と残差ベクトル成分で表し、
前記基本ベクトル成分と前記残差成分ベクトル成分を符
号化し、前記残差ベクトル成分のビット数は前記スケー
ルパラメータにより割り当てられるように構成した符号
化装置であって、 前記スケールパラメータは、以前に符号化した動きベク
トルの絶対値を参照して決定することを特徴とする符号
化装置。
4. A search area is set in a previous frame corresponding to a target image area in a current image frame based on an image captured by an image capturing means, and the search area is sequentially moved in the search area. Taking the absolute value of the difference between the image data of the image area of interest and the image data of the search area, obtaining a motion vector from the search area in which the minimum value of the difference absolute value was obtained,
A difference value between a motion vector and a motion vector similarly obtained from another search area adjacent to the search area is represented by a basic vector component and a residual vector component using a scale parameter,
An encoding apparatus configured to encode the basic vector component and the residual component vector component, wherein a number of bits of the residual vector component is assigned by the scale parameter. An encoding apparatus characterized in that it is determined with reference to an absolute value of a motion vector obtained.
【請求項5】 スケールパラメータは、複数フレーム分
の動き情報を検出し、前記動き情報のうち絶対値の最大
値を用いて決定する請求項4記載の符号化装置。
5. The encoding device according to claim 4, wherein the scale parameter is determined by detecting motion information for a plurality of frames and using a maximum absolute value of the motion information.
JP28771998A 1998-10-09 1998-10-09 Coder Pending JP2000115785A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28771998A JP2000115785A (en) 1998-10-09 1998-10-09 Coder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28771998A JP2000115785A (en) 1998-10-09 1998-10-09 Coder

Publications (1)

Publication Number Publication Date
JP2000115785A true JP2000115785A (en) 2000-04-21

Family

ID=17720866

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28771998A Pending JP2000115785A (en) 1998-10-09 1998-10-09 Coder

Country Status (1)

Country Link
JP (1) JP2000115785A (en)

Similar Documents

Publication Publication Date Title
US9092861B2 (en) Using motion information to assist in image processing
US7787015B2 (en) Apparatus and method for reducing image blur in a digital camera
US9854167B2 (en) Signal processing device and moving image capturing device
JP4799438B2 (en) Image recording apparatus, image recording method, image encoding apparatus, and program
CN1212018C (en) Camera integrated video recording and reproducing apparatus, and record control method thereof
KR100426174B1 (en) Method for controlling a camera using video compression algorithm
US20100214445A1 (en) Image capturing method, image capturing apparatus, and computer program
US10616526B2 (en) Image recording apparatus, image recording method, and program
US10674110B2 (en) Image encoding apparatus, and control method thereof
JP6356287B2 (en) Method and apparatus for controlling a pan and tilt controllable camera
CN105681792B (en) Method, device, system, computer readable storage medium and digital video camera for encoding video stream
EP3131295A1 (en) Video encoding method and system
JP6702737B2 (en) Image blur correction apparatus and method for controlling image blur correction apparatus
JP2000115785A (en) Coder
JP4769392B2 (en) Signal processing device
JP2000092499A (en) Image coding controller, image coding control method and storage medium thereof
JP2002300607A (en) Encoding unit and decoding unit
JP7299690B2 (en) Image processing device and its control method
JP2001078075A (en) Device and method for inputting picture
JP4564856B2 (en) Image encoding apparatus and imaging apparatus
JP2003219416A (en) Video camera device
JP2009188754A (en) Pan or tilt detection method in imaging device, and imaging device
JP7336185B2 (en) Image processing device and image processing method
JP2017130953A (en) Encoding device, imaging device, encoding method and program
JP4003149B2 (en) Image encoding apparatus and method