JP2002366949A - Device and method for processing image, recording medium and program - Google Patents

Device and method for processing image, recording medium and program

Info

Publication number
JP2002366949A
JP2002366949A JP2001169946A JP2001169946A JP2002366949A JP 2002366949 A JP2002366949 A JP 2002366949A JP 2001169946 A JP2001169946 A JP 2001169946A JP 2001169946 A JP2001169946 A JP 2001169946A JP 2002366949 A JP2002366949 A JP 2002366949A
Authority
JP
Japan
Prior art keywords
pixel
frame
weighted difference
area
interest
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.)
Granted
Application number
JP2001169946A
Other languages
Japanese (ja)
Other versions
JP4596209B2 (en
JP2002366949A5 (en
Inventor
Tetsujiro Kondo
哲二郎 近藤
Junichi Ishibashi
淳一 石橋
Takashi Sawao
貴志 沢尾
Takahiro Nagano
隆浩 永野
Naoki Fujiwara
直樹 藤原
Toru Miyake
徹 三宅
Seiji Wada
成司 和田
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 JP2001169946A priority Critical patent/JP4596209B2/en
Priority to KR1020037001610A priority patent/KR100924401B1/en
Priority to US10/343,675 priority patent/US7139019B2/en
Priority to CNB028025261A priority patent/CN1251148C/en
Priority to PCT/JP2002/005045 priority patent/WO2002099753A1/en
Publication of JP2002366949A publication Critical patent/JP2002366949A/en
Publication of JP2002366949A5 publication Critical patent/JP2002366949A5/ja
Application granted granted Critical
Publication of JP4596209B2 publication Critical patent/JP4596209B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Studio Circuits (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

PROBLEM TO BE SOLVED: To detect a mixture ratio showing a mixed state of a plurality of objects. SOLUTION: A weight generating part 422 generates weight the value of which sequentially increases from a prescribed initial value in response to one frame. A weighted frame difference operating part 423 calculates a weighted pixel value by multiplying the weight supplied from the weight generating part 422. The weighted frame difference operating part 423 subtracts the weighted pixel value of a corresponding pixel from the pixel value of a pixel under consideration of an input image to calculate a weighted difference. A correlation value operating part 426 operates the correlation value between weighted difference image data supplied from a motion compensating part 424 and subjected to motion compensation and weighted difference image data supplied from a frame memory 425 and delayed by one frame in each pixel in each case of weight that sequentially increases from the initial value. A maximum value deciding part 427 detects weight in which correlation becomes maximum and outputs the weight as an estimated mixture ratio.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理装置およ
び方法、記録媒体、並びにプログラムに関し、特に、セ
ンサにより検出した信号と現実世界との違いを考慮した
画像処理装置および方法、記録媒体、並びにプログラム
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and method, a recording medium, and a program, and more particularly, to an image processing apparatus and method, a recording medium, and a method that consider a difference between a signal detected by a sensor and the real world. About the program.

【0002】[0002]

【従来の技術】現実世界における事象をセンサで検出
し、画像センサが出力するサンプリングデータを処理す
る技術が広く利用されている。
2. Description of the Related Art A technique for detecting an event in the real world by a sensor and processing sampling data output from an image sensor is widely used.

【0003】例えば、静止している所定の背景の前で移
動する物体をビデオカメラで撮像して得られる画像に
は、物体の移動速度が比較的速い場合、動きボケが生じ
ることになる。
For example, in an image obtained by capturing an object moving in front of a predetermined stationary background with a video camera, motion blur occurs when the moving speed of the object is relatively high.

【0004】[0004]

【発明が解決しようとする課題】静止している背景の前
で物体が移動するとき、移動する物体の画像自身の混ざ
り合いによる動きボケのみならず、背景の画像と移動す
る物体の画像との混ざり合いが生じる。従来は、背景の
画像と移動する物体の画像との混ざり合いの状態を検出
することは、考えられていなかった。
When an object moves in front of a stationary background, not only the motion blur due to the mixing of the image of the moving object itself but also the image of the background and the image of the moving object move. Mixing occurs. Conventionally, it has not been considered to detect a mixed state between a background image and a moving object image.

【0005】本発明はこのような状況に鑑みてなされた
ものであり、背景の画像および移動する物体の画像など
複数のオブジェクトの混ざり合いの状態を示す混合比を
検出することができるようにすることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of such a situation, and it is possible to detect a mixture ratio indicating a mixed state of a plurality of objects such as a background image and a moving object image. The purpose is to:

【0006】[0006]

【課題を解決するための手段】本発明の画像処理装置
は、現実世界では複数であるオブジェクトの画素データ
における混合状態を示す混合比の値の範囲に対応させ
て、複数の重みを生成し、生成した個々の重みを示す重
み付け情報を生成する重み付け情報生成手段と、画像デ
ータの注目フレームの各画素と、画像データの注目フレ
ームに隣接する隣接フレームの各画素との間で、重み付
け情報で示される重みに基づく重み付け差分を検出し、
注目フレームに対応する重み付け差分画像データとして
出力する重み付け差分画像データ検出手段と、注目フレ
ームの画素データと隣接フレームの画素データとの間の
相対的な動きを示す動きベクトルに応じて、注目フレー
ムの重み付け差分画像データと隣接フレームの重み付け
差分画像データとの相対的な位置を合わせて、注目フレ
ームの重み付け差分画像データの各注目画素を中心とし
た少なくとも1画素からなる注目ブロックと、隣接フレ
ームの重み付け差分画像データの少なくとも1画素から
なる対応ブロックとの相関を演算し、重み付け差分画像
間相関データとして出力する重み付け差分画像間相関デ
ータ検出手段と、重み付け差分画像間相関データの少な
くとも1画素からなる所定の単位毎に、重み付け差分画
像データ間の相関が最大となる重みを検出し、注目フレ
ームの単位に対応する混合比として出力する混合比検出
手段とを含むことを特徴とする。
An image processing apparatus according to the present invention generates a plurality of weights corresponding to a range of a mixture ratio value indicating a mixture state in pixel data of a plurality of objects in the real world, Weighting information generating means for generating weighting information indicating the generated individual weights; and weighting information between each pixel of the target frame of the image data and each pixel of an adjacent frame adjacent to the target frame of the image data. Weighted difference based on the weight
A weighted difference image data detecting unit that outputs as weighted difference image data corresponding to the frame of interest, and a motion vector indicating a relative motion between the pixel data of the frame of interest and the pixel data of the adjacent frame. The relative position between the weighted difference image data and the weighted difference image data of the adjacent frame is matched, and a target block including at least one pixel centered on each target pixel of the weighted difference image data of the target frame; A weighted difference image correlation data detecting means for calculating a correlation with a corresponding block consisting of at least one pixel of the difference image data and outputting it as weighted difference image correlation data; and a predetermined weight consisting of at least one pixel of the weighted difference image correlation data The correlation between the weighted difference image data for each unit Detecting the weight becomes maximum, characterized in that it comprises a mixing ratio detecting means for outputting a mixing ratio corresponding to the unit of the frame of interest.

【0007】重み付け情報生成手段は、それぞれ異なる
複数の混合比に対応する、それぞれ異なる複数の重みを
示す重み付け情報を順次生成し、重み付け差分画像デー
タ検出手段は、それぞれ異なる複数の重みに対応して、
重み付け差分を検出し、注目フレームに対応する重み付
け差分画像データとして出力し、重み付け差分画像間相
関データ検出手段は、それぞれ異なる複数の重みに対応
して、相関を演算し、重み付け差分画像間相関データと
して出力し、混合比検出手段は、それぞれ異なる複数の
重みのうち、重み付け差分画像データ間の相関が最大と
なる重みを検出し、注目フレームの所定の単位に対応す
る混合比として出力するようにすることができる。
The weighting information generating means sequentially generates weighting information indicating a plurality of different weights corresponding to the plurality of different mixing ratios, and the weighting difference image data detecting means corresponds to the plurality of different weights. ,
The weighted difference is detected and output as weighted difference image data corresponding to the frame of interest. The weighted difference image correlation data detecting means calculates a correlation corresponding to each of a plurality of different weights, and calculates the weighted difference image correlation data. The mixture ratio detection means detects a weight having a maximum correlation between the weighted difference image data among a plurality of different weights, and outputs the detected weight as a mixture ratio corresponding to a predetermined unit of the frame of interest. can do.

【0008】重み付け差分画像間相関データ検出手段
は、相関として、注目フレームの重み付け差分画像デー
タの各注目画素を中心とした少なくとも1画素からなる
注目ブロックと、隣接フレームの重み付け差分画像デー
タの少なくとも1画素からなる対応ブロックとの差分絶
対値を演算し、重み付け差分画像間相関データとして出
力するようにすることができる。
The weighted difference image correlation data detecting means detects, as the correlation, at least one attention block of at least one pixel centered on each attention pixel of the attention frame weight difference image data and at least one of the weight difference image data of adjacent frames. It is possible to calculate the absolute value of the difference with the corresponding block composed of pixels and output the result as weighted difference image correlation data.

【0009】重み付け差分画像間相関データ検出手段
は、相関として、注目フレームの重み付け差分画像デー
タの各注目画素を中心とした少なくとも1画素からなる
注目ブロックと、隣接フレームの重み付け差分画像デー
タの少なくとも1画素からなる対応ブロックとの差分絶
対値和を演算し、重み付け差分画像間相関データとして
出力するようにすることができる。
The weighted difference image correlation data detecting means detects, as a correlation, at least one target block of at least one pixel centered on each target pixel of the target frame weighted difference image data and at least one of the weighted difference image data of adjacent frames. It is possible to calculate the sum of absolute differences with the corresponding block composed of pixels and output the result as weighted difference image correlation data.

【0010】重み付け差分画像データ検出手段は、注目
フレームの画素が、複数のオブジェクトが混合されてい
る混合領域であって、前景のオブジェクトの動き方向先
端部側に形成されるカバードバックグラウンド領域に属
する場合、注目フレームの各画素と、注目フレームの前
のフレームの各画素との間で、重み付け情報で示される
重みによる重み付け差分を検出し、注目フレームの画素
が、複数のオブジェクトが混合されている混合領域であ
って、前景のオブジェクトの動き方向後端部側に形成さ
れるアンカバードバックグラウンド領域に属する場合、
注目フレームの各画素と、注目フレームの次のフレーム
の各画素との間で、重み付け情報で示される重みによる
重み付け差分を検出するようにすることができる。
The weighted difference image data detecting means determines that the pixel of the frame of interest is a mixed area in which a plurality of objects are mixed and belongs to a covered background area formed on the front end side in the movement direction of the foreground object. In this case, a weighted difference based on the weight indicated by the weight information is detected between each pixel of the frame of interest and each pixel of the frame before the frame of interest, and a plurality of objects are mixed in the pixels of the frame of interest. If it is a mixed area and belongs to an uncovered background area formed on the rear end side in the movement direction of the foreground object,
A weighted difference based on the weight indicated by the weighting information can be detected between each pixel of the frame of interest and each pixel of the frame next to the frame of interest.

【0011】画像処理装置は、画像データにおいて複数
のオブジェクトのうちの前景となるオブジェクトからな
る前景領域、画像データにおいて複数のオブジェクトの
うちの背景となるオブジェクトからなる背景領域、複数
のオブジェクトが混合されている混合領域であって、前
景のオブジェクトの動き方向先端部側に形成されるカバ
ードバックグラウンド領域、および混合領域であって、
前景のオブジェクトの動き方向後端部側に形成されるア
ンカバードバックグラウンド領域を特定し、前景領域、
背景領域、並びにカバードバックグラウンド領域および
アンカバードバックグラウンド領域を含む混合領域を示
す領域情報を生成する領域情報生成手段をさらに設ける
ことができる。
The image processing apparatus mixes a foreground area consisting of a foreground object among a plurality of objects in image data, a background area consisting of a background object of a plurality of objects in image data, and a plurality of objects. A mixed background, a covered background region formed on the front end side in the movement direction of the foreground object, and a mixed region,
Identify the uncovered background area formed on the rear end side in the movement direction of the foreground object, and specify the foreground area,
An area information generating means for generating area information indicating a background area and a mixed area including a covered background area and an uncovered background area can be further provided.

【0012】画像処理装置は、注目フレームの画素デー
タと隣接フレームの画素データとの間の相対的な動きを
示す動きベクトルを検出する動きベクトル検出手段をさ
らに設けることができる。
[0012] The image processing apparatus may further include a motion vector detecting means for detecting a motion vector indicating a relative motion between the pixel data of the frame of interest and the pixel data of the adjacent frame.

【0013】混合比検出手段は、複数のオブジェクトが
混合されている混合領域に属する、注目フレームの画素
の混合比を検出するようにすることができる。
[0013] The mixture ratio detecting means can detect a mixture ratio of pixels of a frame of interest belonging to a mixture region where a plurality of objects are mixed.

【0014】画像処理装置は、混合比を基に、画素デー
タから、複数のオブジェクトのうちの少なくとも前景と
なるオブジェクトを分離する分離手段をさらに設けるこ
とができる。
[0014] The image processing apparatus may further include a separation unit for separating at least a foreground object of the plurality of objects from the pixel data based on the mixture ratio.

【0015】画像処理装置は、分離された前景となるオ
ブジェクトの動きボケの量を調整する動きボケ調整手段
をさらに設けることができる。
[0015] The image processing apparatus can further include a motion blur adjusting means for adjusting the amount of motion blur of the separated foreground object.

【0016】画像処理装置は、混合比を基に、所望の他
のオブジェクトと分離された前景となるオブジェクトと
を合成する合成手段をさらに設けることができる。
The image processing apparatus may further include a synthesizing means for synthesizing another desired object and an object serving as a separated foreground based on the mixture ratio.

【0017】本発明の画像処理方法は、現実世界では複
数であるオブジェクトの画素データにおける混合状態を
示す混合比の値の範囲に対応させて、複数の重みを生成
し、生成した個々の重みを示す重み付け情報を生成する
重み付け情報生成ステップと、画像データの注目フレー
ムの各画素と、画像データの注目フレームに隣接する隣
接フレームの各画素との間で、重み付け情報で示される
重みに基づく重み付け差分を検出し、注目フレームに対
応する重み付け差分画像データとして出力する重み付け
差分画像データ検出ステップと、注目フレームの画素デ
ータと隣接フレームの画素データとの間の相対的な動き
を示す動きベクトルに応じて、注目フレームの重み付け
差分画像データと隣接フレームの重み付け差分画像デー
タとの相対的な位置を合わせて、注目フレームの重み付
け差分画像データの各注目画素を中心とした少なくとも
1画素からなる注目ブロックと、隣接フレームの重み付
け差分画像データの少なくとも1画素からなる対応ブロ
ックとの相関を演算し、重み付け差分画像間相関データ
として出力する重み付け差分画像間相関データ検出ステ
ップと、重み付け差分画像間相関データの少なくとも1
画素からなる所定の単位毎に、重み付け差分画像データ
間の相関が最大となる重みを検出し、注目フレームの単
位に対応する混合比として出力する混合比検出ステップ
とを含むことを特徴とする。
According to the image processing method of the present invention, a plurality of weights are generated in correspondence with a range of a value of a mixing ratio indicating a mixed state in pixel data of a plurality of objects in the real world. Weighting information generating step of generating weighting information shown, and a weighting difference based on the weight indicated by the weighting information between each pixel of the frame of interest of the image data and each pixel of an adjacent frame adjacent to the frame of interest of the image data , And a weighted difference image data detecting step of outputting as weighted difference image data corresponding to the frame of interest, and a motion vector indicating a relative motion between the pixel data of the frame of interest and the pixel data of the adjacent frame. , The relative position between the weighted difference image data of the frame of interest and the weighted difference image data of the adjacent frame. Calculating the correlation between the block of interest consisting of at least one pixel centered on each pixel of interest in the weighted difference image data of the frame of interest and the corresponding block consisting of at least one pixel of the weighted difference image data of the adjacent frame, Detecting a correlation data between the weighted difference images to be output as correlation data between the weighted difference images;
A mixing ratio detecting step of detecting a weight at which the correlation between the weighted difference image data becomes maximum for each predetermined unit of pixels and outputting the weight as a mixing ratio corresponding to the unit of the frame of interest.

【0018】重み付け情報生成ステップは、それぞれ異
なる複数の混合比に対応する、それぞれ異なる複数の重
みを示す重み付け情報を順次生成し、重み付け差分画像
データ検出ステップは、それぞれ異なる複数の重みに対
応して、重み付け差分を検出し、注目フレームに対応す
る重み付け差分画像データとして出力し、重み付け差分
画像間相関データ検出ステップは、それぞれ異なる複数
の重みに対応して、相関を演算し、重み付け差分画像間
相関データとして出力し、混合比検出ステップは、それ
ぞれ異なる複数の重みのうち、重み付け差分画像データ
間の相関が最大となる重みを検出し、注目フレームの所
定の単位に対応する混合比として出力するようにするこ
とができる。
The weighting information generating step sequentially generates weighting information corresponding to a plurality of different mixing ratios and indicating a plurality of different weights. The weighting difference image data detecting step includes a step of detecting a weighted difference image data corresponding to the plurality of different weights. Detecting a weighted difference, outputting the data as weighted difference image data corresponding to the frame of interest, and calculating a correlation data between the weighted difference images. Output as data, the mixing ratio detecting step detects a weight having a maximum correlation between the weighted difference image data among a plurality of different weights, and outputs the detected weight as a mixing ratio corresponding to a predetermined unit of the frame of interest. Can be

【0019】重み付け差分画像間相関データ検出ステッ
プは、相関として、注目フレームの重み付け差分画像デ
ータの各注目画素を中心とした少なくとも1画素からな
る注目ブロックと、隣接フレームの重み付け差分画像デ
ータの少なくとも1画素からなる対応ブロックとの差分
絶対値を演算し、重み付け差分画像間相関データとして
出力するようにすることができる。
The step of detecting the correlation data between the weighted difference images includes, as a correlation, at least one block of interest including at least one pixel centered on each pixel of interest of the weighted difference image data of the frame of interest and at least one of the weighted difference image data of adjacent frames. It is possible to calculate the absolute value of the difference with the corresponding block composed of pixels and output the result as weighted difference image correlation data.

【0020】重み付け差分画像間相関データ検出ステッ
プは、相関として、注目フレームの重み付け差分画像デ
ータの各注目画素を中心とした少なくとも1画素からな
る注目ブロックと、隣接フレームの重み付け差分画像デ
ータの少なくとも1画素からなる対応ブロックとの差分
絶対値和を演算し、重み付け差分画像間相関データとし
て出力するようにすることができる。
The step of detecting the correlation data between the weighted difference images includes, as a correlation, at least one block of the weighted difference image data of the frame of interest centered on at least one pixel of interest and at least one of the weighted difference image data of the adjacent frame. It is possible to calculate the sum of absolute differences with the corresponding block composed of pixels and output the result as weighted difference image correlation data.

【0021】重み付け差分画像データ検出ステップは、
注目フレームの画素が、複数のオブジェクトが混合され
ている混合領域であって、前景のオブジェクトの動き方
向先端部側に形成されるカバードバックグラウンド領域
に属する場合、注目フレームの各画素と、注目フレーム
の前のフレームの各画素との間で、重み付け情報で示さ
れる重みによる重み付け差分を検出し、注目フレームの
画素が、複数のオブジェクトが混合されている混合領域
であって、前景のオブジェクトの動き方向後端部側に形
成されるアンカバードバックグラウンド領域に属する場
合、注目フレームの各画素と、注目フレームの次のフレ
ームの各画素との間で、重み付け情報で示される重みに
よる重み付け差分を検出するようにすることができる。
The weighted difference image data detecting step includes:
When the pixel of the frame of interest is a mixed area where a plurality of objects are mixed and belongs to a covered background area formed on the front end side in the movement direction of the foreground object, each pixel of the frame of interest and the frame of interest Between each pixel of the previous frame and the weighted difference indicated by the weight information, the pixel of the frame of interest is a mixed area where a plurality of objects are mixed, and the motion of the foreground object If the pixel belongs to the uncovered background area formed on the rear end side in the direction, a weighting difference based on the weight indicated by the weighting information is detected between each pixel of the frame of interest and each pixel of the frame next to the frame of interest. You can make it.

【0022】画像処理方法は、画像データにおいて複数
のオブジェクトのうちの前景となるオブジェクトからな
る前景領域、画像データにおいて複数のオブジェクトの
うちの背景となるオブジェクトからなる背景領域、複数
のオブジェクトが混合されている混合領域であって、前
景のオブジェクトの動き方向先端部側に形成されるカバ
ードバックグラウンド領域、および混合領域であって、
前景のオブジェクトの動き方向後端部側に形成されるア
ンカバードバックグラウンド領域を特定し、前景領域、
背景領域、並びにカバードバックグラウンド領域および
アンカバードバックグラウンド領域を含む混合領域を示
す領域情報を生成する領域情報生成ステップをさらに設
けることができる。
In the image processing method, a foreground area consisting of a foreground object among a plurality of objects in image data, a background area consisting of a background object of a plurality of objects in image data, and a plurality of objects are mixed. A mixed background, a covered background region formed on the front end side in the movement direction of the foreground object, and a mixed region,
Identify the uncovered background area formed on the rear end side in the movement direction of the foreground object, and specify the foreground area,
An area information generating step of generating area information indicating a background area and a mixed area including a covered background area and an uncovered background area may be further provided.

【0023】画像処理方法は、注目フレームの画素デー
タと隣接フレームの画素データとの間の相対的な動きを
示す動きベクトルを検出する動きベクトル検出ステップ
をさらに設けることができる。
The image processing method may further include a motion vector detecting step of detecting a motion vector indicating a relative motion between the pixel data of the frame of interest and the pixel data of the adjacent frame.

【0024】混合比検出ステップは、複数のオブジェク
トが混合されている混合領域に属する、注目フレームの
画素の混合比を検出するようにすることができる。
In the mixing ratio detecting step, a mixing ratio of pixels of a frame of interest belonging to a mixed region where a plurality of objects are mixed can be detected.

【0025】画像処理方法は、混合比を基に、画素デー
タから、複数のオブジェクトのうちの少なくとも前景と
なるオブジェクトを分離する分離ステップをさらに設け
ることができる。
The image processing method may further include a separation step of separating at least a foreground object of the plurality of objects from the pixel data based on the mixture ratio.

【0026】画像処理方法は、分離された前景となるオ
ブジェクトの動きボケの量を調整する動きボケ調整ステ
ップをさらに設けることができる。
The image processing method may further include a motion blur adjustment step of adjusting the amount of motion blur of the separated foreground object.

【0027】画像処理方法は、混合比を基に、所望の他
のオブジェクトと分離された前景となるオブジェクトと
を合成する合成ステップをさらに設けることができる。
The image processing method may further include a synthesizing step of synthesizing another desired object and a separated foreground object based on the mixture ratio.

【0028】本発明の記録媒体のプログラムは、現実世
界では複数であるオブジェクトの画素データにおける混
合状態を示す混合比の値の範囲に対応させて、複数の重
みを生成し、生成した個々の重みを示す重み付け情報を
生成する重み付け情報生成ステップと、画像データの注
目フレームの各画素と、画像データの注目フレームに隣
接する隣接フレームの各画素との間で、重み付け情報で
示される重みに基づく重み付け差分を検出し、注目フレ
ームに対応する重み付け差分画像データとして出力する
重み付け差分画像データ検出ステップと、注目フレーム
の画素データと隣接フレームの画素データとの間の相対
的な動きを示す動きベクトルに応じて、注目フレームの
重み付け差分画像データと隣接フレームの重み付け差分
画像データとの相対的な位置を合わせて、注目フレーム
の重み付け差分画像データの各注目画素を中心とした少
なくとも1画素からなる注目ブロックと、隣接フレーム
の重み付け差分画像データの少なくとも1画素からなる
対応ブロックとの相関を演算し、重み付け差分画像間相
関データとして出力する重み付け差分画像間相関データ
検出ステップと、重み付け差分画像間相関データの少な
くとも1画素からなる所定の単位毎に、重み付け差分画
像データ間の相関が最大となる重みを検出し、注目フレ
ームの単位に対応する混合比として出力する混合比検出
ステップとを含むことを特徴とする。
According to the program of the recording medium of the present invention, a plurality of weights are generated in correspondence with a range of a value of a mixing ratio indicating a mixed state in pixel data of a plurality of objects in the real world. Weighting information generating step of generating weighting information indicating: weighting based on the weight indicated by the weighting information between each pixel of a target frame of image data and each pixel of an adjacent frame adjacent to the target frame of image data A weighted difference image data detecting step of detecting a difference and outputting the weighted difference image data as the weighted difference image data corresponding to the frame of interest, and a motion vector indicating a relative motion between the pixel data of the frame of interest and the pixel data of the adjacent frame. The difference between the weighted difference image data of the frame of interest and the weighted difference image data of the adjacent frame. And the correlation between the target block consisting of at least one pixel centered on each target pixel of the weighted difference image data of the target frame and the corresponding block consisting of at least one pixel of the weighted difference image data of the adjacent frame. Calculating the correlation data between the weighted difference images and outputting the correlation data as the weighted difference image correlation data; and determining that the correlation between the weighted difference image data is maximum for each predetermined unit including at least one pixel of the weighted difference image correlation data. And a mixing ratio detecting step of detecting the weight of the target frame and outputting it as a mixing ratio corresponding to the unit of the frame of interest.

【0029】重み付け情報生成ステップは、それぞれ異
なる複数の混合比に対応する、それぞれ異なる複数の重
みを示す重み付け情報を順次生成し、重み付け差分画像
データ検出ステップは、それぞれ異なる複数の重みに対
応して、重み付け差分を検出し、注目フレームに対応す
る重み付け差分画像データとして出力し、重み付け差分
画像間相関データ検出ステップは、それぞれ異なる複数
の重みに対応して、相関を演算し、重み付け差分画像間
相関データとして出力し、混合比検出ステップは、それ
ぞれ異なる複数の重みのうち、重み付け差分画像データ
間の相関が最大となる重みを検出し、注目フレームの所
定の単位に対応する混合比として出力するようにするこ
とができる。
The weighting information generating step sequentially generates weighting information corresponding to a plurality of different mixing ratios and indicating a plurality of different weights, and the weighting difference image data detecting step corresponds to the plurality of different weights. Detecting a weighted difference, outputting the data as weighted difference image data corresponding to the frame of interest, and calculating a correlation data between the weighted difference images. Output as data, the mixing ratio detecting step detects a weight having a maximum correlation between the weighted difference image data among a plurality of different weights, and outputs the detected weight as a mixing ratio corresponding to a predetermined unit of the frame of interest. Can be

【0030】重み付け差分画像間相関データ検出ステッ
プは、相関として、注目フレームの重み付け差分画像デ
ータの各注目画素を中心とした少なくとも1画素からな
る注目ブロックと、隣接フレームの重み付け差分画像デ
ータの少なくとも1画素からなる対応ブロックとの差分
絶対値を演算し、重み付け差分画像間相関データとして
出力するようにすることができる。
The step of detecting the correlation data between the weighted difference images includes, as a correlation, at least one block of the weighted difference image data of the frame of interest centered on at least one pixel and at least one of the weighted difference image data of the adjacent frame. It is possible to calculate the absolute value of the difference with the corresponding block composed of pixels and output the result as weighted difference image correlation data.

【0031】重み付け差分画像間相関データ検出ステッ
プは、相関として、注目フレームの重み付け差分画像デ
ータの各注目画素を中心とした少なくとも1画素からな
る注目ブロックと、隣接フレームの重み付け差分画像デ
ータの少なくとも1画素からなる対応ブロックとの差分
絶対値和を演算し、重み付け差分画像間相関データとし
て出力するようにすることができる。
The step of detecting the correlation data between the weighted difference images includes, as a correlation, at least one block of the weighted difference image data of the frame of interest, which is made up of at least one pixel centered on each pixel of interest, and at least one of the weighted difference image data of the adjacent frame It is possible to calculate the sum of absolute differences with the corresponding block composed of pixels and output the result as weighted difference image correlation data.

【0032】重み付け差分画像データ検出ステップは、
注目フレームの画素が、複数のオブジェクトが混合され
ている混合領域であって、前景のオブジェクトの動き方
向先端部側に形成されるカバードバックグラウンド領域
に属する場合、注目フレームの各画素と、注目フレーム
の前のフレームの各画素との間で、重み付け情報で示さ
れる重みによる重み付け差分を検出し、注目フレームの
画素が、複数のオブジェクトが混合されている混合領域
であって、前景のオブジェクトの動き方向後端部側に形
成されるアンカバードバックグラウンド領域に属する場
合、注目フレームの各画素と、注目フレームの次のフレ
ームの各画素との間で、重み付け情報で示される重みに
よる重み付け差分を検出するようにすることができる。
The weighted difference image data detecting step includes:
When the pixel of the frame of interest is a mixed area where a plurality of objects are mixed and belongs to a covered background area formed on the front end side in the movement direction of the foreground object, each pixel of the frame of interest and the frame of interest Between each pixel of the previous frame and the weighted difference indicated by the weight information, the pixel of the frame of interest is a mixed area where a plurality of objects are mixed, and the motion of the foreground object If the pixel belongs to the uncovered background area formed on the rear end side in the direction, a weighting difference based on the weight indicated by the weighting information is detected between each pixel of the frame of interest and each pixel of the frame next to the frame of interest. You can make it.

【0033】プログラムは、画像データにおいて複数の
オブジェクトのうちの前景となるオブジェクトからなる
前景領域、画像データにおいて複数のオブジェクトのう
ちの背景となるオブジェクトからなる背景領域、複数の
オブジェクトが混合されている混合領域であって、前景
のオブジェクトの動き方向先端部側に形成されるカバー
ドバックグラウンド領域、および混合領域であって、前
景のオブジェクトの動き方向後端部側に形成されるアン
カバードバックグラウンド領域を特定し、前景領域、背
景領域、並びにカバードバックグラウンド領域およびア
ンカバードバックグラウンド領域を含む混合領域を示す
領域情報を生成する領域情報生成ステップをさらに設け
ることができる。
In the program, a foreground area composed of objects serving as foreground among a plurality of objects in image data, a background area composed of objects serving as a background among a plurality of objects in image data, and a plurality of objects are mixed. A mixed area, a covered background area formed on the front end side of the foreground object in the direction of movement, and a mixed area, an uncovered background area formed on the rear end side of the foreground object in the movement direction And generating area information indicating a mixed area including a foreground area, a background area, and a covered background area and an uncovered background area.

【0034】プログラムは、注目フレームの画素データ
と隣接フレームの画素データとの間の相対的な動きを示
す動きベクトルを検出する動きベクトル検出ステップを
さらに設けることができる。
The program may further include a motion vector detecting step of detecting a motion vector indicating a relative motion between the pixel data of the frame of interest and the pixel data of the adjacent frame.

【0035】混合比検出ステップは、複数のオブジェク
トが混合されている混合領域に属する、注目フレームの
画素の混合比を検出するようにすることができる。
In the mixing ratio detecting step, a mixing ratio of a pixel of a frame of interest belonging to a mixed region where a plurality of objects are mixed can be detected.

【0036】プログラムは、混合比を基に、画素データ
から、複数のオブジェクトのうちの少なくとも前景とな
るオブジェクトを分離する分離ステップをさらに設ける
ことができる。
The program may further include a separation step of separating at least a foreground object of the plurality of objects from the pixel data based on the mixture ratio.

【0037】プログラムは、分離された前景となるオブ
ジェクトの動きボケの量を調整する動きボケ調整ステッ
プをさらに設けることができる。
[0037] The program may further include a motion blur adjusting step of adjusting the amount of motion blur of the separated foreground object.

【0038】プログラムは、混合比を基に、所望の他の
オブジェクトと分離された前景となるオブジェクトとを
合成する合成ステップをさらに設けることができる。
The program may further include a synthesizing step of synthesizing the desired other object and the separated foreground object based on the mixture ratio.

【0039】本発明のプログラムは、現実世界では複数
であるオブジェクトの画素データにおける混合状態を示
す混合比の値の範囲に対応させて、複数の重みを生成
し、生成した個々の重みを示す重み付け情報を生成する
重み付け情報生成ステップと、画像データの注目フレー
ムの各画素と、画像データの注目フレームに隣接する隣
接フレームの各画素との間で、重み付け情報で示される
重みに基づく重み付け差分を検出し、注目フレームに対
応する重み付け差分画像データとして出力する重み付け
差分画像データ検出ステップと、注目フレームの画素デ
ータと隣接フレームの画素データとの間の相対的な動き
を示す動きベクトルに応じて、注目フレームの重み付け
差分画像データと隣接フレームの重み付け差分画像デー
タとの相対的な位置を合わせて、注目フレームの重み付
け差分画像データの各注目画素を中心とした少なくとも
1画素からなる注目ブロックと、隣接フレームの重み付
け差分画像データの少なくとも1画素からなる対応ブロ
ックとの相関を演算し、重み付け差分画像間相関データ
として出力する重み付け差分画像間相関データ検出ステ
ップと、重み付け差分画像間相関データの少なくとも1
画素からなる所定の単位毎に、重み付け差分画像データ
間の相関が最大となる重みを検出し、注目フレームの単
位に対応する混合比として出力する混合比検出ステップ
とをコンピュータに実行させることを特徴とする。
The program according to the present invention generates a plurality of weights corresponding to a range of a mixture ratio value indicating a mixture state in pixel data of a plurality of objects in the real world, and assigns weights indicating the generated individual weights. A weighting information generating step of generating information, and detecting a weighting difference based on the weight indicated by the weighting information between each pixel of the target frame of the image data and each pixel of an adjacent frame adjacent to the target frame of the image data A weighted difference image data detecting step of outputting as weighted difference image data corresponding to the frame of interest, and a motion vector indicating a relative motion between pixel data of the frame of interest and pixel data of an adjacent frame. Relative position between weighted difference image data of frame and weighted difference image data of adjacent frame At the same time, the correlation between the target block consisting of at least one pixel centered on each target pixel of the weighted difference image data of the target frame and the corresponding block consisting of at least one pixel of the weighted difference image data of the adjacent frame is calculated and weighted. A step of detecting weighted difference image correlation data to be output as difference image correlation data;
And a computer for executing a mixing ratio detecting step of detecting a weight at which the correlation between the weighted difference image data becomes maximum for each predetermined unit of pixels and outputting the detected weight as a mixing ratio corresponding to the unit of the frame of interest. And

【0040】重み付け情報生成ステップは、それぞれ異
なる複数の混合比に対応する、それぞれ異なる複数の重
みを示す重み付け情報を順次生成し、重み付け差分画像
データ検出ステップは、それぞれ異なる複数の重みに対
応して、重み付け差分を検出し、注目フレームに対応す
る重み付け差分画像データとして出力し、重み付け差分
画像間相関データ検出ステップは、それぞれ異なる複数
の重みに対応して、相関を演算し、重み付け差分画像間
相関データとして出力し、混合比検出ステップは、それ
ぞれ異なる複数の重みのうち、重み付け差分画像データ
間の相関が最大となる重みを検出し、注目フレームの所
定の単位に対応する混合比として出力するようにするこ
とができる。
The weighting information generating step sequentially generates weighting information corresponding to a plurality of different mixing ratios and indicating a plurality of different weights. The weighting difference image data detecting step corresponds to the plurality of different weights. Detecting a weighted difference, outputting the data as weighted difference image data corresponding to the frame of interest, and calculating a correlation data between the weighted difference images. Output as data, the mixing ratio detecting step detects a weight having a maximum correlation between the weighted difference image data among a plurality of different weights, and outputs the detected weight as a mixing ratio corresponding to a predetermined unit of the frame of interest. Can be

【0041】重み付け差分画像間相関データ検出ステッ
プは、相関として、注目フレームの重み付け差分画像デ
ータの各注目画素を中心とした少なくとも1画素からな
る注目ブロックと、隣接フレームの重み付け差分画像デ
ータの少なくとも1画素からなる対応ブロックとの差分
絶対値を演算し、重み付け差分画像間相関データとして
出力するようにすることができる。
The step of detecting the correlation data between the weighted difference images includes, as a correlation, at least one block of the weighted difference image data of the frame of interest, which is made up of at least one pixel centered on each pixel of interest, and at least one of the weighted difference image data of the adjacent frame. It is possible to calculate the absolute value of the difference with the corresponding block composed of pixels and output the result as weighted difference image correlation data.

【0042】重み付け差分画像間相関データ検出ステッ
プは、相関として、注目フレームの重み付け差分画像デ
ータの各注目画素を中心とした少なくとも1画素からな
る注目ブロックと、隣接フレームの重み付け差分画像デ
ータの少なくとも1画素からなる対応ブロックとの差分
絶対値和を演算し、重み付け差分画像間相関データとし
て出力するようにすることができる。
The step of detecting the correlation data between the weighted difference images includes, as the correlation, at least one block of the weighted difference image data of the frame of interest, which is made up of at least one pixel centered on each pixel of interest, and at least one of the weighted difference image data of the adjacent frame. It is possible to calculate the sum of absolute differences with the corresponding block composed of pixels and output the result as weighted difference image correlation data.

【0043】重み付け差分画像データ検出ステップは、
注目フレームの画素が、複数のオブジェクトが混合され
ている混合領域であって、前景のオブジェクトの動き方
向先端部側に形成されるカバードバックグラウンド領域
に属する場合、注目フレームの各画素と、注目フレーム
の前のフレームの各画素との間で、重み付け情報で示さ
れる重みによる重み付け差分を検出し、注目フレームの
画素が、複数のオブジェクトが混合されている混合領域
であって、前景のオブジェクトの動き方向後端部側に形
成されるアンカバードバックグラウンド領域に属する場
合、注目フレームの各画素と、注目フレームの次のフレ
ームの各画素との間で、重み付け情報で示される重みに
よる重み付け差分を検出するようにすることができる。
The weighted difference image data detecting step includes:
When the pixel of the frame of interest is a mixed area where a plurality of objects are mixed and belongs to a covered background area formed on the front end side in the movement direction of the foreground object, each pixel of the frame of interest and the frame of interest Between each pixel of the previous frame and the weighted difference indicated by the weight information, the pixel of the frame of interest is a mixed area where a plurality of objects are mixed, and the motion of the foreground object If the pixel belongs to the uncovered background area formed on the rear end side in the direction, a weighting difference based on the weight indicated by the weighting information is detected between each pixel of the frame of interest and each pixel of the frame next to the frame of interest. You can make it.

【0044】プログラムは、画像データにおいて複数の
オブジェクトのうちの前景となるオブジェクトからなる
前景領域、画像データにおいて複数のオブジェクトのう
ちの背景となるオブジェクトからなる背景領域、複数の
オブジェクトが混合されている混合領域であって、前景
のオブジェクトの動き方向先端部側に形成されるカバー
ドバックグラウンド領域、および混合領域であって、前
景のオブジェクトの動き方向後端部側に形成されるアン
カバードバックグラウンド領域を特定し、前景領域、背
景領域、並びにカバードバックグラウンド領域およびア
ンカバードバックグラウンド領域を含む混合領域を示す
領域情報を生成する領域情報生成ステップをさらに設け
ることができる。
In the program, a foreground area composed of objects serving as foreground among a plurality of objects in image data, a background area composed of objects serving as a background among a plurality of objects in image data, and a plurality of objects are mixed. A mixed area, a covered background area formed on the front end side of the foreground object in the direction of movement, and a mixed area, an uncovered background area formed on the rear end side of the foreground object in the movement direction And generating area information indicating a mixed area including a foreground area, a background area, and a covered background area and an uncovered background area.

【0045】プログラムは、注目フレームの画素データ
と隣接フレームの画素データとの間の相対的な動きを示
す動きベクトルを検出する動きベクトル検出ステップを
さらに設けることができる。
[0045] The program may further include a motion vector detecting step of detecting a motion vector indicating a relative motion between the pixel data of the frame of interest and the pixel data of the adjacent frame.

【0046】混合比検出ステップは、複数のオブジェク
トが混合されている混合領域に属する、注目フレームの
画素の混合比を検出するようにすることができる。
In the mixture ratio detecting step, the mixture ratio of the pixels of the frame of interest belonging to the mixture region where the plurality of objects are mixed can be detected.

【0047】プログラムは、混合比を基に、画素データ
から、複数のオブジェクトのうちの少なくとも前景とな
るオブジェクトを分離する分離ステップをさらに設ける
ことができる。
The program may further include a separation step of separating at least a foreground object of the plurality of objects from the pixel data based on the mixture ratio.

【0048】プログラムは、分離された前景となるオブ
ジェクトの動きボケの量を調整する動きボケ調整ステッ
プをさらに設けることができる。
[0048] The program may further include a motion blur adjustment step of adjusting the amount of motion blur of the separated foreground object.

【0049】プログラムは、混合比を基に、所望の他の
オブジェクトと分離された前景となるオブジェクトとを
合成する合成ステップをさらに設けることができる。
The program may further include a synthesizing step of synthesizing the desired other object and the separated foreground object based on the mixture ratio.

【0050】本発明の画像処理装置および方法、並びに
プログラムにおいては、現実世界では複数であるオブジ
ェクトの画素データにおける混合状態を示す混合比の値
の範囲に対応させて、複数の重みを生成し、生成した個
々の重みを示す重み付け情報が生成され、画像データの
注目フレームの各画素と、画像データの注目フレームに
隣接する隣接フレームの各画素との間で、重み付け情報
で示される重みに基づく重み付け差分が検出され、注目
フレームに対応する重み付け差分画像データとして出力
され、注目フレームの画素データと隣接フレームの画素
データとの間の相対的な動きを示す動きベクトルに応じ
て、注目フレームの重み付け差分画像データと隣接フレ
ームの重み付け差分画像データとの相対的な位置を合わ
せて、注目フレームの重み付け差分画像データの各注目
画素を中心とした少なくとも1画素からなる注目ブロッ
クと、隣接フレームの重み付け差分画像データの少なく
とも1画素からなる対応ブロックとの相関が演算され、
重み付け差分画像間相関データとして出力され、重み付
け差分画像間相関データの少なくとも1画素からなる所
定の単位毎に、重み付け差分画像データ間の相関が最大
となる重みが検出され、注目フレームの単位に対応する
混合比として出力される。
In the image processing apparatus, method, and program according to the present invention, a plurality of weights are generated in correspondence with a range of a mixing ratio value indicating a mixing state in pixel data of a plurality of objects in the real world; Weighting information indicating the generated individual weights is generated, and weighting based on the weight indicated by the weighting information is performed between each pixel of the target frame of the image data and each pixel of an adjacent frame adjacent to the target frame of the image data. The difference is detected and output as weighted difference image data corresponding to the frame of interest, and the weighted difference of the frame of interest is calculated according to a motion vector indicating the relative motion between the pixel data of the frame of interest and the pixel data of the adjacent frame. The relative position of the image data and the weighted difference image data of the adjacent frame A target block consisting of at least one pixel centered on each pixel of interest of the weighted difference image data, correlation with a corresponding block of at least one pixel of the weighted difference image data between adjacent frames is calculated,
The weight is output as the weighted difference image correlation data, and for each predetermined unit including at least one pixel of the weighted difference image correlation data, a weight that maximizes the correlation between the weighted difference image data is detected and corresponds to the unit of the frame of interest. Is output as the mixing ratio.

【0051】[0051]

【発明の実施の形態】図1は、本発明に係る信号処理部
の一実施の形態の構成を示す図である。CPU(Central P
rocessing Unit)21は、ROM(Read Only Memory)2
2、または記憶部28に記憶されているプログラムに従
って各種の処理を実行する。RAM(Random Access Memor
y)23には、CPU21が実行するプログラムやデータな
どが適宜記憶される。これらのCPU21、ROM22、およ
びRAM23は、バス24により相互に接続されている。
FIG. 1 is a diagram showing the configuration of an embodiment of a signal processing unit according to the present invention. CPU (Central P
rocessing Unit) 21 is a ROM (Read Only Memory) 2
2 or executes various processes according to a program stored in the storage unit 28. RAM (Random Access Memor
y) 23 stores programs and data executed by the CPU 21 as appropriate. These CPU 21, ROM 22, and RAM 23 are interconnected by a bus 24.

【0052】CPU21にはまた、バス24を介して入出
力インタフェース25が接続されている。入出力インタ
フェース25には、キーボード、マウス、マイクロホン
などよりなる入力部26、ディスプレイ、スピーカなど
よりなる出力部27が接続されている。CPU21は、入
力部26から入力される指令に対応して各種の処理を実
行する。そして、CPU21は、処理の結果得られた画像
や音声等を出力部27に出力する。
An input / output interface 25 is connected to the CPU 21 via a bus 24. The input / output interface 25 is connected to an input unit 26 including a keyboard, a mouse, a microphone, and the like, and an output unit 27 including a display, a speaker, and the like. The CPU 21 executes various processes in response to a command input from the input unit 26. Then, the CPU 21 outputs an image, a sound, and the like obtained as a result of the processing to the output unit 27.

【0053】入出力インタフェース25に接続されてい
る記憶部28は、例えばハードディスクなどで構成さ
れ、CPU21が実行するプログラムや各種のデータを記
憶する。通信部29は、インターネット、その他のネッ
トワークを介して外部の装置と通信する。この例の場
合、通信部29はセンサの出力を取り込む取得部として
働く。
The storage unit 28 connected to the input / output interface 25 is constituted by a hard disk, for example, and stores programs executed by the CPU 21 and various data. The communication unit 29 communicates with an external device via the Internet or another network. In the case of this example, the communication unit 29 functions as an acquisition unit that captures the output of the sensor.

【0054】また、通信部29を介してプログラムを取
得し、記憶部28に記憶してもよい。
Further, a program may be obtained through the communication unit 29 and stored in the storage unit 28.

【0055】入出力インタフェース25に接続されてい
るドライブ30は、磁気ディスク51、光ディスク5
2、光磁気ディスク53、或いは半導体メモリ54など
が装着されたとき、それらを駆動し、そこに記録されて
いるプログラムやデータなどを取得する。取得されたプ
ログラムやデータは、必要に応じて記憶部28に転送さ
れ、記憶される。
The drive 30 connected to the input / output interface 25 includes a magnetic disk 51, an optical disk 5
2. When the magneto-optical disk 53, the semiconductor memory 54, and the like are mounted, they are driven to acquire programs, data, and the like recorded therein. The acquired programs and data are transferred and stored in the storage unit 28 as necessary.

【0056】次に、センサにより取得されたデータか
ら、有意情報が埋もれている領域を特定したり、埋もれ
た有意情報を抽出する処理を行う信号処理装置について
より具体的な例を挙げて説明する。以下の例において、
CCDラインセンサまたはCCDエリアセンサがセンサに対応
し、領域情報や混合比が有意情報に対応し、混合領域に
おいて、前景と背景が混合していることや動きボケが歪
みに対応する。
Next, a more detailed example of a signal processing device for specifying a region where significant information is buried from the data acquired by the sensor and extracting the buried significant information will be described. . In the example below,
The CCD line sensor or the CCD area sensor corresponds to the sensor, the area information and the mixing ratio correspond to the significant information, and the mixed foreground and background and the motion blur correspond to the distortion in the mixed area.

【0057】図2は、信号処理部を示すブロック図であ
る。
FIG. 2 is a block diagram showing the signal processing unit.

【0058】なお、信号処理部の各機能をハードウェア
で実現するか、ソフトウェアで実現するかは問わない。
つまり、本明細書の各ブロック図は、ハードウェアのブ
ロック図と考えても、ソフトウェアによる機能ブロック
図と考えても良い。
It does not matter whether each function of the signal processing unit is realized by hardware or software.
That is, each block diagram in this specification may be considered as a hardware block diagram or a functional block diagram using software.

【0059】ここで、動きボケとは、撮像の対象とな
る、現実世界におけるオブジェクトの動きと、センサの
撮像の特性とにより生じる、動いているオブジェクトに
対応する画像に含まれている歪みをいう。
Here, the motion blur refers to a distortion included in an image corresponding to a moving object, which is caused by the movement of the object in the real world to be imaged and the characteristics of the image pickup by the sensor. .

【0060】この明細書では、撮像の対象となる、現実
世界におけるオブジェクトに対応する画像を、画像オブ
ジェクトと称する。
In this specification, an image to be imaged, which corresponds to an object in the real world, is called an image object.

【0061】信号処理部に供給された入力画像は、オブ
ジェクト抽出部101、領域特定部103、混合比算出
部104、および前景背景分離部105に供給される。
The input image supplied to the signal processing unit is supplied to an object extracting unit 101, a region specifying unit 103, a mixture ratio calculating unit 104, and a foreground / background separating unit 105.

【0062】オブジェクト抽出部101は、入力画像に
含まれる前景のオブジェクトに対応する画像オブジェク
トを粗く抽出して、抽出した画像オブジェクトを動き検
出部102に供給する。オブジェクト抽出部101は、
例えば、入力画像に含まれる前景のオブジェクトに対応
する画像オブジェクトの輪郭を検出することで、前景の
オブジェクトに対応する画像オブジェクトを粗く抽出す
る。
The object extraction unit 101 roughly extracts an image object corresponding to a foreground object included in the input image, and supplies the extracted image object to the motion detection unit 102. The object extraction unit 101
For example, by detecting the outline of the image object corresponding to the foreground object included in the input image, the image object corresponding to the foreground object is roughly extracted.

【0063】オブジェクト抽出部101は、入力画像に
含まれる背景のオブジェクトに対応する画像オブジェク
トを粗く抽出して、抽出した画像オブジェクトを動き検
出部102に供給する。オブジェクト抽出部101は、
例えば、入力画像と、抽出された前景のオブジェクトに
対応する画像オブジェクトとの差から、背景のオブジェ
クトに対応する画像オブジェクトを粗く抽出する。
The object extracting section 101 roughly extracts an image object corresponding to a background object included in the input image, and supplies the extracted image object to the motion detecting section 102. The object extraction unit 101
For example, the image object corresponding to the background object is roughly extracted from the difference between the input image and the extracted image object corresponding to the foreground object.

【0064】また、例えば、オブジェクト抽出部101
は、内部に設けられている背景メモリに記憶されている
背景の画像と、入力画像との差から、前景のオブジェク
トに対応する画像オブジェクト、および背景のオブジェ
クトに対応する画像オブジェクトを粗く抽出するように
してもよい。
Also, for example, the object extracting unit 101
Is configured to roughly extract an image object corresponding to a foreground object and an image object corresponding to a background object from a difference between a background image stored in a background memory provided therein and an input image. It may be.

【0065】動き検出部102は、例えば、ブロックマ
ッチング法、勾配法、位相相関法、およびペルリカーシ
ブ法などの手法により、粗く抽出された前景のオブジェ
クトに対応する画像オブジェクトの動きベクトルを算出
して、算出した動きベクトルおよび動きベクトルの位置
情報(動きベクトルに対応する画素の位置を特定する情
報)を領域特定部103、混合比算出部104、および
動きボケ抽出部106に供給する。
The motion detecting section 102 calculates the motion vector of the image object corresponding to the coarsely extracted foreground object, for example, by a method such as a block matching method, a gradient method, a phase correlation method, or a pel recursive method. The calculated motion vector and the position information of the motion vector (information for specifying the position of the pixel corresponding to the motion vector) are supplied to the region specifying unit 103, the mixture ratio calculating unit 104, and the motion blur extracting unit 106.

【0066】動き検出部102が出力する動きベクトル
には、動き量vに対応する情報が含まれるている。
The motion vector output by the motion detecting section 102 includes information corresponding to the motion amount v.

【0067】また、例えば、動き検出部102は、画像
オブジェクトに画素を特定する画素位置情報と共に、画
像オブジェクト毎の動きベクトルを動きボケ調整部10
6に出力するようにしてもよい。
Further, for example, the motion detection unit 102 calculates the motion vector for each image object together with the pixel position information for specifying the pixel in the image object by the motion blur adjustment unit 10.
6 may be output.

【0068】動き量vは、動いているオブジェクトに対
応する画像の位置の変化を画素間隔を単位として表す値
である。例えば、前景に対応するオブジェクトの画像
が、あるフレームを基準として次のフレームにおいて4
画素分離れた位置に表示されるように移動していると
き、前景に対応するオブジェクトの画像の動き量vは、
4とされる。
The amount of movement v is a value representing the change in the position of the image corresponding to the moving object in units of pixel intervals. For example, the image of the object corresponding to the foreground is set to 4
When moving so as to be displayed at a position separated by pixels, the motion amount v of the image of the object corresponding to the foreground is
It is set to 4.

【0069】なお、オブジェクト抽出部101および動
き検出部102は、動いているオブジェクトに対応した
動きボケ量の調整を行う場合に必要となる。
The object extracting unit 101 and the motion detecting unit 102 are required when adjusting the amount of motion blur corresponding to a moving object.

【0070】領域特定部103は、入力された画像の画
素のそれぞれを、前景領域、背景領域、または混合領域
のいずれかに特定し、画素毎に前景領域、背景領域、ま
たは混合領域のいずれかに属するかを示す情報(以下、
領域情報と称する)を混合比算出部104、前景背景分
離部105、および動きボケ調整部106に供給する。
The area specifying unit 103 specifies each of the pixels of the input image as one of a foreground area, a background area, and a mixed area, and for each pixel, selects one of the foreground area, the background area, and the mixed area. Information that belongs to
(Referred to as area information) to the mixture ratio calculation unit 104, the foreground / background separation unit 105, and the motion blur adjustment unit 106.

【0071】混合比算出部104は、入力画像、および
領域特定部103から供給された領域情報を基に、混合
領域63に含まれる画素に対応する混合比(以下、混合
比αと称する)を算出して、算出した混合比を前景背景
分離部105に供給する。
The mixture ratio calculation unit 104 calculates a mixture ratio (hereinafter, referred to as a mixture ratio α) corresponding to the pixels included in the mixture region 63 based on the input image and the region information supplied from the region identification unit 103. The calculated mixture ratio is supplied to the foreground / background separation unit 105.

【0072】混合比αは、後述する式(3)に示される
ように、画素値における、背景のオブジェクトに対応す
る画像の成分(以下、背景の成分とも称する)の割合を
示す値である。
The mixture ratio α is a value indicating a ratio of a component of an image corresponding to a background object (hereinafter, also referred to as a background component) in a pixel value, as shown in Expression (3) described later.

【0073】前景背景分離部105は、領域特定部10
3から供給された領域情報、および混合比算出部104
から供給された混合比αを基に、前景のオブジェクトに
対応する画像の成分(以下、前景の成分とも称する)の
みから成る前景成分画像と、背景の成分のみから成る背
景成分画像とに入力画像を分離して、前景成分画像を動
きボケ調整部106および選択部107に供給する。な
お、分離された前景成分画像を最終的な出力とすること
も考えられる。従来の混合領域を考慮しないで前景と背
景だけを特定し、分離していた方式に比べ正確な前景と
背景を得ることが出来る。
The foreground / background separation unit 105 includes the area specifying unit 10
3 and the mixture ratio calculation unit 104
Input image into a foreground component image composed of only components of the image corresponding to the foreground object (hereinafter also referred to as a foreground component) and a background component image composed of only the background component based on the mixture ratio α supplied from And supplies the foreground component image to the motion-blur adjusting unit 106 and the selecting unit 107. Note that the separated foreground component image may be used as a final output. It is possible to specify only the foreground and the background without considering the conventional mixed area, and obtain a more accurate foreground and background as compared with the separated system.

【0074】動きボケ調整部106は、動きベクトルか
らわかる動き量vおよび領域情報を基に、前景成分画像
に含まれる1以上の画素を示す処理単位を決定する。処
理単位は、動きボケの量の調整の処理の対象となる1群
の画素を指定するデータである。
The motion-blur adjusting unit 106 determines a processing unit indicating one or more pixels included in the foreground component image based on the motion amount v and the area information obtained from the motion vector. The processing unit is data that specifies a group of pixels to be processed for adjusting the amount of motion blur.

【0075】動きボケ調整部106は、信号処理部に入
力された動きボケ調整量、前景背景分離部105から供
給された前景成分画像、動き検出部102から供給され
た動きベクトルおよびその位置情報、並びに処理単位を
基に、前景成分画像に含まれる動きボケを除去する、動
きボケの量を減少させる、または動きボケの量を増加さ
せるなど前景成分画像に含まれる動きボケの量を調整し
て、動きボケの量を調整した前景成分画像を選択部10
7に出力する。動きベクトルとその位置情報は使わない
こともある。
The motion-blur adjusting unit 106 calculates the amount of motion-blur adjustment input to the signal processing unit, the foreground component image supplied from the foreground / background separating unit 105, the motion vector supplied from the motion detecting unit 102, and its positional information. And based on the processing unit, remove the motion blur included in the foreground component image, reduce the amount of motion blur, or adjust the amount of motion blur included in the foreground component image such as increasing the amount of motion blur Selecting the foreground component image in which the amount of motion blur has been adjusted
7 is output. The motion vector and its position information may not be used.

【0076】選択部107は、例えば使用者の選択に対
応した選択信号を基に、前景背景分離部105から供給
された前景成分画像、および動きボケ調整部106から
供給された動きボケの量が調整された前景成分画像のい
ずれか一方を選択して、選択した前景成分画像を出力す
る。
The selection unit 107 determines whether the foreground component image supplied from the foreground / background separation unit 105 and the amount of motion blur supplied from the motion blur adjustment unit 106 are based on a selection signal corresponding to the user's selection, for example. One of the adjusted foreground component images is selected, and the selected foreground component image is output.

【0077】次に、図3乃至図18を参照して、信号処
理部に供給される入力画像について説明する。
Next, an input image supplied to the signal processing section will be described with reference to FIGS.

【0078】図3は、センサによる撮像を説明する図で
ある。センサは、例えば、固体撮像素子であるCCD(Cha
rge-Coupled Device)エリアセンサを備えたCCDビデオ
カメラなどで構成される。現実世界における、前景に対
応するオブジェクトは、現実世界における、背景に対応
するオブジェクトと、センサとの間を、例えば、図中の
左側から右側に水平に移動する。
FIG. 3 is a diagram for explaining image pickup by a sensor. The sensor is, for example, a CCD (Cha
(rge-Coupled Device) It consists of a CCD video camera equipped with an area sensor. The object corresponding to the foreground in the real world moves horizontally between the object corresponding to the background and the sensor in the real world, for example, from left to right in the figure.

【0079】センサは、前景に対応するオブジェクト
を、背景に対応するオブジェクトと共に撮像する。セン
サは、撮像した画像を1フレーム単位で出力する。例え
ば、センサは、1秒間に30フレームから成る画像を出
力する。センサの露光時間は、1/30秒とすることが
できる。露光時間は、センサが入力された光の電荷への
変換を開始してから、入力された光の電荷への変換を終
了するまでの期間である。以下、露光時間をシャッタ時
間とも称する。
The sensor takes an image of the object corresponding to the foreground together with the object corresponding to the background. The sensor outputs the captured image in units of one frame. For example, the sensor outputs an image consisting of 30 frames per second. The exposure time of the sensor can be 1/30 second. The exposure time is a period from when the sensor starts converting the input light into electric charges to when the sensor finishes converting the input light into electric charges. Hereinafter, the exposure time is also referred to as a shutter time.

【0080】図4は、画素の配置を説明する図である。
図4中において、A乃至Iは、個々の画素を示す。画素
は、画像に対応する平面上に配置されている。1つの画
素に対応する1つの検出素子は、センサ上に配置されて
いる。センサが画像を撮像するとき、1つの検出素子
は、画像を構成する1つの画素に対応する画素値を出力
する。例えば、検出素子のX方向の位置は、画像上の横
方向の位置に対応し、検出素子のY方向の位置は、画像
上の縦方向の位置に対応する。
FIG. 4 is a diagram illustrating the arrangement of pixels.
In FIG. 4, A to I indicate individual pixels. The pixels are arranged on a plane corresponding to the image. One detection element corresponding to one pixel is arranged on the sensor. When the sensor captures an image, one detection element outputs a pixel value corresponding to one pixel forming the image. For example, the position of the detection element in the X direction corresponds to the position in the horizontal direction on the image, and the position of the detection element in the Y direction corresponds to the position in the vertical direction on the image.

【0081】図5に示すように、例えば、CCDである検
出素子は、シャッタ時間に対応する期間、入力された光
を電荷に変換して、変換された電荷を蓄積する。電荷の
量は、入力された光の強さと、光が入力されている時間
にほぼ比例する。検出素子は、シャッタ時間に対応する
期間において、入力された光から変換された電荷を、既
に蓄積されている電荷に加えていく。すなわち、検出素
子は、シャッタ時間に対応する期間、入力される光を積
分して、積分された光に対応する量の電荷を蓄積する。
検出素子は、時間に対して、積分効果があるとも言え
る。
As shown in FIG. 5, for example, a detection element such as a CCD converts input light into electric charges for a period corresponding to the shutter time, and accumulates the converted electric charges. The amount of charge is substantially proportional to the intensity of the input light and the time during which the light is input. The detection element adds the electric charge converted from the input light to the electric charge already stored in a period corresponding to the shutter time. That is, the detection element integrates the input light for a period corresponding to the shutter time, and accumulates an amount of charge corresponding to the integrated light.
It can be said that the detection element has an integration effect with respect to time.

【0082】検出素子に蓄積された電荷は、図示せぬ回
路により、電圧値に変換され、電圧値は更にデジタルデ
ータなどの画素値に変換されて出力される。従って、セ
ンサから出力される個々の画素値は、前景または背景に
対応するオブジェクトの空間的に広がりを有するある部
分を、シャッタ時間について積分した結果である、1次
元の空間に射影された値を有する。
The electric charge accumulated in the detecting element is converted into a voltage value by a circuit (not shown), and the voltage value is further converted into a pixel value such as digital data and output. Therefore, the individual pixel values output from the sensor are obtained by integrating the spatially extended part of the object corresponding to the foreground or background with respect to the shutter time, and projecting the value projected into a one-dimensional space. Have.

【0083】信号処理部は、このようなセンサの蓄積の
動作により、出力信号に埋もれてしまった有意な情報、
例えば、混合比αを抽出する。信号処理部は、前景の画
像オブジェクト自身が混ざり合うことによる生ずる歪み
の量、例えば、動きボケの量などを調整する。また、信
号処理部は、前景の画像オブジェクトと背景の画像オブ
ジェクトとが混ざり合うことにより生ずる歪みの量を調
整する。
The signal processing section has significant information buried in the output signal by the operation of accumulating such a sensor.
For example, the mixture ratio α is extracted. The signal processing unit adjusts the amount of distortion caused by mixing of the foreground image objects themselves, for example, the amount of motion blur. The signal processing unit adjusts the amount of distortion caused by mixing of the foreground image object and the background image object.

【0084】図6は、動いている前景に対応するオブジ
ェクトと、静止している背景に対応するオブジェクトと
を撮像して得られる画像を説明する図である。図6
(A)は、動きを伴う前景に対応するオブジェクトと、
静止している背景に対応するオブジェクトとを撮像して
得られる画像を示している。図6(A)に示す例におい
て、前景に対応するオブジェクトは、画面に対して水平
に左から右に動いている。
FIG. 6 is a diagram for explaining an image obtained by capturing an object corresponding to a moving foreground and an object corresponding to a stationary background. FIG.
(A) shows an object corresponding to a foreground with motion;
An image obtained by capturing an object corresponding to a stationary background is shown. In the example shown in FIG. 6A, the object corresponding to the foreground is moving horizontally from left to right with respect to the screen.

【0085】図6(B)は、図6(A)に示す画像の1
つのラインに対応する画素値を時間方向に展開したモデ
ル図である。図6(B)の横方向は、図6(A)の空間
方向Xに対応している。
FIG. 6B shows one of the images shown in FIG.
FIG. 6 is a model diagram in which pixel values corresponding to two lines are developed in the time direction. The horizontal direction in FIG. 6B corresponds to the spatial direction X in FIG.

【0086】背景領域の画素は、背景の成分、すなわ
ち、背景のオブジェクトに対応する画像の成分のみか
ら、その画素値が構成されている。前景領域の画素は、
前景の成分、すなわち、前景のオブジェクトに対応する
画像の成分のみから、その画素値が構成されている。
The pixels in the background area have their pixel values composed only of the background components, ie, the image components corresponding to the background objects. Pixels in the foreground area are
The pixel value is composed of only the foreground components, that is, the components of the image corresponding to the foreground object.

【0087】混合領域の画素は、背景の成分、および前
景の成分から、その画素値が構成されている。混合領域
は、背景の成分、および前景の成分から、その画素値が
構成されているので、歪み領域ともいえる。混合領域
は、更に、カバードバックグラウンド領域およびアンカ
バードバックグラウンド領域に分類される。
The pixels of the mixed area have their pixel values made up of the background component and the foreground component. Since the pixel value of the mixed area is composed of the background component and the foreground component, it can be said that the mixed area is a distortion area. The mixed area is further classified into a covered background area and an uncovered background area.

【0088】カバードバックグラウンド領域は、前景領
域に対して、前景のオブジェクトの進行方向の前端部に
対応する位置の混合領域であり、時間の経過に対応して
背景成分が前景に覆い隠される領域をいう。
The covered background area is a mixed area at a position corresponding to the front end of the foreground object in the traveling direction with respect to the foreground area, and is an area where the background component is covered by the foreground as time passes. Say.

【0089】これに対して、アンカバードバックグラウ
ンド領域は、前景領域に対して、前景のオブジェクトの
進行方向の後端部に対応する位置の混合領域であり、時
間の経過に対応して背景成分が現れる領域をいう。
On the other hand, the uncovered background area is a mixed area at a position corresponding to the rear end of the foreground object in the traveling direction with respect to the foreground area. Means the area where appears.

【0090】このように、前景領域、背景領域、または
カバードバックグラウンド領域若しくはアンカバードバ
ックグラウンド領域を含む画像が、領域特定部103、
混合比算出部104、および前景背景分離部105に入
力画像として入力される。
As described above, the image including the foreground area, the background area, or the covered background area or the uncovered background area is input to the area specifying unit 103,
The input image is input to the mixture ratio calculation unit 104 and the foreground / background separation unit 105.

【0091】図7は、以上のような、背景領域、前景領
域、混合領域、カバードバックグラウンド領域、および
アンカバードバックグラウンド領域を説明する図であ
る。図6に示す画像に対応する場合、背景領域は、静止
部分であり、前景領域は、動き部分であり、混合領域の
カバードバックグラウンド領域は、背景から前景に変化
する部分であり、混合領域のアンカバードバックグラウ
ンド領域は、前景から背景に変化する部分である。
FIG. 7 is a diagram for explaining the background area, foreground area, mixed area, covered background area, and uncovered background area as described above. In the case of corresponding to the image shown in FIG. 6, the background area is a stationary part, the foreground area is a moving part, the covered background area of the mixed area is a part that changes from the background to the foreground, The uncovered background area is a part that changes from the foreground to the background.

【0092】図8は、静止している前景に対応するオブ
ジェクトおよび静止している背景に対応するオブジェク
トを撮像した画像における、隣接して1列に並んでいる
画素の画素値を時間方向に展開したモデル図である。例
えば、隣接して1列に並んでいる画素として、画面の1
つのライン上に並んでいる画素を選択することができ
る。
FIG. 8 shows, in the time direction, pixel values of adjacent pixels arranged in a line in an image obtained by capturing an object corresponding to a stationary foreground and an object corresponding to a stationary background. FIG. For example, as pixels arranged adjacently in one column,
Pixels arranged on one line can be selected.

【0093】図8に示すF01乃至F04の画素値は、静止し
ている前景のオブジェクトに対応する画素の画素値であ
る。図8に示すB01乃至B04の画素値は、静止している背
景のオブジェクトに対応する画素の画素値である。
The pixel values F01 to F04 shown in FIG. 8 are the pixel values of the pixels corresponding to the stationary foreground object. The pixel values B01 to B04 shown in FIG. 8 are the pixel values of the pixels corresponding to the stationary background object.

【0094】図8における縦方向は、図中の上から下に
向かって時間が経過する。図8中の矩形の上辺の位置
は、センサが入力された光の電荷への変換を開始する時
刻に対応し、図8中の矩形の下辺の位置は、センサが入
力された光の電荷への変換を終了する時刻に対応する。
すなわち、図8中の矩形の上辺から下辺までの距離は、
シャッタ時間に対応する。
In the vertical direction in FIG. 8, time elapses from the top to the bottom in the figure. The position on the upper side of the rectangle in FIG. 8 corresponds to the time when the sensor starts converting the input light into electric charge, and the position on the lower side of the rectangle in FIG. Corresponding to the time at which the conversion of.
That is, the distance from the upper side to the lower side of the rectangle in FIG.
Corresponds to the shutter time.

【0095】以下において、シャッタ時間とフレーム間
隔とが同一である場合を例に説明する。
Hereinafter, a case where the shutter time and the frame interval are the same will be described as an example.

【0096】図8における横方向は、図6で説明した空
間方向Xに対応する。より具体的には、図8に示す例に
おいて、図8中の”F01”と記載された矩形の左辺か
ら”B04”と記載された矩形の右辺までの距離は、画素
のピッチの8倍、すなわち、連続している8つの画素の
間隔に対応する。
The horizontal direction in FIG. 8 corresponds to the spatial direction X described in FIG. More specifically, in the example shown in FIG. 8, the distance from the left side of the rectangle described as “F01” to the right side of the rectangle described as “B04” in FIG. 8 is eight times the pixel pitch, That is, it corresponds to the interval between eight consecutive pixels.

【0097】前景のオブジェクトおよび背景のオブジェ
クトが静止している場合、シャッタ時間に対応する期間
において、センサに入力される光は変化しない。
When the foreground object and the background object are stationary, the light input to the sensor does not change during the period corresponding to the shutter time.

【0098】ここで、シャッタ時間に対応する期間を2
つ以上の同じ長さの期間に分割する。例えば、仮想分割
数を4とすると、図8に示すモデル図は、図9に示すモ
デルとして表すことができる。仮想分割数は、前景に対
応するオブジェクトのシャッタ時間内での動き量vなど
に対応して設定される。例えば、4である動き量vに対
応して、仮想分割数は、4とされ、シャッタ時間に対応
する期間は4つに分割される。
Here, the period corresponding to the shutter time is 2
Divide into two or more periods of equal length. For example, if the number of virtual divisions is 4, the model diagram shown in FIG. 8 can be represented as the model shown in FIG. The number of virtual divisions is set according to the amount of movement v of the object corresponding to the foreground within the shutter time. For example, the number of virtual divisions is set to 4 corresponding to the motion amount v of 4, and the period corresponding to the shutter time is divided into four.

【0099】図中の最も上の行は、シャッタが開いて最
初の、分割された期間に対応する。図中の上から2番目
の行は、シャッタが開いて2番目の、分割された期間に
対応する。図中の上から3番目の行は、シャッタが開い
て3番目の、分割された期間に対応する。図中の上から
4番目の行は、シャッタが開いて4番目の、分割された
期間に対応する。
The uppermost row in the figure corresponds to the first divided period after the shutter is opened. The second row from the top in the figure corresponds to the second divided period from when the shutter has opened. The third row from the top in the figure corresponds to the third divided period from when the shutter has opened. The fourth row from the top in the figure corresponds to the fourth divided period from when the shutter has opened.

【0100】以下、動き量vに対応して分割されたシャ
ッタ時間をシャッタ時間/vとも称する。
Hereinafter, the shutter time divided according to the movement amount v is also referred to as shutter time / v.

【0101】前景に対応するオブジェクトが静止してい
るとき、センサに入力される光は変化しないので、前景
の成分F01/vは、画素値F01を仮想分割数で除した値に等
しい。同様に、前景に対応するオブジェクトが静止して
いるとき、前景の成分F02/vは、画素値F02を仮想分割数
で除した値に等しく、前景の成分F03/vは、画素値F03を
仮想分割数で除した値に等しく、前景の成分F04/vは、
画素値F04を仮想分割数で除した値に等しい。
When the object corresponding to the foreground is stationary, the light input to the sensor does not change, so that the foreground component F01 / v is equal to the value obtained by dividing the pixel value F01 by the number of virtual divisions. Similarly, when the object corresponding to the foreground is stationary, the foreground component F02 / v is equal to a value obtained by dividing the pixel value F02 by the number of virtual divisions, and the foreground component F03 / v is obtained by dividing the pixel value F03 by the virtual value. Equal to the value divided by the number of divisions, the foreground component F04 / v is
It is equal to a value obtained by dividing the pixel value F04 by the number of virtual divisions.

【0102】背景に対応するオブジェクトが静止してい
るとき、センサに入力される光は変化しないので、背景
の成分B01/vは、画素値B01を仮想分割数で除した値に等
しい。同様に、背景に対応するオブジェクトが静止して
いるとき、背景の成分B02/vは、画素値B02を仮想分割数
で除した値に等しく、B03/vは、画素値B03を仮想分割数
で除した値に等しく、B04/vは、画素値B04を仮想分割数
で除した値に等しい。
When the object corresponding to the background is stationary, the light input to the sensor does not change. Therefore, the background component B01 / v is equal to a value obtained by dividing the pixel value B01 by the number of virtual divisions. Similarly, when the object corresponding to the background is stationary, the background component B02 / v is equal to the value obtained by dividing the pixel value B02 by the virtual division number, and B03 / v is the pixel value B03 obtained by dividing the pixel value B03 by the virtual division number. B04 / v is equal to the value obtained by dividing the pixel value B04 by the virtual division number.

【0103】すなわち、前景に対応するオブジェクトが
静止している場合、シャッタ時間に対応する期間におい
て、センサに入力される前景のオブジェクトに対応する
光が変化しないので、シャッタが開いて最初の、シャッ
タ時間/vに対応する前景の成分F01/vと、シャッタが開
いて2番目の、シャッタ時間/vに対応する前景の成分F0
1/vと、シャッタが開いて3番目の、シャッタ時間/vに
対応する前景の成分F01/vと、シャッタが開いて4番目
の、シャッタ時間/vに対応する前景の成分F01/vとは、
同じ値となる。F02/v乃至F04/vも、F01/vと同様の関係
を有する。
That is, when the object corresponding to the foreground is stationary, the light corresponding to the object of the foreground input to the sensor does not change during the period corresponding to the shutter time. Foreground component F01 / v corresponding to time / v, and second foreground component F0 corresponding to shutter time / v after shutter is opened
1 / v, the third foreground component F01 / v corresponding to the shutter time / v when the shutter is opened, and the fourth foreground component F01 / v corresponding to the shutter time / v when the shutter is opened. Is
It has the same value. F02 / v to F04 / v also have the same relationship as F01 / v.

【0104】背景に対応するオブジェクトが静止してい
る場合、シャッタ時間に対応する期間において、センサ
に入力される背景のオブジェクトに対応する光は変化し
ないので、シャッタが開いて最初の、シャッタ時間/vに
対応する背景の成分B01/vと、シャッタが開いて2番目
の、シャッタ時間/vに対応する背景の成分B01/vと、シ
ャッタが開いて3番目の、シャッタ時間/vに対応する背
景の成分B01/vと、シャッタが開いて4番目の、シャッ
タ時間/vに対応する背景の成分B01/vとは、同じ値とな
る。B02/v乃至B04/vも、同様の関係を有する。
When the object corresponding to the background is stationary, the light corresponding to the background object input to the sensor does not change during the period corresponding to the shutter time. A background component B01 / v corresponding to v, a second background component B01 / v corresponding to the shutter time / v when the shutter is opened, and a third component corresponding to the shutter time / v when the shutter is opened. The background component B01 / v has the same value as the background component B01 / v corresponding to the fourth shutter time / v after the shutter is opened. B02 / v to B04 / v also have the same relationship.

【0105】次に、前景に対応するオブジェクトが移動
し、背景に対応するオブジェクトが静止している場合に
ついて説明する。
Next, the case where the object corresponding to the foreground moves and the object corresponding to the background is stationary will be described.

【0106】図10は、前景に対応するオブジェクトが
図中の右側に向かって移動する場合の、カバードバック
グラウンド領域を含む、1つのライン上の画素の画素値
を時間方向に展開したモデル図である。図10におい
て、前景の動き量vは、4である。1フレームは短い時
間なので、前景に対応するオブジェクトが剛体であり、
等速で移動していると仮定することができる。図10に
おいて、前景に対応するオブジェクトの画像は、あるフ
レームを基準として次のフレームにおいて4画素分右側
に表示されるように移動する。
FIG. 10 is a model diagram in which pixel values of pixels on one line including a covered background area are developed in the time direction when the object corresponding to the foreground moves rightward in the figure. is there. In FIG. 10, the motion amount v of the foreground is 4. Since one frame is a short time, the object corresponding to the foreground is a rigid body,
It can be assumed that they are moving at a constant speed. In FIG. 10, the image of the object corresponding to the foreground moves so as to be displayed four pixels to the right in the next frame with reference to a certain frame.

【0107】図10において、最も左側の画素乃至左か
ら4番目の画素は、前景領域に属する。図10におい
て、左から5番目乃至左から7番目の画素は、カバード
バックグラウンド領域である混合領域に属する。図10
において、最も右側の画素は、背景領域に属する。
In FIG. 10, the leftmost pixel to the fourth pixel from the left belong to the foreground area. In FIG. 10, the fifth to seventh pixels from the left belong to the mixed area that is the covered background area. FIG.
In, the rightmost pixel belongs to the background area.

【0108】前景に対応するオブジェクトが時間の経過
と共に背景に対応するオブジェクトを覆い隠すように移
動しているので、カバードバックグラウンド領域に属す
る画素の画素値に含まれる成分は、シャッタ時間に対応
する期間のある時点で、背景の成分から、前景の成分に
替わる。
Since the object corresponding to the foreground moves so as to cover the object corresponding to the background with the passage of time, the components included in the pixel values of the pixels belonging to the covered background area correspond to the shutter time. At some point during the period, the background component changes to the foreground component.

【0109】例えば、図10中に太線枠を付した画素値
Mは、式(1)で表される。
For example, in FIG. 10, a pixel value with a thick frame
M is represented by equation (1).

【0110】 M=B02/v+B02/v+F07/v+F06/v (1)M = B02 / v + B02 / v + F07 / v + F06 / v (1)

【0111】例えば、左から5番目の画素は、1つのシ
ャッタ時間/vに対応する背景の成分を含み、3つのシャ
ッタ時間/vに対応する前景の成分を含むので、左から5
番目の画素の混合比αは、1/4である。左から6番目の
画素は、2つのシャッタ時間/vに対応する背景の成分を
含み、2つのシャッタ時間/vに対応する前景の成分を含
むので、左から6番目の画素の混合比αは、1/2であ
る。左から7番目の画素は、3つのシャッタ時間/vに対
応する背景の成分を含み、1つのシャッタ時間/vに対応
する前景の成分を含むので、左から7番目の画素の混合
比αは、3/4である。
For example, the fifth pixel from the left includes a background component corresponding to one shutter time / v and a foreground component corresponding to three shutter times / v.
The mixture ratio α of the second pixel is 1/4. Since the sixth pixel from the left includes a background component corresponding to two shutter times / v and a foreground component corresponding to two shutter times / v, the mixture ratio α of the sixth pixel from the left is , 1/2. Since the seventh pixel from the left includes a background component corresponding to three shutter times / v and a foreground component corresponding to one shutter time / v, the mixture ratio α of the seventh pixel from the left is , 3/4.

【0112】前景に対応するオブジェクトが、剛体であ
り、前景の画像が次のフレームにおいて4画素右側に表
示されるように等速で移動すると仮定できるので、例え
ば、図10中の左から4番目の画素の、シャッタが開い
て最初の、シャッタ時間/vの前景の成分F07/vは、図1
0中の左から5番目の画素の、シャッタが開いて2番目
のシャッタ時間/vに対応する前景の成分に等しい。同様
に、前景の成分F07/vは、図10中の左から6番目の画
素の、シャッタが開いて3番目のシャッタ時間/vに対応
する前景の成分と、図10中の左から7番目の画素の、
シャッタが開いて4番目のシャッタ時間/vに対応する前
景の成分とに、それぞれ等しい。
Since it can be assumed that the object corresponding to the foreground is a rigid body and the foreground image moves at a constant speed so as to be displayed four pixels to the right in the next frame, for example, the fourth object from the left in FIG. The foreground component F07 / v of the pixel of the first shutter time / v after the shutter is opened is shown in FIG.
It is equal to the foreground component of the fifth pixel from the left in 0 corresponding to the second shutter time / v from when the shutter has opened. Similarly, the foreground component F07 / v is the foreground component of the sixth pixel from the left in FIG. 10 corresponding to the third shutter time / v from when the shutter has opened, and the seventh pixel from the left in FIG. Of the pixel of
It is equal to the foreground component corresponding to the fourth shutter time / v after the shutter is opened.

【0113】前景に対応するオブジェクトが、剛体であ
り、前景の画像が次のフレームにおいて4画素右側に表
示されるように等速で移動すると仮定できるので、例え
ば、図10中の左から3番目の画素の、シャッタが開い
て最初のシャッタ時間/vの前景の成分F06/vは、図10
中の左から4番目の画素の、シャッタが開いて2番目の
シャッタ時間/vに対応する前景の成分に等しい。同様
に、前景の成分F06/vは、図10中の左から5番目の画
素の、シャッタが開いて3番目のシャッタ時間/vに対応
する前景の成分と、図10中の左から6番目の画素の、
シャッタが開いて4番目のシャッタ時間/vに対応する前
景の成分とに、それぞれ等しい。
Since it can be assumed that the object corresponding to the foreground is a rigid body and the foreground image moves at a constant speed so as to be displayed four pixels to the right in the next frame, for example, the third object from the left in FIG. The foreground component F06 / v of the pixel of the first shutter time / v from when the shutter has opened is shown in FIG.
It is equal to the foreground component of the fourth pixel from the left, corresponding to the second shutter time / v from when the shutter has opened. Similarly, the foreground component F06 / v is the foreground component of the fifth pixel from the left in FIG. 10 corresponding to the third shutter time / v from when the shutter has opened, and the sixth pixel from the left in FIG. Of the pixel of
It is equal to the foreground component corresponding to the fourth shutter time / v after the shutter is opened.

【0114】前景に対応するオブジェクトが、剛体であ
り、前景の画像が次のフレームにおいて4画素右側に表
示されるように等速で移動すると仮定できるので、例え
ば、図10中の左から2番目の画素の、シャッタが開い
て最初のシャッタ時間/vの前景の成分F05/vは、図10
中の左から3番目の画素の、シャッタが開いて2番目の
シャッタ時間/vのに対応する前景の成分に等しい。同様
に、前景の成分F05/vは、図10中の左から4番目の画
素の、シャッタが開いて3番目のシャッタ時間/vに対応
する前景の成分と、図10中の左から5番目の画素の、
シャッタが開いて4番目のシャッタ時間/vに対応する前
景の成分とに、それぞれ等しい。
Since it can be assumed that the object corresponding to the foreground is a rigid body and the foreground image moves at a constant speed so as to be displayed four pixels to the right in the next frame, for example, the second from the left in FIG. The foreground component F05 / v of the pixel of the first shutter time / v from when the shutter has opened is shown in FIG.
It is equal to the foreground component of the third pixel from the left corresponding to the second shutter time / v from when the shutter has opened. Similarly, the foreground component F05 / v is the foreground component of the fourth pixel from the left in FIG. 10 corresponding to the third shutter time / v from when the shutter is opened, and the fifth pixel from the left in FIG. Of the pixel of
It is equal to the foreground component corresponding to the fourth shutter time / v after the shutter is opened.

【0115】前景に対応するオブジェクトが、剛体であ
り、前景の画像が次のフレームにおいて4画素右側に表
示されるように等速で移動すると仮定できるので、例え
ば、図10中の最も左側の画素の、シャッタが開いて最
初のシャッタ時間/vの前景の成分F04/vは、図10中の
左から2番目の画素の、シャッタが開いて2番目のシャ
ッタ時間/vに対応する前景の成分に等しい。同様に、前
景の成分F04/vは、図10中の左から3番目の画素の、
シャッタが開いて3番目のシャッタ時間/vに対応する前
景の成分と、図10中の左から4番目の画素の、シャッ
タが開いて4番目のシャッタ時間/vに対応する前景の成
分とに、それぞれ等しい。
Since it can be assumed that the object corresponding to the foreground is a rigid body and the foreground image moves at a constant speed so as to be displayed four pixels to the right in the next frame, for example, the leftmost pixel in FIG. The foreground component F04 / v of the first shutter time / v from when the shutter is opened is the foreground component of the second pixel from the left in FIG. 10 corresponding to the second shutter time / v from when the shutter is opened. be equivalent to. Similarly, the foreground component F04 / v is the third pixel from the left in FIG.
The foreground component corresponding to the third shutter time / v after the shutter is opened, and the foreground component corresponding to the fourth shutter time / v of the fourth pixel from the left in FIG. , Respectively.

【0116】動いているオブジェクトに対応する前景の
領域は、このように動きボケを含むので、歪み領域とも
言える。
Since the foreground area corresponding to the moving object includes the motion blur, it can be said that the area is a distortion area.

【0117】図11は、前景が図中の右側に向かって移
動する場合の、アンカバードバックグラウンド領域を含
む、1つのライン上の画素の画素値を時間方向に展開し
たモデル図である。図11において、前景の動き量v
は、4である。1フレームは短い時間なので、前景に対
応するオブジェクトが剛体であり、等速で移動している
と仮定することができる。図11において、前景に対応
するオブジェクトの画像は、あるフレームを基準として
次のフレームにおいて4画素分右側に移動する。
FIG. 11 is a model diagram in which pixel values of pixels on one line including the uncovered background area are developed in the time direction when the foreground moves rightward in the figure. In FIG. 11, the foreground motion amount v
Is 4. Since one frame is a short time, it can be assumed that the object corresponding to the foreground is rigid and moves at a constant speed. In FIG. 11, the image of the object corresponding to the foreground moves to the right by four pixels in the next frame with reference to a certain frame.

【0118】図11において、最も左側の画素乃至左か
ら4番目の画素は、背景領域に属する。図11におい
て、左から5番目乃至左から7番目の画素は、アンカバ
ードバックグラウンドである混合領域に属する。図11
において、最も右側の画素は、前景領域に属する。
In FIG. 11, the leftmost pixel to the fourth pixel from the left belong to the background area. In FIG. 11, the fifth through seventh pixels from the left belong to the mixed area that is the uncovered background. FIG.
In, the rightmost pixel belongs to the foreground area.

【0119】背景に対応するオブジェクトを覆っていた
前景に対応するオブジェクトが時間の経過と共に背景に
対応するオブジェクトの前から取り除かれるように移動
しているので、アンカバードバックグラウンド領域に属
する画素の画素値に含まれる成分は、シャッタ時間に対
応する期間のある時点で、前景の成分から、背景の成分
に替わる。
Since the object corresponding to the foreground, which has covered the object corresponding to the background, moves so as to be removed from the front of the object corresponding to the background with the passage of time, the pixels belonging to the uncovered background area At some point during the period corresponding to the shutter time, the component included in the value is changed from the foreground component to the background component.

【0120】例えば、図11中に太線枠を付した画素値
M'は、式(2)で表される。
For example, in FIG. 11, a pixel value with a thick frame
M ′ is represented by equation (2).

【0121】 M'=F02/v+F01/v+B26/v+B26/v (2)M ′ = F02 / v + F01 / v + B26 / v + B26 / v (2)

【0122】例えば、左から5番目の画素は、3つのシ
ャッタ時間/vに対応する背景の成分を含み、1つのシャ
ッタ時間/vに対応する前景の成分を含むので、左から5
番目の画素の混合比αは、3/4である。左から6番目の
画素は、2つのシャッタ時間/vに対応する背景の成分を
含み、2つのシャッタ時間/vに対応する前景の成分を含
むので、左から6番目の画素の混合比αは、1/2であ
る。左から7番目の画素は、1つのシャッタ時間/vに対
応する背景の成分を含み、3つのシャッタ時間/vに対応
する前景の成分を含むので、左から7番目の画素の混合
比αは、1/4である。
For example, the fifth pixel from the left includes a background component corresponding to three shutter times / v and a foreground component corresponding to one shutter time / v.
The mixture ratio α of the third pixel is 3/4. Since the sixth pixel from the left includes a background component corresponding to two shutter times / v and a foreground component corresponding to two shutter times / v, the mixture ratio α of the sixth pixel from the left is , 1/2. Since the seventh pixel from the left includes a background component corresponding to one shutter time / v and a foreground component corresponding to three shutter times / v, the mixture ratio α of the seventh pixel from the left is , 1/4.

【0123】式(1)および式(2)をより一般化する
と、画素値Mは、式(3)で表される。
When the equations (1) and (2) are generalized, the pixel value M is expressed by the equation (3).

【0124】[0124]

【数1】 ここで、αは、混合比である。Bは、背景の画素値であ
り、Fi/vは、前景の成分である。
(Equation 1) Here, α is a mixture ratio. B is a pixel value of the background, and Fi / v is a foreground component.

【0125】前景に対応するオブジェクトが剛体であ
り、等速で動くと仮定でき、かつ、動き量vが4である
ので、例えば、図11中の左から5番目の画素の、シャ
ッタが開いて最初の、シャッタ時間/vの前景の成分F01/
vは、図11中の左から6番目の画素の、シャッタが開
いて2番目のシャッタ時間/vに対応する前景の成分に等
しい。同様に、F01/vは、図11中の左から7番目の画
素の、シャッタが開いて3番目のシャッタ時間/vに対応
する前景の成分と、図11中の左から8番目の画素の、
シャッタが開いて4番目のシャッタ時間/vに対応する前
景の成分とに、それぞれ等しい。
Since it can be assumed that the object corresponding to the foreground is a rigid body and moves at a constant speed, and the movement amount v is 4, for example, the shutter of the fifth pixel from the left in FIG. First foreground component of shutter time / v F01 /
v is equal to the foreground component of the sixth pixel from the left in FIG. 11 corresponding to the second shutter time / v from when the shutter has opened. Similarly, F01 / v is the foreground component of the seventh pixel from the left in FIG. 11 corresponding to the third shutter time / v from when the shutter has opened, and the eighth pixel from the left in FIG. ,
It is equal to the foreground component corresponding to the fourth shutter time / v after the shutter is opened.

【0126】前景に対応するオブジェクトが剛体であ
り、等速で動くと仮定でき、かつ、仮想分割数が4であ
るので、例えば、図11中の左から6番目の画素の、シ
ャッタが開いて最初の、シャッタ時間/vの前景の成分F0
2/vは、図11中の左から7番目の画素の、シャッタが
開いて2番目のシャッタ時間/vに対応する前景の成分に
等しい。同様に、前景の成分F02/vは、図11中の左か
ら8番目の画素の、シャッタが開いて3番目のシャッタ
時間/vに対応する前景の成分に等しい。
Since it can be assumed that the object corresponding to the foreground is a rigid body and moves at a constant speed, and the number of virtual divisions is 4, for example, the shutter of the sixth pixel from the left in FIG. First foreground component F0 of shutter time / v
2 / v is equal to the foreground component of the seventh pixel from the left in FIG. 11 corresponding to the second shutter time / v from when the shutter has opened. Similarly, the foreground component F02 / v is equal to the foreground component of the eighth pixel from the left in FIG. 11 corresponding to the third shutter time / v from when the shutter has opened.

【0127】前景に対応するオブジェクトが剛体であ
り、等速で動くと仮定でき、かつ、動き量vが4である
ので、例えば、図11中の左から7番目の画素の、シャ
ッタが開いて最初の、シャッタ時間/vの前景の成分F03/
vは、図11中の左から8番目の画素の、シャッタが開
いて2番目のシャッタ時間/vに対応する前景の成分に等
しい。
Since it can be assumed that the object corresponding to the foreground is a rigid body and moves at a constant speed, and the amount of movement v is 4, for example, the shutter of the seventh pixel from the left in FIG. First foreground component of shutter time / v F03 /
v is equal to the foreground component of the eighth pixel from the left in FIG. 11 corresponding to the second shutter time / v from when the shutter has opened.

【0128】図9乃至図11の説明において、仮想分割
数は、4であるとして説明したが、仮想分割数は、動き
量vに対応する。動き量vは、一般に、前景に対応するオ
ブジェクトの移動速度に対応する。例えば、前景に対応
するオブジェクトが、あるフレームを基準として次のフ
レームにおいて4画素分右側に表示されるように移動し
ているとき、動き量vは、4とされる。動き量vに対応
し、仮想分割数は、4とされる。同様に、例えば、前景
に対応するオブジェクトが、あるフレームを基準として
次のフレームにおいて6画素分左側に表示されるように
移動しているとき、動き量vは、6とされ、仮想分割数
は、6とされる。
In the description of FIGS. 9 to 11, the number of virtual divisions has been described as four, but the number of virtual divisions corresponds to the amount of motion v. The movement amount v generally corresponds to the moving speed of the object corresponding to the foreground. For example, when the object corresponding to the foreground is moving so as to be displayed four pixels to the right in the next frame with respect to a certain frame, the motion amount v is set to 4. The virtual division number is set to 4 corresponding to the movement amount v. Similarly, for example, when the object corresponding to the foreground is moving so as to be displayed 6 pixels to the left in the next frame with respect to a certain frame, the motion amount v is set to 6, and the number of virtual divisions is , 6.

【0129】図12および図13に、以上で説明した、
前景領域、背景領域、カバードバックグラウンド領域若
しくはアンカバードバックグラウンド領域から成る混合
領域と、分割されたシャッタ時間に対応する前景の成分
および背景の成分との関係を示す。
FIG. 12 and FIG.
The relationship between a mixed area including a foreground area, a background area, a covered background area, or an uncovered background area, and foreground components and background components corresponding to the divided shutter times is shown.

【0130】図12は、静止している背景の前を移動し
ているオブジェクトに対応する前景を含む画像から、前
景領域、背景領域、および混合領域の画素を抽出した例
を示す。図12に示す例において、前景に対応するオブ
ジェクトは、画面に対して水平に移動している。
FIG. 12 shows an example in which pixels of a foreground area, a background area, and a mixed area are extracted from an image including a foreground corresponding to an object moving in front of a stationary background. In the example shown in FIG. 12, the object corresponding to the foreground is moving horizontally with respect to the screen.

【0131】フレーム#n+1は、フレーム#nの次のフレー
ムであり、フレーム#n+2は、フレーム#n+1の次のフレー
ムである。
The frame # n + 1 is a frame next to the frame #n, and the frame # n + 2 is a frame next to the frame # n + 1.

【0132】フレーム#n乃至フレーム#n+2のいずれかか
ら抽出した、前景領域、背景領域、および混合領域の画
素を抽出して、動き量vを4として、抽出された画素の
画素値を時間方向に展開したモデルを図13に示す。
The pixels of the foreground area, the background area, and the mixed area, which are extracted from any of the frames #n to # n + 2, are extracted. FIG. 13 shows a model developed in the time direction.

【0133】前景領域の画素値は、前景に対応するオブ
ジェクトが移動するので、シャッタ時間/vの期間に対応
する、4つの異なる前景の成分から構成される。例え
ば、図13に示す前景領域の画素のうち最も左側に位置
する画素は、F01/v,F02/v,F03/v、およびF04/vから構成
される。すなわち、前景領域の画素は、動きボケを含ん
でいる。
Since the object corresponding to the foreground moves, the pixel value of the foreground area is composed of four different foreground components corresponding to the shutter time / v period. For example, the leftmost pixel among the pixels in the foreground area shown in FIG. 13 includes F01 / v, F02 / v, F03 / v, and F04 / v. That is, pixels in the foreground area include motion blur.

【0134】背景に対応するオブジェクトが静止してい
るので、シャッタ時間に対応する期間において、センサ
に入力される背景に対応する光は変化しない。この場
合、背景領域の画素値は、動きボケを含まない。
Since the object corresponding to the background is stationary, the light input to the sensor corresponding to the background does not change during the period corresponding to the shutter time. In this case, the pixel value of the background area does not include motion blur.

【0135】カバードバックグラウンド領域若しくはア
ンカバードバックグラウンド領域から成る混合領域に属
する画素の画素値は、前景の成分と、背景の成分とから
構成される。
The pixel value of a pixel belonging to a mixed area composed of a covered background area or an uncovered background area is composed of a foreground component and a background component.

【0136】次に、オブジェクトに対応する画像が動い
ているとき、複数のフレームにおける、隣接して1列に
並んでいる画素であって、フレーム上で同一の位置の画
素の画素値を時間方向に展開したモデルについて説明す
る。例えば、オブジェクトに対応する画像が画面に対し
て水平に動いているとき、隣接して1列に並んでいる画
素として、画面の1つのライン上に並んでいる画素を選
択することができる。
Next, when the image corresponding to the object is moving, the pixel values of pixels that are adjacently arranged in one row in a plurality of frames and located at the same position on the frame are determined in the time direction. The following is an explanation of the model developed in. For example, when an image corresponding to an object is moving horizontally with respect to the screen, pixels arranged on one line of the screen can be selected as pixels arranged adjacently in one row.

【0137】図14は、静止している背景に対応するオ
ブジェクトを撮像した画像の3つのフレームの、隣接し
て1列に並んでいる画素であって、フレーム上で同一の
位置の画素の画素値を時間方向に展開したモデル図であ
る。フレーム#nは、フレーム#n-1の次のフレームであ
り、フレーム#n+1は、フレーム#nの次のフレームであ
る。他のフレームも同様に称する。
FIG. 14 is a diagram showing three adjacent frames of three frames of an image of an object corresponding to a stationary background, which are pixels arranged at the same position on the frame. FIG. 4 is a model diagram in which values are developed in a time direction. Frame #n is the next frame after frame # n-1, and frame # n + 1 is the next frame after frame #n. Other frames are similarly referred to.

【0138】図14に示すB01乃至B12の画素値は、静止
している背景のオブジェクトに対応する画素の画素値で
ある。背景に対応するオブジェクトが静止しているの
で、フレーム#n-1乃至フレームn+1において、対応する
画素の画素値は、変化しない。例えば、フレーム#n-1に
おけるB05の画素値を有する画素の位置に対応する、フ
レーム#nにおける画素、およびフレーム#n+1における画
素は、それぞれ、B05の画素値を有する。
The pixel values B01 to B12 shown in FIG. 14 are the pixel values of the pixels corresponding to the stationary background object. Since the object corresponding to the background is stationary, the pixel values of the corresponding pixels do not change in frames # n-1 to n + 1. For example, the pixel in frame #n and the pixel in frame # n + 1 corresponding to the position of the pixel having the pixel value of B05 in frame # n-1 each have the pixel value of B05.

【0139】図15は、静止している背景に対応するオ
ブジェクトと共に図中の右側に移動する前景に対応する
オブジェクトを撮像した画像の3つのフレームの、隣接
して1列に並んでいる画素であって、フレーム上で同一
の位置の画素の画素値を時間方向に展開したモデル図で
ある。図15に示すモデルは、カバードバックグラウン
ド領域を含む。
FIG. 15 is a diagram showing three pixels adjacent to one another in three frames of an image obtained by capturing an object corresponding to a foreground moving to the right in the figure together with an object corresponding to a stationary background. FIG. 4 is a model diagram in which pixel values of pixels at the same position on a frame are developed in the time direction. The model shown in FIG. 15 includes a covered background area.

【0140】図15において、前景に対応するオブジェ
クトが、剛体であり、等速で移動すると仮定でき、前景
の画像が次のフレームにおいて4画素右側に表示される
ように移動するので、前景の動き量vは、4であり、仮
想分割数は、4である。
In FIG. 15, it can be assumed that the object corresponding to the foreground is a rigid body and moves at a constant speed. The quantity v is 4, and the number of virtual divisions is 4.

【0141】例えば、図15中のフレーム#n-1の最も左
側の画素の、シャッタが開いて最初のシャッタ時間/vの
前景の成分は、F12/vとなり、図15中の左から2番目
の画素の、シャッタが開いて2番目のシャッタ時間/vの
前景の成分も、F12/vとなる。図15中の左から3番目
の画素の、シャッタが開いて3番目のシャッタ時間/vの
前景の成分、および図15中の左から4番目の画素の、
シャッタが開いて4番目のシャッタ時間/vの前景の成分
は、F12/vとなる。
For example, the foreground component of the leftmost pixel of frame # n-1 in FIG. 15 corresponding to the first shutter time / v from when the shutter has opened is F12 / v, and the second component from the left in FIG. The foreground component of the pixel of the second shutter time / v after the shutter is opened also becomes F12 / v. The foreground component of the third pixel from the left in FIG. 15 at the third shutter time / v from when the shutter has opened, and the fourth pixel from the left in FIG.
The foreground component of the fourth shutter time / v after the shutter is opened is F12 / v.

【0142】図15中のフレーム#n-1の最も左側の画素
の、シャッタが開いて2番目のシャッタ時間/vの前景の
成分は、F11/vとなり、図15中の左から2番目の画素
の、シャッタが開いて3番目のシャッタ時間/vの前景の
成分も、F11/vとなる。図15中の左から3番目の画素
の、シャッタが開いて4番目のシャッタ時間/vの前景の
成分は、F11/vとなる。
The foreground component of the leftmost pixel of frame # n-1 in FIG. 15 corresponding to the second shutter time / v from when the shutter has opened is F11 / v, and the second component from the left in FIG. The foreground component of the pixel at the third shutter time / v from when the shutter has opened is also F11 / v. The foreground component of the third pixel from the left in FIG. 15 corresponding to the fourth portion of the shutter time / v from when the shutter has opened is F11 / v.

【0143】図15中のフレーム#n-1の最も左側の画素
の、シャッタが開いて3番目のシャッタ時間/vの前景の
成分は、F10/vとなり、図15中の左から2番目の画素
の、シャッタが開いて4番目のシャッタ時間/vの前景の
成分も、F10/vとなる。図15中のフレーム#n-1の最も
左側の画素の、シャッタが開いて4番目のシャッタ時間
/vの前景の成分は、F09/vとなる。
The foreground component of the leftmost pixel of frame # n-1 in FIG. 15 corresponding to the third shutter time / v from when the shutter has opened is F10 / v, which is the second to the left in FIG. The foreground component of the pixel at the fourth shutter time / v from when the shutter has opened is also F10 / v. The fourth shutter time of the leftmost pixel of frame # n-1 in FIG. 15 from when the shutter has opened
The foreground component of / v is F09 / v.

【0144】背景に対応するオブジェクトが静止してい
るので、図15中のフレーム#n-1の左から2番目の画素
の、シャッタが開いて最初のシャッタ時間/vの背景の成
分は、B01/vとなる。図15中のフレーム#n-1の左から
3番目の画素の、シャッタが開いて最初および2番目の
シャッタ時間/vの背景の成分は、B02/vとなる。図15
中のフレーム#n-1の左から4番目の画素の、シャッタが
開いて最初乃至3番目のシャッタ時間/vの背景の成分
は、B03/vとなる。
Since the object corresponding to the background is stationary, the background component of the second pixel from the left of frame # n-1 in FIG. 15 corresponding to the first shutter time / v from when the shutter has opened is B01 / v. The background components of the third pixel from the left of frame # n-1 in FIG. 15 corresponding to the first and second portions of the shutter time / v from when the shutter has opened are B02 / v. FIG.
The background component of the fourth pixel from the left of the middle frame # n-1 corresponding to the first to third shutter time / v from when the shutter has opened is B03 / v.

【0145】図15中のフレーム#n-1において、最も左
側の画素は、前景領域に属し、左側から2番目乃至4番
目の画素は、カバードバックグラウンド領域である混合
領域に属する。
In the frame # n-1 in FIG. 15, the leftmost pixel belongs to the foreground area, and the second to fourth pixels from the left belong to the mixed area which is a covered background area.

【0146】図15中のフレーム#n-1の左から5番目の
画素乃至12番目の画素は、背景領域に属し、その画素
値は、それぞれ、B04乃至B11となる。
The fifth through twelfth pixels from the left of frame # n-1 in FIG. 15 belong to the background area, and their pixel values are B04 through B11, respectively.

【0147】図15中のフレーム#nの左から1番目の画
素乃至5番目の画素は、前景領域に属する。フレーム#n
の前景領域における、シャッタ時間/vの前景の成分は、
F05/v乃至F12/vのいずれかである。
The first through fifth pixels from the left of frame #n in FIG. 15 belong to the foreground area. Frame #n
The foreground component of shutter time / v in the foreground area of
One of F05 / v to F12 / v.

【0148】前景に対応するオブジェクトが、剛体であ
り、等速で移動すると仮定でき、前景の画像が次のフレ
ームにおいて4画素右側に表示されるように移動するの
で、図15中のフレーム#nの左から5番目の画素の、シ
ャッタが開いて最初のシャッタ時間/vの前景の成分は、
F12/vとなり、図15中の左から6番目の画素の、シャ
ッタが開いて2番目のシャッタ時間/vの前景の成分も、
F12/vとなる。図15中の左から7番目の画素の、シャ
ッタが開いて3番目のシャッタ時間/vの前景の成分、お
よび図15中の左から8番目の画素の、シャッタが開い
て4番目のシャッタ時間/vの前景の成分は、F12/vとな
る。
It can be assumed that the object corresponding to the foreground is a rigid body and moves at a constant speed. Since the foreground image moves so as to be displayed four pixels to the right in the next frame, frame #n in FIG. The foreground component of the fifth pixel from the left of the first shutter time / v from when the shutter has opened is
F12 / v, the foreground component of the sixth pixel from the left in FIG. 15 corresponding to the second shutter time / v from when the shutter has opened is also
It becomes F12 / v. The foreground component of the seventh pixel from the left in FIG. 15 at the third shutter time / v from when the shutter has opened, and the fourth shutter time of the eighth pixel from the left in FIG. 15 since the shutter has opened. The foreground component of / v is F12 / v.

【0149】図15中のフレーム#nの左から5番目の画
素の、シャッタが開いて2番目のシャッタ時間/vの前景
の成分は、F11/vとなり、図15中の左から6番目の画
素の、シャッタが開いて3番目のシャッタ時間/vの前景
の成分も、F11/vとなる。図15中の左から7番目の画
素の、シャッタが開いて4番目のシャッタ時間/vの前景
の成分は、F11/vとなる。
The foreground component of the fifth pixel from the left of frame #n in FIG. 15 corresponding to the second shutter time / v from when the shutter has opened is F11 / v, and the sixth pixel from the left in FIG. 15 is F11 / v. The foreground component of the pixel at the third shutter time / v from when the shutter has opened is also F11 / v. The foreground component of the seventh pixel from the left in FIG. 15 corresponding to the fourth portion of the shutter time / v from when the shutter has opened is F11 / v.

【0150】図15中のフレーム#nの左から5番目の画
素の、シャッタが開いて3番目のシャッタ時間/vの前景
の成分は、F10/vとなり、図15中の左から6番目の画
素の、シャッタが開いて4番目のシャッタ時間/vの前景
の成分も、F10/vとなる。図15中のフレーム#nの左か
ら5番目の画素の、シャッタが開いて4番目のシャッタ
時間/vの前景の成分は、F09/vとなる。
The foreground component of the fifth pixel from the left of frame #n in FIG. 15 corresponding to the third shutter time / v from when the shutter has opened is F10 / v, and the sixth pixel from the left in FIG. 15 is F10 / v. The foreground component of the pixel at the fourth shutter time / v from when the shutter has opened is also F10 / v. The foreground component of the fifth pixel from the left of frame #n in FIG. 15 corresponding to the fourth portion of the shutter time / v from when the shutter has opened is F09 / v.

【0151】背景に対応するオブジェクトが静止してい
るので、図15中のフレーム#nの左から6番目の画素
の、シャッタが開いて最初のシャッタ時間/vの背景の成
分は、B05/vとなる。図15中のフレーム#nの左から7
番目の画素の、シャッタが開いて最初および2番目のシ
ャッタ時間/vの背景の成分は、B06/vとなる。図15中
のフレーム#nの左から8番目の画素の、シャッタが開い
て最初乃至3番目の、シャッタ時間/vの背景の成分は、
B07/vとなる。
Since the object corresponding to the background is stationary, the background component of the sixth pixel from the left of frame #n in FIG. 15 corresponding to the first portion of the shutter time / v from when the shutter has opened is B05 / v Becomes 7 from the left of frame #n in FIG.
The background component of the first pixel at the first and second shutter time / v from when the shutter has opened is B06 / v. The background components of the eighth pixel from the left of frame #n in FIG. 15 corresponding to the first to third portions of the shutter time / v from when the shutter has opened are:
B07 / v.

【0152】図15中のフレーム#nにおいて、左側から
6番目乃至8番目の画素は、カバードバックグラウンド
領域である混合領域に属する。
In frame #n in FIG. 15, the sixth through eighth pixels from the left belong to the mixed area which is a covered background area.

【0153】図15中のフレーム#nの左から9番目の画
素乃至12番目の画素は、背景領域に属し、画素値は、
それぞれ、B08乃至B11となる。
The ninth to twelfth pixels from the left of frame #n in FIG. 15 belong to the background area, and the pixel value is
B08 to B11, respectively.

【0154】図15中のフレーム#n+1の左から1番目の
画素乃至9番目の画素は、前景領域に属する。フレーム
#n+1の前景領域における、シャッタ時間/vの前景の成分
は、F01/v乃至F12/vのいずれかである。
The first through ninth pixels from the left of frame # n + 1 in FIG. 15 belong to the foreground area. flame
The foreground component of the shutter time / v in the foreground area of # n + 1 is one of F01 / v to F12 / v.

【0155】前景に対応するオブジェクトが、剛体であ
り、等速で移動すると仮定でき、前景の画像が次のフレ
ームにおいて4画素右側に表示されるように移動するの
で、図15中のフレーム#n+1の左から9番目の画素の、
シャッタが開いて最初のシャッタ時間/vの前景の成分
は、F12/vとなり、図15中の左から10番目の画素
の、シャッタが開いて2番目のシャッタ時間/vの前景の
成分も、F12/vとなる。図15中の左から11番目の画
素の、シャッタが開いて3番目のシャッタ時間/vの前景
の成分、および図15中の左から12番目の画素の、シ
ャッタが開いて4番目のシャッタ時間/vの前景の成分
は、F12/vとなる。
It can be assumed that the object corresponding to the foreground is a rigid body and moves at a constant speed. Since the foreground image moves so as to be displayed four pixels to the right in the next frame, frame #n in FIG. Of the ninth pixel from the left of +1
The foreground component of the first shutter time / v after the shutter is opened is F12 / v, and the foreground component of the tenth pixel from the left in FIG. It becomes F12 / v. The foreground component of the eleventh pixel from the left in FIG. 15 corresponding to the third shutter time / v from when the shutter has opened, and the fourth shutter time since the shutter opening of the twelfth pixel from the left in FIG. The foreground component of / v is F12 / v.

【0156】図15中のフレーム#n+1の左から9番目の
画素の、シャッタが開いて2番目のシャッタ時間/vの期
間の前景の成分は、F11/vとなり、図15中の左から1
0番目の画素の、シャッタが開いて3番目のシャッタ時
間/vの前景の成分も、F11/vとなる。図15中の左から
11番目の画素の、シャッタが開いて4番目の、シャッ
タ時間/vの前景の成分は、F11/vとなる。
The foreground component of the ninth pixel from the left of frame # n + 1 in FIG. 15 corresponding to the second portion of the shutter time / v from when the shutter has opened is F11 / v, and as shown in FIG. From 1
The foreground component of the 0th pixel at the third shutter time / v from when the shutter has opened is also F11 / v. The foreground component of the eleventh pixel from the left in FIG. 15 corresponding to the fourth portion of the shutter time / v from when the shutter has opened is F11 / v.

【0157】図15中のフレーム#n+1の左から9番目の
画素の、シャッタが開いて3番目の、シャッタ時間/vの
前景の成分は、F10/vとなり、図15中の左から10番
目の画素の、シャッタが開いて4番目のシャッタ時間/v
の前景の成分も、F10/vとなる。図15中のフレーム#n+
1の左から9番目の画素の、シャッタが開いて4番目の
シャッタ時間/vの前景の成分は、F09/vとなる。
The foreground component of the ninth pixel from the left in frame # n + 1 in FIG. 15 corresponding to the third shutter time / v from when the shutter has opened is F10 / v, and from the left in FIG. 4th shutter time / v after shutter opened for 10th pixel
Is also F10 / v. Frame # n + in FIG.
The foreground component of the ninth pixel from the left in FIG. 1 corresponding to the fourth portion of the shutter time / v from when the shutter has opened is F09 / v.

【0158】背景に対応するオブジェクトが静止してい
るので、図15中のフレーム#n+1の左から10番目の画
素の、シャッタが開いて最初のシャッタ時間/vの背景の
成分は、B09/vとなる。図15中のフレーム#n+1の左か
ら11番目の画素の、シャッタが開いて最初および2番
目のシャッタ時間/vの背景の成分は、B10/vとなる。図
15中のフレーム#n+1の左から12番目の画素の、シャ
ッタが開いて最初乃至3番目の、シャッタ時間/vの背景
の成分は、B11/vとなる。
Since the object corresponding to the background is stationary, the background component of the tenth pixel from the left of frame # n + 1 in FIG. 15 corresponding to the first portion of the shutter time / v from when the shutter has opened is B09 / v. The background components of the eleventh pixel from the left of frame # n + 1 in FIG. 15 corresponding to the first and second portions of the shutter time / v from when the shutter has opened are B10 / v. The background components of the twelfth pixel from the left of frame # n + 1 in FIG. 15 corresponding to the first to third portions of the shutter time / v from when the shutter has opened are B11 / v.

【0159】図15中のフレーム#n+1において、左側か
ら10番目乃至12番目の画素は、カバードバックグラ
ウンド領域である混合領域に対応する。
In frame # n + 1 in FIG. 15, the tenth through twelfth pixels from the left correspond to the mixed area which is the covered background area.

【0160】図16は、図15に示す画素値から前景の
成分を抽出した画像のモデル図である。
FIG. 16 is a model diagram of an image in which foreground components are extracted from the pixel values shown in FIG.

【0161】図17は、静止している背景と共に図中の
右側に移動するオブジェクトに対応する前景を撮像した
画像の3つのフレームの、隣接して1列に並んでいる画
素であって、フレーム上で同一の位置の画素の画素値を
時間方向に展開したモデル図である。図17において、
アンカバードバックグラウンド領域が含まれている。
FIG. 17 shows three adjacent pixels of three frames of an image obtained by capturing a foreground corresponding to an object moving to the right in the figure together with a stationary background. FIG. 10 is a model diagram in which pixel values of pixels at the same position are developed in the time direction. In FIG.
An uncovered background area is included.

【0162】図17において、前景に対応するオブジェ
クトは、剛体であり、かつ等速で移動していると仮定で
きる。前景に対応するオブジェクトが、次のフレームに
おいて4画素分右側に表示されるように移動しているの
で、動き量vは、4である。
In FIG. 17, it can be assumed that the object corresponding to the foreground is a rigid body and is moving at a constant speed. Since the object corresponding to the foreground is moving so as to be displayed on the right side by four pixels in the next frame, the motion amount v is 4.

【0163】例えば、図17中のフレーム#n-1の最も左
側の画素の、シャッタが開いて最初の、シャッタ時間/v
の前景の成分は、F13/vとなり、図17中の左から2番
目の画素の、シャッタが開いて2番目のシャッタ時間/v
の前景の成分も、F13/vとなる。図17中の左から3番
目の画素の、シャッタが開いて3番目のシャッタ時間/v
の前景の成分、および図17中の左から4番目の画素
の、シャッタが開いて4番目のシャッタ時間/vの前景の
成分は、F13/vとなる。
For example, the shutter time / v of the leftmost pixel of frame # n-1 in FIG.
17 is F13 / v, and the second shutter time / v of the second pixel from the left in FIG.
Is also F13 / v. The third shutter time / v from when the shutter has opened for the third pixel from the left in FIG.
17 and the foreground component of the fourth pixel from the left in FIG. 17 corresponding to the fourth portion of the shutter time / v from when the shutter has opened is F13 / v.

【0164】図17中のフレーム#n-1の左から2番目の
画素の、シャッタが開いて最初のシャッタ時間/vの前景
の成分は、F14/vとなり、図17中の左から3番目の画
素の、シャッタが開いて2番目のシャッタ時間/vの前景
の成分も、F14/vとなる。図17中の左から3番目の画
素の、シャッタが開いて最初の、シャッタ時間/vの前景
の成分は、F15/vとなる。
The foreground component of the second pixel from the left of frame # n-1 in FIG. 17 corresponding to the first shutter time / v from when the shutter has opened is F14 / v, and the third pixel from the left in FIG. 17 is F14 / v. The foreground component of the pixel of the second shutter time / v after the shutter is opened also becomes F14 / v. The foreground component of the third pixel from the left in FIG. 17 corresponding to the first portion of the shutter time / v from when the shutter has opened is F15 / v.

【0165】背景に対応するオブジェクトが静止してい
るので、図17中のフレーム#n-1の最も左側の画素の、
シャッタが開いて2番目乃至4番目の、シャッタ時間/v
の背景の成分は、B25/vとなる。図17中のフレーム#n-
1の左から2番目の画素の、シャッタが開いて3番目お
よび4番目の、シャッタ時間/vの背景の成分は、B26/v
となる。図17中のフレーム#n-1の左から3番目の画素
の、シャッタが開いて4番目のシャッタ時間/vの背景の
成分は、B27/vとなる。
Since the object corresponding to the background is stationary, the leftmost pixel of frame # n-1 in FIG.
Second to fourth shutter time / v after shutter opens
Is B25 / v. Frame # n- in FIG.
The background components of the second pixel from the left, the third and fourth portions of the shutter time / v from when the shutter has opened are B26 / v
Becomes The background component of the third pixel from the left of frame # n-1 in FIG. 17 corresponding to the fourth portion of the shutter time / v from when the shutter has opened is B27 / v.

【0166】図17中のフレーム#n-1において、最も左
側の画素乃至3番目の画素は、アンカバードバックグラ
ウンド領域である混合領域に属する。
In frame # n-1 in FIG. 17, the leftmost pixel to the third pixel belong to the mixed area which is the uncovered background area.

【0167】図17中のフレーム#n-1の左から4番目の
画素乃至12番目の画素は、前景領域に属する。フレー
ムの前景の成分は、F13/v乃至F24/vのいずれかである。
The fourth through twelfth pixels from the left of frame # n-1 in FIG. 17 belong to the foreground area. The foreground component of the frame is one of F13 / v to F24 / v.

【0168】図17中のフレーム#nの最も左側の画素乃
至左から4番目の画素は、背景領域に属し、画素値は、
それぞれ、B25乃至B28となる。
The leftmost pixel to the fourth pixel from the left of frame #n in FIG. 17 belong to the background area, and the pixel value is
B25 to B28, respectively.

【0169】前景に対応するオブジェクトが、剛体であ
り、等速で移動すると仮定でき、前景の画像が次のフレ
ームにおいて4画素右側に表示されるように移動するの
で、図17中のフレーム#nの左から5番目の画素の、シ
ャッタが開いて最初のシャッタ時間/vの前景の成分は、
F13/vとなり、図17中の左から6番目の画素の、シャ
ッタが開いて2番目のシャッタ時間/vの前景の成分も、
F13/vとなる。図17中の左から7番目の画素の、シャ
ッタが開いて3番目のシャッタ時間/vの前景の成分、お
よび図17中の左から8番目の画素の、シャッタが開い
て4番目のシャッタ時間/vの前景の成分は、F13/vとな
る。
It can be assumed that the object corresponding to the foreground is a rigid body and moves at a constant speed. Since the foreground image moves so as to be displayed four pixels to the right in the next frame, frame #n in FIG. The foreground component of the fifth pixel from the left of the first shutter time / v from when the shutter has opened is
F13 / v, and the foreground component of the sixth pixel from the left in FIG. 17 corresponding to the second shutter time / v from when the shutter has opened is also
It becomes F13 / v. The foreground component of the seventh pixel from the left in FIG. 17 corresponding to the third shutter time / v from when the shutter has opened, and the fourth shutter time since the shutter opening of the eighth pixel from the left in FIG. 17 The foreground component of / v is F13 / v.

【0170】図17中のフレーム#nの左から6番目の画
素の、シャッタが開いて最初のシャッタ時間/vの前景の
成分は、F14/vとなり、図17中の左から7番目の画素
の、シャッタが開いて2番目のシャッタ時間/vの前景の
成分も、F14/vとなる。図17中の左から8番目の画素
の、シャッタが開いて最初のシャッタ時間/vの前景の成
分は、F15/vとなる。
The foreground component of the sixth pixel from the left of frame #n in FIG. 17 corresponding to the first shutter time / v from when the shutter has opened is F14 / v, and the seventh pixel from the left in FIG. 17 is F14 / v. The foreground component of the second shutter time / v after the shutter is opened also becomes F14 / v. The foreground component of the eighth pixel from the left in FIG. 17 corresponding to the first shutter time / v from when the shutter has opened is F15 / v.

【0171】背景に対応するオブジェクトが静止してい
るので、図17中のフレーム#nの左から5番目の画素
の、シャッタが開いて2番目乃至4番目のシャッタ時間
/vの背景の成分は、B29/vとなる。図17中のフレーム#
nの左から6番目の画素の、シャッタが開いて3番目お
よび4番目のシャッタ時間/vの背景の成分は、B30/vと
なる。図17中のフレーム#nの左から7番目の画素の、
シャッタが開いて4番目のシャッタ時間/vの背景の成分
は、B31/vとなる。
Since the object corresponding to the background is stationary, the second to fourth shutter times of the fifth pixel from the left of frame #n in FIG.
The background component of / v is B29 / v. Frame # in FIG. 17
The background components of the sixth pixel from the left of n corresponding to the third and fourth shutter time / v from when the shutter has opened are B30 / v. Of the seventh pixel from the left of frame #n in FIG.
The background component of the fourth shutter time / v from when the shutter has opened is B31 / v.

【0172】図17中のフレーム#nにおいて、左から5
番目の画素乃至7番目の画素は、アンカバードバックグ
ラウンド領域である混合領域に属する。
In frame #n in FIG.
The seventh through seventh pixels belong to a mixed area that is an uncovered background area.

【0173】図17中のフレーム#nの左から8番目の画
素乃至12番目の画素は、前景領域に属する。フレーム
#nの前景領域における、シャッタ時間/vの期間に対応す
る値は、F13/v乃至F20/vのいずれかである。
The eighth through twelfth pixels from the left of frame #n in FIG. 17 belong to the foreground area. flame
The value corresponding to the shutter time / v period in the foreground area #n is one of F13 / v to F20 / v.

【0174】図17中のフレーム#n+1の最も左側の画素
乃至左から8番目の画素は、背景領域に属し、画素値
は、それぞれ、B25乃至B32となる。
The leftmost pixel to the eighth pixel from the left of frame # n + 1 in FIG. 17 belong to the background area, and have pixel values B25 to B32, respectively.

【0175】前景に対応するオブジェクトが、剛体であ
り、等速で移動すると仮定でき、前景の画像が次のフレ
ームにおいて4画素右側に表示されるように移動するの
で、図17中のフレーム#n+1の左から9番目の画素の、
シャッタが開いて最初のシャッタ時間/vの前景の成分
は、F13/vとなり、図17中の左から10番目の画素
の、シャッタが開いて2番目のシャッタ時間/vの前景の
成分も、F13/vとなる。図17中の左から11番目の画
素の、シャッタが開いて3番目のシャッタ時間/vの前景
の成分、および図17中の左から12番目の画素の、シ
ャッタが開いて4番目のシャッタ時間/vの前景の成分
は、F13/vとなる。
It can be assumed that the object corresponding to the foreground is a rigid body and moves at a constant speed. Since the foreground image moves so as to be displayed four pixels to the right in the next frame, frame #n in FIG. Of the ninth pixel from the left of +1
The foreground component of the first shutter time / v after the shutter is opened is F13 / v, and the foreground component of the tenth pixel from the left in FIG. 17 corresponding to the second shutter time / v after the shutter is opened is also F13 / v. It becomes F13 / v. The foreground component of the eleventh pixel from the left in FIG. 17 corresponding to the third shutter time / v from when the shutter has opened, and the fourth shutter time since the shutter opening of the twelfth pixel from the left in FIG. The foreground component of / v is F13 / v.

【0176】図17中のフレーム#n+1の左から10番目
の画素の、シャッタが開いて最初のシャッタ時間/vの前
景の成分は、F14/vとなり、図17中の左から11番目
の画素の、シャッタが開いて2番目のシャッタ時間/vの
前景の成分も、F14/vとなる。図17中の左から12番
目の画素の、シャッタが開いて最初のシャッタ時間/vの
前景の成分は、F15/vとなる。
The foreground component of the tenth pixel from the left of frame # n + 1 in FIG. 17 corresponding to the first shutter time / v from when the shutter has opened is F14 / v, and the eleventh pixel from the left in FIG. The foreground component of the pixel of the second shutter time / v after the shutter is opened also becomes F14 / v. The foreground component of the twelfth pixel from the left in FIG. 17 corresponding to the first shutter time / v from when the shutter has opened is F15 / v.

【0177】背景に対応するオブジェクトが静止してい
るので、図17中のフレーム#n+1の左から9番目の画素
の、シャッタが開いて2番目乃至4番目の、シャッタ時
間/vの背景の成分は、B33/vとなる。図17中のフレー
ム#n+1の左から10番目の画素の、シャッタが開いて3
番目および4番目のシャッタ時間/vの背景の成分は、B3
4/vとなる。図17中のフレーム#n+1の左から11番目
の画素の、シャッタが開いて4番目のシャッタ時間/vの
背景の成分は、B35/vとなる。
Since the object corresponding to the background is stationary, the background of the ninth pixel from the left of frame # n + 1 in FIG. 17 corresponding to the second through fourth portions of the shutter time / v from when the shutter has opened. Is B33 / v. The 10th pixel from the left of frame # n + 1 in FIG.
The background component of the 4th and 4th shutter time / v is B3
4 / v. The background component of the eleventh pixel from the left of frame # n + 1 in FIG. 17 corresponding to the fourth portion of the shutter time / v from when the shutter has opened is B35 / v.

【0178】図17中のフレーム#n+1において、左から
9番目の画素乃至11番目の画素は、アンカバードバッ
クグラウンド領域である混合領域に属する。
In frame # n + 1 in FIG. 17, the ninth to eleventh pixels from the left belong to the mixed area which is the uncovered background area.

【0179】図17中のフレーム#n+1の左から12番目
の画素は、前景領域に属する。フレーム#n+1の前景領域
における、シャッタ時間/vの前景の成分は、F13/v乃至F
16/vのいずれかである。
The twelfth pixel from the left of frame # n + 1 in FIG. 17 belongs to the foreground area. The foreground components of the shutter time / v in the foreground area of frame # n + 1 are F13 / v to F13 / v
16 / v.

【0180】図18は、図17に示す画素値から前景の
成分を抽出した画像のモデル図である。
FIG. 18 is a model diagram of an image in which foreground components are extracted from the pixel values shown in FIG.

【0181】図2に戻り、領域特定部103は、複数の
フレームの画素値を用いて、前景領域、背景領域、カバ
ードバックグラウンド領域、またはアンカバードバック
グラウンド領域に属することを示すフラグを画素毎に対
応付けて、領域情報として、混合比算出部104および
動きボケ調整部106に供給する。
Referring back to FIG. 2, the area specifying unit 103 uses the pixel values of a plurality of frames to set a flag for each pixel indicating that the pixel belongs to the foreground area, background area, covered background area, or uncovered background area. Is supplied to the mixture ratio calculation unit 104 and the motion blur adjustment unit 106 as region information.

【0182】混合比算出部104は、複数のフレームの
画素値、および領域情報を基に、混合領域に含まれる画
素について画素毎に混合比αを算出し、算出した混合比
αを前景背景分離部105に供給する。
The mixture ratio calculation unit 104 calculates the mixture ratio α for each pixel of the pixels included in the mixed region based on the pixel values of a plurality of frames and the region information, and uses the calculated mixture ratio α for the foreground / background separation. To the unit 105.

【0183】前景背景分離部105は、複数のフレーム
の画素値、領域情報、および混合比αを基に、前景の成
分のみからなる前景成分画像を抽出して、動きボケ調整
部106に供給する。
The foreground / background separation unit 105 extracts a foreground component image consisting of only foreground components based on the pixel values of a plurality of frames, area information, and the mixture ratio α, and supplies the extracted foreground component image to the motion blur adjustment unit 106. .

【0184】動きボケ調整部106は、前景背景分離部
105から供給された前景成分画像、動き検出部102
から供給された動きベクトル、および領域特定部103
から供給された領域情報を基に、前景成分画像に含まれ
る動きボケの量を調整して、動きボケの量を調整した前
景成分画像を出力する。
The motion-blur adjusting unit 106 controls the foreground component image supplied from the foreground / background separating unit 105 and the motion detecting unit 102.
Motion vector supplied from the
The amount of motion blur included in the foreground component image is adjusted on the basis of the area information supplied from, and a foreground component image in which the amount of motion blur is adjusted is output.

【0185】図19のフローチャートを参照して、信号
処理部による動きボケの量の調整の処理を説明する。ス
テップS11において、領域特定部103は、入力画像
を基に、入力画像の画素毎に前景領域、背景領域、カバ
ードバックグラウンド領域、またはアンカバードバック
グラウンド領域のいずれかに属するかを示す領域情報を
生成する領域特定の処理を実行する。領域特定の処理の
詳細は、後述する。領域特定部103は、生成した領域
情報を混合比算出部104に供給する。
The processing for adjusting the amount of motion blur by the signal processing unit will be described with reference to the flowchart in FIG. In step S11, based on the input image, the region identification unit 103 determines, for each pixel of the input image, region information indicating whether the pixel belongs to any of a foreground region, a background region, a covered background region, or an uncovered background region. Execute the process for specifying the area to be generated. The details of the area specifying process will be described later. The region specifying unit 103 supplies the generated region information to the mixture ratio calculation unit 104.

【0186】なお、ステップS11において、領域特定
部103は、入力画像を基に、入力画像の画素毎に前景
領域、背景領域、または混合領域(カバードバックグラ
ウンド領域、またはアンカバードバックグラウンド領域
の区別をしない)のいずれかに属するかを示す領域情報
を生成するようにしてもよい。この場合において、前景
背景分離部105および動きボケ調整部106は、動き
ベクトルの方向を基に、混合領域がカバードバックグラ
ウンド領域であるか、またはアンカバードバックグラウ
ンド領域であるかを判定する。例えば、動きベクトルの
方向に対応して、前景領域、混合領域、および背景領域
と順に並んでいるとき、その混合領域は、カバードバッ
クグラウンド領域と判定され、動きベクトルの方向に対
応して、背景領域、混合領域、および前景領域と順に並
んでいるとき、その混合領域は、アンカバードバックグ
ラウンド領域と判定される。
In step S11, based on the input image, the area specifying unit 103 determines, for each pixel of the input image, a foreground area, a background area, or a mixed area (covered background area or uncovered background area). May be generated. In this case, the foreground / background separation unit 105 and the motion blur adjustment unit 106 determine whether the mixed area is a covered background area or an uncovered background area based on the direction of the motion vector. For example, when the foreground area, the mixed area, and the background area are sequentially arranged in correspondence with the direction of the motion vector, the mixed area is determined as a covered background area, and the background area is determined according to the direction of the motion vector. When the area, the mixed area, and the foreground area are arranged in this order, the mixed area is determined to be an uncovered background area.

【0187】ステップS12において、混合比算出部1
04は、入力画像および領域情報を基に、混合領域に含
まれる画素毎に、混合比αを算出する。混合比算出の処
理の詳細は、後述する。混合比算出部104は、算出し
た混合比αを前景背景分離部105に供給する。
In step S12, the mixture ratio calculation unit 1
A step 04 calculates a mixture ratio α for each pixel included in the mixed region based on the input image and the region information. Details of the process of calculating the mixture ratio will be described later. The mixture ratio calculator 104 supplies the calculated mixture ratio α to the foreground / background separator 105.

【0188】ステップS13において、前景背景分離部
105は、領域情報、および混合比αを基に、入力画像
から前景の成分を抽出して、前景成分画像として動きボ
ケ調整部106に供給する。
In step S13, the foreground / background separation unit 105 extracts a foreground component from the input image based on the area information and the mixture ratio α, and supplies the foreground component image to the motion blur adjustment unit 106.

【0189】ステップS14において、動きボケ調整部
106は、動きベクトルおよび領域情報を基に、動き方
向に並ぶ連続した画素であって、アンカバードバックグ
ラウンド領域、前景領域、およびカバードバックグラウ
ンド領域のいずれかに属するものの画像上の位置を示す
処理単位を生成し、処理単位に対応する前景成分に含ま
れる動きボケの量を調整する。動きボケの量の調整の処
理の詳細については、後述する。
In step S14, the motion-blur adjusting unit 106 determines which of uncovered background area, foreground area, and covered background area is a continuous pixel lined up in the motion direction based on the motion vector and the area information. A processing unit indicating a position of an image belonging to the genus is generated, and the amount of motion blur included in the foreground component corresponding to the processing unit is adjusted. Details of the process of adjusting the amount of motion blur will be described later.

【0190】ステップS15において、信号処理部は、
画面全体について処理を終了したか否かを判定し、画面
全体について処理を終了していないと判定された場合、
ステップS14に進み、処理単位に対応する前景の成分
を対象とした動きボケの量の調整の処理を繰り返す。
In step S15, the signal processing section
It is determined whether or not processing has been completed for the entire screen, and when it is determined that processing has not been completed for the entire screen,
Proceeding to step S14, the process of adjusting the amount of motion blur for the foreground component corresponding to the processing unit is repeated.

【0191】ステップS15において、画面全体につい
て処理を終了したと判定された場合、処理は終了する。
If it is determined in step S15 that the processing has been completed for the entire screen, the processing ends.

【0192】このように、信号処理部は、前景と背景を
分離して、前景に含まれる動きボケの量を調整すること
ができる。すなわち、信号処理部は、前景の画素の画素
値であるサンプルデータに含まれる動きボケの量を調整
することができる。
As described above, the signal processing unit can separate the foreground from the background and adjust the amount of motion blur included in the foreground. That is, the signal processing unit can adjust the amount of motion blur included in the sample data that is the pixel value of the foreground pixel.

【0193】以下、領域特定部103、混合比算出部1
04、前景背景分離部105、および動きボケ調整部1
06のそれぞれの構成について説明する。
Hereinafter, the area specifying unit 103 and the mixture ratio calculating unit 1
04, foreground / background separation unit 105, and motion blur adjustment unit 1
06 will be described.

【0194】図20は、領域特定部103の構成を示す
ブロック図である。図20に構成を示す領域特定部10
3は、動きベクトルを利用しない。フレームメモリ20
1は、入力された画像をフレーム単位で記憶する。フレ
ームメモリ201は、処理の対象がフレーム#nであると
き、フレーム#nの2つ前のフレームであるフレーム#n-
2、フレーム#nの1つ前のフレームであるフレーム#n-
1、フレーム#n、フレーム#nの1つ後のフレームである
フレーム#n+1、およびフレーム#nの2つ後のフレームで
あるフレーム#n+2を記憶する。
FIG. 20 is a block diagram showing the structure of the area specifying unit 103. Area specifying unit 10 whose configuration is shown in FIG.
No. 3 does not use a motion vector. Frame memory 20
1 stores an input image in frame units. When the processing target is the frame #n, the frame memory 201 stores the frame # n-, which is two frames before the frame #n.
2. Frame # n-, which is the frame immediately before frame #n
1, frame #n, frame # n + 1 which is one frame after frame #n, and frame # n + 2 which is two frames after frame #n.

【0195】静動判定部202−1は、フレーム#nの領
域特定の対象である画素の画像上の位置と同一の位置に
あるフレーム#n+2の画素の画素値、およびフレーム#nの
領域特定の対象である画素の画像上の位置と同一の位置
にあるフレーム#n+1の画素の画素値をフレームメモリ2
01から読み出して、読み出した画素値の差の絶対値を
算出する。静動判定部202−1は、フレーム#n+2の画
素値とフレーム#n+1の画素値との差の絶対値が、予め設
定している閾値Thより大きいか否かを判定し、差の絶対
値が閾値Thより大きいと判定された場合、動きを示す静
動判定を領域判定部203−1に供給する。フレーム#n
+2の画素の画素値とフレーム#n+1の画素の画素値との差
の絶対値が閾値Th以下であると判定された場合、静動判
定部202−1は、静止を示す静動判定を領域判定部2
03−1に供給する。
The still / movement determining unit 202-1 determines the pixel value of the pixel of frame # n + 2 at the same position as the pixel on the image that is the target of specifying the area of frame #n and the pixel value of frame #n. The pixel value of the pixel of frame # n + 1 at the same position as the position of the pixel to be specified in the image is stored in the frame memory 2
First, the absolute value of the difference between the read pixel values is calculated. The static / movement determining unit 202-1 determines whether the absolute value of the difference between the pixel value of the frame # n + 2 and the pixel value of the frame # n + 1 is greater than a preset threshold Th, When it is determined that the absolute value of the difference is larger than the threshold Th, a still / moving determination indicating a motion is supplied to the area determination unit 203-1. Frame #n
When it is determined that the absolute value of the difference between the pixel value of the pixel of +2 and the pixel value of the pixel of frame # n + 1 is equal to or smaller than the threshold Th, the static / movement determining unit 202-1 determines whether or not the static Judgment is made to the area judgment unit 2
03-1.

【0196】静動判定部202−2は、フレーム#nの領
域特定の対象である画素の画像上の位置と同一の位置に
あるフレーム#n+1の画素の画素値、およびフレーム#nの
対象となる画素の画素値をフレームメモリ201から読
み出して、画素値の差の絶対値を算出する。静動判定部
202−2は、フレーム#n+1の画素値とフレーム#nの画
素値との差の絶対値が、予め設定している閾値Thより大
きいか否かを判定し、画素値の差の絶対値が、閾値Thよ
り大きいと判定された場合、動きを示す静動判定を領域
判定部203−1および領域判定部203−2に供給す
る。フレーム#n+1の画素の画素値とフレーム#nの画素の
画素値との差の絶対値が、閾値Th以下であると判定され
た場合、静動判定部202−2は、静止を示す静動判定
を領域判定部203−1および領域判定部203−2に
供給する。
The still / movement determining unit 202-2 determines the pixel value of the pixel of frame # n + 1 at the same position as the position of the pixel to be specified for the region of frame #n, and the pixel value of frame #n. The pixel value of the target pixel is read from the frame memory 201, and the absolute value of the difference between the pixel values is calculated. The static / moving determining unit 202-2 determines whether the absolute value of the difference between the pixel value of the frame # n + 1 and the pixel value of the frame #n is larger than a preset threshold Th. If the absolute value of the difference is determined to be larger than the threshold value Th, a still / moving determination indicating a motion is supplied to the region determination unit 203-1 and the region determination unit 203-2. When it is determined that the absolute value of the difference between the pixel value of the pixel of frame # n + 1 and the pixel value of the pixel of frame #n is equal to or smaller than the threshold Th, the still / moving determination unit 202-2 indicates that the camera is still. The static / movement determination is supplied to the region determination unit 203-1 and the region determination unit 203-2.

【0197】静動判定部202−3は、フレーム#nの領
域特定の対象である画素の画素値、およびフレーム#nの
領域特定の対象である画素の画像上の位置と同一の位置
にあるフレーム#n-1の画素の画素値をフレームメモリ2
01から読み出して、画素値の差の絶対値を算出する。
静動判定部202−3は、フレーム#nの画素値とフレー
ム#n-1の画素値との差の絶対値が、予め設定している閾
値Thより大きいか否かを判定し、画素値の差の絶対値
が、閾値Thより大きいと判定された場合、動きを示す静
動判定を領域判定部203−2および領域判定部203
−3に供給する。フレーム#nの画素の画素値とフレーム
#n-1の画素の画素値との差の絶対値が、閾値Th以下であ
ると判定された場合、静動判定部202−3は、静止を
示す静動判定を領域判定部203−2および領域判定部
203−3に供給する。
The still / moving judgment section 202-3 is located at the same position as the pixel value of the pixel which is the target of specifying the region of the frame #n and the position on the image of the pixel which is the target of specifying the region of the frame #n. The pixel value of the pixel of frame # n-1 is stored in frame memory 2
01, the absolute value of the difference between the pixel values is calculated.
The static / moving determining unit 202-3 determines whether the absolute value of the difference between the pixel value of the frame #n and the pixel value of the frame # n-1 is greater than a preset threshold Th. If the absolute value of the difference is determined to be larger than the threshold Th, the static / moving determination indicating the motion is performed by the region determination unit 203-2 and the region determination unit 203.
-3. Pixel value of pixel of frame #n and frame
When it is determined that the absolute value of the difference between the pixel value of the pixel # n-1 and the pixel value is equal to or smaller than the threshold Th, the still / moving determination unit 202-3 performs the still / moving determination indicating stillness by the region determining unit 203-2. And to the area determination unit 203-3.

【0198】静動判定部202−4は、フレーム#nの領
域特定の対象である画素の画像上の位置と同一の位置に
あるフレーム#n-1の画素の画素値、およびフレーム#nの
領域特定の対象である画素の画像上の位置と同一の位置
にあるフレーム#n-2の画素の画素値をフレームメモリ2
01から読み出して、画素値の差の絶対値を算出する。
静動判定部202−4は、フレーム#n-1の画素値とフレ
ーム#n-2の画素値との差の絶対値が、予め設定している
閾値Thより大きいか否かを判定し、画素値の差の絶対値
が、閾値Thより大きいと判定された場合、動きを示す静
動判定を領域判定部203−3に供給する。フレーム#n
-1の画素の画素値とフレーム#n-2の画素の画素値との差
の絶対値が、閾値Th以下であると判定された場合、静動
判定部202−4は、静止を示す静動判定を領域判定部
203−3に供給する。
The still / movement determining unit 202-4 determines the pixel value of the pixel of frame # n-1 at the same position as the pixel on the image that is the target of specifying the region of frame #n, and the pixel value of frame #n. The pixel value of the pixel of frame # n-2 at the same position as the position of the pixel which is the target of region identification on the image is stored in the frame memory 2
01, the absolute value of the difference between the pixel values is calculated.
The still / moving determination unit 202-4 determines whether the absolute value of the difference between the pixel value of the frame # n-1 and the pixel value of the frame # n-2 is greater than a preset threshold Th, When it is determined that the absolute value of the difference between the pixel values is greater than the threshold Th, a still / moving determination indicating motion is supplied to the region determination unit 203-3. Frame #n
When it is determined that the absolute value of the difference between the pixel value of the pixel −1 and the pixel value of the pixel of frame # n−2 is equal to or smaller than the threshold Th, the static / moving determining unit 202-4 determines that the static The motion determination is supplied to the area determination unit 203-3.

【0199】領域判定部203−1は、静動判定部20
2−1から供給された静動判定が静止を示し、かつ、静
動判定部202−2から供給された静動判定が動きを示
しているとき、フレーム#nにおける領域特定の対象であ
る画素がアンカバードバックグラウンド領域に属すると
判定し、領域の判定される画素に対応するアンカバード
バックグラウンド領域判定フラグに、アンカバードバッ
クグラウンド領域に属することを示す”1”を設定す
る。
The area determining section 203-1 is composed of the static / moving determining section 20.
When the still / movement determination supplied from 2-1 indicates stillness and the still / movement determination supplied from the still / movement determination unit 202-2 indicates movement, the pixel that is the target of region identification in frame #n Is determined to belong to the uncovered background area, and the uncovered background area determination flag corresponding to the pixel whose area is determined is set to “1” indicating that the pixel belongs to the uncovered background area.

【0200】領域判定部203−1は、静動判定部20
2−1から供給された静動判定が動きを示すか、また
は、静動判定部202−2から供給された静動判定が静
止を示しているとき、フレーム#nにおける領域特定の対
象である画素がアンカバードバックグラウンド領域に属
しないと判定し、領域の判定される画素に対応するアン
カバードバックグラウンド領域判定フラグに、アンカバ
ードバックグラウンド領域に属しないことを示す”0”
を設定する。
The area judgment section 203-1 is composed of the static / movement judgment section 20.
When the still / movement determination supplied from 2-1 indicates a motion or the still / movement determination supplied from the still / movement determination unit 202-2 indicates stillness, the region is a target for area identification in frame #n. It is determined that the pixel does not belong to the uncovered background area, and “0” indicating that the pixel does not belong to the uncovered background area is set in the uncovered background area determination flag corresponding to the pixel whose area is determined.
Set.

【0201】領域判定部203−1は、このように”
1”または”0”が設定されたアンカバードバックグラ
ウンド領域判定フラグを判定フラグ格納フレームメモリ
204に供給する。
The area determination unit 203-1 determines "
The uncovered background area determination flag in which 1 ”or“ 0 ”is set is supplied to the determination flag storage frame memory 204.

【0202】領域判定部203−2は、静動判定部20
2−2から供給された静動判定が静止を示し、かつ、静
動判定部202−3から供給された静動判定が静止を示
しているとき、フレーム#nにおける領域特定の対象であ
る画素が静止領域に属すると判定し、領域の判定される
画素に対応する静止領域判定フラグに、静止領域に属す
ることを示す”1”を設定する。
[0202] The area determining section 203-2 includes the static / moving determining section 20.
When the still / movement determination supplied from 2-2 indicates stillness and the still / movement determination supplied from still / movement determination unit 202-3 indicates stillness, the pixel which is the target of region identification in frame #n Is determined to belong to the still area, and “1” indicating that the pixel belongs to the still area is set in the still area determination flag corresponding to the pixel whose area is determined.

【0203】領域判定部203−2は、静動判定部20
2−2から供給された静動判定が動きを示すか、また
は、静動判定部202−3から供給された静動判定が動
きを示しているとき、フレーム#nにおける領域特定の対
象である画素が静止領域に属しないと判定し、領域の判
定される画素に対応する静止領域判定フラグに、静止領
域に属しないことを示す”0”を設定する。
[0203] The area determining section 203-2 is provided with the static / moving determining section 20.
When the static / movement determination supplied from 2-2 indicates a motion, or when the static / movement determination supplied from the static / movement determination unit 202-3 indicates a motion, the region is a target for area identification in frame #n. It is determined that the pixel does not belong to the still area, and “0” indicating that the pixel does not belong to the still area is set in the still area determination flag corresponding to the pixel whose area is determined.

【0204】領域判定部203−2は、このように”
1”または”0”が設定された静止領域判定フラグを判
定フラグ格納フレームメモリ204に供給する。
The area determining unit 203-2 outputs "
The still area determination flag in which “1” or “0” is set is supplied to the determination flag storage frame memory 204.

【0205】領域判定部203−2は、静動判定部20
2−2から供給された静動判定が動きを示し、かつ、静
動判定部202−3から供給された静動判定が動きを示
しているとき、フレーム#nにおける領域特定の対象であ
る画素が動き領域に属すると判定し、領域の判定される
画素に対応する動き領域判定フラグに、動き領域に属す
ることを示す”1”を設定する。
The area determining section 203-2 is provided with the static / moving determining section 20.
When the still / movement determination supplied from 2-2 indicates a movement and the still / movement determination supplied from the still / movement determination unit 202-3 indicates a movement, the pixel which is the target of the region identification in the frame #n Is determined to belong to the motion area, and “1” indicating that the pixel belongs to the motion area is set in the motion area determination flag corresponding to the pixel whose area is determined.

【0206】領域判定部203−2は、静動判定部20
2−2から供給された静動判定が静止を示すか、また
は、静動判定部202−3から供給された静動判定が静
止を示しているとき、フレーム#nにおける領域特定の対
象である画素が動き領域に属しないと判定し、領域の判
定される画素に対応する動き領域判定フラグに、動き領
域に属しないことを示す”0”を設定する。
The area determining section 203-2 is provided with the static / moving determining section 20.
When the static / movement determination supplied from 2-2 indicates stillness, or when the static / movement determination supplied from static / movement determination unit 202-3 indicates stillness, it is a target for area identification in frame #n. It is determined that the pixel does not belong to the motion area, and “0” indicating that the pixel does not belong to the motion area is set in the motion area determination flag corresponding to the pixel whose area is determined.

【0207】領域判定部203−2は、このように”
1”または”0”が設定された動き領域判定フラグを判
定フラグ格納フレームメモリ204に供給する。
[0207] The area determination unit 203-2 determines "
The motion area determination flag in which 1 ”or“ 0 ”is set is supplied to the determination flag storage frame memory 204.

【0208】領域判定部203−3は、静動判定部20
2−3から供給された静動判定が動きを示し、かつ、静
動判定部202−4から供給された静動判定が静止を示
しているとき、フレーム#nにおける領域特定の対象であ
る画素がカバードバックグラウンド領域に属すると判定
し、領域の判定される画素に対応するカバードバックグ
ラウンド領域判定フラグに、カバードバックグラウンド
領域に属することを示す”1”を設定する。
The area determining section 203-3 is provided with the static / moving determining section 20.
When the still / moving judgment supplied from 2-3 indicates a motion and the still / moving judgment supplied from the still / moving judging section 202-4 indicates still, a pixel which is an area identification target in the frame #n Is determined to belong to the covered background area, and “1” indicating that the pixel belongs to the covered background area is set in the covered background area determination flag corresponding to the pixel whose area is determined.

【0209】領域判定部203−3は、静動判定部20
2−3から供給された静動判定が静止を示すか、また
は、静動判定部202−4から供給された静動判定が動
きを示しているとき、フレーム#nにおける領域特定の対
象である画素がカバードバックグラウンド領域に属しな
いと判定し、領域の判定される画素に対応するカバード
バックグラウンド領域判定フラグに、カバードバックグ
ラウンド領域に属しないことを示す”0”を設定する。
[0209] The area determination section 203-3 is provided with the static / movement determination section 20.
When the still / movement determination supplied from 2-3 indicates stillness or when the still / movement determination supplied from the still / movement determination unit 202-4 indicates motion, the region is a target for area identification in frame #n. It is determined that the pixel does not belong to the covered background area, and “0” indicating that the pixel does not belong to the covered background area is set in a covered background area determination flag corresponding to the pixel whose area is determined.

【0210】領域判定部203−3は、このように”
1”または”0”が設定されたカバードバックグラウン
ド領域判定フラグを判定フラグ格納フレームメモリ20
4に供給する。
[0210] The area determination unit 203-3 determines "
The covered background area determination flag in which 1 ”or“ 0 ”is set is stored in the determination flag storage frame memory 20.
4

【0211】判定フラグ格納フレームメモリ204は、
領域判定部203−1から供給されたアンカバードバッ
クグラウンド領域判定フラグ、領域判定部203−2か
ら供給された静止領域判定フラグ、領域判定部203−
2から供給された動き領域判定フラグ、および領域判定
部203−3から供給されたカバードバックグラウンド
領域判定フラグをそれぞれ記憶する。
The judgment flag storage frame memory 204 is
Uncovered background area determination flag supplied from area determination section 203-1, still area determination flag supplied from area determination section 203-2, area determination section 203-
2 and a covered background area determination flag supplied from the area determination unit 203-3.

【0212】判定フラグ格納フレームメモリ204は、
記憶しているアンカバードバックグラウンド領域判定フ
ラグ、静止領域判定フラグ、動き領域判定フラグ、およ
びカバードバックグラウンド領域判定フラグを合成部2
05に供給する。合成部205は、判定フラグ格納フレ
ームメモリ204から供給された、アンカバードバック
グラウンド領域判定フラグ、静止領域判定フラグ、動き
領域判定フラグ、およびカバードバックグラウンド領域
判定フラグを基に、各画素が、アンカバードバックグラ
ウンド領域、静止領域、動き領域、およびカバードバッ
クグラウンド領域のいずれかに属することを示す領域情
報を生成し、判定フラグ格納フレームメモリ206に供
給する。
The judgment flag storage frame memory 204 is
The stored uncovered background area determination flag, still area determination flag, moving area determination flag, and covered background area determination flag are stored in the combining unit 2.
05. Based on the uncovered background area determination flag, the still area determination flag, the motion area determination flag, and the covered background area determination flag supplied from the determination flag storage frame memory 204, the combining unit 205 Area information indicating that the area belongs to any of the covered background area, the still area, the moving area, and the covered background area is generated and supplied to the determination flag storage frame memory 206.

【0213】判定フラグ格納フレームメモリ206は、
合成部205から供給された領域情報を記憶すると共
に、記憶している領域情報を出力する。
The judgment flag storage frame memory 206
The area information supplied from the synthesizing unit 205 is stored, and the stored area information is output.

【0214】次に、領域特定部103の処理の例を図2
1乃至図25を参照して説明する。
Next, an example of the processing of the area specifying unit 103 will be described with reference to FIG.
This will be described with reference to FIGS.

【0215】前景に対応するオブジェクトが移動してい
るとき、オブジェクトに対応する画像の画面上の位置
は、フレーム毎に変化する。図21に示すように、フレ
ーム#nにおいて、Yn(x,y)で示される位置に位置するオ
ブジェクトに対応する画像は、次のフレームであるフレ
ーム#n+1において、Yn+1(x,y)に位置する。
When the object corresponding to the foreground is moving, the position on the screen of the image corresponding to the object changes for each frame. As shown in FIG. 21, in frame #n, the image corresponding to the object located at the position indicated by Yn (x, y) is Yn + 1 (x, y) in frame # n + 1 which is the next frame. located at y).

【0216】前景のオブジェクトに対応する画像の動き
方向に隣接して1列に並ぶ画素の画素値を時間方向に展
開したモデル図を図24に示す。例えば、前景のオブジ
ェクトに対応する画像の動き方向が画面に対して水平で
あるとき、図22におけるモデル図は、1つのライン上
の隣接する画素の画素値を時間方向に展開したモデルを
示す。
FIG. 24 shows a model diagram in which the pixel values of the pixels arranged in one row adjacent to the motion direction of the image corresponding to the foreground object are developed in the time direction. For example, when the motion direction of the image corresponding to the foreground object is horizontal with respect to the screen, the model diagram in FIG. 22 shows a model in which pixel values of adjacent pixels on one line are developed in the time direction.

【0217】図22において、フレーム#nにおけるライ
ンは、フレーム#n+1におけるラインと同一である。
In FIG. 22, the line in frame #n is the same as the line in frame # n + 1.

【0218】フレーム#nにおいて、左から2番目の画素
乃至13番目の画素に含まれているオブジェクトに対応
する前景の成分は、フレーム#n+1において、左から6番
目乃至17番目の画素に含まれる。
In frame #n, the foreground components corresponding to the objects included in the second through thirteenth pixels from the left are the sixth through seventeenth pixels from the left in frame # n + 1. included.

【0219】フレーム#nにおいて、カバードバックグラ
ウンド領域に属する画素は、左から11番目乃至13番
目の画素であり、アンカバードバックグラウンド領域に
属する画素は、左から2番目乃至4番目の画素である。
フレーム#n+1において、カバードバックグラウンド領域
に属する画素は、左から15番目乃至17番目の画素で
あり、アンカバードバックグラウンド領域に属する画素
は、左から6番目乃至8番目の画素である。
In the frame #n, the pixels belonging to the covered background area are the eleventh to thirteenth pixels from the left, and the pixels belonging to the uncovered background area are the second to fourth pixels from the left. .
In frame # n + 1, the pixels belonging to the covered background area are the fifteenth through seventeenth pixels from the left, and the pixels belonging to the uncovered background area are the sixth through eighth pixels from the left.

【0220】図22に示す例において、フレーム#nに含
まれる前景の成分が、フレーム#n+1において4画素移動
しているので、動き量vは、4である。仮想分割数は、
動き量vに対応し、4である。
In the example shown in FIG. 22, since the foreground component included in frame #n has moved by four pixels in frame # n + 1, the motion amount v is 4. The number of virtual divisions is
It corresponds to the movement amount v and is 4.

【0221】次に、注目しているフレームの前後におけ
る混合領域に属する画素の画素値の変化について説明す
る。
Next, changes in pixel values of pixels belonging to the mixed area before and after the frame of interest will be described.

【0222】図23に示す、背景が静止し、前景の動き
量vが4であるフレーム#nにおいて、カバードバックグ
ラウンド領域に属する画素は、左から15番目乃至17
番目の画素である。動き量vが4であるので、1つ前の
フレーム#n-1において、左から15番目乃至17番目の
画素は、背景の成分のみを含み、背景領域に属する。ま
た、更に1つ前のフレーム#n-2において、左から15番
目乃至17番目の画素は、背景の成分のみを含み、背景
領域に属する。
In the frame #n shown in FIG. 23 where the background is stationary and the foreground motion amount v is 4, the pixels belonging to the covered background area are the 15th to 17th pixels from the left.
The pixel of the th. Since the motion amount v is 4, the fifteenth through seventeenth pixels from the left in the immediately preceding frame # n-1 include only background components and belong to the background area. In the immediately preceding frame # n-2, the fifteenth through seventeenth pixels from the left include only background components and belong to the background area.

【0223】ここで、背景に対応するオブジェクトが静
止しているので、フレーム#n-1の左から15番目の画素
の画素値は、フレーム#n-2の左から15番目の画素の画
素値から変化しない。同様に、フレーム#n-1の左から1
6番目の画素の画素値は、フレーム#n-2の左から16番
目の画素の画素値から変化せず、フレーム#n-1の左から
17番目の画素の画素値は、フレーム#n-2の左から17
番目の画素の画素値から変化しない。
Here, since the object corresponding to the background is stationary, the pixel value of the fifteenth pixel from the left of frame # n-1 is the pixel value of the fifteenth pixel from the left of frame # n-2. Does not change from. Similarly, 1 from the left of frame # n-1
The pixel value of the sixth pixel does not change from the pixel value of the sixteenth pixel from the left of frame # n-2, and the pixel value of the seventeenth pixel from the left of frame # n-1 is frame # n- 17 from the left of 2
It does not change from the pixel value of the th pixel.

【0224】すなわち、フレーム#nにおけるカバードバ
ックグラウンド領域に属する画素に対応する、フレーム
#n-1およびフレーム#n-2の画素は、背景の成分のみから
成り、画素値が変化しないので、その差の絶対値は、ほ
ぼ0の値となる。従って、フレーム#nにおける混合領域
に属する画素に対応する、フレーム#n-1およびフレーム
#n-2の画素に対する静動判定は、静動判定部202−4
により、静止と判定される。
That is, a frame corresponding to a pixel belonging to the covered background area in frame #n
The pixels of # n-1 and frame # n-2 are composed of only background components, and the pixel values do not change. Therefore, the absolute value of the difference is almost zero. Therefore, frame # n-1 and frame # n-1 corresponding to the pixels belonging to the mixed area in frame #n
The still / movement determination for the pixel # n-2 is performed by the still / movement determination unit 202-4.
Is determined to be stationary.

【0225】フレーム#nにおけるカバードバックグラウ
ンド領域に属する画素は、前景の成分を含むので、フレ
ーム#n-1における背景の成分のみから成る場合と、画素
値が異なる。従って、フレーム#nにおける混合領域に属
する画素、および対応するフレーム#n-1の画素に対する
静動判定は、静動判定部202−3により、動きと判定
される。
Since the pixels belonging to the covered background area in frame #n include foreground components, the pixel values are different from those of frame # n-1 consisting only of background components. Therefore, the still / movement determination for the pixel belonging to the mixed area in frame #n and the corresponding pixel in frame # n-1 is determined to be a movement by the still / movement determination unit 202-3.

【0226】このように、領域判定部203−3は、静
動判定部202−3から動きを示す静動判定の結果が供
給され、静動判定部202−4から静止を示す静動判定
の結果が供給されたとき、対応する画素がカバードバッ
クグラウンド領域に属すると判定する。
As described above, the region determination unit 203-3 is supplied with the result of the static / moving determination indicating the motion from the static / moving determining unit 202-3, and receives the static / moving determination indicating the stillness from the static / moving determining unit 202-4. When the result is supplied, it is determined that the corresponding pixel belongs to the covered background area.

【0227】図24に示す、背景が静止し、前景の動き
量vが4であるフレーム#nにおいて、アンカバードバッ
クグラウンド領域に含まれる画素は、左から2番目乃至
4番目の画素である。動き量vが4であるので、1つ後
のフレーム#n+1において、左から2番目乃至4番目の画
素は、背景の成分のみを含み、背景領域に属する。ま
た、更に1つ後のフレーム#n+2において、左から2番目
乃至4番目の画素は、背景の成分のみを含み、背景領域
に属する。
In the frame #n shown in FIG. 24 where the background is stationary and the foreground motion amount v is 4, the pixels included in the uncovered background area are the second to fourth pixels from the left. Since the motion amount v is 4, in the next frame # n + 1, the second to fourth pixels from the left include only background components and belong to the background area. Further, in the next frame # n + 2, the second to fourth pixels from the left include only the background component and belong to the background area.

【0228】ここで、背景に対応するオブジェクトが静
止しているので、フレーム#n+2の左から2番目の画素の
画素値は、フレーム#n+1の左から2番目の画素の画素値
から変化しない。同様に、フレーム#n+2の左から3番目
の画素の画素値は、フレーム#n+1の左から3番目の画素
の画素値から変化せず、フレーム#n+2の左から4番目の
画素の画素値は、フレーム#n+1の左から4番目の画素の
画素値から変化しない。
Here, since the object corresponding to the background is stationary, the pixel value of the second pixel from the left of frame # n + 2 is the pixel value of the second pixel from the left of frame # n + 1. Does not change from. Similarly, the pixel value of the third pixel from the left of frame # n + 2 does not change from the pixel value of the third pixel from the left of frame # n + 1, and the pixel value of the third pixel from the left of frame # n + 2 does not change. Does not change from the pixel value of the fourth pixel from the left of frame # n + 1.

【0229】すなわち、フレーム#nにおけるアンカバー
ドバックグラウンド領域に属する画素に対応する、フレ
ーム#n+1およびフレーム#n+2の画素は、背景の成分のみ
から成り、画素値が変化しないので、その差の絶対値
は、ほぼ0の値となる。従って、フレーム#nにおける混
合領域に属する画素に対応する、フレーム#n+1およびフ
レーム#n+2の画素に対する静動判定は、静動判定部20
2−1により、静止と判定される。
That is, the pixels of frame # n + 1 and frame # n + 2 corresponding to the pixels belonging to the uncovered background area in frame #n are composed of only the background components and the pixel values do not change. The absolute value of the difference is almost zero. Therefore, the still / movement determination for the pixels of frame # n + 1 and frame # n + 2 corresponding to the pixels belonging to the mixed area in frame #n is performed by the still / movement determination unit 20
According to 2-1, it is determined to be stationary.

【0230】フレーム#nにおけるアンカバードバックグ
ラウンド領域に属する画素は、前景の成分を含むので、
フレーム#n+1における背景の成分のみから成る場合と、
画素値が異なる。従って、フレーム#nにおける混合領域
に属する画素、および対応するフレーム#n+1の画素に対
する静動判定は、静動判定部202−2により、動きと
判定される。
Since the pixels belonging to the uncovered background area in frame #n include the foreground components,
A case where only the background component in frame # n + 1 is included,
Pixel values are different. Therefore, the still / movement determination for the pixels belonging to the mixed area in frame #n and the corresponding pixels in frame # n + 1 is determined to be a motion by the still / movement determination unit 202-2.

【0231】このように、領域判定部203−1は、静
動判定部202−2から動きを示す静動判定の結果が供
給され、静動判定部202−1から静止を示す静動判定
の結果が供給されたとき、対応する画素がアンカバード
バックグラウンド領域に属すると判定する。
As described above, the area determination unit 203-1 is supplied with the result of the static / movement determination indicating the motion from the static / movement determination unit 202-2, and receives the static / dynamic determination indicating the stillness from the static / movement determination unit 202-1. When the result is supplied, it is determined that the corresponding pixel belongs to the uncovered background area.

【0232】図25は、フレーム#nにおける領域特定部
103の判定条件を示す図である。フレーム#nの判定の
対象となる画素の画像上の位置と同一の位置にあるフレ
ーム#n-2の画素と、フレーム#nの判定の対象となる画素
の画像上の位置と同一の位置にあるフレーム#n-1の画素
とが静止と判定され、フレーム#nの判定の対象となる画
素の画像上の位置と同一の位置にあるフレーム#n-1の画
素と、フレーム#nの画素とが動きと判定されたとき、領
域特定部103は、フレーム#nの判定の対象となる画素
がカバードバックグラウンド領域に属すると判定する。
FIG. 25 is a diagram showing the determination conditions of the area specifying unit 103 in frame #n. The pixel of frame # n-2 at the same position as the position of the pixel to be determined in frame #n on the image and the pixel of frame #n in the same position as the position of the pixel to be determined in frame #n The pixel of a certain frame # n-1 is determined to be still, and the pixel of the frame # n-1 and the pixel of the frame #n at the same position as the position of the pixel to be determined of the frame #n on the image Is determined to be a motion, the area specifying unit 103 determines that the pixel to be determined in the frame #n belongs to the covered background area.

【0233】フレーム#nの判定の対象となる画素の画像
上の位置と同一の位置にあるフレーム#n-1の画素と、フ
レーム#nの画素とが静止と判定され、フレーム#nの画素
と、フレーム#nの判定の対象となる画素の画像上の位置
と同一の位置にあるフレーム#n+1の画素とが静止と判定
されたとき、領域特定部103は、フレーム#nの判定の
対象となる画素が静止領域に属すると判定する。
The pixel of frame # n-1 and the pixel of frame #n at the same position as the position of the pixel to be determined for frame #n on the image are determined to be stationary, and the pixel of frame #n is determined to be still. When the pixel of the frame # n + 1 located at the same position as the position of the pixel to be determined in the frame #n on the image is determined to be still, the region identifying unit 103 determines the frame #n Is determined to belong to the still area.

【0234】フレーム#nの判定の対象となる画素の画像
上の位置と同一の位置にあるフレーム#n-1の画素と、フ
レーム#nの画素とが動きと判定され、フレーム#nの画素
と、フレーム#nの判定の対象となる画素の画像上の位置
と同一の位置にあるフレーム#n+1の画素とが動きと判定
されたとき、領域特定部103は、フレーム#nの判定の
対象となる画素が動き領域に属すると判定する。
The pixel of frame # n-1 and the pixel of frame #n at the same position as the position of the pixel to be determined for frame #n on the image are determined to be moving, and the pixel of frame #n And the pixel of frame # n + 1 located at the same position as the position of the pixel to be determined in frame #n on the image, is determined to be moving. Is determined to belong to the motion area.

【0235】フレーム#nの画素と、フレーム#nの判定の
対象となる画素の画像上の位置と同一の位置にあるフレ
ーム#n+1の画素とが動きと判定され、フレーム#nの判定
の対象となる画素の画像上の位置と同一の位置にあるフ
レーム#n+1の画素と、フレーム#nの判定の対象となる画
素の画像上の位置と同一の位置にあるフレーム#n+2の画
素とが静止と判定されたとき、領域特定部103は、フ
レーム#nの判定の対象となる画素がアンカバードバック
グラウンド領域に属すると判定する。
The pixel of frame #n and the pixel of frame # n + 1 located at the same position on the image as the pixel to be determined of frame #n are determined to be moving, and the determination of frame #n is performed. The pixel of frame # n + 1 located at the same position as the position of the target pixel on the image, and the frame # n + located at the same position on the image of the pixel targeted for determination of frame #n When the two pixels are determined to be still, the region specifying unit 103 determines that the pixel to be determined in the frame #n belongs to the uncovered background region.

【0236】図26は、領域特定部103の領域の特定
の結果の例を示す図である。図26(A)において、カ
バードバックグラウンド領域に属すると判定された画素
は、白で表示されている。図26(B)において、アン
カバードバックグラウンド領域に属すると判定された画
素は、白で表示されている。
FIG. 26 is a diagram showing an example of a result of specifying an area by the area specifying unit 103. In FIG. In FIG. 26A, pixels determined to belong to the covered background area are displayed in white. In FIG. 26B, pixels determined to belong to the uncovered background area are displayed in white.

【0237】図26(C)において、動き領域に属する
と判定された画素は、白で表示されている。図26
(D)において、静止領域に属すると判定された画素
は、白で表示されている。
In FIG. 26C, the pixels determined to belong to the motion area are displayed in white. FIG.
In (D), the pixels determined to belong to the still area are displayed in white.

【0238】図27は、判定フラグ格納フレームメモリ
206が出力する領域情報の内、混合領域を示す領域情
報を画像として示す図である。図27において、カバー
ドバックグラウンド領域またはアンカバードバックグラ
ウンド領域に属すると判定された画素、すなわち混合領
域に属すると判定された画素は、白で表示されている。
判定フラグ格納フレームメモリ206が出力する混合領
域を示す領域情報は、混合領域、および前景領域内のテ
クスチャの無い部分に囲まれたテクスチャの有る部分を
示す。
FIG. 27 is a diagram showing, as an image, area information indicating a mixed area among the area information output from the frame memory 206 for storing the determination flag. In FIG. 27, the pixels determined to belong to the covered background area or the uncovered background area, that is, the pixels determined to belong to the mixed area, are displayed in white.
The area information indicating the mixed area output from the determination flag storage frame memory 206 indicates the mixed area and the part having the texture surrounded by the non-textured part in the foreground area.

【0239】次に、図28のフローチャートを参照し
て、領域特定部103の領域特定の処理を説明する。ス
テップS201において、フレームメモリ201は、判
定の対象となるフレーム#nを含むフレーム#n-2乃至フレ
ーム#n+2の画像を取得する。
Next, the area specifying processing of the area specifying unit 103 will be described with reference to the flowchart in FIG. In step S201, the frame memory 201 acquires images of frames # n-2 to # n + 2 including the frame #n to be determined.

【0240】ステップS202において、静動判定部2
02−3は、フレーム#n-1の画素とフレーム#nの同一位
置の画素とで、静止か否かを判定し、静止と判定された
場合、ステップS203に進み、静動判定部202−2
は、フレーム#nの画素とフレーム#n+1の同一位置の画素
とで、静止か否かを判定する。
In step S202, the static / movement determining unit 2
02-3, the pixel of frame # n-1 and the pixel at the same position of frame #n determine whether or not it is still, and if it is determined that it is still, proceed to step S203, 2
Determines whether the pixel of frame #n and the pixel at the same position of frame # n + 1 are still.

【0241】ステップS203において、フレーム#nの
画素とフレーム#n+1の同一位置の画素とで、静止と判定
された場合、ステップS204に進み、領域判定部20
3−2は、領域の判定される画素に対応する静止領域判
定フラグに、静止領域に属することを示す”1”を設定
する。領域判定部203−2は、静止領域判定フラグを
判定フラグ格納フレームメモリ204に供給し、手続き
は、ステップS205に進む。
In step S203, when it is determined that the pixel of frame #n and the pixel at the same position of frame # n + 1 are still, the process proceeds to step S204, and the region determination unit 20
Step 3-2 sets “1” indicating that the pixel belongs to the still area in the still area determination flag corresponding to the pixel whose area is determined. The region determination unit 203-2 supplies the still region determination flag to the determination flag storage frame memory 204, and the procedure proceeds to step S205.

【0242】ステップS202において、フレーム#n-1
の画素とフレーム#nの同一位置の画素とで、動きと判定
された場合、または、ステップS203において、フレ
ーム#nの画素とフレーム#n+1の同一位置の画素とで、動
きと判定された場合、フレーム#nの画素が静止領域には
属さないので、ステップS204の処理はスキップさ
れ、手続きは、ステップS205に進む。
At step S202, frame # n-1
Pixel and the pixel at the same position of frame #n are determined to be moving, or in step S203, the pixel of frame #n and the pixel at the same position of frame # n + 1 are determined to be moving. In this case, since the pixel of frame #n does not belong to the still area, the process of step S204 is skipped, and the procedure proceeds to step S205.

【0243】ステップS205において、静動判定部2
02−3は、フレーム#n-1の画素とフレーム#nの同一位
置の画素とで、動きか否かを判定し、動きと判定された
場合、ステップS206に進み、静動判定部202−2
は、フレーム#nの画素とフレーム#n+1の同一位置の画素
とで、動きか否かを判定する。
In step S205, static / movement determination section 2
02-3, the pixel of frame # n-1 and the pixel at the same position of frame #n are used to determine whether or not a motion is detected. 2
Determines whether or not there is a motion between the pixel of frame #n and the pixel at the same position of frame # n + 1.

【0244】ステップS206において、フレーム#nの
画素とフレーム#n+1の同一位置の画素とで、動きと判定
された場合、ステップS207に進み、領域判定部20
3−2は、領域の判定される画素に対応する動き領域判
定フラグに、動き領域に属することを示す”1”を設定
する。領域判定部203−2は、動き領域判定フラグを
判定フラグ格納フレームメモリ204に供給し、手続き
は、ステップS208に進む。
If it is determined in step S206 that the pixel of the frame #n and the pixel at the same position of the frame # n + 1 are determined to be moving, the process proceeds to step S207, and the area determination unit 20 determines
3-2 sets “1” indicating that the pixel belongs to the motion area in the motion area determination flag corresponding to the pixel whose area is determined. The area determination unit 203-2 supplies the motion area determination flag to the determination flag storage frame memory 204, and the procedure proceeds to step S208.

【0245】ステップS205において、フレーム#n-1
の画素とフレーム#nの同一位置の画素とで、静止と判定
された場合、または、ステップS206において、フレ
ーム#nの画素とフレーム#n+1の同一位置の画素とで、静
止と判定された場合、フレーム#nの画素が動き領域には
属さないので、ステップS207の処理はスキップさ
れ、手続きは、ステップS208に進む。
In the step S205, the frame # n-1
Pixel and the pixel at the same position of frame #n are determined to be still, or, at step S206, the pixel of frame #n and the pixel at the same position of frame # n + 1 are determined to be still. In this case, since the pixel of frame #n does not belong to the motion area, the process of step S207 is skipped, and the procedure proceeds to step S208.

【0246】ステップS208において、静動判定部2
02−4は、フレーム#n-2の画素とフレーム#n-1の同一
位置の画素とで、静止か否かを判定し、静止と判定され
た場合、ステップS209に進み、静動判定部202−
3は、フレーム#n-1の画素とフレーム#nの同一位置の画
素とで、動きか否かを判定する。
[0246] In step S208, the static / motion judging section 2
02-4, the pixel of frame # n-2 and the pixel at the same position of frame # n-1 are used to determine whether or not they are stationary. 202-
No. 3 determines whether or not the pixel of frame # n-1 and the pixel at the same position of frame #n are moving.

【0247】ステップS209において、フレーム#n-1
の画素とフレーム#nの同一位置の画素とで、動きと判定
された場合、ステップS210に進み、領域判定部20
3−3は、領域の判定される画素に対応するカバードバ
ックグラウンド領域判定フラグに、カバードバックグラ
ウンド領域に属することを示す”1”を設定する。領域
判定部203−3は、カバードバックグラウンド領域判
定フラグを判定フラグ格納フレームメモリ204に供給
し、手続きは、ステップS211に進む。
[0247] In step S209, frame # n-1
If it is determined that there is a motion between the pixel of the frame #n and the pixel at the same position in the frame #n, the process proceeds to step S210, and the region determination unit 20
Step 3-3 sets “1” indicating that the pixel belongs to the covered background area in the covered background area determination flag corresponding to the pixel whose area is determined. The area determination unit 203-3 supplies the covered background area determination flag to the determination flag storage frame memory 204, and the procedure proceeds to step S211.

【0248】ステップS208において、フレーム#n-2
の画素とフレーム#n-1の同一位置の画素とで、動きと判
定された場合、または、ステップS209において、フ
レーム#n-1の画素とフレーム#nの同一位置の画素とで、
静止と判定された場合、フレーム#nの画素がカバードバ
ックグラウンド領域には属さないので、ステップS21
0の処理はスキップされ、手続きは、ステップS211
に進む。
At step S208, frame # n-2
Is determined to be a motion between the pixel of the frame # n-1 and the pixel of the same position of the frame # n-1, or in step S209, the pixel of the frame # n-1 and the pixel of the same position of the frame #n are
If it is determined that the image is stationary, the pixel of frame #n does not belong to the covered background area.
0 is skipped, and the procedure proceeds to step S211.
Proceed to.

【0249】ステップS211において、静動判定部2
02−2は、フレーム#nの画素とフレーム#n+1の同一位
置の画素とで、動きか否かを判定し、動きと判定された
場合、ステップS212に進み、静動判定部202−1
は、フレーム#n+1の画素とフレーム#n+2の同一位置の画
素とで、静止か否かを判定する。
In the step S211, the static / movement judging section 2
In step 02-2, it is determined whether or not the pixel of the frame #n and the pixel at the same position of the frame # n + 1 are moving. 1
Determines whether the pixel at frame # n + 1 and the pixel at the same position in frame # n + 2 are still.

【0250】ステップS212において、フレーム#n+1
の画素とフレーム#n+2の同一位置の画素とで、静止と判
定された場合、ステップS213に進み、領域判定部2
03−1は、領域の判定される画素に対応するアンカバ
ードバックグラウンド領域判定フラグに、アンカバード
バックグラウンド領域に属することを示す”1”を設定
する。領域判定部203−1は、アンカバードバックグ
ラウンド領域判定フラグを判定フラグ格納フレームメモ
リ204に供給し、手続きは、ステップS214に進
む。
In step S212, frame # n + 1
If it is determined that the pixel of the frame # n + 2 and the pixel at the same position in the frame # n + 2 are still, the process proceeds to step S213, and the region determination unit 2
03-1 sets “1” indicating that the pixel belongs to the uncovered background area in the uncovered background area determination flag corresponding to the pixel whose area is determined. The area determination unit 203-1 supplies the uncovered background area determination flag to the determination flag storage frame memory 204, and the procedure proceeds to step S214.

【0251】ステップS211において、フレーム#nの
画素とフレーム#n+1の同一位置の画素とで、静止と判定
された場合、または、ステップS212において、フレ
ーム#n+1の画素とフレーム#n+2の同一位置の画素とで、
動きと判定された場合、フレーム#nの画素がアンカバー
ドバックグラウンド領域には属さないので、ステップS
213の処理はスキップされ、手続きは、ステップS2
14に進む。
In step S211, when it is determined that the pixel of frame #n and the pixel at the same position of frame # n + 1 are stationary, or in step S212, the pixel of frame # n + 1 and the frame #n With the pixel at the same position of +2,
If it is determined that the pixel is in motion, the pixel of frame #n does not belong to the uncovered background area,
Step 213 is skipped, and the procedure proceeds to step S2
Proceed to 14.

【0252】ステップS214において、領域特定部1
03は、フレーム#nの全ての画素について領域を特定し
たか否かを判定し、フレーム#nの全ての画素について領
域を特定していないと判定された場合、手続きは、ステ
ップS202に戻り、他の画素について、領域特定の処
理を繰り返す。
In step S214, region specifying unit 1
03 judges whether or not the area has been specified for all the pixels of frame #n. If it is determined that the area has not been specified for all the pixels of frame #n, the procedure returns to step S202. The region specifying process is repeated for other pixels.

【0253】ステップS214において、フレーム#nの
全ての画素について領域を特定したと判定された場合、
ステップS215に進み、合成部205は、判定フラグ
格納フレームメモリ204に記憶されているアンカバー
ドバックグラウンド領域判定フラグ、およびカバードバ
ックグラウンド領域判定フラグを基に、混合領域を示す
領域情報を生成し、更に、各画素が、アンカバードバッ
クグラウンド領域、静止領域、動き領域、およびカバー
ドバックグラウンド領域のいずれかに属することを示す
領域情報を生成し、生成した領域情報を判定フラグ格納
フレームメモリ206に設定し、処理は終了する。
If it is determined in step S214 that the region has been specified for all the pixels of frame #n,
Proceeding to step S215, the combining unit 205 generates area information indicating the mixed area based on the uncovered background area determination flag and the covered background area determination flag stored in the determination flag storage frame memory 204, Furthermore, area information indicating that each pixel belongs to any of the uncovered background area, the still area, the moving area, and the covered background area is generated, and the generated area information is set in the determination flag storage frame memory 206. Then, the process ends.

【0254】このように、領域特定部103は、フレー
ムに含まれている画素のそれぞれについて、動き領域、
静止領域、アンカバードバックグラウンド領域、または
カバードバックグラウンド領域に属することを示す領域
情報を生成することができる。
As described above, the area specifying unit 103 calculates the motion area,
Region information indicating belonging to a stationary region, an uncovered background region, or a covered background region can be generated.

【0255】なお、領域特定部103は、アンカバード
バックグラウンド領域およびカバードバックグラウンド
領域に対応する領域情報に論理和を適用することによ
り、混合領域に対応する領域情報を生成して、フレーム
に含まれている画素のそれぞれについて、動き領域、静
止領域、または混合領域に属することを示すフラグから
成る領域情報を生成するようにしてもよい。
The area specifying unit 103 generates area information corresponding to the mixed area by applying a logical sum to the area information corresponding to the uncovered background area and the covered background area, and includes the area information in the frame. For each of the pixels that have been set, area information including a flag indicating that the pixel belongs to a moving area, a still area, or a mixed area may be generated.

【0256】前景に対応するオブジェクトがテクスチャ
を有す場合、領域特定部103は、より正確に動き領域
を特定することができる。
When the object corresponding to the foreground has a texture, the area specifying unit 103 can specify the moving area more accurately.

【0257】領域特定部103は、動き領域を示す領域
情報を前景領域を示す領域情報として、また、静止領域
を示す領域情報を背景領域を示す領域情報として出力す
ることができる。
The area specifying unit 103 can output area information indicating a moving area as area information indicating a foreground area and area information indicating a still area as area information indicating a background area.

【0258】なお、背景に対応するオブジェクトが静止
しているとして説明したが、背景領域に対応する画像が
動きを含んでいても上述した領域を特定する処理を適用
することができる。例えば、背景領域に対応する画像が
一様に動いているとき、領域特定部103は、この動き
に対応して画像全体をシフトさせ、背景に対応するオブ
ジェクトが静止している場合と同様に処理する。また、
背景領域に対応する画像が局所毎に異なる動きを含んで
いるとき、領域特定部103は、動きに対応した画素を
選択して、上述の処理を実行する。
Although the description has been made assuming that the object corresponding to the background is stationary, the above-described processing for specifying the area can be applied even if the image corresponding to the background area includes motion. For example, when the image corresponding to the background area is moving uniformly, the area specifying unit 103 shifts the entire image in accordance with this movement, and performs the same processing as when the object corresponding to the background is stationary. I do. Also,
When the image corresponding to the background area includes a different motion for each local area, the area specifying unit 103 selects a pixel corresponding to the motion and executes the above-described processing.

【0259】図29は、領域特定部103の構成を示す
ブロック図である。図29に示す領域特定部103は、
動きベクトルを使用しない。背景画像生成部301は、
入力画像に対応する背景画像を生成し、生成した背景画
像を2値オブジェクト画像抽出部302に供給する。背
景画像生成部301は、例えば、入力画像に含まれる背
景のオブジェクトに対応する画像オブジェクトを抽出し
て、背景画像を生成する。
FIG. 29 is a block diagram showing the structure of the area specifying unit 103. The area specifying unit 103 shown in FIG.
Do not use motion vectors. The background image generation unit 301
A background image corresponding to the input image is generated, and the generated background image is supplied to the binary object image extraction unit 302. The background image generation unit 301 generates, for example, a background image by extracting an image object corresponding to a background object included in the input image.

【0260】前景のオブジェクトに対応する画像の動き
方向に隣接して1列に並ぶ画素の画素値を時間方向に展
開したモデル図の例を図30に示す。例えば、前景のオ
ブジェクトに対応する画像の動き方向が画面に対して水
平であるとき、図30におけるモデル図は、1つのライ
ン上の隣接する画素の画素値を時間方向に展開したモデ
ルを示す。
FIG. 30 shows an example of a model diagram in which the pixel values of the pixels arranged in one row adjacent to the motion direction of the image corresponding to the foreground object are developed in the time direction. For example, when the motion direction of the image corresponding to the foreground object is horizontal with respect to the screen, the model diagram in FIG. 30 shows a model in which pixel values of adjacent pixels on one line are developed in the time direction.

【0261】図30において、フレーム#nにおけるライ
ンは、フレーム#n-1およびフレーム#n+1におけるライン
と同一である。
In FIG. 30, the lines in frame #n are the same as the lines in frame # n-1 and frame # n + 1.

【0262】フレーム#nにおいて、左から6番目の画素
乃至17番目の画素に含まれているオブジェクトに対応
する前景の成分は、フレーム#n-1において、左から2番
目乃至13番目の画素に含まれ、フレーム#n+1におい
て、左から10番目乃至21番目の画素に含まれる。
In frame #n, the foreground components corresponding to the objects included in the sixth through seventeenth pixels from the left are the second through thirteenth pixels from the left in frame # n-1. Included in the 10th to 21st pixels from the left in frame # n + 1.

【0263】フレーム#n-1において、カバードバックグ
ラウンド領域に属する画素は、左から11番目乃至13
番目の画素であり、アンカバードバックグラウンド領域
に属する画素は、左から2番目乃至4番目の画素であ
る。フレーム#nにおいて、カバードバックグラウンド領
域に属する画素は、左から15番目乃至17番目の画素
であり、アンカバードバックグラウンド領域に属する画
素は、左から6番目乃至8番目の画素である。フレーム
#n+1において、カバードバックグラウンド領域に属する
画素は、左から19番目乃至21番目の画素であり、ア
ンカバードバックグラウンド領域に属する画素は、左か
ら10番目乃至12番目の画素である。
In frame # n−1, the pixels belonging to the covered background area are the eleventh to thirteenth pixels from the left.
The second pixel, which belongs to the uncovered background area, is the second to fourth pixels from the left. In frame #n, the pixels belonging to the covered background area are the fifteenth through seventeenth pixels from the left, and the pixels belonging to the uncovered background area are the sixth through eighth pixels from the left. flame
In # n + 1, the pixels belonging to the covered background area are the 19th to 21st pixels from the left, and the pixels belonging to the uncovered background area are the 10th to 12th pixels from the left.

【0264】フレーム#n-1において、背景領域に属する
画素は、左から1番目の画素、および左から14番目乃
至21番目の画素である。フレーム#nにおいて、背景領
域に属する画素は、左から1番目乃至5番目の画素、お
よび左から18番目乃至21番目の画素である。フレー
ム#n+1において、背景領域に属する画素は、左から1番
目乃至9番目の画素である。
In frame # n-1, the pixels belonging to the background area are the first pixel from the left and the fourteenth through twenty-first pixels from the left. In frame #n, the pixels belonging to the background area are the first through fifth pixels from the left and the eighteenth through twenty-first pixels from the left. In frame # n + 1, the pixels belonging to the background area are the first through ninth pixels from the left.

【0265】背景画像生成部301が生成する、図30
の例に対応する背景画像の例を図31に示す。背景画像
は、背景のオブジェクトに対応する画素から構成され、
前景のオブジェクトに対応する画像の成分を含まない。
FIG. 30 generated by the background image generation unit 301
FIG. 31 shows an example of a background image corresponding to the example of FIG. The background image is composed of pixels corresponding to the background object,
The image component corresponding to the foreground object is not included.

【0266】2値オブジェクト画像抽出部302は、背
景画像および入力画像の相関を基に、2値オブジェクト
画像を生成し、生成した2値オブジェクト画像を時間変
化検出部303に供給する。
The binary object image extracting section 302 generates a binary object image based on the correlation between the background image and the input image, and supplies the generated binary object image to the time change detecting section 303.

【0267】図32は、2値オブジェクト画像抽出部3
02の構成を示すブロック図である。相関値演算部32
1は、背景画像生成部301から供給された背景画像お
よび入力画像の相関を演算し、相関値を生成して、生成
した相関値をしきい値処理部322に供給する。
FIG. 32 shows the binary object image extracting unit 3
FIG. 2 is a block diagram showing a configuration of the second embodiment. Correlation value calculator 32
1 calculates a correlation between the background image and the input image supplied from the background image generation unit 301, generates a correlation value, and supplies the generated correlation value to the threshold processing unit 322.

【0268】相関値演算部321は、例えば、図33
(A)に示すように、X4を中心とした3×3の背景画
像の中のブロックと、図33(B)に示すように、背景
画像の中のブロックに対応するY4を中心とした3×3
の入力画像の中のブロックに、式(4)を適用して、Y
4に対応する相関値を算出する。
The correlation value calculating section 321 is, for example, shown in FIG.
As shown in (A), a block in a 3 × 3 background image centered on X 4 and, as shown in FIG. 33B, a center in Y 4 corresponding to a block in the background image. 3 × 3
Applying equation (4) to the block in the input image of
Calculate the correlation value corresponding to 4 .

【0269】[0269]

【数2】 (Equation 2)

【0270】[0270]

【数3】 (Equation 3)

【0271】[0271]

【数4】 (Equation 4)

【0272】相関値演算部321は、このように各画素
に対応して算出された相関値をしきい値処理部322に
供給する。
The correlation value calculation section 321 supplies the correlation value calculated for each pixel as described above to the threshold value processing section 322.

【0273】また、相関値演算部321は、例えば、図
34(A)に示すように、X4を中心とした3×3の背
景画像の中のブロックと、図34(B)に示すように、
背景画像の中のブロックに対応するY4を中心とした3
×3の入力画像の中のブロックに、式(7)を適用し
て、Y4に対応する差分絶対値和を算出するようにして
もよい。
Further, the correlation value calculation unit 321 may, for example, as shown in FIG. 34A, block a 3 × 3 background image centered on X 4 and a block shown in FIG. To
3 centered on Y 4 corresponding to the block in the background image
Equation (7) may be applied to the blocks in the × 3 input image to calculate the sum of absolute differences corresponding to Y 4 .

【0274】[0274]

【数5】 (Equation 5)

【0275】相関値演算部321は、このように算出さ
れた差分絶対値和を相関値として、しきい値処理部32
2に供給する。
The correlation value calculation unit 321 uses the sum of absolute differences calculated in this way as a correlation value,
Feed to 2.

【0276】しきい値処理部322は、相関画像の画素
値としきい値th0とを比較して、相関値がしきい値th0以
下である場合、2値オブジェクト画像の画素値に1を設
定し、相関値がしきい値th0より大きい場合、2値オブ
ジェクト画像の画素値に0を設定して、0または1が画素
値に設定された2値オブジェクト画像を出力する。しき
い値処理部322は、しきい値th0を予め記憶するよう
にしてもよく、または、外部から入力されたしきい値th
0を使用するようにしてもよい。
The threshold value processing section 322 compares the pixel value of the correlation image with the threshold value th0, and sets 1 to the pixel value of the binary object image if the correlation value is equal to or smaller than the threshold value th0. If the correlation value is greater than the threshold value th0, the pixel value of the binary object image is set to 0, and a binary object image in which 0 or 1 is set as the pixel value is output. The threshold value processing unit 322 may store the threshold value th0 in advance, or the threshold value th0 input from the outside may be used.
0 may be used.

【0277】図35は、図30に示す入力画像のモデル
に対応する2値オブジェクト画像の例を示す図である。
2値オブジェクト画像において、背景画像と相関の高い
画素には、画素値に0が設定される。
FIG. 35 is a diagram showing an example of a binary object image corresponding to the model of the input image shown in FIG.
In the binary object image, 0 is set to the pixel value of a pixel having a high correlation with the background image.

【0278】図36は、時間変化検出部303の構成を
示すブロック図である。フレームメモリ341は、フレ
ーム#nの画素について領域を判定するとき、2値オブジ
ェクト画像抽出部302から供給された、フレーム#n-
1、フレーム#n、およびフレーム#n+1の2値オブジェク
ト画像を記憶する。
FIG. 36 is a block diagram showing a configuration of the time change detecting section 303. When determining the area for the pixel of frame #n, the frame memory 341 receives the frame # n- supplied from the binary object image extraction unit 302.
The binary object images of 1, frame #n, and frame # n + 1 are stored.

【0279】領域判定部342は、フレームメモリ34
1に記憶されているフレーム#n-1、フレーム#n、および
フレーム#n+1の2値オブジェクト画像を基に、フレーム
#nの各画素について領域を判定して、領域情報を生成
し、生成した領域情報を出力する。
[0279] The area determination section 342
Based on the binary object images of frame # n-1, frame #n, and frame # n + 1 stored in
A region is determined for each pixel of #n, region information is generated, and the generated region information is output.

【0280】図37は、領域判定部342の判定を説明
する図である。フレーム#nの2値オブジェクト画像の注
目している画素が0であるとき、領域判定部342は、
フレーム#nの注目している画素が背景領域に属すると判
定する。
FIG. 37 is a view for explaining the judgment by the area judgment section 342. When the pixel of interest in the binary object image of frame #n is 0, the region determination unit 342
It is determined that the pixel of interest in frame #n belongs to the background area.

【0281】フレーム#nの2値オブジェクト画像の注目
している画素が1であり、フレーム#n-1の2値オブジェ
クト画像の対応する画素が1であり、フレーム#n+1の2
値オブジェクト画像の対応する画素が1であるとき、領
域判定部342は、フレーム#nの注目している画素が前
景領域に属すると判定する。
The pixel of interest of the binary object image of frame #n is 1, the corresponding pixel of the binary object image of frame # n-1 is 1, and the pixel of interest of frame # n + 1 is 2.
When the corresponding pixel of the value object image is 1, the area determination unit 342 determines that the pixel of interest in frame #n belongs to the foreground area.

【0282】フレーム#nの2値オブジェクト画像の注目
している画素が1であり、フレーム#n-1の2値オブジェ
クト画像の対応する画素が0であるとき、領域判定部3
42は、フレーム#nの注目している画素がカバードバッ
クグラウンド領域に属すると判定する。
When the pixel of interest in the binary object image in frame #n is 1 and the corresponding pixel in the binary object image in frame # n-1 is 0, the area determination unit 3
42 determines that the pixel of interest in frame #n belongs to the covered background area.

【0283】フレーム#nの2値オブジェクト画像の注目
している画素が1であり、フレーム#n+1の2値オブジェ
クト画像の対応する画素が0であるとき、領域判定部3
42は、フレーム#nの注目している画素がアンカバード
バックグラウンド領域に属すると判定する。
When the pixel of interest of the binary object image of frame #n is 1 and the corresponding pixel of the binary object image of frame # n + 1 is 0, the area determination unit 3
42 determines that the pixel of interest in frame #n belongs to the uncovered background area.

【0284】図38は、図30に示す入力画像のモデル
に対応する2値オブジェクト画像について、時間変化検
出部303の判定した例を示す図である。時間変化検出
部303は、2値オブジェクト画像のフレーム#nの対応
する画素が0なので、フレーム#nの左から1番目乃至5
番目の画素を背景領域に属すると判定する。
FIG. 38 is a diagram showing an example in which the time change detection unit 303 has determined the binary object image corresponding to the model of the input image shown in FIG. Since the pixel corresponding to frame #n of the binary object image is 0, the time change detection unit 303 determines that the first to fifth pixels from the left of frame #n
It is determined that the th pixel belongs to the background area.

【0285】時間変化検出部303は、2値オブジェク
ト画像のフレーム#nの画素が1であり、フレーム#n+1の
対応する画素が0なので、左から6番目乃至9番目の画
素をアンカバードバックグラウンド領域に属すると判定
する。
Since the pixel of frame #n of the binary object image is 1 and the corresponding pixel of frame # n + 1 is 0, the time change detecting unit 303 uncovers the sixth through ninth pixels from the left. It is determined that it belongs to the background area.

【0286】時間変化検出部303は、2値オブジェク
ト画像のフレーム#nの画素が1であり、フレーム#n-1の
対応する画素が1であり、フレーム#n+1の対応する画素
が1なので、左から10番目乃至13番目の画素を前景
領域に属すると判定する。
The time change detection unit 303 determines that the pixel of frame #n of the binary object image is 1, the corresponding pixel of frame # n-1 is 1, and the corresponding pixel of frame # n + 1 is 1. Therefore, it is determined that the tenth to thirteenth pixels from the left belong to the foreground area.

【0287】時間変化検出部303は、2値オブジェク
ト画像のフレーム#nの画素が1であり、フレーム#n-1の
対応する画素が0なので、左から14番目乃至17番目
の画素をカバードバックグラウンド領域に属すると判定
する。
Since the pixel of frame #n of the binary object image is 1 and the corresponding pixel of frame # n-1 is 0, the time change detection unit 303 covers the 14th to 17th pixels from the left. It is determined that it belongs to the ground area.

【0288】時間変化検出部303は、2値オブジェク
ト画像のフレーム#nの対応する画素が0なので、左から
18番目乃至21番目の画素を背景領域に属すると判定
する。
Since the pixel corresponding to frame #n of the binary object image is 0, the time change detecting section 303 determines that the 18th to 21st pixels from the left belong to the background area.

【0289】次に、図39のフローチャートを参照し
て、領域判定部103の領域特定の処理を説明する。ス
テップS301において、領域判定部103の背景画像
生成部301は、入力画像を基に、例えば、入力画像に
含まれる背景のオブジェクトに対応する画像オブジェク
トを抽出して背景画像を生成し、生成した背景画像を2
値オブジェクト画像抽出部302に供給する。
Next, referring to the flowchart in FIG. 39, the area specifying process of the area determination unit 103 will be described. In step S301, the background image generation unit 301 of the area determination unit 103 generates a background image by extracting, for example, an image object corresponding to a background object included in the input image based on the input image, and generates the background image. Image 2
It is supplied to the value object image extraction unit 302.

【0290】ステップS302において、2値オブジェ
クト画像抽出部302は、例えば、図33を参照して説
明した演算により、入力画像と背景画像生成部301か
ら供給された背景画像との相関値を演算する。ステップ
S303において、2値オブジェクト画像抽出部302
は、例えば、相関値としきい値th0とを比較することに
より、相関値およびしきい値th0から2値オブジェクト
画像を演算する。
In step S302, the binary object image extracting unit 302 calculates a correlation value between the input image and the background image supplied from the background image generating unit 301 by the calculation described with reference to FIG. 33, for example. . In step S303, the binary object image extraction unit 302
Calculates a binary object image from the correlation value and the threshold value th0, for example, by comparing the correlation value with a threshold value th0.

【0291】ステップS304において、時間変化検出
部303は、領域判定の処理を実行して、処理は終了す
る。
[0291] In step S304, the time change detecting unit 303 executes the area determination processing, and the processing ends.

【0292】図40のフローチャートを参照して、ステ
ップS304に対応する領域判定の処理の詳細を説明す
る。ステップS321において、時間変化検出部303
の領域判定部342は、フレームメモリ341に記憶さ
れているフレーム#nにおいて、注目する画素が0である
か否かを判定し、フレーム#nにおいて、注目する画素が
0であると判定された場合、ステップS322に進み、
フレーム#nの注目する画素が背景領域に属すると設定し
て、処理は終了する。
With reference to the flowchart in FIG. 40, the details of the area determination processing corresponding to step S304 will be described. In step S321, the time change detection unit 303
Is determined in the frame #n stored in the frame memory 341 as to whether or not the pixel of interest is 0. In the frame #n, the pixel of interest is
When it is determined to be 0, the process proceeds to step S322,
The target pixel of frame #n is set to belong to the background area, and the process ends.

【0293】ステップS321において、フレーム#nに
おいて、注目する画素が1であると判定された場合、ス
テップS323に進み、時間変化検出部303の領域判
定部342は、フレームメモリ341に記憶されている
フレーム#nにおいて、注目する画素が1であり、かつ、
フレーム#n-1において、対応する画素が0であるか否か
を判定し、フレーム#nにおいて、注目する画素が1であ
り、かつ、フレーム#n-1において、対応する画素が0で
あると判定された場合、ステップS324に進み、フレ
ーム#nの注目する画素がカバードバックグラウンド領域
に属すると設定して、処理は終了する。
[0293] If it is determined in step S321 that the pixel of interest is 1 in frame #n, the flow advances to step S323, and the area determination unit 342 of the time change detection unit 303 stores the frame in the frame memory 341. In frame #n, the pixel of interest is 1, and
In the frame # n-1, it is determined whether or not the corresponding pixel is 0. In the frame #n, the pixel of interest is 1, and in the frame # n-1, the corresponding pixel is 0. If it is determined that the target pixel of the frame #n belongs to the covered background area, the process proceeds to step S324, and the process ends.

【0294】ステップS323において、フレーム#nに
おいて、注目する画素が0であるか、または、フレーム#
n-1において、対応する画素が1であると判定された場
合、ステップS325に進み、時間変化検出部303の
領域判定部342は、フレームメモリ341に記憶され
ているフレーム#nにおいて、注目する画素が1であり、
かつ、フレーム#n+1において、対応する画素が0である
か否かを判定し、フレーム#nにおいて、注目する画素が
1であり、かつ、フレーム#n+1において、対応する画素
が0であると判定された場合、ステップS326に進
み、フレーム#nの注目する画素がアンカバードバックグ
ラウンド領域に属すると設定して、処理は終了する。
In step S323, in the frame #n, the pixel of interest is 0, or the frame #n
When it is determined that the corresponding pixel is 1 in n−1, the process proceeds to step S325, and the area determination unit 342 of the time change detection unit 303 focuses on the frame #n stored in the frame memory 341. Pixel is 1,
Also, in frame # n + 1, it is determined whether the corresponding pixel is 0 or not, and in frame #n, the pixel of interest is
If it is 1, and it is determined that the corresponding pixel is 0 in frame # n + 1, the process proceeds to step S326, where it is set that the target pixel of frame #n belongs to the uncovered background area. , The process ends.

【0295】ステップS325において、フレーム#nに
おいて、注目する画素が0であるか、または、フレーム#
n+1において、対応する画素が1であると判定された場
合、ステップS327に進み、時間変化検出部303の
領域判定部342は、フレーム#nの注目する画素を前景
領域と設定して、処理は終了する。
[0295] In step S325, in frame #n, the pixel of interest is 0, or
When it is determined that the corresponding pixel is 1 at n + 1, the process proceeds to step S327, and the region determination unit 342 of the time change detection unit 303 sets the target pixel of the frame #n as the foreground region, The process ends.

【0296】このように、領域特定部103は、入力さ
れた画像と対応する背景画像との相関値を基に、入力画
像の画素が前景領域、背景領域、カバードバックグラウ
ンド領域、およびアンカバードバックグラウンド領域の
いずれかに属するかを特定して、特定した結果に対応す
る領域情報を生成することができる。
As described above, based on the correlation value between the input image and the corresponding background image, the area specifying unit 103 determines whether the pixels of the input image are the foreground area, the background area, the covered background area, and the uncovered background area. It is possible to specify which of the ground areas belongs to, and generate area information corresponding to the specified result.

【0297】図41は、領域特定部103の他の構成を
示すブロック図である。図41に示す領域特定部103
は、動き検出部102から供給される動きベクトルとそ
の位置情報を使用する。図29に示す場合と同様の部分
には、同一の番号を付してあり、その説明は省略する。
FIG. 41 is a block diagram showing another configuration of area specifying section 103. Area specifying unit 103 shown in FIG.
Uses the motion vector supplied from the motion detection unit 102 and its position information. The same parts as those shown in FIG. 29 are denoted by the same reference numerals, and description thereof will be omitted.

【0298】ロバスト化部361は、2値オブジェクト
画像抽出部302から供給された、N個のフレームの2
値オブジェクト画像を基に、ロバスト化された2値オブ
ジェクト画像を生成して、時間変化検出部303に出力
する。
[0298] The robust section 361 outputs the 2 frames of N frames supplied from the binary object image extracting section 302.
A robust binary object image is generated based on the value object image and output to the time change detection unit 303.

【0299】図42は、ロバスト化部361の構成を説
明するブロック図である。動き補償部381は、動き検
出部102から供給された動きベクトルとその位置情報
を基に、N個のフレームの2値オブジェクト画像の動き
を補償して、動きが補償された2値オブジェクト画像を
スイッチ382に出力する。
FIG. 42 is a block diagram illustrating the configuration of robust unit 361. Referring to FIG. The motion compensating unit 381 compensates for the motion of the binary object images of the N frames based on the motion vector and the positional information supplied from the motion detecting unit 102, and generates the motion-compensated binary object image. Output to switch 382.

【0300】図43および図44の例を参照して、動き
補償部381の動き補償について説明する。例えば、フ
レーム#nの領域を判定するとき、図43に例を示すフレ
ーム#n-1、フレーム#n、およびフレーム#n+1の2値オブ
ジェクト画像が入力された場合、動き補償部381は、
動き検出部102から供給された動きベクトルを基に、
図44に例を示すように、フレーム#n-1の2値オブジェ
クト画像、およびフレーム#n+1の2値オブジェクト画像
を動き補償して、動き補償された2値オブジェクト画像
をスイッチ382に供給する。
The motion compensation of the motion compensator 381 will be described with reference to the examples of FIGS. 43 and 44. For example, when determining the region of frame #n, when the binary object images of frame # n-1, frame #n, and frame # n + 1 shown in FIG. 43 are input, the motion compensation unit 381 ,
Based on the motion vector supplied from the motion detection unit 102,
As shown in the example of FIG. 44, the binary object image of frame # n-1 and the binary object image of frame # n + 1 are motion-compensated and the motion-compensated binary object image is supplied to the switch 382. I do.

【0301】スイッチ382は、1番目のフレームの動
き補償された2値オブジェクト画像をフレームメモリ3
83−1に出力し、2番目のフレームの動き補償された
2値オブジェクト画像をフレームメモリ383−2に出
力する。同様に、スイッチ382は、3番目乃至N−1
番目のフレームの動き補償された2値オブジェクト画像
のそれぞれをフレームメモリ383−3乃至フレームメ
モリ383−(N−1)のいずれかに出力し、N番目の
フレームの動き補償された2値オブジェクト画像をフレ
ームメモリ383−Nに出力する。
The switch 382 stores the motion-compensated binary object image of the first frame in the frame memory 3.
83-1, and outputs the motion-compensated binary object image of the second frame to the frame memory 383-2. Similarly, the switches 382 are third to N-1
The motion-compensated binary object image of the Nth frame is output to one of the frame memories 383-3 to 383- (N-1), and the motion-compensated binary object image of the Nth frame is output. To the frame memory 383-N.

【0302】フレームメモリ383−1は、1番目のフ
レームの動き補償された2値オブジェクト画像を記憶
し、記憶されている2値オブジェクト画像を重み付け部
384−1に出力する。フレームメモリ383−2は、
2番目のフレームの動き補償された2値オブジェクト画
像を記憶し、記憶されている2値オブジェクト画像を重
み付け部384−2に出力する。
[0302] The frame memory 383-1 stores the motion-compensated binary object image of the first frame, and outputs the stored binary object image to the weighting unit 384-1. The frame memory 383-2 is
The motion-compensated binary object image of the second frame is stored, and the stored binary object image is output to the weighting unit 384-2.

【0303】同様に、フレームメモリ383−3乃至フ
レームメモリ383−(N−1)のそれぞれは、3番目
のフレーム乃至N−1番目のフレームの動き補償された
2値オブジェクト画像のいずれかを記憶し、記憶されて
いる2値オブジェクト画像を重み付け部384−3乃至
重み付け部384−(N−1)のいずれかに出力する。
フレームメモリ383−Nは、N番目のフレームの動き
補償された2値オブジェクト画像を記憶し、記憶されて
いる2値オブジェクト画像を重み付け部384−Nに出
力する。
Similarly, each of the frame memories 383-3 to 383- (N-1) stores any one of the motion-compensated binary object images of the third to N-1st frames. Then, the stored binary object image is output to one of the weighting units 384-3 to 384- (N-1).
The frame memory 383-N stores the motion-compensated binary object image of the Nth frame, and outputs the stored binary object image to the weighting unit 384-N.

【0304】重み付け部384−1は、フレームメモリ
383−1から供給された1番目のフレームの動き補償
された2値オブジェクト画像の画素値に予め定めた重み
w1を乗じて、積算部385に供給する。重み付け部38
4−2は、フレームメモリ383−2から供給された2
番目のフレームの動き補償された2値オブジェクト画像
の画素値に予め定めた重みw2を乗じて、積算部385に
供給する。
The weighting section 384-1 provides a predetermined weight to the pixel value of the motion-compensated binary object image of the first frame supplied from the frame memory 383-1.
The product is multiplied by w1 and supplied to the integrating unit 385. Weighting unit 38
4-2 is the 2 supplied from the frame memory 383-2.
The pixel value of the motion-compensated binary object image of the second frame is multiplied by a predetermined weight w2 and supplied to the integration unit 385.

【0305】同様に、重み付け部384−3乃至重み付
け部384−(N−1)のそれぞれは、フレームメモリ
383−3乃至フレームメモリ383−(N−1)のい
ずれかから供給された3番目乃至N−1番目のいずれか
のフレームの動き補償された2値オブジェクト画像の画
素値に予め定めた重みw3乃至重みw(N-1)のいずれかを乗
じて、積算部385に供給する。重み付け部384−N
は、フレームメモリ383−Nから供給されたN番目の
フレームの動き補償された2値オブジェクト画像の画素
値に予め定めた重みwNを乗じて、積算部385に供給す
る。
Similarly, each of the weighting units 384-3 to 384- (N-1) is the third to the third memory supplied from any one of the frame memories 383-3 to 383- (N-1). The pixel value of the motion-compensated binary object image of any one of the (N-1) th frames is multiplied by one of the predetermined weights w3 to w (N-1) and supplied to the accumulator 385. Weighting unit 384-N
Multiplies the pixel value of the motion-compensated binary object image of the N-th frame supplied from the frame memory 383-N by a predetermined weight wN, and supplies the result to the integration unit 385.

【0306】積算部385は、1乃至N番目のフレーム
の動き補償され、それぞれ重みw1乃至wNのいずれかが乗
じられた、2値オブジェクト画像の対応する画素値を積
算して、積算された画素値を予め定めたしきい値th0と
比較することにより2値オブジェクト画像を生成する。
The accumulating unit 385 accumulates the corresponding pixel values of the binary object image which are motion-compensated for the first to Nth frames and multiplied by one of the weights w1 to wN, respectively. A binary object image is generated by comparing the value with a predetermined threshold value th0.

【0307】このように、ロバスト化部361は、N個
の2値オブジェクト画像からロバスト化された2値オブ
ジェト画像を生成して、時間変化検出部303に供給す
るので、図41に構成を示す領域特定部103は、入力
画像にノイズが含まれていても、図29に示す場合に比
較して、より正確に領域を特定することができる。
As described above, the robust section 361 generates a robust binary object image from the N binary object images and supplies it to the time change detecting section 303. The configuration is shown in FIG. Even if the input image includes noise, the area specifying unit 103 can specify the area more accurately than in the case shown in FIG.

【0308】次に、図41に構成を示す領域特定部10
3の領域特定の処理について、図45のフローチャート
を参照して説明する。ステップS341乃至ステップS
343の処理は、図39のフローチャートで説明したス
テップS301乃至ステップS303とそれぞれ同様な
のでその説明は省略する。
Next, the area specifying unit 10 shown in FIG.
The area specifying process 3 will be described with reference to the flowchart in FIG. Step S341 to step S
The process of step 343 is the same as step S301 to step S303 described in the flowchart of FIG. 39, and a description thereof will be omitted.

【0309】ステップS344において、ロバスト化部
361は、ロバスト化の処理を実行する。
[0309] In step S344, the robust unit 361 executes robust processing.

【0310】ステップS345において、時間変化検出
部303は、領域判定の処理を実行して、処理は終了す
る。ステップS345の処理の詳細は、図40のフロー
チャートを参照して説明した処理と同様なのでその説明
は省略する。
[0310] In step S345, the time change detection unit 303 executes the area determination processing, and the processing ends. Details of the processing in step S345 are the same as the processing described with reference to the flowchart in FIG. 40, and a description thereof will be omitted.

【0311】次に、図46のフローチャートを参照し
て、図45のステップS344の処理に対応する、ロバ
スト化の処理の詳細について説明する。ステップS36
1において、動き補償部381は、動き検出部102か
ら供給される動きベクトルとその位置情報を基に、入力
された2値オブジェクト画像の動き補償の処理を実行す
る。ステップS362において、フレームメモリ383
−1乃至383−Nのいずれかは、スイッチ382を介
して供給された動き補償された2値オブジェクト画像を
記憶する。
Next, the details of the robust processing corresponding to the processing in step S344 in FIG. 45 will be described with reference to the flowchart in FIG. Step S36
In 1, the motion compensator 381 executes a motion compensation process for the input binary object image based on the motion vector supplied from the motion detector 102 and its position information. In step S362, the frame memory 383
Any of -1 to 383-N stores the motion-compensated binary object image supplied via the switch 382.

【0312】ステップS363において、ロバスト化部
361は、N個の2値オブジェクト画像が記憶されたか
否かを判定し、N個の2値オブジェクト画像が記憶され
ていないと判定された場合、ステップS361に戻り、
2値オブジェクト画像の動き補償の処理および2値オブ
ジェクト画像の記憶の処理を繰り返す。
In step S363, robust unit 361 determines whether or not N binary object images are stored. If it is determined that N binary object images are not stored, step S361 is performed. Back to
The motion compensation processing of the binary object image and the storage processing of the binary object image are repeated.

【0313】ステップS363において、N個の2値オ
ブジェクト画像が記憶されたと判定された場合、ステッ
プS364に進み、重み付け部384−1乃至384−
Nのそれぞれは、N個の2値オブジェクト画像のそれぞ
れにw1乃至wNのいずれかの重みを乗じて、重み付けす
る。
If it is determined in step S363 that N binary object images have been stored, the flow advances to step S364, where the weighting units 384-1 to 384-
Each of N is weighted by multiplying each of the N binary object images by a weight of any of w1 to wN.

【0314】ステップS365において、積算部385
は、重み付けされたN個の2値オブジェクト画像を積算
する。
At step S 365, accumulating section 385
Multiplies N weighted binary object images.

【0315】ステップS366において、積算部385
は、例えば、予め定められたしきい値th1との比較など
により、積算された画像から2値オブジェクト画像を生
成して、処理は終了する。
[0315] In step S366, the integrating section 385
Generates a binary object image from the integrated image, for example, by comparison with a predetermined threshold value th1, and the process ends.

【0316】このように、図41に構成を示す領域特定
部103は、ロバスト化された2値オブジェクト画像を
基に、領域情報を生成することができる。
As described above, the area specifying unit 103 shown in FIG. 41 can generate area information based on a robust binary object image.

【0317】以上のように、領域特定部103は、フレ
ームに含まれている画素のそれぞれについて、動き領
域、静止領域、アンカバードバックグラウンド領域、ま
たはカバードバックグラウンド領域に属することを示す
領域情報を生成することができる。
[0317] As described above, the area specifying unit 103 obtains, for each of the pixels included in the frame, the area information indicating that the pixel belongs to the moving area, the still area, the uncovered background area, or the covered background area. Can be generated.

【0318】図47は、混合比算出部104の構成を示
すブロック図である。推定混合比処理部401は、入力
画像、並びに動き検出部102から供給された動きベク
トルおよびその位置情報を基に、カバードバックグラウ
ンド領域に対応する演算により、画素毎に推定混合比を
算出して、算出した推定混合比を混合比決定部403に
供給する。
FIG. 47 is a block diagram showing a configuration of the mixture ratio calculating section 104. The estimated mixture ratio processing unit 401 calculates an estimated mixture ratio for each pixel by an operation corresponding to the covered background area based on the input image, the motion vector supplied from the motion detection unit 102, and the position information thereof. The calculated estimated mixture ratio is supplied to the mixture ratio determination unit 403.

【0319】推定混合比処理部402は、入力画像、並
びに動き検出部102から供給された動きベクトルおよ
びその位置情報を基に、アンカバードバックグラウンド
領域に対応する演算により、画素毎に推定混合比を算出
して、算出した推定混合比を混合比決定部403に供給
する。
The estimated mixture ratio processing unit 402 calculates the estimated mixture ratio for each pixel based on the input image, the motion vector supplied from the motion detection unit 102, and its position information, by performing an operation corresponding to the uncovered background area. And supplies the calculated estimated mixture ratio to the mixture ratio determination unit 403.

【0320】混合比決定部403は、領域特定部101
から供給された、混合比が算出される画素が、前景領
域、背景領域、カバードバックグラウンド領域、または
アンカバードバックグラウンド領域のいずれかに属する
かを示す領域情報を基に、混合比αを設定する。混合比
決定部403は、対象となる画素が前景領域に属する場
合、0を混合比αに設定し、対象となる画素が背景領域
に属する場合、1を混合比αに設定し、対象となる画素
がカバードバックグラウンド領域に属する場合、推定混
合比処理部401から供給された推定混合比を混合比α
に設定し、対象となる画素がアンカバードバックグラウ
ンド領域に属する場合、推定混合比処理部402から供
給された推定混合比を混合比αに設定する。混合比決定
部403は、領域情報を基に設定した混合比αを出力す
る。
The mixture ratio determining unit 403 includes
Sets the mixture ratio α based on the region information indicating whether the pixel for which the mixture ratio is calculated belongs to the foreground region, the background region, the covered background region, or the uncovered background region. I do. The mixture ratio determination unit 403 sets 0 to the mixture ratio α when the target pixel belongs to the foreground region, and sets 1 to the mixture ratio α when the target pixel belongs to the background region, and sets the mixture ratio α. When the pixel belongs to the covered background area, the estimated mixture ratio supplied from the estimated mixture ratio processing unit 401 is represented by the mixture ratio α.
When the target pixel belongs to the uncovered background area, the estimated mixture ratio supplied from the estimated mixture ratio processing unit 402 is set to the mixture ratio α. The mixture ratio determination unit 403 outputs a mixture ratio α set based on the region information.

【0321】図48は、推定混合比処理部401の構成
を示すブロック図である。
FIG. 48 is a block diagram showing a configuration of the estimated mixture ratio processing unit 401.

【0322】推定混合比処理部401に入力された画像
は、フレームメモリ421および重み付けフレーム差分
演算部423に入力される。
The image input to the estimated mixture ratio processing unit 401 is input to the frame memory 421 and the weighted frame difference calculation unit 423.

【0323】フレームメモリ421は、入力された画像
をフレーム単位で記憶して、1フレームに対応する期間
遅延させ、記憶している画像を重み付けフレーム差分演
算部423に供給する。
The frame memory 421 stores the input image in frame units, delays the input image for a period corresponding to one frame, and supplies the stored image to the weighted frame difference calculation unit 423.

【0324】重み生成部422は、1つのフレームに対
応して、その値が所定の初期値から順次増加する重みを
生成して、生成した重みを重み情報として重み付けフレ
ーム差分演算部423および最大値判定部427に供給
する。例えば、重み生成部422は、予め記憶している
初期値を重みに設定し、順次、予め記憶している微少な
値である増分δを重みに加算することにより、初期値か
ら順次増加する重みを生成する。
The weight generation section 422 generates a weight whose value sequentially increases from a predetermined initial value corresponding to one frame, and uses the generated weight as weight information as the weighted frame difference calculation section 423 and the maximum value. This is supplied to the determination unit 427. For example, the weight generation unit 422 sets the pre-stored initial value as the weight, and sequentially adds the pre-stored small value increment δ to the weight, thereby sequentially increasing the weight from the initial value. Generate

【0325】重み付けフレーム差分演算部423は、フ
レームメモリ421から供給されたフレームの画素値
に、重み生成部422から供給された重みを乗じて、重
み付けされた画素値を算出する。重み付けフレーム差分
演算部423は、入力画像の注目している画素の画素値
から、対応する画素の重み付けされた画素値を減じて、
重み付け差分を算出する。
The weighted frame difference calculation section 423 multiplies the pixel value of the frame supplied from the frame memory 421 by the weight supplied from the weight generation section 422 to calculate a weighted pixel value. The weighted frame difference calculation unit 423 subtracts the weighted pixel value of the corresponding pixel from the pixel value of the pixel of interest in the input image,
Calculate the weighted difference.

【0326】重み付けフレーム差分演算部423は、重
み生成部422から供給される、初期値から順次増加す
る重みに対応して、1つのフレームについて複数の重み
付け差分を算出する。
The weighted frame difference calculator 423 calculates a plurality of weighted differences for one frame, corresponding to the weights supplied from the weight generator 422 and sequentially increasing from the initial value.

【0327】重み付けフレーム差分演算部423は、こ
のように算出された重み付け差分を重み付け差分画像デ
ータとして動き補償部424およびフレームメモリ42
5に供給する。
The weighted frame difference calculation section 423 uses the weighted difference calculated in this way as weighted difference image data as the motion compensation section 424 and the frame memory 42.
5

【0328】動き補償部424は、動き検出部102か
ら供給された動きベクトルおよびその位置情報に基づ
き、重み付けフレーム差分演算部423から供給された
重み付け差分画像データを動き補償し、動き補償された
重み付け差分を相関値演算部426に供給する。
The motion compensator 424 performs motion compensation on the weighted difference image data supplied from the weighted frame difference calculator 423 based on the motion vector and the position information supplied from the motion detector 102, and performs the motion compensated weighting. The difference is supplied to the correlation value calculation unit 426.

【0329】フレームメモリ425は、複数の重み付け
差分画像データをフレーム毎に記憶して、1フレームに
対応する期間遅延させ、記憶している重み付け差分画像
データを相関値演算部426に供給する。
The frame memory 425 stores a plurality of weighted difference image data for each frame, delays it for a period corresponding to one frame, and supplies the stored weighted difference image data to the correlation value calculator 426.

【0330】相関値演算部426は、初期値から順次増
加する重み毎に、動き補償部424から供給された動き
補償された重み付け差分画像データと、フレームメモリ
425から供給された1フレーム遅延された重み付け差
分画像データとの相関値を画素毎に演算して、演算され
た相関値を最大値判定部427に供給する。
[0330] The correlation value calculating section 426 calculates the weighted difference image data subjected to the motion compensation supplied from the motion compensating section 424 and the one-frame delayed supplied from the frame memory 425 for each weight sequentially increasing from the initial value. The correlation value with the weighted difference image data is calculated for each pixel, and the calculated correlation value is supplied to the maximum value determination unit 427.

【0331】相関値演算部426は、例えば、動き補償
部424から供給された動き補償された重み付け差分画
像データと、フレームメモリ425から供給された1フ
レーム遅延された重み付け差分画像データとの差分の絶
対値を画素毎に算出し、算出された差分の絶対値を、相
関値として最大値判定部427に供給する。相関値演算
部426が出力する相関値は、重み付け差分画像間相関
データとも称する。
The correlation value calculator 426 calculates the difference between the motion-compensated weighted difference image data supplied from the motion compensator 424 and the one-frame delayed weighted difference image data supplied from the frame memory 425, for example. The absolute value is calculated for each pixel, and the calculated absolute value of the difference is supplied to the maximum value determining unit 427 as a correlation value. The correlation value output by the correlation value calculation unit 426 is also referred to as weighted difference image correlation data.

【0332】最大値判定部427は、重み生成部422
から供給された重みの値に対応させて、相関値演算部4
26から供給された相関値を記憶する。最大値判定部4
27は、記憶されている相関値を基に、最も相関の強い
相関値に対応する重みを選択する。最大値判定部427
は、選択された重みを推定混合比に設定し、選択された
重みが設定された推定混合比を出力する。
The maximum value judging section 427 includes a weight generating section 422
The correlation value calculation unit 4 in correspondence with the weight value supplied from
The correlation value supplied from 26 is stored. Maximum value judgment unit 4
27 selects a weight corresponding to the correlation value having the strongest correlation based on the stored correlation values. Maximum value judgment unit 427
Sets the selected weight to the estimated mixture ratio and outputs the estimated mixture ratio to which the selected weight is set.

【0333】なお、最大値判定部427は、複数の画素
からなるブロックを単位として、混合比を検出するよう
にしてもよい。
Note that the maximum value judging section 427 may detect the mixture ratio in units of a block composed of a plurality of pixels.

【0334】また、最大値判定部427は、複数の画素
からなるブロックを単位として、ブロックの混合比が一
定として、混合比を検出するようにしてもよい。
Further, the maximum value judging section 427 may detect the mixture ratio with the block mixture ratio being constant in units of a block composed of a plurality of pixels.

【0335】図48乃至図54を参照して、カバードバ
ックグラウンド領域に対応する推定混合比処理部401
の処理を説明する。
Referring to FIG. 48 to FIG. 54, the estimated mixture ratio processing unit 401 corresponding to the covered background area
Will be described.

【0336】図49に例を示す、前景オブジェクトの動
き量vが4である画像のモデルにおいて、フレーム#nの
左から6番目乃至8番目の画素は、混合領域に属する。
In the model of the image in which the amount of motion v of the foreground object is 4 as shown in FIG. 49, the sixth to eighth pixels from the left of frame #n belong to the mixed area.

【0337】フレーム#nの左から6番目の画素の画素値
は、式(8)で表すことができる。同様に、フレーム#n
の左から7番目の画素の画素値は、式(9)で表すこと
ができ、フレーム#nの左から8番目の画素の画素値は、
式(10)で表すことができる。
The pixel value of the sixth pixel from the left of frame #n can be represented by equation (8). Similarly, frame #n
Can be expressed by Expression (9), and the pixel value of the eighth pixel from the left of frame #n is
It can be expressed by equation (10).

【0338】[0338]

【数6】 (Equation 6)

【0339】[0339]

【数7】 (Equation 7)

【0340】[0340]

【数8】 (Equation 8)

【0341】同様に、フレーム#n+1の左から10番目乃
至12番目の画素は、混合領域に属する。フレーム#n+1
の左から10番目の画素の画素値は、式(11)で表す
ことができる。同様に、フレーム#n+1の左から11番目
の画素の画素値は、式(12)で表すことができ、フレ
ーム#n+1の左から12番目の画素の画素値は、式(1
3)で表すことができる。
Similarly, the tenth to twelfth pixels from the left of frame # n + 1 belong to the mixed area. Frame # n + 1
The pixel value of the tenth pixel from the left of can be expressed by equation (11). Similarly, the pixel value of the eleventh pixel from the left of frame # n + 1 can be expressed by equation (12), and the pixel value of the twelfth pixel from the left of frame # n + 1 is expressed by equation (1)
3).

【0342】[0342]

【数9】 (Equation 9)

【0343】[0343]

【数10】 (Equation 10)

【0344】[0344]

【数11】 [Equation 11]

【0345】式(8)において、α05は、1/4である。
フレーム#n-1の画素値にα05を乗じた値を算出して、フ
レーム#nの混合領域または背景領域に属する、対応する
画素の画素値との差分を求めると、図50に示すよう
に、画素値に含まれる背景の成分の全部または一部が除
去される。
In equation (8), α05 is 1/4.
By calculating the value obtained by multiplying the pixel value of frame # n-1 by α05 and calculating the difference from the pixel value of the corresponding pixel belonging to the mixed area or background area of frame #n, as shown in FIG. , All or some of the background components included in the pixel values are removed.

【0346】左から6番目の画素において、画素値に含
まれる背景の成分の全部が除去され、前景の成分のみが
残る。
At the sixth pixel from the left, all of the background components included in the pixel values are removed, leaving only the foreground components.

【0347】同様に、式(11)において、α09は、1/
4である。フレーム#nの画素値にα09を乗じた値を算出
して、フレーム#n+1の混合領域に属する、対応する画素
の画素値との差分を求めると、図50に示すように、画
素値に含まれる背景の成分の全部または一部が除去され
る。
Similarly, in equation (11), α09 is 1 /
4 By calculating the value obtained by multiplying the pixel value of frame #n by α09 and calculating the difference from the pixel value of the corresponding pixel belonging to the mixed area of frame # n + 1, as shown in FIG. All or a part of the background components contained in is removed.

【0348】左から10番目の画素において、画素値に
含まれる背景の成分の全部が除去され、前景の成分のみ
が残る。
In the tenth pixel from the left, all of the background components included in the pixel values are removed, leaving only the foreground components.

【0349】式(9)において、α06は、1/2である。
フレーム#n-1の画素値にα06を乗じた値を算出して、フ
レーム#nの混合領域または背景領域に属する、対応する
画素の画素値との差分を求めると、図51に示すよう
に、画素値に含まれる背景の成分の全部または一部が除
去される。左から6番目の画素において、本来含まれて
いる背景の成分以上の背景の成分が除されることとなる
ので、その画素値は、対応する背景の成分の負の値を含
むことになる。
In equation (9), α06 is 1/2.
By calculating a value obtained by multiplying the pixel value of frame # n-1 by α06 and calculating the difference from the pixel value of the corresponding pixel belonging to the mixed area or background area of frame #n, as shown in FIG. , All or some of the background components included in the pixel values are removed. In the sixth pixel from the left, a background component that is higher than the originally included background component is removed, so that the pixel value includes a negative value of the corresponding background component.

【0350】左から7番目の画素において、画素値に含
まれる背景の成分の全部が除去され、前景の成分のみが
残る。
In the seventh pixel from the left, all of the background components included in the pixel values are removed, leaving only the foreground components.

【0351】式(12)において、α10は、1/2であ
る。フレーム#nの画素値にα10を乗じた値を算出して、
フレーム#n+1の混合領域に属する、対応する画素の画素
値との差分を求めると、図51に示すように、画素値に
含まれる背景の成分の全部または一部が除去される。左
から10番目の画素において、本来含まれている背景の
成分以上の背景の成分が除されることとなるので、その
画素値は、対応する背景の成分の負の値を含むことにな
る。
In the equation (12), α10 is 1/2. Calculate the value obtained by multiplying the pixel value of frame #n by α10,
When the difference from the pixel value of the corresponding pixel belonging to the mixed area of frame # n + 1 is obtained, all or a part of the background component included in the pixel value is removed as shown in FIG. In the tenth pixel from the left, a background component that is higher than the originally included background component is to be removed, so that the pixel value includes a negative value of the corresponding background component.

【0352】左から11番目の画素において、画素値に
含まれる背景の成分の全部が除去され、前景の成分のみ
が残る。
In the eleventh pixel from the left, all of the background components included in the pixel values are removed, leaving only the foreground components.

【0353】図52に示すように、前のフレームの画素
値にα05を乗じた値を算出して、次のフレームの混合領
域または背景領域に属する、対応する画素の画素値との
差分を求めたとき、フレーム#nの左から6番目の画素
に、前景の成分のみが残り、フレーム#nの左から6番目
の画素を基準として、動きベクトルで示される、フレー
ム#n+1の左から10番目の画素にも、前景の成分のみが
残る。
As shown in FIG. 52, the value obtained by multiplying the pixel value of the previous frame by α05 is calculated, and the difference from the pixel value of the corresponding pixel belonging to the mixed area or background area of the next frame is obtained. , Only the foreground component remains in the sixth pixel from the left of frame #n, and from the left of frame # n + 1 indicated by a motion vector with reference to the sixth pixel from the left of frame #n. Only the foreground component remains in the tenth pixel.

【0354】フレーム#nの左から6番目の画素に含まれ
る前景の成分は、フレーム#n+1の左から10番目の画素
に含まれる前景の成分と同一である。
The foreground component included in the sixth pixel from the left of frame #n is the same as the foreground component included in the tenth pixel from the left of frame # n + 1.

【0355】同様に、前のフレームの画素値にα06を乗
じた値を算出して、次のフレームの混合領域または背景
領域に属する、対応する画素の画素値との差分を求めた
とき、フレーム#nの左から7番目の画素に、前景の成分
のみが残り、フレーム#nの左から7番目の画素を基準と
して、動きベクトルで示される、フレーム#n+1の左から
11番目の画素にも、前景の成分のみが残る。
Similarly, when the value obtained by multiplying the pixel value of the previous frame by α06 is calculated, and the difference from the pixel value of the corresponding pixel belonging to the mixed area or background area of the next frame is obtained, Only the foreground component remains in the seventh pixel from the left of #n, and the eleventh pixel from the left of frame # n + 1 indicated by a motion vector based on the seventh pixel from the left of frame #n Also, only the foreground component remains.

【0356】フレーム#nの左から7番目の画素に含まれ
る前景の成分は、フレーム#n+1の左から11番目の画素
に含まれる前景の成分と同一である。
The foreground component included in the seventh pixel from the left of frame #n is the same as the foreground component included in the eleventh pixel from the left of frame # n + 1.

【0357】このように、フレーム#n-1の画素値にある
重みを乗じた値を算出して、フレーム#nの混合領域に属
する、対応する画素の画素値との差分を求めて、フレー
ム#nの画素値に同じ重みを乗じた値を算出して、フレー
ム#n+1の混合領域に属する、対応する画素の画素値との
差分を求めたとき、フレーム#nにおける注目している画
素に対応する差分と、フレーム#n+1における、注目して
いる画素を基準として、動きベクトルで示される位置の
画素に対応する差分が等しい場合、その重みは、フレー
ム#nにおける注目している画素の混合比αに等しい。
As described above, the value obtained by multiplying the pixel value of frame # n-1 by a certain weight is calculated, and the difference from the pixel value of the corresponding pixel belonging to the mixed area of frame #n is obtained. When calculating the value obtained by multiplying the pixel value of #n by the same weight and calculating the difference from the pixel value of the corresponding pixel belonging to the mixed area of frame # n + 1, attention is focused on frame #n If the difference corresponding to the pixel is equal to the difference corresponding to the pixel at the position indicated by the motion vector with reference to the pixel of interest in frame # n + 1, the weight is Is equal to the mixture ratio α of the pixels.

【0358】図53を参照して、以上の処理を式を参照
して説明する。
With reference to FIG. 53, the above processing will be described with reference to equations.

【0359】フレーム#nの混合領域に属する、注目する
画素の画素値CAと、フレーム#n-1の対応する画素の画素
値PAに重みWを乗じた値との差分Aは、式(14)に示す
演算で算出される。
The difference A between the pixel value CA of the pixel of interest belonging to the mixed area of the frame #n and the value obtained by multiplying the pixel value PA of the corresponding pixel of the frame # n-1 by the weight W is expressed by the following equation (14). ).

【0360】 A=CA-PA×W (14)A = CA-PA × W (14)

【0361】フレーム#nの注目している画素を基準とし
て、動きベクトルで示される位置の、フレーム#n+1の画
素の画素値NBと、フレーム#nの対応する画素の画素値CB
に重みWを乗じた値との差分Bは、式(15)に示す演算
で算出される。
The pixel value NB of the pixel of frame # n + 1 and the pixel value CB of the corresponding pixel of frame #n at the position indicated by the motion vector with reference to the pixel of interest in frame #n.
Is multiplied by the weight W, and the difference B is calculated by the calculation shown in Expression (15).

【0362】 B=NB-CB×W (15)B = NB-CB × W (15)

【0363】相関値Jは、例えば、式(16)に示すよ
うに、差分Aおよび差分Bの差分の絶対値とすることがで
きる。
The correlation value J can be, for example, the absolute value of the difference between the difference A and the difference B as shown in Expression (16).

【0364】[0364]

【数12】 (Equation 12)

【0365】相関値Jが予め記憶されているしきい値th1
以下であると判定された場合、重みWは、混合比αに等
しいとされる。
The correlation value J is a threshold value th1 stored in advance.
When it is determined that the weight ratio is equal to or smaller than the above, the weight W is equal to the mixture ratio α.

【0366】また、例えば、図54(A)に示すよう
に、注目フレームの中の、A4を中心とした3×3の画素
のブロックの差分A0乃至A8と、図54(B)に示すよう
に、注目フレームの次のフレームの中の、対応するB4を
中心とした3×3の画素のブロックの差分B0乃至B8に、
式(17)を適用して、注目フレームのブロックの中心
の画素に対応する相関値J1が算出されるようにしてもよ
い。
For example, as shown in FIG. 54 (A), differences A0 to A8 of 3 × 3 pixel blocks around A4 in the frame of interest and FIG. 54 (B) The difference B0 to B8 of the block of 3 × 3 pixels centered on the corresponding B4 in the frame next to the frame of interest,
By applying equation (17), the correlation value J1 corresponding to the pixel at the center of the block of the frame of interest may be calculated.

【0367】[0367]

【数13】 (Equation 13)

【0368】[0368]

【数14】 [Equation 14]

【0369】[0369]

【数15】 (Equation 15)

【0370】この場合において、例えば、相関値J1が予
め記憶されているしきい値th2以上であると判定された
場合、重みWは、混合比αに等しいとされる。
In this case, for example, when it is determined that the correlation value J1 is equal to or larger than the threshold value th2 stored in advance, the weight W is equal to the mixture ratio α.

【0371】さらに、例えば、注目フレームの中の、A4
を中心とした3×3の画素のブロックの差分A0乃至A8
と、注目フレームの次のフレームの中の、対応するB4を
中心とした3×3の画素のブロックの差分B0乃至B8に、
式(20)を適用して、注目フレームのブロックの中心
の画素に対応する相関値として、差分絶対値和J2が算出
されるようにしてもよい。
Furthermore, for example, in the frame of interest, A4
Differences A0 to A8 of 3 × 3 pixel blocks centered on
And the difference B0 to B8 of the block of 3 × 3 pixels centered on the corresponding B4 in the frame next to the frame of interest,
By applying equation (20), the sum of absolute differences J2 may be calculated as the correlation value corresponding to the pixel at the center of the block of the frame of interest.

【0372】[0372]

【数16】 (Equation 16)

【0373】この場合において、例えば、差分絶対値和
J2が予め記憶されているしきい値th3未満であると判定
された場合、重みWは、混合比αに等しいとされる。
In this case, for example, the sum of absolute differences
When it is determined that J2 is less than the threshold value th3 stored in advance, the weight W is determined to be equal to the mixture ratio α.

【0374】推定混合比処理部402が実行する、アン
カバードバックグラウンド領域に対応する処理におい
て、差分Aは、フレーム#nの混合領域に属する、注目す
る画素の画素値CAと、フレーム#n+1の対応する画素の画
素値PAに重みWを乗じた値との差分とされ、差分Bは、フ
レーム#nの注目している画素を基準として、動きベクト
ルで示される位置の、フレーム#n+1の画素の画素値NB
と、フレーム#n+2の対応する画素の画素値CBに重みWを
乗じた値との差分とされる点を除き、カバードバックグ
ラウンド領域に対応する処理と同様なので、その説明は
省略する。
In the processing corresponding to the uncovered background area executed by the estimated mixture ratio processing unit 402, the difference A is obtained by calculating the pixel value CA of the pixel of interest belonging to the mixed area of the frame #n and the frame # n + The difference between the pixel value PA and the value obtained by multiplying the pixel value PA of the corresponding pixel by the weight W, and the difference B is the frame #n Pixel value NB of +1 pixel
And a difference from the value obtained by multiplying the pixel value CB of the corresponding pixel of the frame # n + 2 by the weight W, except for the difference between the pixel value CB and the value corresponding to the covered background area.

【0375】なお、推定混合比処理部401または推定
混合比処理部401は、フレーム#nの注目している画素
に対応して、動きベクトルで示される位置の、フレーム
#n-1の画素を基に、差分Bを算出して、推定混合比を求
めるようにしてもよい。
The estimated mixture ratio processing unit 401 or the estimated mixture ratio processing unit 401 determines whether or not the position indicated by the motion vector corresponds to the pixel of interest in frame #n.
The difference B may be calculated based on the pixel of # n-1, and the estimated mixture ratio may be obtained.

【0376】図55は、混合比算出部104の他の構成
を示すブロック図である。
FIG. 55 is a block diagram showing another configuration of the mixture ratio calculating section 104. In FIG.

【0377】選択部441は、領域特定部103から供
給された領域情報を基に、カバードバックグラウンド領
域に属する画素および、これに対応する前および後のフ
レームの画素を推定混合比処理部401に供給する。選
択部441は、領域特定部103から供給された領域情
報を基に、アンカバードバックグラウンド領域に属する
画素および、これに対応する前および後のフレームの画
素を推定混合比処理部402に供給する。
[0377] Based on the area information supplied from the area specifying section 103, the selecting section 441 sends the pixels belonging to the covered background area and the corresponding pixels of the previous and subsequent frames to the estimated mixture ratio processing section 401. Supply. The selecting unit 441 supplies the pixels belonging to the uncovered background area and the corresponding pixels of the previous and subsequent frames to the estimated mixture ratio processing unit 402 based on the area information supplied from the area specifying unit 103. .

【0378】推定混合比処理部401は、選択部441
から入力された画素値を基に、カバードバックグラウン
ド領域に属する、注目している画素の推定混合比を算出
して、算出した推定混合比を選択部442に供給する。
The estimated mixture ratio processing unit 401 includes a selection unit 441
Then, based on the pixel values input from, the estimated mixing ratio of the pixel of interest belonging to the covered background area is calculated, and the calculated estimated mixing ratio is supplied to the selection unit 442.

【0379】推定混合比処理部402は、選択部441
から入力された画素値を基に、アンカバードバックグラ
ウンド領域に属する、注目している画素の推定混合比を
算出して、算出した推定混合比を選択部442に供給す
る。
The estimated mixture ratio processing unit 402 includes a selection unit 441
Then, based on the pixel values input from, the estimated mixing ratio of the pixel of interest belonging to the uncovered background area is calculated, and the calculated estimated mixing ratio is supplied to the selection unit 442.

【0380】選択部442は、領域特定部103から供
給された領域情報を基に、対象となる画素が前景領域に
属する場合、0である推定混合比を選択して、混合比α
に設定し、対象となる画素が背景領域に属する場合、1
である推定混合比を選択して、混合比αに設定する。選
択部442は、対象となる画素がカバードバックグラウ
ンド領域に属する場合、推定混合比処理部401から供
給された推定混合比を選択して混合比αに設定し、対象
となる画素がアンカバードバックグラウンド領域に属す
る場合、推定混合比処理部402から供給された推定混
合比を選択して混合比αに設定する。選択部442は、
領域情報を基に選択して設定した混合比αを出力する。
When the target pixel belongs to the foreground area based on the area information supplied from the area specifying section 103, the selection section 442 selects an estimated mixture ratio of 0, and selects the mixture ratio α.
If the target pixel belongs to the background area, 1
Is selected and set to the mixture ratio α. When the target pixel belongs to the covered background area, the selection unit 442 selects the estimated mixture ratio supplied from the estimated mixture ratio processing unit 401 and sets the mixture to the mixture ratio α. If it belongs to the ground area, the estimated mixture ratio supplied from the estimated mixture ratio processing unit 402 is selected and set as the mixture ratio α. The selection unit 442,
The mixture ratio α selected and set based on the region information is output.

【0381】このように、図55に示す他の構成を有す
る混合比算出部104は、画像に含まれる画素毎に混合
比αを算出して、算出した混合比αを出力することがで
きる。
As described above, the mixture ratio calculation unit 104 having another configuration shown in FIG. 55 can calculate the mixture ratio α for each pixel included in the image, and can output the calculated mixture ratio α.

【0382】図56のフローチャートを参照して、混合
比算出部104の混合比αの算出の処理を説明する。
With reference to the flowchart of FIG. 56, the process of calculating the mixture ratio α by the mixture ratio calculator 104 will be described.

【0383】ステップS401において、混合比算出部
104は、領域特定部103から供給された領域情報を
取得する。ステップS402において、推定混合比処理
部401は、カバードバックグラウンド領域に対応する
混合比推定の処理を実行し、推定混合比を混合比決定部
403に供給する。混合比推定の処理の詳細は、図57
のフローチャートを参照して、後述する。
[0383] In step S401, the mixture ratio calculating section 104 acquires the area information supplied from the area specifying section 103. In step S402, the estimated mixture ratio processing unit 401 executes a mixture ratio estimation process corresponding to the covered background area, and supplies the estimated mixture ratio to the mixture ratio determination unit 403. FIG. 57 shows details of the mixture ratio estimation process.
It will be described later with reference to the flowchart of FIG.

【0384】ステップS403において、推定混合比処
理部402は、アンカバードバックグラウンド領域に対
応する混合比推定の処理を実行し、推定混合比を混合比
決定部403に供給する。
[0384] In step S403, the estimated mixture ratio processing unit 402 executes a mixture ratio estimation process corresponding to the uncovered background area, and supplies the estimated mixture ratio to the mixture ratio determination unit 403.

【0385】ステップS404において、混合比算出部
104は、フレーム全体について、混合比を推定したか
否かを判定し、フレーム全体について、混合比を推定し
ていないと判定された場合、ステップS402に戻り、
次の画素について混合比を推定する処理を実行する。
In step S404, the mixture ratio calculator 104 determines whether or not the mixture ratio has been estimated for the entire frame. If it is determined that the mixture ratio has not been estimated for the entire frame, the process proceeds to step S402. return,
A process of estimating the mixture ratio for the next pixel is executed.

【0386】ステップS404において、フレーム全体
について、混合比を推定したと判定された場合、ステッ
プS405に進み、混合比決定部403は、領域特定部
103から供給された、混合比αが算出される画素が、
前景領域、背景領域、カバードバックグラウンド領域、
またはアンカバードバックグラウンド領域のいずれかに
属するかを示す領域情報を基に、混合比αを設定する。
混合比決定部403は、対象となる画素が前景領域に属
する場合、0を混合比αに設定し、対象となる画素が背
景領域に属する場合、1を混合比αに設定し、対象とな
る画素がカバードバックグラウンド領域に属する場合、
推定混合比処理部401から供給された推定混合比を混
合比αに設定し、対象となる画素がアンカバードバック
グラウンド領域に属する場合、推定混合比処理部402
から供給された推定混合比を混合比αに設定し、処理は
終了する。
If it is determined in step S404 that the mixture ratio has been estimated for the entire frame, the process proceeds to step S405, where the mixture ratio determination unit 403 calculates the mixture ratio α supplied from the region identification unit 103. Pixel is
Foreground area, background area, covered background area,
Alternatively, the mixture ratio α is set based on area information indicating whether the pixel belongs to any of the uncovered background areas.
The mixture ratio determination unit 403 sets 0 to the mixture ratio α when the target pixel belongs to the foreground region, and sets 1 to the mixture ratio α when the target pixel belongs to the background region, and sets the mixture ratio α. If the pixel belongs to the covered background area,
The estimated mixture ratio supplied from the estimated mixture ratio processing unit 401 is set to the mixture ratio α, and when the target pixel belongs to the uncovered background area, the estimated mixture ratio processing unit 402
Is set to the mixture ratio α, and the process ends.

【0387】このように、混合比算出部104は、領域
特定部103から供給された領域情報、および入力画像
を基に、各画素に対応する特徴量である混合比αを算出
することができる。
As described above, the mixture ratio calculation unit 104 can calculate the mixture ratio α, which is a feature amount corresponding to each pixel, based on the region information supplied from the region identification unit 103 and the input image. .

【0388】混合比αを利用することにより、動いてい
るオブジェクトに対応する画像に含まれる動きボケの情
報を残したままで、画素値に含まれる前景の成分と背景
の成分とを分離することが可能になる。
By using the mixture ratio α, it is possible to separate the foreground component and the background component contained in the pixel value while retaining the information on the motion blur contained in the image corresponding to the moving object. Will be possible.

【0389】次に、図57のフローチャートを参照し
て、図56のステップS402に対応する、カバードバ
ックグラウンド領域に対応する混合比推定の処理を説明
する。
Next, the process of estimating the mixture ratio corresponding to the covered background area corresponding to step S402 in FIG. 56 will be described with reference to the flowchart in FIG.

【0390】ステップS421において、重み生成部4
22は、重みに予め記憶している初期値を設定する。重
み生成部422は、初期値を設定した重みを重み情報と
して、重み付けフレーム差分演算部423および最大値
判定部427に供給する。
At step S421, the weight generation unit 4
Reference numeral 22 sets an initial value stored in advance for the weight. The weight generation unit 422 supplies the weight for which the initial value is set as weight information to the weighted frame difference calculation unit 423 and the maximum value determination unit 427.

【0391】ステップS422において、推定混合比処
理部401は、重み生成部422が出力する重みが1を
越えたか否かを判定し、重みが1を越えていないと判定
された場合、ステップS423に進む。
In step S422, the estimated mixture ratio processing unit 401 determines whether or not the weight output by the weight generation unit 422 has exceeded 1, and if it is determined that the weight has not exceeded 1, the process proceeds to step S423. move on.

【0392】ステップS423において、重み付けフレ
ーム差分演算部423は、注目フレームの注目する画素
の画素値と、次のフレームの対応する画素の画素値に重
みを乗じた値との差分である重み付け差分を算出し、差
分Aに、注目フレームの注目画素の重み付け差分を設定
する。
In step S423, the weighted frame difference calculation unit 423 calculates a weighted difference which is a difference between the pixel value of the pixel of interest in the frame of interest and the value obtained by multiplying the pixel value of the corresponding pixel in the next frame by the weight. The calculated difference A is set to the weighted difference of the target pixel of the target frame.

【0393】ステップS424において、重み付けフレ
ーム差分演算部423は、注目フレームの注目している
画素を基準として、動きベクトルで示される位置の、注
目フレームの次のフレームの画素の画素値と、注目フレ
ームの対応する画素の画素値に重みを乗じた値との差分
である重み付け差分を算出し、差分Bに、注目フレーム
の次のフレームの、注目画素に対応する画素の重み付け
差分を設定する。
In step S424, the weighted frame difference calculator 423 determines the pixel value of the pixel of the next frame of the frame of interest at the position indicated by the motion vector, based on the pixel of interest of the frame of interest, and Is calculated as a difference from the value obtained by multiplying the pixel value of the corresponding pixel by the weight, and the difference B is set to the weight corresponding to the pixel corresponding to the pixel of interest in the frame next to the frame of interest.

【0394】ステップS425において、相関値演算部
426は、差分Aおよび差分Bに対応する相関値を算出す
る。相関値演算部426が算出する相関値は、例えば、
差分Aおよび差分Bの差分の絶対値とすることができる。
また、相関値演算部426が算出する相関値は、例え
ば、3×3の画素のブロックの重み付け差分A0乃至A8、
および対応する3×3の画素のブロックの重み付け差分
B0乃至B8に、式(17)に対応する演算を適用して算出
された相関値J1とすることができる。
[0394] In step S425, the correlation value calculator 426 calculates a correlation value corresponding to the difference A and the difference B. The correlation value calculated by the correlation value calculation unit 426 is, for example,
It can be the absolute value of the difference between the difference A and the difference B.
The correlation value calculated by the correlation value calculation unit 426 is, for example, a weighted difference A0 to A8 of a block of 3 × 3 pixels,
And the corresponding weighted difference of 3 × 3 pixel blocks
The correlation value J1 calculated by applying the operation corresponding to Expression (17) to B0 to B8 can be used.

【0395】ステップS426において、最大値判定部
427は、重み生成部422から供給された重みに対応
させて、相関値演算部426から供給された相関値を記
憶する。
In step S 426, maximum value judging section 427 stores the correlation value supplied from correlation value calculating section 426 in association with the weight supplied from weight generating section 422.

【0396】ステップS427において、重み生成部4
22は、重みに予め記憶している増分δを加算して、ス
テップS422に戻り、重みに対応する相関値の算出の
処理を繰り返す。
In step S427, the weight generation unit 4
22 adds the pre-stored increment δ to the weight, returns to step S422, and repeats the process of calculating the correlation value corresponding to the weight.

【0397】すなわち、重みが1以下であるとき、ステ
ップS423乃至ステップS427の処理が繰り返さ
れ、増分δ毎に増加する重みに対応する相関値が算出さ
れ、重みに対応付けられて相関値が記憶される。
That is, when the weight is 1 or less, the processing from step S423 to step S427 is repeated, the correlation value corresponding to the weight increasing for each increment δ is calculated, and the correlation value is stored in association with the weight. Is done.

【0398】ステップS422において、重みが1を越
えたと判定された場合、ステップS428に進み、最大
値判定部427は、相関が最も強いことを示す最大の相
関値に対応する重みを選択する。
If it is determined in step S422 that the weight has exceeded 1, the flow advances to step S428, and the maximum value determining unit 427 selects the weight corresponding to the maximum correlation value indicating that the correlation is strongest.

【0399】ステップS429において、最大値判定部
427は、選択された重みを推定混合比に設定して、重
みが設定された推定混合比を出力し、処理は終了する。
In step S429, maximum value determining section 427 sets the selected weight as the estimated mixture ratio, outputs the estimated mixture ratio with the set weight, and ends the process.

【0400】このように、推定混合比処理部401は、
カバードバックグラウンド領域に対応する推定混合比を
算出することができる。
Thus, the estimated mixture ratio processing unit 401
An estimated mixture ratio corresponding to the covered background area can be calculated.

【0401】なお、ステップS403のアンカバードバ
ックグラウンド領域に対応する処理は、差分Aおよび差
分Bの算出の処理において、背景に対応する画素値とし
て、次のフレームの画素値を使用する点を除き、図57
のフローチャートを参照して説明した処理と同様なの
で、その説明は省略する。
The processing corresponding to the uncovered background area in step S403 is the same as the processing for calculating the difference A and the difference B except that the pixel value of the next frame is used as the pixel value corresponding to the background. FIG. 57
Since the processing is the same as that described with reference to the flowchart of FIG.

【0402】また、背景に対応するオブジェクトが静止
しているとして説明したが、背景領域に対応する画像が
動きを含んでいても上述した混合比を求める処理を適用
することができる。例えば、背景領域に対応する画像が
一様に動いているとき、推定混合比処理部401は、こ
の動きに対応して画像全体をシフトさせ、背景に対応す
るオブジェクトが静止している場合と同様に処理する。
また、背景領域に対応する画像が局所毎に異なる動きを
含んでいるとき、推定混合比処理部401は、混合領域
に属する画素に対応する画素として、動きに対応した画
素を選択して、上述の処理を実行する。
[0402] Although the description has been made assuming that the object corresponding to the background is stationary, the above-described processing for obtaining the mixture ratio can be applied even when the image corresponding to the background area includes motion. For example, when the image corresponding to the background region is moving uniformly, the estimated mixture ratio processing unit 401 shifts the entire image corresponding to this movement, and performs the same operation as when the object corresponding to the background is stationary. To process.
Further, when the image corresponding to the background area includes a different motion for each local area, the estimated mixture ratio processing unit 401 selects a pixel corresponding to the motion as a pixel corresponding to a pixel belonging to the mixed area, and Execute the processing of

【0403】なお、混合比算出部104は、全ての画素
について、カバードバックグラウンド領域に対応するモ
デルによる混合比推定の処理のみを実行して、算出され
た推定混合比を混合比αとして出力するようにしてもよ
い。この場合において、混合比αは、カバードバックグ
ラウンド領域に属する画素について、背景の成分の割合
を示し、アンカバードバックグラウンド領域に属する画
素について、前景の成分の割合を示す。アンカバードバ
ックグラウンド領域に属する画素について、このように
算出された混合比αと1との差分の絶対値を算出して、
算出した絶対値を混合比αに設定すれば、信号処理部
は、アンカバードバックグラウンド領域に属する画素に
ついて、背景の成分の割合を示す混合比αを求めること
ができる。
Note that the mixture ratio calculation unit 104 executes only the mixture ratio estimation process using the model corresponding to the covered background area for all the pixels, and outputs the calculated estimated mixture ratio as the mixture ratio α. You may do so. In this case, the mixture ratio α indicates the ratio of the background component with respect to the pixels belonging to the covered background region, and indicates the ratio of the foreground component with respect to the pixels belonging to the uncovered background region. For pixels belonging to the uncovered background area, the absolute value of the difference between the mixture ratio α thus calculated and 1 is calculated,
If the calculated absolute value is set to the mixture ratio α, the signal processing unit can obtain the mixture ratio α indicating the ratio of the background component for the pixels belonging to the uncovered background area.

【0404】なお、同様に、混合比算出部104は、全
ての画素について、アンカバードバックグラウンド領域
に対応するモデルによる混合比推定の処理のみを実行し
て、算出された推定混合比を混合比αとして出力するよ
うにしてもよい。
[0404] Similarly, the mixture ratio calculation unit 104 executes only the mixture ratio estimation process using the model corresponding to the uncovered background area for all pixels, and calculates the calculated estimated mixture ratio. You may make it output as (alpha).

【0405】次に、前景背景分離部105について説明
する。図58は、前景背景分離部105の構成の一例を
示すブロック図である。前景背景分離部105に供給さ
れた入力画像は、分離部601、スイッチ602、およ
びスイッチ604に供給される。カバードバックグラウ
ンド領域を示す情報、およびアンカバードバックグラウ
ンド領域を示す、領域特定部103から供給された領域
情報は、分離部601に供給される。前景領域を示す領
域情報は、スイッチ602に供給される。背景領域を示
す領域情報は、スイッチ604に供給される。
Next, the foreground / background separation unit 105 will be described. FIG. 58 is a block diagram illustrating an example of the configuration of the foreground / background separation unit 105. The input image supplied to the foreground / background separation unit 105 is supplied to a separation unit 601, a switch 602, and a switch 604. Information indicating the covered background area and the area information indicating the uncovered background area and supplied from the area specifying unit 103 are supplied to the separation unit 601. Area information indicating the foreground area is supplied to the switch 602. Area information indicating the background area is supplied to the switch 604.

【0406】混合比算出部104から供給された混合比
αは、分離部601に供給される。
The mixture ratio α supplied from the mixture ratio calculation unit 104 is supplied to the separation unit 601.

【0407】分離部601は、カバードバックグラウン
ド領域を示す領域情報、アンカバードバックグラウンド
領域を示す領域情報、および混合比αを基に、入力画像
から前景の成分を分離して、分離した前景の成分を合成
部603に供給するとともに、入力画像から背景の成分
を分離して、分離した背景の成分を合成部605に供給
する。
The separating unit 601 separates the foreground component from the input image based on the area information indicating the covered background area, the area information indicating the uncovered background area, and the mixture ratio α. The components are supplied to the synthesis unit 603, the background component is separated from the input image, and the separated background components are supplied to the synthesis unit 605.

【0408】スイッチ602は、前景領域を示す領域情
報を基に、前景に対応する画素が入力されたとき、閉じ
られ、入力画像に含まれる前景に対応する画素のみを合
成部603に供給する。
The switch 602 is closed when a pixel corresponding to the foreground is input based on the area information indicating the foreground area, and supplies only the pixel corresponding to the foreground included in the input image to the synthesizing unit 603.

【0409】スイッチ604は、背景領域を示す領域情
報を基に、背景に対応する画素が入力されたとき、閉じ
られ、入力画像に含まれる背景に対応する画素のみを合
成部605に供給する。
The switch 604 is closed when a pixel corresponding to the background is input, based on the area information indicating the background area, and supplies only the pixel corresponding to the background included in the input image to the synthesizing unit 605.

【0410】合成部603は、分離部601から供給さ
れた前景に対応する成分、スイッチ602から供給され
た前景に対応する画素を基に、前景成分画像を合成し、
合成した前景成分画像を出力する。前景領域と混合領域
とは重複しないので、合成部603は、例えば、前景に
対応する成分と、前景に対応する画素とに論理和の演算
を適用して、前景成分画像を合成する。
[0410] The synthesizing unit 603 synthesizes a foreground component image based on the foreground component supplied from the separation unit 601 and the foreground pixel supplied from the switch 602.
The synthesized foreground component image is output. Since the foreground region and the mixed region do not overlap, the combining unit 603 combines the foreground component image by applying a logical OR operation to the foreground component and the foreground pixel, for example.

【0411】合成部603は、前景成分画像の合成の処
理の最初に実行される初期化の処理において、内蔵して
いるフレームメモリに全ての画素値が0である画像を格
納し、前景成分画像の合成の処理において、前景成分画
像を格納(上書き)する。従って、合成部603が出力
する前景成分画像の内、背景領域に対応する画素には、
画素値として0が格納されている。
The synthesizing unit 603 stores an image whose pixel values are all 0 in a built-in frame memory in the initialization processing executed at the beginning of the processing of synthesizing the foreground component image. , The foreground component image is stored (overwritten). Accordingly, in the foreground component image output by the synthesis unit 603, pixels corresponding to the background region are:
0 is stored as the pixel value.

【0412】合成部605は、分離部601から供給さ
れた背景に対応する成分、スイッチ604から供給され
た背景に対応する画素を基に、背景成分画像を合成し
て、合成した背景成分画像を出力する。背景領域と混合
領域とは重複しないので、合成部605は、例えば、背
景に対応する成分と、背景に対応する画素とに論理和の
演算を適用して、背景成分画像を合成する。
[0412] The synthesizing unit 605 synthesizes the background component image based on the component corresponding to the background supplied from the separating unit 601 and the pixel corresponding to the background supplied from the switch 604, and converts the synthesized background component image. Output. Since the background region and the mixed region do not overlap, the combining unit 605 combines the background component image by applying a logical OR operation to the component corresponding to the background and the pixel corresponding to the background, for example.

【0413】合成部605は、背景成分画像の合成の処
理の最初に実行される初期化の処理において、内蔵して
いるフレームメモリに全ての画素値が0である画像を格
納し、背景成分画像の合成の処理において、背景成分画
像を格納(上書き)する。従って、合成部605が出力
する背景成分画像の内、前景領域に対応する画素には、
画素値として0が格納されている。
[0413] In the initializing process executed at the beginning of the process of synthesizing the background component image, the synthesizing unit 605 stores an image whose pixel values are all 0 in a built-in frame memory, The background component image is stored (overwritten). Accordingly, in the background component image output by the synthesis unit 605, pixels corresponding to the foreground area include:
0 is stored as the pixel value.

【0414】図59は、前景背景分離部105に入力さ
れる入力画像、並びに前景背景分離部105から出力さ
れる前景成分画像および背景成分画像を示す図である。
FIG. 59 is a diagram showing an input image input to the foreground / background separation unit 105, and a foreground component image and a background component image output from the foreground / background separation unit 105.

【0415】図59(A)は、表示される画像の模式図
であり、図59(B)は、図59(A)に対応する前景
領域に属する画素、背景領域に属する画素、および混合
領域に属する画素を含む1ラインの画素を時間方向に展
開したモデル図を示す。
FIG. 59A is a schematic diagram of an image to be displayed, and FIG. 59B is a diagram showing a pixel belonging to the foreground area, a pixel belonging to the background area, and a mixed area corresponding to FIG. 1 is a model diagram in which pixels of one line including pixels belonging to are developed in the time direction.

【0416】図59(A)および図59(B)に示すよ
うに、前景背景分離部105から出力される背景成分画
像は、背景領域に属する画素、および混合領域の画素に
含まれる背景の成分から構成される。
As shown in FIGS. 59 (A) and 59 (B), the background component image output from the foreground / background separation unit 105 is composed of pixels belonging to the background region and background components included in the pixels of the mixed region. Consists of

【0417】図59(A)および図59(B)に示すよ
うに、前景背景分離部105から出力される前景成分画
像は、前景領域に属する画素、および混合領域の画素に
含まれる前景の成分から構成される。
As shown in FIGS. 59 (A) and 59 (B), the foreground component image output from foreground / background separation section 105 has the foreground components included in the pixels belonging to the foreground area and the pixels in the mixed area. Consists of

【0418】混合領域の画素の画素値は、前景背景分離
部105により、背景の成分と、前景の成分とに分離さ
れる。分離された背景の成分は、背景領域に属する画素
と共に、背景成分画像を構成する。分離された前景の成
分は、前景領域に属する画素と共に、前景成分画像を構
成する。
[0418] The pixel value of the pixel in the mixed area is separated into a background component and a foreground component by the foreground / background separation unit 105. The separated background component forms a background component image together with the pixels belonging to the background area. The separated foreground component forms a foreground component image together with the pixels belonging to the foreground area.

【0419】このように、前景成分画像は、背景領域に
対応する画素の画素値が0とされ、前景領域に対応する
画素および混合領域に対応する画素に意味のある画素値
が設定される。同様に、背景成分画像は、前景領域に対
応する画素の画素値が0とされ、背景領域に対応する画
素および混合領域に対応する画素に意味のある画素値が
設定される。
[0419] As described above, in the foreground component image, the pixel value of the pixel corresponding to the background region is set to 0, and significant pixel values are set to the pixel corresponding to the foreground region and the pixel corresponding to the mixed region. Similarly, in the background component image, the pixel value of the pixel corresponding to the foreground area is set to 0, and meaningful pixel values are set to the pixel corresponding to the background area and the pixel corresponding to the mixed area.

【0420】次に、分離部601が実行する、混合領域
に属する画素から前景の成分、および背景の成分を分離
する処理について説明する。
Next, a description will be given of a process performed by the separating unit 601 to separate a foreground component and a background component from pixels belonging to the mixed area.

【0421】図60は、図中の左から右に移動するオブ
ジェクトに対応する前景を含む、2つのフレームの前景
の成分および背景の成分を示す画像のモデルである。図
60に示す画像のモデルにおいて、前景の動き量vは4
であり、仮想分割数は、4とされている。
FIG. 60 is an image model showing foreground components and background components of two frames including a foreground corresponding to an object moving from left to right in the figure. In the image model shown in FIG. 60, the motion amount v of the foreground is 4
, And the number of virtual divisions is 4.

【0422】フレーム#nにおいて、最も左の画素、およ
び左から14番目乃至18番目の画素は、背景の成分の
みから成り、背景領域に属する。フレーム#nにおいて、
左から2番目乃至4番目の画素は、背景の成分および前
景の成分を含み、アンカバードバックグラウンド領域に
属する。フレーム#nにおいて、左から11番目乃至13
番目の画素は、背景の成分および前景の成分を含み、カ
バードバックグラウンド領域に属する。フレーム#nにお
いて、左から5番目乃至10番目の画素は、前景の成分
のみから成り、前景領域に属する。
In frame #n, the leftmost pixel and the fourteenth through eighteenth pixels from the left consist only of background components and belong to the background area. In frame #n,
The second to fourth pixels from the left include the background component and the foreground component, and belong to the uncovered background area. In frame #n, the eleventh to thirteenth from the left
The third pixel contains background and foreground components and belongs to the covered background area. In frame #n, the fifth through tenth pixels from the left consist only of foreground components and belong to the foreground area.

【0423】フレーム#n+1において、左から1番目乃至
5番目の画素、および左から18番目の画素は、背景の
成分のみから成り、背景領域に属する。フレーム#n+1に
おいて、左から6番目乃至8番目の画素は、背景の成分
および前景の成分を含み、アンカバードバックグラウン
ド領域に属する。フレーム#n+1において、左から15番
目乃至17番目の画素は、背景の成分および前景の成分
を含み、カバードバックグラウンド領域に属する。フレ
ーム#n+1において、左から9番目乃至14番目の画素
は、前景の成分のみから成り、前景領域に属する。
In frame # n + 1, the first through fifth pixels from the left and the eighteenth pixel from the left consist only of background components and belong to the background area. In frame # n + 1, the sixth through eighth pixels from the left include the background component and the foreground component, and belong to the uncovered background area. In frame # n + 1, the fifteenth through seventeenth pixels from the left include the background component and the foreground component, and belong to the covered background area. In frame # n + 1, the ninth to fourteenth pixels from the left consist only of foreground components and belong to the foreground area.

【0424】図61は、カバードバックグラウンド領域
に属する画素から前景の成分を分離する処理を説明する
図である。図61において、α1乃至α18は、フレー
ム#nにおける画素のぞれぞれに対応する混合比である。
図61において、左から15番目乃至17番目の画素
は、カバードバックグラウンド領域に属する。
FIG. 61 is a view for explaining the processing for separating the foreground components from the pixels belonging to the covered background area. In FIG. 61, α1 to α18 are mixing ratios corresponding to the respective pixels in frame #n.
In FIG. 61, the fifteenth through seventeenth pixels from the left belong to the covered background area.

【0425】フレーム#nの左から15番目の画素の画素
値C15は、式(21)で表される。
[0425] The pixel value C15 of the fifteenth pixel from the left of frame #n is represented by equation (21).

【0426】 C15=B15/v+F09/v+F08/v+F07/v =α15・B15+F09/v+F08/v+F07/v =α15・P15+F09/v+F08/v+F07/v (21) ここで、α15は、フレーム#nの左から15番目の画素の
混合比である。P15は、フレーム#n-1の左から15番目
の画素の画素値である。
C15 = B15 / v + F09 / v + F08 / v + F07 / v = α15 ・ B15 + F09 / v + F08 / v + F07 / v = α15 ・ P15 + F09 / v + F08 / v + F07 / v (21) Here, α15 is a mixture ratio of the fifteenth pixel from the left of frame #n. P15 is the pixel value of the fifteenth pixel from the left of frame # n-1.

【0427】式(21)を基に、フレーム#nの左から1
5番目の画素の前景の成分の和f15は、式(22)で表
される。
Based on equation (21), one frame from the left of frame #n
The sum f15 of the foreground components of the fifth pixel is expressed by equation (22).

【0428】 f15=F09/v+F08/v+F07/v =C15-α15・P15 (22)F15 = F09 / v + F08 / v + F07 / v = C15-α15 · P15 (22)

【0429】同様に、フレーム#nの左から16番目の画
素の前景の成分の和f16は、式(23)で表され、フレ
ーム#nの左から17番目の画素の前景の成分の和f17
は、式(24)で表される。
Similarly, the sum f16 of the foreground components of the sixteenth pixel from the left of frame #n is expressed by equation (23), and the sum f17 of the foreground components of the seventeenth pixel from the left of frame #n is
Is represented by equation (24).

【0430】 f16=C16-α16・P16 (23) f17=C17-α17・P17 (24)F16 = C16-α16 · P16 (23) f17 = C17-α17 · P17 (24)

【0431】このように、カバードバックグラウンド領
域に属する画素の画素値Cに含まれる前景の成分fcは、
式(25)で計算される。
Thus, the foreground component fc contained in the pixel value C of the pixel belonging to the covered background area is
It is calculated by equation (25).

【0432】 fc=C-α・P (25) Pは、1つ前のフレームの、対応する画素の画素値であ
る。
Fc = C−α · P (25) P is the pixel value of the corresponding pixel in the immediately preceding frame.

【0433】図62は、アンカバードバックグラウンド
領域に属する画素から前景の成分を分離する処理を説明
する図である。図62において、α1乃至α18は、フ
レーム#nにおける画素のぞれぞれに対応する混合比であ
る。図62において、左から2番目乃至4番目の画素
は、アンカバードバックグラウンド領域に属する。
FIG. 62 is a view for explaining the processing for separating the foreground components from the pixels belonging to the uncovered background area. In FIG. 62, α1 to α18 are mixing ratios corresponding to each of the pixels in frame #n. In FIG. 62, the second through fourth pixels from the left belong to the uncovered background area.

【0434】フレーム#nの左から2番目の画素の画素値
C02は、式(26)で表される。
[0434] Pixel value of second pixel from left of frame #n
C02 is represented by equation (26).

【0435】 C02=B02/v+B02/v+B02/v+F01/v =α2・B02+F01/v =α2・N02+F01/v (26) ここで、α2は、フレーム#nの左から2番目の画素の混
合比である。N02は、フレーム#n+1の左から2番目の画
素の画素値である。
C02 = B02 / v + B02 / v + B02 / v + F01 / v = α2 / B02 + F01 / v = α2 / N02 + F01 / v (26) where α2 is the left of frame #n Is the mixture ratio of the second pixel from. N02 is the pixel value of the second pixel from the left of frame # n + 1.

【0436】式(26)を基に、フレーム#nの左から2
番目の画素の前景の成分の和f02は、式(27)で表さ
れる。
Based on equation (26), two frames from the left of frame #n
The sum f02 of the foreground components of the ith pixel is expressed by equation (27).

【0437】 f02=F01/v =C02-α2・N02 (27)F02 = F01 / v = C02-α2 · N02 (27)

【0438】同様に、フレーム#nの左から3番目の画素
の前景の成分の和f03は、式(28)で表され、フレー
ム#nの左から4番目の画素の前景の成分の和f04は、式
(29)で表される。
Similarly, the sum f03 of the foreground components of the third pixel from the left of frame #n is expressed by equation (28), and the sum f04 of the foreground components of the fourth pixel from the left of frame #n is Is represented by equation (29).

【0439】 f03=C03-α3・N03 (28) f04=C04-α4・N04 (29)F03 = C03-α3 · N03 (28) f04 = C04-α4 · N04 (29)

【0440】このように、アンカバードバックグラウン
ド領域に属する画素の画素値Cに含まれる前景の成分fu
は、式(30)で計算される。
As described above, the foreground component fu included in the pixel value C of the pixel belonging to the uncovered background area is obtained.
Is calculated by Expression (30).

【0441】 fu=C-α・N (30) Nは、1つ後のフレームの、対応する画素の画素値であ
る。
Fu = C−α · N (30) N is the pixel value of the corresponding pixel in the next frame.

【0442】このように、分離部601は、領域情報に
含まれる、カバードバックグラウンド領域を示す情報、
およびアンカバードバックグラウンド領域を示す情報、
並びに画素毎の混合比αを基に、混合領域に属する画素
から前景の成分、および背景の成分を分離することがで
きる。
[0442] As described above, the separation unit 601 outputs the information indicating the covered background area included in the area information.
And information indicating the uncovered background area,
The foreground component and the background component can be separated from the pixels belonging to the mixed area based on the mixing ratio α for each pixel.

【0443】図63は、以上で説明した処理を実行する
分離部601の構成の一例を示すブロック図である。分
離部601に入力された画像は、フレームメモリ621
に供給され、混合比算出部104から供給されたカバー
ドバックグラウンド領域およびアンカバードバックグラ
ウンド領域を示す領域情報、並びに混合比αは、分離処
理ブロック622に入力される。
FIG. 63 is a block diagram showing an example of the configuration of the separating section 601 for executing the processing described above. The image input to the separation unit 601 is stored in a frame memory 621
The area information indicating the covered background area and the uncovered background area supplied from the mixing ratio calculation unit 104 and the mixing ratio α are input to the separation processing block 622.

【0444】フレームメモリ621は、入力された画像
をフレーム単位で記憶する。フレームメモリ621は、
処理の対象がフレーム#nであるとき、フレーム#nの1つ
前のフレームであるフレーム#n-1、フレーム#n、および
フレーム#nの1つ後のフレームであるフレーム#n+1を記
憶する。
[0444] The frame memory 621 stores an input image in frame units. The frame memory 621 is
When the target of processing is frame #n, frame # n−1, frame #n, which is one frame before frame #n, and frame # n + 1, which is one frame after frame #n, Remember.

【0445】フレームメモリ621は、フレーム#n-1、
フレーム#n、およびフレーム#n+1の対応する画素を分離
処理ブロック622に供給する。
The frame memory 621 stores the frame # n−1,
The corresponding pixels of the frame #n and the frame # n + 1 are supplied to the separation processing block 622.

【0446】分離処理ブロック622は、カバードバッ
クグラウンド領域およびアンカバードバックグラウンド
領域を示す領域情報、並びに混合比αを基に、フレーム
メモリ621から供給されたフレーム#n-1、フレーム#
n、およびフレーム#n+1の対応する画素の画素値に図6
1および図62を参照して説明した演算を適用して、フ
レーム#nの混合領域に属する画素から前景の成分および
背景の成分を分離して、フレームメモリ623に供給す
る。
[0446] The separation processing block 622 determines the frame # n-1 and the frame #n supplied from the frame memory 621 based on the area information indicating the covered background area and the uncovered background area and the mixture ratio α.
n and the pixel value of the corresponding pixel in frame # n + 1 in FIG.
By applying the operation described with reference to FIG. 1 and FIG. 62, the foreground component and the background component are separated from the pixels belonging to the mixed area of frame #n, and supplied to the frame memory 623.

【0447】分離処理ブロック622は、アンカバード
領域処理部631、カバード領域処理部632、合成部
633、および合成部634で構成されている。
The separation processing block 622 includes an uncovered area processing section 631, a covered area processing section 632, a synthesizing section 633, and a synthesizing section 634.

【0448】アンカバード領域処理部631の乗算器6
41は、混合比αを、フレームメモリ621から供給さ
れたフレーム#n+1の画素の画素値に乗じて、スイッチ6
42に出力する。スイッチ642は、フレームメモリ6
21から供給されたフレーム#nの画素(フレーム#n+1の
画素に対応する)がアンカバードバックグラウンド領域
であるとき、閉じられ、乗算器641から供給された混
合比αを乗じた画素値を演算器643および合成部63
4に供給する。スイッチ642から出力されるフレーム
#n+1の画素の画素値に混合比αを乗じた値は、フレーム
#nの対応する画素の画素値の背景の成分に等しい。
The multiplier 6 of the uncovered area processing section 631
41 multiplies the mixture ratio α by the pixel value of the pixel of frame # n + 1 supplied from the frame memory 621, and
42. The switch 642 is connected to the frame memory 6
When the pixel of frame #n supplied from 21 (corresponding to the pixel of frame # n + 1) is the uncovered background area, the pixel is closed and multiplied by the mixture ratio α supplied from the multiplier 641 To the computing unit 643 and the combining unit 63
4 Frame output from switch 642
The value obtained by multiplying the pixel value of pixel # n + 1 by the mixture ratio α
It is equal to the background component of the pixel value of the corresponding pixel of #n.

【0449】演算器643は、フレームメモリ621か
ら供給されたフレーム#nの画素の画素値から、スイッチ
642から供給された背景の成分を減じて、前景の成分
を求める。演算器643は、アンカバードバックグラウ
ンド領域に属する、フレーム#nの画素の前景の成分を合
成部633に供給する。
The computing unit 643 obtains a foreground component by subtracting the background component supplied from the switch 642 from the pixel value of the pixel of frame #n supplied from the frame memory 621. The computing unit 643 supplies the foreground component of the pixel of frame #n belonging to the uncovered background area to the combining unit 633.

【0450】カバード領域処理部632の乗算器651
は、混合比αを、フレームメモリ621から供給された
フレーム#n-1の画素の画素値に乗じて、スイッチ652
に出力する。スイッチ652は、フレームメモリ621
から供給されたフレーム#nの画素(フレーム#n-1の画素
に対応する)がカバードバックグラウンド領域であると
き、閉じられ、乗算器651から供給された混合比αを
乗じた画素値を演算器653および合成部634に供給
する。スイッチ652から出力されるフレーム#n-1の画
素の画素値に混合比αを乗じた値は、フレーム#nの対応
する画素の画素値の背景の成分に等しい。
Multiplier 651 of covered area processing section 632
Multiplies the mixture ratio α by the pixel value of the pixel of frame # n−1 supplied from the frame memory 621 to generate a switch 652
Output to The switch 652 is connected to the frame memory 621
When the pixel of frame #n (corresponding to the pixel of frame # n-1) supplied from is the covered background area, the pixel value is closed and multiplied by the mixture ratio α supplied from the multiplier 651 To the synthesizer 653 and the synthesizing unit 634. The value obtained by multiplying the pixel value of the pixel of frame # n−1 output from the switch 652 by the mixture ratio α is equal to the background component of the pixel value of the corresponding pixel of frame #n.

【0451】演算器653は、フレームメモリ621か
ら供給されたフレーム#nの画素の画素値から、スイッチ
652から供給された背景の成分を減じて、前景の成分
を求める。演算器653は、カバードバックグラウンド
領域に属する、フレーム#nの画素の前景の成分を合成部
633に供給する。
The computing unit 653 subtracts the background component supplied from the switch 652 from the pixel value of the pixel of frame #n supplied from the frame memory 621 to obtain the foreground component. The calculator 653 supplies the foreground components of the pixels of frame #n belonging to the covered background area to the combining unit 633.

【0452】合成部633は、フレーム#nの、演算器6
43から供給された、アンカバードバックグラウンド領
域に属する画素の前景の成分、および演算器653から
供給された、カバードバックグラウンド領域に属する画
素の前景の成分を合成して、フレームメモリ623に供
給する。
[0452] The synthesizing unit 633 calculates the arithmetic unit 6 of the frame #n.
The foreground component of the pixel belonging to the uncovered background area supplied from 43 and the foreground component of the pixel belonging to the covered background area supplied from the calculator 653 are combined and supplied to the frame memory 623. .

【0453】合成部634は、フレーム#nの、スイッチ
642から供給された、アンカバードバックグラウンド
領域に属する画素の背景の成分、およびスイッチ652
から供給された、カバードバックグラウンド領域に属す
る画素の背景の成分を合成して、フレームメモリ623
に供給する。
[0453] The synthesizing unit 634 calculates the background component of the pixel belonging to the uncovered background area and the switch 652 supplied from the switch 642 in the frame #n.
The background components of the pixels belonging to the covered background area supplied from the
To supply.

【0454】フレームメモリ623は、分離処理ブロッ
ク622から供給された、フレーム#nの混合領域の画素
の前景の成分と、背景の成分とをそれぞれに記憶する。
The frame memory 623 stores the foreground component and the background component of the pixels in the mixed area of the frame #n supplied from the separation processing block 622, respectively.

【0455】フレームメモリ623は、記憶しているフ
レーム#nの混合領域の画素の前景の成分、および記憶し
ているフレーム#nの混合領域の画素の背景の成分を出力
する。
The frame memory 623 outputs the stored foreground components of the pixels of the mixed area of frame #n and the stored background components of the pixels of the mixed area of frame #n.

【0456】特徴量である混合比αを利用することによ
り、画素値に含まれる前景の成分と背景の成分とを完全
に分離することが可能になる。
By utilizing the mixture ratio α, which is a feature quantity, it becomes possible to completely separate the foreground component and the background component contained in the pixel value.

【0457】合成部603は、分離部601から出力さ
れた、フレーム#nの混合領域の画素の前景の成分と、前
景領域に属する画素とを合成して前景成分画像を生成す
る。合成部605は、分離部601から出力された、フ
レーム#nの混合領域の画素の背景の成分と、背景領域に
属する画素とを合成して背景成分画像を生成する。
The combining section 603 combines the foreground components of the pixels in the mixed area of frame #n output from the separating section 601 with the pixels belonging to the foreground area to generate a foreground component image. The synthesizing unit 605 generates a background component image by synthesizing the background component of the pixel in the mixed area of the frame #n and the pixel belonging to the background area output from the separating unit 601.

【0458】図64は、図60のフレーム#nに対応す
る、前景成分画像の例と、背景成分画像の例を示す図で
ある。
FIG. 64 is a diagram showing an example of a foreground component image and an example of a background component image corresponding to frame #n in FIG.

【0459】図64(A)は、図60のフレーム#nに対
応する、前景成分画像の例を示す。最も左の画素、およ
び左から14番目の画素は、前景と背景が分離される前
において、背景の成分のみから成っていたので、画素値
が0とされる。
FIG. 64A shows an example of a foreground component image corresponding to frame #n in FIG. Since the leftmost pixel and the fourteenth pixel from the left consist of only the background component before the foreground and the background are separated, the pixel value is set to 0.

【0460】左から2番目乃至4番目の画素は、前景と
背景とが分離される前において、アンカバードバックグ
ラウンド領域に属し、背景の成分が0とされ、前景の成
分がそのまま残されている。左から11番目乃至13番
目の画素は、前景と背景とが分離される前において、カ
バードバックグラウンド領域に属し、背景の成分が0と
され、前景の成分がそのまま残されている。左から5番
目乃至10番目の画素は、前景の成分のみから成るの
で、そのまま残される。
The second to fourth pixels from the left belong to the uncovered background area before the foreground and the background are separated, the background component is set to 0, and the foreground component is left as it is. . The eleventh to thirteenth pixels from the left belong to the covered background area before the foreground and the background are separated, the background component is set to 0, and the foreground component is left as it is. The fifth to tenth pixels from the left are left as they are because they consist only of foreground components.

【0461】図64(B)は、図60のフレーム#nに対
応する、背景成分画像の例を示す。最も左の画素、およ
び左から14番目の画素は、前景と背景とが分離される
前において、背景の成分のみから成っていたので、その
まま残される。
FIG. 64B shows an example of a background component image corresponding to frame #n in FIG. The leftmost pixel and the fourteenth pixel from the left are left alone because they consisted only of the background component before the foreground and the background were separated.

【0462】左から2番目乃至4番目の画素は、前景と
背景とが分離される前において、アンカバードバックグ
ラウンド領域に属し、前景の成分が0とされ、背景の成
分がそのまま残されている。左から11番目乃至13番
目の画素は、前景と背景とが分離される前において、カ
バードバックグラウンド領域に属し、前景の成分が0と
され、背景の成分がそのまま残されている。左から5番
目乃至10番目の画素は、前景と背景とが分離される前
において、前景の成分のみから成っていたので、画素値
が0とされる。
The second to fourth pixels from the left belong to the uncovered background area before the foreground and the background are separated, the foreground component is set to 0, and the background component is left as it is. . Before the foreground and background are separated, the eleventh to thirteenth pixels from the left belong to the covered background area, the foreground component is set to 0, and the background component is left as it is. Before the foreground and the background are separated, the fifth through tenth pixels from the left consist only of the foreground components, and thus have a pixel value of 0.

【0463】次に、図65に示すフローチャートを参照
して、前景背景分離部105による前景と背景との分離
の処理を説明する。ステップS601において、分離部
601のフレームメモリ621は、入力画像を取得し、
前景と背景との分離の対象となるフレーム#nを、その前
のフレーム#n-1およびその後のフレーム#n+1と共に記憶
する。
Next, the process of separating the foreground and the background by the foreground / background separator 105 will be described with reference to the flowchart shown in FIG. In step S601, the frame memory 621 of the separation unit 601 acquires an input image,
The frame #n to be separated from the foreground and the background is stored together with the previous frame # n-1 and the subsequent frame # n + 1.

【0464】ステップS602において、分離部601
の分離処理ブロック622は、混合比算出部104から
供給された領域情報を取得する。ステップS603にお
いて、分離部601の分離処理ブロック622は、混合
比算出部104から供給された混合比αを取得する。
In step S602, the separation unit 601
The separation processing block 622 obtains the area information supplied from the mixture ratio calculation unit 104. In step S603, the separation processing block 622 of the separation unit 601 acquires the mixture ratio α supplied from the mixture ratio calculation unit 104.

【0465】ステップS604において、アンカバード
領域処理部631は、領域情報および混合比αを基に、
フレームメモリ621から供給された、アンカバードバ
ックグラウンド領域に属する画素の画素値から、背景の
成分を抽出する。
[0465] In step S604, the uncovered area processing section 631 performs the processing based on the area information and the mixture ratio α.
The background component is extracted from the pixel values of the pixels belonging to the uncovered background area supplied from the frame memory 621.

【0466】ステップS605において、アンカバード
領域処理部631は、領域情報および混合比αを基に、
フレームメモリ621から供給された、アンカバードバ
ックグラウンド領域に属する画素の画素値から、前景の
成分を抽出する。
[0466] In step S605, the uncovered area processing section 631 performs processing based on the area information and the mixture ratio α.
The foreground component is extracted from the pixel values of the pixels belonging to the uncovered background area supplied from the frame memory 621.

【0467】ステップS606において、カバード領域
処理部632は、領域情報および混合比αを基に、フレ
ームメモリ621から供給された、カバードバックグラ
ウンド領域に属する画素の画素値から、背景の成分を抽
出する。
In step S606, the covered area processing unit 632 extracts a background component from the pixel values of the pixels belonging to the covered background area supplied from the frame memory 621 based on the area information and the mixture ratio α. .

【0468】ステップS607において、カバード領域
処理部632は、領域情報および混合比αを基に、フレ
ームメモリ621から供給された、カバードバックグラ
ウンド領域に属する画素の画素値から、前景の成分を抽
出する。
In step S607, the covered area processing unit 632 extracts a foreground component from the pixel values of the pixels belonging to the covered background area supplied from the frame memory 621 based on the area information and the mixture ratio α. .

【0469】ステップS608において、合成部633
は、ステップS605の処理で抽出されたアンカバード
バックグラウンド領域に属する画素の前景の成分と、ス
テップS607の処理で抽出されたカバードバックグラ
ウンド領域に属する画素の前景の成分とを合成する。合
成された前景の成分は、合成部603に供給される。更
に、合成部603は、スイッチ602を介して供給され
た前景領域に属する画素と、分離部601から供給され
た前景の成分とを合成して、前景成分画像を生成する。
[0469] In step S608, the combining section 633
Combines the foreground components of the pixels belonging to the uncovered background area extracted in the processing of step S605 with the foreground components of the pixels belonging to the covered background area extracted in the processing of step S607. The synthesized foreground component is supplied to the synthesis unit 603. Further, the synthesizing unit 603 generates a foreground component image by synthesizing the pixels belonging to the foreground area supplied via the switch 602 and the foreground components supplied from the separating unit 601.

【0470】ステップS609において、合成部634
は、ステップS604の処理で抽出されたアンカバード
バックグラウンド領域に属する画素の背景の成分と、ス
テップS606の処理で抽出されたカバードバックグラ
ウンド領域に属する画素の背景の成分とを合成する。合
成された背景の成分は、合成部605に供給される。更
に、合成部605は、スイッチ604を介して供給され
た背景領域に属する画素と、分離部601から供給され
た背景の成分とを合成して、背景成分画像を生成する。
[0470] In step S609, the synthesizing unit 634
Combines the background component of the pixel belonging to the uncovered background area extracted in the processing of step S604 with the background component of the pixel belonging to the covered background area extracted in the processing of step S606. The synthesized background component is supplied to the synthesis unit 605. Further, the synthesizing unit 605 generates a background component image by synthesizing the pixels belonging to the background area supplied via the switch 604 and the background component supplied from the separation unit 601.

【0471】ステップS610において、合成部603
は、前景成分画像を出力する。ステップS611におい
て、合成部605は、背景成分画像を出力し、処理は終
了する。
[0471] In step S610, the synthesizing unit 603
Outputs a foreground component image. In step S611, the synthesis unit 605 outputs the background component image, and the processing ends.

【0472】このように、前景背景分離部105は、領
域情報および混合比αを基に、入力画像から前景の成分
と、背景の成分とを分離し、前景の成分のみから成る前
景成分画像、および背景の成分のみから成る背景成分画
像を出力することができる。
As described above, the foreground / background separation unit 105 separates the foreground component and the background component from the input image based on the area information and the mixture ratio α, and outputs a foreground component image consisting of only the foreground component. Also, a background component image consisting of only background components can be output.

【0473】次に、前景成分画像からの動きボケの量の
調整について説明する。
Next, adjustment of the amount of motion blur from the foreground component image will be described.

【0474】図66は、動きボケ調整部106の構成の
一例を示すブロック図である。動き検出部102から供
給された動きベクトルとその位置情報、および領域特定
部103から供給された領域情報は、処理単位決定部8
01およびモデル化部802に供給される。前景背景分
離部105から供給された前景成分画像は、足し込み部
804に供給される。
FIG. 66 is a block diagram showing an example of the structure of the motion-blur adjusting unit 106. The motion vector and its position information supplied from the motion detection unit 102 and the region information supplied from the region identification unit 103 are stored in the processing unit determination unit 8.
01 and the modeling unit 802. The foreground component image supplied from the foreground / background separation unit 105 is supplied to the addition unit 804.

【0475】処理単位決定部801は、動きベクトルと
その位置情報、および領域情報を基に、動きベクトルと
共に、生成した処理単位をモデル化部802に供給す
る。処理単位決定部801は、生成した処理単位を足し
込み部804に供給する。
[0475] The processing unit determination unit 801 supplies the generated processing unit to the modeling unit 802 together with the motion vector based on the motion vector, its position information, and area information. The processing unit determination unit 801 supplies the generated processing unit to the adding unit 804.

【0476】処理単位決定部801が生成する処理単位
は、図67に例を示すように、前景成分画像のカバード
バックグラウンド領域に対応する画素から始まり、アン
カバードバックグラウンド領域に対応する画素までの動
き方向に並ぶ連続する画素、またはアンカバードバック
グラウンド領域に対応する画素から始まり、カバードバ
ックグラウンド領域に対応する画素までの動き方向に並
ぶ連続する画素を示す。処理単位は、例えば、左上点
(処理単位で指定される画素であって、画像上で最も左
または最も上に位置する画素の位置)および右下点の2
つのデータから成る。
The processing unit generated by the processing unit determination unit 801 starts from a pixel corresponding to the covered background area of the foreground component image and extends to a pixel corresponding to the uncovered background area as shown in FIG. A continuous pixel in the movement direction starting from a pixel corresponding to the uncovered background area or a continuous pixel aligned in the movement direction to a pixel corresponding to the covered background area is shown. The processing unit is, for example, an upper left point (a pixel designated by the processing unit and a position of a pixel located at the leftmost or uppermost position on the image) and a lower right point.
Data.

【0477】モデル化部802は、動きベクトルおよび
入力された処理単位を基に、モデル化を実行する。より
具体的には、例えば、モデル化部802は、処理単位に
含まれる画素の数、画素値の時間方向の仮想分割数、お
よび画素毎の前景の成分の数に対応する複数のモデルを
予め記憶しておき、処理単位、および画素値の時間方向
の仮想分割数を基に、図68に示すような、画素値と前
景の成分との対応を指定するモデルを選択するようにし
ても良い。
[0477] The modeling unit 802 performs modeling based on the motion vector and the input processing unit. More specifically, for example, the modeling unit 802 pre-stores a plurality of models corresponding to the number of pixels included in the processing unit, the number of virtual divisions of pixel values in the time direction, and the number of foreground components for each pixel. A model that specifies the correspondence between pixel values and foreground components as shown in FIG. 68 may be selected based on the processing unit and the number of virtual divisions of pixel values in the time direction. .

【0478】例えば、処理単位に対応する画素の数が1
2でありシャッタ時間内の動き量vが5であるときにお
いては、モデル化部802は、仮想分割数を5とし、最
も左に位置する画素が1つの前景の成分を含み、左から
2番目の画素が2つの前景の成分を含み、左から3番目
の画素が3つの前景の成分を含み、左から4番目の画素
が4つの前景の成分を含み、左から5番目の画素が5つ
の前景の成分を含み、左から6番目の画素が5つの前景
の成分を含み、左から7番目の画素が5つの前景の成分
を含み、左から8番目の画素が5つの前景の成分を含
み、左から9番目の画素が4つの前景の成分を含み、左
から10番目の画素が3つの前景の成分を含み、左から
11番目の画素が2つの前景の成分を含み、左から12
番目の画素が1つの前景の成分を含み、全体として8つ
の前景の成分から成るモデルを選択する。
For example, if the number of pixels corresponding to the processing unit is one,
When the motion amount v within the shutter time is 5, the modeling unit 802 sets the virtual division number to 5, the leftmost pixel includes one foreground component, and the second pixel from the left. Pixel includes two foreground components, the third pixel from the left includes three foreground components, the fourth pixel from the left includes four foreground components, and the fifth pixel from the left includes five foreground components. Including the foreground component, the sixth pixel from the left contains five foreground components, the seventh pixel from the left contains five foreground components, and the eighth pixel from the left contains five foreground components. , The ninth pixel from the left contains four foreground components, the tenth pixel from the left contains three foreground components, the eleventh pixel from the left contains two foreground components, and 12 from the left.
A model is selected in which the th pixel contains one foreground component and comprises a total of eight foreground components.

【0479】なお、モデル化部802は、予め記憶して
あるモデルから選択するのではなく、動きベクトル、お
よび処理単位が供給されたとき、動きベクトル、および
処理単位を基に、モデルを生成するようにしてもよい。
[0479] When a motion vector and a processing unit are supplied, instead of selecting from a model stored in advance, the modeling unit 802 generates a model based on the motion vector and the processing unit. You may do so.

【0480】モデル化部802は、選択したモデルを方
程式生成部803に供給する。
[0480] The modeling unit 802 supplies the selected model to the equation generation unit 803.

【0481】方程式生成部803は、モデル化部802
から供給されたモデルを基に、方程式を生成する。図6
8に示す前景成分画像のモデルを参照して、前景の成分
の数が8であり、処理単位に対応する画素の数が12で
あり、動き量vが5であり、仮想分割数が5であるとき
の、方程式生成部803が生成する方程式について説明
する。
[0481] The equation generation unit 803 includes a modeling unit 802.
Generate an equation based on the model supplied from. FIG.
Referring to the model of the foreground component image shown in FIG. 8, the number of foreground components is 8, the number of pixels corresponding to the processing unit is 12, the motion amount v is 5, and the number of virtual divisions is 5. An equation generated by the equation generation unit 803 at a certain time will be described.

【0482】前景成分画像に含まれるシャッタ時間/vに
対応する前景成分がF01/v乃至F08/vであるとき、F01/v
乃至F08/vと画素値C01乃至C12との関係は、式(31)
乃至式(42)で表される。
When the foreground component corresponding to the shutter time / v included in the foreground component image is F01 / v to F08 / v, F01 / v
To F08 / v and the pixel values C01 to C12 are given by Equation (31).
To (42).

【0483】 C01=F01/v (31) C02=F02/v+F01/v (32) C03=F03/v+F02/v+F01/v (33) C04=F04/v+F03/v+F02/v+F01/v (34) C05=F05/v+F04/v+F03/v+F02/v+F01/v (35) C06=F06/v+F05/v+F04/v+F03/v+F02/v (36) C07=F07/v+F06/v+F05/v+F04/v+F03/v (37) C08=F08/v+F07/v+F06/v+F05/v+F04/v (38) C09=F08/v+F07/v+F06/v+F05/v (39) C10=F08/v+F07/v+F06/v (40) C11=F08/v+F07/v (41) C12=F08/v (42)C01 = F01 / v (31) C02 = F02 / v + F01 / v (32) C03 = F03 / v + F02 / v + F01 / v (33) C04 = F04 / v + F03 / v + F02 / v + F01 / v (34) C05 = F05 / v + F04 / v + F03 / v + F02 / v + F01 / v (35) C06 = F06 / v + F05 / v + F04 / v + F03 / v + F02 / v (36) C07 = F07 / v + F06 / v + F05 / v + F04 / v + F03 / v (37) C08 = F08 / v + F07 / v + F06 / v + F05 / v + F04 / v (38) C09 = F08 / v + F07 / v + F06 / v + F05 / v (39) C10 = F08 / v + F07 / v + F06 / v (40) C11 = F08 / v + F07 / v (41) C12 = F08 / v (42)

【0484】方程式生成部803は、生成した方程式を
変形して方程式を生成する。方程式生成部803が生成
する方程式を、式(43)乃至式(54)に示す。
The equation generating section 803 deforms the generated equation to generate an equation. Equations (43) to (54) show the equations generated by the equation generation unit 803.

【0485】 C01=1・F01/v+0・F02/v+0・F03/v+0・F04/v+0・F05/v +0・F06/v+0・F07/v+0・F08/v (43) C02=1・F01/v+1・F02/v+0・F03/v+0・F04/v+0・F05/v +0・F06/v+0・F07/v+0・F08/v (44) C03=1・F01/v+1・F02/v+1・F03/v+0・F04/v+0・F05/v +0・F06/v+0・F07/v+0・F08/v (45) C04=1・F01/v+1・F02/v+1・F03/v+1・F04/v+0・F05/v +0・F06/v+0・F07/v+0・F08/v (46) C05=1・F01/v+1・F02/v+1・F03/v+1・F04/v+1・F05/v +0・F06/v+0・F07/v+0・F08/v (47) C06=0・F01/v+1・F02/v+1・F03/v+1・F04/v+1・F05/v +1・F06/v+0・F07/v+0・F08/v (48) C07=0・F01/v+0・F02/v+1・F03/v+1・F04/v+1・F05/v +1・F06/v+1・F07/v+0・F08/v (49) C08=0・F01/v+0・F02/v+0・F03/v+1・F04/v+1・F05/v +1・F06/v+1・F07/v+1・F08/v (50) C09=0・F01/v+0・F02/v+0・F03/v+0・F04/v+1・F05/v +1・F06/v+1・F07/v+1・F08/v (51) C10=0・F01/v+0・F02/v+0・F03/v+0・F04/v+0・F05/v +1・F06/v+1・F07/v+1・F08/v (52) C11=0・F01/v+0・F02/v+0・F03/v+0・F04/v+0・F05/v +0・F06/v+1・F07/v+1・F08/v (53) C12=0・F01/v+0・F02/v+0・F03/v+0・F04/v+0・F05/v +0・F06/v+0・F07/v+1・F08/v (54)[0485] C01 = 1 ・ F01 / v + 0 ・ F02 / v + 0 ・ F03 / v + 0 ・ F04 / v + 0 ・ F05 / v +0 ・ F06 / v + 0 ・ F07 / v + 0 ・ F08 / v (43) C02 = 1 ・ F01 / v + 1 ・ F02 / v + 0 ・ F03 / v + 0 ・ F04 / v + 0 ・ F05 / v +0 ・ F06 / v + 0 ・ F07 / v + 0・ F08 / v (44) C03 = 1 ・ F01 / v + 1 ・ F02 / v + 1 ・ F03 / v + 0 ・ F04 / v + 0 ・ F05 / v +0 ・ F06 / v + 0 ・ F07 / v +0 ・ F08 / v (45) C04 = 1 ・ F01 / v + 1 ・ F02 / v + 1 ・ F03 / v + 1 ・ F04 / v + 0 ・ F05 / v +0 ・ F06 / v + 0 ・ F07 / v + 0 ・ F08 / v (46) C05 = 1 ・ F01 / v + 1 ・ F02 / v + 1 ・ F03 / v + 1 ・ F04 / v + 1 ・ F05 / v +0 ・ F06 / v + 0・ F07 / v + 0 ・ F08 / v (47) C06 = 0 ・ F01 / v + 1 ・ F02 / v + 1 ・ F03 / v + 1 ・ F04 / v + 1 ・ F05 / v +1 ・ F06 / v +0 ・ F07 / v + 0 ・ F08 / v (48) C07 = 0 ・ F01 / v + 0 ・ F02 / v + 1 ・ F03 / v + 1 ・ F04 / v + 1 ・ F05 / v +1 ・ F06 / v + 1 ・ F07 / v + 0 ・ F08 / v (49) C08 = 0 ・ F01 / v + 0 ・ F02 / v + 0 ・ F03 / v + 1 ・ F04 / v + 1 ・ F05 / v +1・ F06 / v + 1 ・ F07 / v + 1 ・ F08 / v (50) C09 = 0 ・ F01 / v + 0 ・ F02 / v + 0 ・ F03 / v + 0 ・ F04 / v + 1 ・ F05 / v +1 ・ F06 / v + 1 ・ F07 / v + 1 ・ F08 / v (51) C10 = 0 ・ F01 / v + 0 ・ F02 / v + 0 ・ F03 / v + 0 ・ F04 / v + 0 ・ F05 / v +1 ・ F06 / v + 1 ・ F07 / v + 1 ・ F08 / v (52) C 11 = 0 ・ F01 / v + 0 ・ F02 / v + 0 ・ F03 / v + 0 ・ F04 / v + 0 ・ F05 / v +0 ・ F06 / v + 1 ・ F07 / v + 1 ・ F08 / v ( 53) C12 = 0 ・ F01 / v + 0 ・ F02 / v + 0 ・ F03 / v + 0 ・ F04 / v + 0 ・ F05 / v +0 ・ F06 / v + 0 ・ F07 / v + 1 ・ F08 / v (54)

【0486】式(43)乃至式(54)は、式(55)
として表すこともできる。
Formulas (43) to (54) are obtained by using formula (55).
It can also be expressed as

【0487】[0487]

【数17】 式(55)において、jは、画素の位置を示す。この例
において、jは、1乃至12のいずれか1つの値を有す
る。また、iは、前景値の位置を示す。この例におい
て、iは、1乃至8のいずれか1つの値を有する。aij
は、iおよびjの値に対応して、0または1の値を有す
る。
[Equation 17] In Expression (55), j indicates a position of a pixel. In this example, j has a value of any one of 1 to 12. I indicates the position of the foreground value. In this example, i has a value of any one of 1 to 8. aij
Has a value of 0 or 1 corresponding to the values of i and j.

【0488】誤差を考慮して表現すると、式(55)
は、式(56)のように表すことができる。
When expressed in consideration of the error, equation (55)
Can be expressed as in equation (56).

【0489】[0489]

【数18】 式(56)において、ejは、注目画素Cjに含まれる誤差
である。
(Equation 18) In Expression (56), ej is an error included in the target pixel Cj.

【0490】式(56)は、式(57)に書き換えるこ
とができる。
Equation (56) can be rewritten as equation (57).

【0491】[0490]

【数19】 [Equation 19]

【0492】ここで、最小自乗法を適用するため、誤差
の自乗和Eを式(58)に示すように定義する。
Here, in order to apply the least squares method, the sum of squares E of the error is defined as shown in Expression (58).

【0493】[0493]

【数20】 (Equation 20)

【0494】誤差が最小になるためには、誤差の自乗和
Eに対する、変数Fkによる偏微分の値が0になればよ
い。式(59)を満たすようにFkを求める。
To minimize the error, the sum of the squares of the error
What is necessary is that the value of the partial differentiation of E with respect to the variable Fk becomes 0. Fk is determined so as to satisfy Expression (59).

【0495】[0495]

【数21】 (Equation 21)

【0496】式(59)において、動き量vは固定値で
あるから、式(60)を導くことができる。
In equation (59), since the motion amount v is a fixed value, equation (60) can be derived.

【0497】[0497]

【数22】 (Equation 22)

【0498】式(60)を展開して、移項すると、式
(61)を得る。
By expanding the equation (60) and transposing it, the equation (61) is obtained.

【0499】[0499]

【数23】 (Equation 23)

【0500】式(61)のkに1乃至8の整数のいずれ
か1つを代入して得られる8つの式に展開する。得られ
た8つの式を、行列により1つの式により表すことがで
きる。この式を正規方程式と呼ぶ。
The expression is expanded into eight expressions obtained by substituting any one of integers 1 to 8 into k in the expression (61). The obtained eight expressions can be represented by one expression by a matrix. This equation is called a normal equation.

【0501】このような最小自乗法に基づく、方程式生
成部803が生成する正規方程式の例を式(62)に示
す。
[0501] An example of a normal equation generated by the equation generation unit 803 based on the least squares method is shown in equation (62).

【0502】[0502]

【数24】 (Equation 24)

【0503】式(62)をA・F=v・Cと表すと、C,A,vが既
知であり、Fは未知である。また、A,vは、モデル化の時
点で既知だが、Cは、足し込み動作において画素値を入
力することで既知となる。
If equation (62) is expressed as A · F = v · C, C, A, and v are known, and F is unknown. A and v are known at the time of modeling, but C becomes known by inputting pixel values in the adding operation.

【0504】最小自乗法に基づく正規方程式により前景
成分を算出することにより、画素Cに含まれている誤差
を分散させることができる。
By calculating the foreground component using a normal equation based on the least squares method, the error contained in the pixel C can be dispersed.

【0505】方程式生成部803は、このように生成さ
れた正規方程式を足し込み部804に供給する。
The equation generator 803 supplies the normal equation generated in this way to the adder 804.

【0506】足し込み部804は、処理単位決定部80
1から供給された処理単位を基に、前景成分画像に含ま
れる画素値Cを、方程式生成部803から供給された行
列の式に設定する。足し込み部804は、画素値Cを設
定した行列を演算部805に供給する。
The adding unit 804 includes the processing unit determining unit 80
Based on the processing unit supplied from 1, the pixel value C included in the foreground component image is set in the matrix expression supplied from the equation generation unit 803. The adding unit 804 supplies a matrix in which the pixel values C are set to the calculation unit 805.

【0507】演算部805は、掃き出し法(Gauss-Jord
anの消去法)などの解法に基づく処理により、動きボケ
が除去された前景成分Fi/vを算出して、動きボケが除去
された前景の画素値である、0乃至8の整数のいずれか
のiに対応するFiを算出して、図69に例を示す、動き
ボケが除去された画素値であるFiから成る、動きボケが
除去された前景成分画像を動きボケ付加部806および
選択部807に出力する。
[0507] The arithmetic unit 805 uses the sweep-out method (Gauss-Jord).
An elimination method such as an) is used to calculate the foreground component Fi / v from which the motion blur has been removed, and the pixel value of the foreground from which the motion blur has been removed, which is an integer from 0 to 8 69 is calculated, and the foreground component image from which motion blur has been removed, which is composed of the pixel values Fi from which motion blur has been removed, as shown in FIG. 807.

【0508】なお、図69に示す動きボケが除去された
前景成分画像において、C03乃至C10のそれぞれにF01乃
至F08のそれぞれが設定されているのは、画面に対する
前景成分画像の位置を変化させないためであり、任意の
位置に対応させることができる。
In the foreground component image from which motion blur has been removed as shown in FIG. 69, F01 to F08 are respectively set to C03 to C10 because the position of the foreground component image with respect to the screen is not changed. And can correspond to an arbitrary position.

【0509】動きボケ付加部806は、動き量vとは異
なる値の動きボケ調整量v'、例えば、動き量vの半分の
値の動きボケ調整量v'や、動き量vと無関係の値の動き
ボケ調整量v'を与えることで、動きボケの量を調整する
ことができる。例えば、図70に示すように、動きボケ
付加部806は、動きボケが除去された前景の画素値Fi
を動きボケ調整量v'で除すことにより、前景成分Fi/v'
を算出して、前景成分Fi/v'の和を算出して、動きボケ
の量が調整された画素値を生成する。例えば、動きボケ
調整量v'が3のとき、画素値C02は、(F01)/v'とさ
れ、画素値C03は、(F01+F02)/v'とされ、画素値C04
は、(F01+F02+F03)/v'とされ、画素値C05は、(F02+F
03+F04)/v'とされる。
[0509] The motion blur adding unit 806 generates a motion blur adjustment amount v 'having a value different from the motion amount v, for example, a motion blur adjustment amount v' having a half value of the motion amount v, or a value irrelevant to the motion amount v. By giving the motion blur adjustment amount v ′, the amount of motion blur can be adjusted. For example, as shown in FIG. 70, the motion blur adding unit 806 outputs the pixel value Fi of the foreground from which the motion blur has been removed.
Is divided by the motion blur adjustment amount v 'to obtain the foreground component Fi / v'
Is calculated, and the sum of the foreground components Fi / v ′ is calculated to generate a pixel value in which the amount of motion blur is adjusted. For example, when the motion blur adjustment amount v ′ is 3, the pixel value C02 is (F01) / v ′, the pixel value C03 is (F01 + F02) / v ′, and the pixel value C04 is
Is (F01 + F02 + F03) / v ', and the pixel value C05 is (F02 + F02).
03 + F04) / v '.

【0510】動きボケ付加部806は、動きボケの量を
調整した前景成分画像を選択部807に供給する。
[0510] The motion blur adding unit 806 supplies the foreground component image in which the amount of motion blur has been adjusted to the selection unit 807.

【0511】選択部807は、例えば使用者の選択に対
応した選択信号を基に、演算部805から供給された動
きボケが除去された前景成分画像、および動きボケ付加
部806から供給された動きボケの量が調整された前景
成分画像のいずれか一方を選択して、選択した前景成分
画像を出力する。
[0511] The selection unit 807, for example, based on a selection signal corresponding to the user's selection, receives the foreground component image from which the motion blur has been removed and the motion supplied from the motion blur addition unit 806. One of the foreground component images whose blur amount has been adjusted is selected, and the selected foreground component image is output.

【0512】このように、動きボケ調整部106は、選
択信号および動きボケ調整量v'を基に、動きボケの量を
調整することができる。
[0512] As described above, the motion blur adjusting unit 106 can adjust the amount of motion blur based on the selection signal and the motion blur adjustment amount v '.

【0513】また、例えば、図71に示すように、処理
単位に対応する画素の数が8であり、動き量vが4であ
るとき、動きボケ調整部106は、式(63)に示す行
列の式を生成する。
For example, as shown in FIG. 71, when the number of pixels corresponding to the processing unit is 8 and the motion amount v is 4, the motion-blur adjusting unit 106 sets the matrix shown in Expression (63) Generates the expression

【0514】[0514]

【数25】 (Equation 25)

【0515】動きボケ調整部106は、このように処理
単位の長さに対応した数の式を立てて、動きボケの量が
調整された画素値であるFiを算出する。同様に、例え
ば、処理単位に含まれる画素の数が100あるとき、1
00個の画素に対応する式を生成して、Fiを算出する。
[0515] The motion-blur adjusting unit 106 formulates a number corresponding to the length of the processing unit as described above, and calculates Fi, which is a pixel value in which the amount of motion blur has been adjusted. Similarly, for example, when the number of pixels included in the processing unit is 100, 1
An equation corresponding to 00 pixels is generated to calculate Fi.

【0516】図72は、動きボケ調整部106の他の構
成を示す図である。図66に示す場合と同様の部分には
同一の番号を付してあり、その説明は省略する。
[0516] Fig. 72 is a diagram showing another configuration of the motion blur adjustment unit 106. The same portions as those shown in FIG. 66 are denoted by the same reference numerals, and description thereof will be omitted.

【0517】選択部821は、選択信号を基に、入力さ
れた動きベクトルとその位置信号をそのまま処理単位決
定部801およびモデル化部802に供給するか、また
は動きベクトルの大きさを動きボケ調整量v'に置き換え
て、その大きさが動きボケ調整量v'に置き換えられた動
きベクトルとその位置信号を処理単位決定部801およ
びモデル化部802に供給する。
The selection unit 821 supplies the input motion vector and its position signal as they are to the processing unit determination unit 801 and the modeling unit 802 based on the selection signal, or adjusts the size of the motion vector by motion blur adjustment. The motion vector whose magnitude has been replaced with the motion blur adjustment amount v 'instead of the amount v' and the position signal thereof are supplied to the processing unit determination unit 801 and the modeling unit 802.

【0518】このようにすることで、図72の動きボケ
調整部106の処理単位決定部801乃至演算部805
は、動き量vと動きボケ調整量v'との値に対応して、動
きボケの量を調整することができる。例えば、動き量v
が5であり、動きボケ調整量v'が3であるとき、図72の
動きボケ調整部106の処理単位決定部801乃至演算
部805は、図68に示す動き量vが5である前景成分画
像に対して、3である動きボケ調整量v'対応する図70
に示すようなモデルに従って、演算を実行し、(動き量
v)/(動きボケ調整量v')=5/3、すなわちほぼ1.7の動
き量vに応じた動きボケを含む画像を算出する。なお、
この場合、算出される画像は、3である動き量vに対応し
た動きボケを含むのではないので、動きボケ付加部80
6の結果とは動き量vと動きボケ調整量v'の関係の意味
合いが異なる点に注意が必要である。
[0518] By doing so, the processing unit determination unit 801 to the calculation unit 805 of the motion blur adjustment unit 106 shown in FIG.
Can adjust the amount of motion blur according to the values of the motion amount v and the motion blur adjustment amount v ′. For example, the amount of movement v
Is 5 and the motion blur adjustment amount v ′ is 3, the processing unit determination unit 801 to the calculation unit 805 of the motion blur adjustment unit 106 in FIG. 72 determine whether the foreground component whose motion amount v is 5 shown in FIG. FIG. 70 corresponding to the motion blur adjustment amount v ′ of 3
The calculation is performed according to the model shown in
v) / (Motion blur adjustment amount v ′) = 5/3, that is, an image including a motion blur corresponding to the motion amount v of approximately 1.7 is calculated. In addition,
In this case, since the calculated image does not include the motion blur corresponding to the motion amount v of 3, the motion blur adding unit 80
It should be noted that the meaning of the relationship between the motion amount v and the motion blur adjustment amount v ′ differs from the result of No. 6.

【0519】以上のように、動きボケ調整部106は、
動き量vおよび処理単位に対応して、式を生成し、生成
した式に前景成分画像の画素値を設定して、動きボケの
量が調整された前景成分画像を算出する。
As described above, the motion-blur adjusting unit 106
An equation is generated corresponding to the motion amount v and the processing unit, and the pixel value of the foreground component image is set in the generated equation to calculate a foreground component image in which the amount of motion blur is adjusted.

【0520】次に、図73のフローチャートを参照し
て、動きボケ調整部106による前景成分画像に含まれ
る動きボケの量の調整の処理を説明する。
Next, the process of adjusting the amount of motion blur included in the foreground component image by the motion blur adjustment unit 106 will be described with reference to the flowchart in FIG.

【0521】ステップS801において、動きボケ調整
部106の処理単位決定部801は、動きベクトルおよ
び領域情報を基に、処理単位を生成し、生成した処理単
位をモデル化部802に供給する。
[0521] In step S801, the processing unit determination unit 801 of the motion blur adjustment unit 106 generates a processing unit based on the motion vector and the area information, and supplies the generated processing unit to the modeling unit 802.

【0522】ステップS802において、動きボケ調整
部106のモデル化部802は、動き量vおよび処理単
位に対応して、モデルの選択や生成を行う。ステップS
803において、方程式生成部803は、選択されたモ
デルを基に、正規方程式を作成する。
[0522] In step S802, the modeling unit 802 of the motion-blur adjusting unit 106 selects or generates a model according to the motion amount v and the processing unit. Step S
In 803, the equation generator 803 creates a normal equation based on the selected model.

【0523】ステップS804において、足し込み部8
04は、作成された正規方程式に前景成分画像の画素値
を設定する。ステップS805において、足し込み部8
04は、処理単位に対応する全ての画素の画素値の設定
を行ったか否かを判定し、処理単位に対応する全ての画
素の画素値の設定を行っていないと判定された場合、ス
テップS804に戻り、正規方程式への画素値の設定の
処理を繰り返す。
In step S804, the adding section 8
Step 04 sets the pixel value of the foreground component image in the created normal equation. In step S805, the adding unit 8
In step S804, it is determined whether the pixel values of all the pixels corresponding to the processing unit have been set. If it is determined that the pixel values of all the pixels corresponding to the processing unit have not been set, step S804 is performed. And the process of setting the pixel value to the normal equation is repeated.

【0524】ステップS805において、処理単位の全
ての画素の画素値の設定を行ったと判定された場合、ス
テップS806に進み、演算部805は、足し込み部8
04から供給された画素値が設定された正規方程式を基
に、動きボケの量を調整した前景の画素値を算出して、
処理は終了する。
[0524] If it is determined in step S805 that the pixel values of all the pixels in the processing unit have been set, the process proceeds to step S806, and the arithmetic unit 805 causes the adding unit 8
Based on the normal equation in which the pixel values supplied from 04 are set, the pixel values of the foreground with the amount of motion blur adjusted are calculated,
The process ends.

【0525】このように、動きボケ調整部106は、動
きベクトルおよび領域情報を基に、動きボケを含む前景
画像から動きボケの量を調整することができる。
[0525] As described above, the motion blur adjusting unit 106 can adjust the amount of motion blur from the foreground image including motion blur based on the motion vector and the area information.

【0526】すなわち、サンプルデータである画素値に
含まれる動きボケの量を調整することができる。
That is, it is possible to adjust the amount of motion blur included in a pixel value which is sample data.

【0527】以上のように、図2に構成を示す信号処理
部は、入力画像に含まれる動きボケの量を調整すること
ができる。図2に構成を示す信号処理部は、埋もれた情
報である混合比αを算出して、算出した混合比αを出力
することができる。
[0527] As described above, the signal processing section shown in Fig. 2 can adjust the amount of motion blur included in the input image. The signal processing unit shown in FIG. 2 can calculate the mixture ratio α, which is the buried information, and output the calculated mixture ratio α.

【0528】図74は、動きボケ調整部106の構成の
他の一例を示すブロック図である。動き検出部102か
ら供給された動きベクトルとその位置情報は、処理単位
決定部901および補正部905に供給され、領域特定
部103から供給された領域情報は、処理単位決定部9
01に供給される。前景背景分離部105から供給され
た前景成分画像は、演算部904に供給される。
FIG. 74 is a block diagram showing another example of the configuration of the motion-blur adjusting unit 106. The motion vector and its position information supplied from the motion detection unit 102 are supplied to the processing unit determination unit 901 and the correction unit 905, and the region information supplied from the region identification unit 103 is supplied to the processing unit determination unit 9
01 is supplied. The foreground component image supplied from the foreground / background separation unit 105 is supplied to the calculation unit 904.

【0529】処理単位決定部901は、動きベクトルと
その位置情報、および領域情報を基に、動きベクトルと
共に、生成した処理単位をモデル化部902に供給す
る。
The processing unit determination unit 901 supplies the generated processing unit to the modeling unit 902 together with the motion vector based on the motion vector, its position information, and the area information.

【0530】モデル化部902は、動きベクトルおよび
入力された処理単位を基に、モデル化を実行する。
[0531] The modeling unit 902 performs modeling based on the motion vector and the input processing unit.

【0531】方程式生成部903は、モデル化部902
から供給されたモデルを基に、方程式を生成する。
[0531] The equation generating unit 903 includes a modeling unit 902.
Generate an equation based on the model supplied from.

【0532】図75乃至図77に示す前景成分画像のモ
デルを参照して、前景の成分の数が8であり、処理単位
に対応する画素の数が12であり、動き量vが5である
ときの、方程式生成部903が生成する方程式の例につ
いて説明する。
Referring to the foreground component image models shown in FIGS. 75 to 77, the number of foreground components is 8, the number of pixels corresponding to the processing unit is 12, and the motion amount v is 5. An example of an equation generated by the equation generation unit 903 at this time will be described.

【0533】前景成分画像に含まれるシャッタ時間/vに
対応する前景成分がF01/v乃至F08/vであるとき、F01/v
乃至F08/vと画素値C01乃至C12との関係は、上述したよ
うに、式(31)乃至式(42)で表される。
When the foreground component corresponding to the shutter time / v included in the foreground component image is F01 / v to F08 / v, F01 / v
The relationship between F08 / v and the pixel values C01 to C12 is expressed by Expressions (31) to (42) as described above.

【0534】画素値C12およびC11に注目すると、画素値
C12は、式(64)に示すように、前景の成分F08/vのみ
を含み、画素値C11は、前景の成分F08/vおよび前景の成
分F07/vの積和から成る。従って、前景の成分F07/vは、
式(65)で求めることができる。
Looking at the pixel values C12 and C11, the pixel value
As shown in Expression (64), C12 includes only the foreground component F08 / v, and the pixel value C11 is composed of the product sum of the foreground component F08 / v and the foreground component F07 / v. Therefore, the foreground component F07 / v is
It can be obtained by equation (65).

【0535】 F08/v=C12 (64) F07/v=C11-C12 (65)F08 / v = C12 (64) F07 / v = C11-C12 (65)

【0536】同様に、画素値C10乃至C01に含まれる前景
の成分を考慮すると、前景の成分F06/v乃至F01/vは、式
(66)乃至式(71)により求めることができる。
Similarly, taking into account the foreground components included in the pixel values C10 to C01, the foreground components F06 / v to F01 / v can be obtained by the equations (66) to (71).

【0537】 F06/v=C10-C11 (66) F05/v=C09-C10 (67) F04/v=C08-C09 (68) F03/v=C07-C08+C12 (69) F02/v=C06-C07+C11-C12 (70) F01/v=C05-C06+C10-C11 (71)F06 / v = C10-C11 (66) F05 / v = C09-C10 (67) F04 / v = C08-C09 (68) F03 / v = C07-C08 + C12 (69) F02 / v = C06 -C07 + C11-C12 (70) F01 / v = C05-C06 + C10-C11 (71)

【0538】方程式生成部903は、式(64)乃至式
(71)に例を示す、画素値の差により前景の成分を算
出するための方程式を生成する。方程式生成部903
は、生成した方程式を演算部904に供給する。
The equation generator 903 generates an equation for calculating a foreground component based on a difference between pixel values, as shown in the equations (64) to (71). Equation generator 903
Supplies the generated equation to the calculation unit 904.

【0539】演算部904は、方程式生成部903から
供給された方程式に前景成分画像の画素値を設定して、
画素値を設定した方程式を基に、前景の成分を算出す
る。演算部904は、例えば、式(64)乃至式(7
1)が方程式生成部903から供給されたとき、式(6
4)乃至式(71)に画素値C05乃至C12を設定する。
The computing unit 904 sets the pixel value of the foreground component image in the equation supplied from the equation generating unit 903,
The foreground component is calculated based on the equation in which the pixel value is set. The calculation unit 904 calculates, for example, Expressions (64) to (7)
When 1) is supplied from the equation generation unit 903, the equation (6)
4) Set the pixel values C05 through C12 in the equations (71).

【0540】演算部904は、画素値が設定された式に
基づき、前景の成分を算出する。例えば、演算部904
は、画素値C05乃至C12が設定された式(64)乃至式
(71)に基づく演算により、図76に示すように、前
景の成分F01/v乃至F08/vを算出する。演算部904は、
前景の成分F01/v乃至F08/vを補正部905に供給する。
The calculating section 904 calculates the foreground component based on the equation in which the pixel values are set. For example, the arithmetic unit 904
Calculates the foreground components F01 / v to F08 / v as shown in FIG. 76 by the calculation based on the equations (64) to (71) in which the pixel values C05 to C12 are set. The calculation unit 904 includes:
The foreground components F01 / v to F08 / v are supplied to the correction unit 905.

【0541】補正部905は、演算部904から供給さ
れた前景の成分に、処理単位決定部901から供給され
た動きベクトルに含まれる動き量vを乗じて、動きボケ
を除去した前景の画素値を算出する。例えば、補正部9
05は、演算部904から供給された前景の成分F01/v
乃至F08/vが供給されたとき、前景の成分F01/v乃至F08/
vのそれぞれに、5である動き量vを乗じることにより、
図77に示すように、動きボケを除去した前景の画素値
F01乃至F08を算出する。
The correction unit 905 multiplies the foreground component supplied from the calculation unit 904 by the motion amount v included in the motion vector supplied from the processing unit determination unit 901 to remove the pixel value of the foreground from which motion blur has been removed. Is calculated. For example, the correction unit 9
05 is a foreground component F01 / v supplied from the calculation unit 904.
To F08 / v are supplied, the foreground components F01 / v to F08 /
By multiplying each of the v by the motion amount v which is 5,
As shown in FIG. 77, the foreground pixel values from which motion blur has been removed
F01 to F08 are calculated.

【0542】補正部905は、以上のように算出され
た、動きボケを除去した前景の画素値から成る前景成分
画像を動きボケ付加部906および選択部907に供給
する。
[0542] The correction unit 905 supplies the foreground component image composed of the pixel values of the foreground from which the motion blur has been removed as calculated above to the motion blur addition unit 906 and the selection unit 907.

【0543】動きボケ付加部906は、動き量vとは異
なる値の動きボケ調整量v'、例えば、動き量vの半分の
値の動きボケ調整量v'、動き量vと無関係の値の動きボ
ケ調整量v'で、動きボケの量を調整することができる。
例えば、図70に示すように、動きボケ付加部906
は、動きボケが除去された前景の画素値Fiを動きボケ調
整量v'で除すことにより、前景成分Fi/v'を算出して、
前景成分Fi/v'の和を算出して、動きボケの量が調整さ
れた画素値を生成する。例えば、動きボケ調整量v'が3
のとき、画素値C02は、(F01)/v'とされ、画素値C03
は、(F01+F02)/v'とされ、画素値C04は、(F01+F02+F
03)/v'とされ、画素値C05は、(F02+F03+F04)/v'とさ
れる。
The motion-blur adding unit 906 generates a motion-blur adjustment amount v ′ having a value different from the motion amount v, for example, a motion-blur adjustment amount v ′ having a half value of the motion amount v and a value unrelated to the motion amount v. The amount of motion blur can be adjusted with the motion blur adjustment amount v ′.
For example, as shown in FIG.
Calculates the foreground component Fi / v 'by dividing the pixel value Fi of the foreground from which the motion blur has been removed by the motion blur adjustment amount v',
The sum of the foreground components Fi / v 'is calculated to generate a pixel value with the amount of motion blur adjusted. For example, the motion blur adjustment amount v ′ is 3
, The pixel value C02 is (F01) / v ′, and the pixel value C03
Is (F01 + F02) / v ', and the pixel value C04 is (F01 + F02 + F
03) / v ', and the pixel value C05 is (F02 + F03 + F04) / v'.

【0544】動きボケ付加部906は、動きボケの量を
調整した前景成分画像を選択部907に供給する。
[0544] The motion blur adding unit 906 supplies the foreground component image in which the amount of motion blur has been adjusted to the selecting unit 907.

【0545】選択部907は、例えば使用者の選択に対
応した選択信号を基に、補正部905から供給された動
きボケが除去された前景成分画像、および動きボケ付加
部906から供給された動きボケの量が調整された前景
成分画像のいずれか一方を選択して、選択した前景成分
画像を出力する。
[0545] The selection unit 907 includes, for example, a foreground component image from which the motion blur has been removed supplied from the correction unit 905 and the motion supplied from the motion blur addition unit 906 based on a selection signal corresponding to the user's selection. One of the foreground component images whose blur amount has been adjusted is selected, and the selected foreground component image is output.

【0546】このように、動きボケ調整部106は、選
択信号および動きボケ調整量v'を基に、動きボケの量を
調整することができる。
[0546] As described above, the motion blur adjusting unit 106 can adjust the amount of motion blur based on the selection signal and the motion blur adjustment amount v '.

【0547】次に、図74に構成を示す動きボケ調整部
106による前景の動きボケの量の調整の処理を図78
のフローチャートを参照して説明する。
Next, FIG. 78 shows a process of adjusting the amount of foreground motion blur by the motion blur adjustment unit 106 shown in FIG.
This will be described with reference to the flowchart of FIG.

【0548】ステップS901において、動きボケ調整
部106の処理単位決定部901は、動きベクトルおよ
び領域情報を基に、処理単位を生成し、生成した処理単
位をモデル化部902および補正部905に供給する。
In step S901, the processing unit determination unit 901 of the motion blur adjustment unit 106 generates a processing unit based on the motion vector and the area information, and supplies the generated processing unit to the modeling unit 902 and the correction unit 905. I do.

【0549】ステップS902において、動きボケ調整
部106のモデル化部902は、動き量vおよび処理単
位に対応して、モデルの選択や生成を行う。ステップS
903において、方程式生成部903は、選択または生
成されたモデルを基に、前景成分画像の画素値の差によ
り前景の成分を算出するための方程式を生成する。
[0549] In step S902, the modeling unit 902 of the motion-blur adjusting unit 106 selects or generates a model corresponding to the amount of motion v and the processing unit. Step S
In 903, the equation generation unit 903 generates an equation for calculating a foreground component from a difference between pixel values of a foreground component image based on the selected or generated model.

【0550】ステップS904において、演算部904
は、作成された方程式に前景成分画像の画素値を設定
し、画素値が設定された方程式を基に、画素値の差分か
ら前景の成分を抽出する。ステップS905において、
演算部904は、処理単位に対応する全ての前景の成分
を抽出したか否かを判定し、処理単位に対応する全ての
前景の成分を抽出していないと判定された場合、ステッ
プS904に戻り、前景の成分を抽出の処理を繰り返
す。
[0550] In step S904, the arithmetic unit 904
Sets the pixel value of the foreground component image in the created equation, and extracts the foreground component from the difference between the pixel values based on the equation in which the pixel value is set. In step S905,
The calculation unit 904 determines whether all the foreground components corresponding to the processing unit have been extracted. If it is determined that all the foreground components corresponding to the processing unit have not been extracted, the process returns to step S904. The process of extracting the foreground components is repeated.

【0551】ステップS905において、処理単位に対
応する全ての前景の成分を抽出したと判定された場合、
ステップS906に進み、補正部905は、動き量vを
基に、演算部904から供給された前景の成分F01/v乃
至F08/vのそれぞれを補正して、動きボケを除去した前
景の画素値F01乃至F08を算出する。
If it is determined in step S905 that all foreground components corresponding to the processing unit have been extracted,
In step S906, the correction unit 905 corrects each of the foreground components F01 / v to F08 / v supplied from the calculation unit 904 based on the motion amount v, and removes the motion blur from the foreground pixel values. F01 to F08 are calculated.

【0552】ステップS907において、動きボケ付加
部906は、動きボケの量を調整した前景の画素値を算
出して、選択部907は、動きボケが除去された画像ま
たは動きボケの量が調整された画像のいずれかを選択し
て、選択した画像を出力して、処理は終了する。
In step S907, the motion blur adding unit 906 calculates the pixel value of the foreground with the amount of motion blur adjusted, and the selecting unit 907 adjusts the image from which the motion blur has been removed or the amount of motion blur. One of the selected images is selected, the selected image is output, and the process ends.

【0553】このように、図74に構成を示す動きボケ
調整部106は、より簡単な演算で、より迅速に、動き
ボケを含む前景画像から動きボケを調整することができ
る。
As described above, the motion-blur adjusting unit 106 having the configuration shown in FIG. 74 can more quickly adjust the motion blur from the foreground image including the motion blur with a simpler operation.

【0554】ウィナー・フィルタなど従来の動きボケを
部分的に除去する手法が、理想状態では効果が認められ
るが、量子化され、ノイズを含んだ実際の画像に対して
十分な効果が得られないのに対し、図74に構成を示す
動きボケ調整部106においても、量子化され、ノイズ
を含んだ実際の画像に対しても十分な効果が認められ、
精度の良い動きボケの除去が可能となる。
The conventional method of partially removing motion blur such as a Wiener filter has an effect in an ideal state, but does not provide a sufficient effect on an actual image that is quantized and contains noise. On the other hand, the motion-blur adjusting unit 106 shown in FIG. 74 also has a sufficient effect on an actual image that is quantized and contains noise.
Accurate removal of motion blur can be achieved.

【0555】図79は、信号処理部の機能の他の構成を
示すブロック図である。
FIG. 79 is a block diagram showing another configuration of the function of the signal processing unit.

【0556】図2に示す部分と同様の部分には同一の番
号を付してあり、その説明は適宜省略する。
[0556] The same portions as those shown in Fig. 2 are denoted by the same reference numerals, and description thereof will be omitted as appropriate.

【0557】領域特定部103は、領域情報を混合比算
出部104および合成部1001に供給する。
The area specifying section 103 supplies the area information to the mixture ratio calculating section 104 and the synthesizing section 1001.

【0558】混合比算出部104は、混合比αを前景背
景分離部105および合成部1001に供給する。
The mixture ratio calculation unit 104 supplies the mixture ratio α to the foreground / background separation unit 105 and the synthesis unit 1001.

【0559】前景背景分離部105は、前景成分画像を
合成部1001に供給する。
The foreground / background separating unit 105 supplies the foreground component image to the synthesizing unit 1001.

【0560】合成部1001は、混合比算出部104か
ら供給された混合比α、領域特定部103から供給され
た領域情報を基に、任意の背景画像と、前景背景分離部
105から供給された前景成分画像とを合成して、任意
の背景画像と前景成分画像とが合成された合成画像を出
力する。
The synthesizing unit 1001 supplies an arbitrary background image and a foreground / background separating unit 105 based on the mixing ratio α supplied from the mixing ratio calculating unit 104 and the region information supplied from the region specifying unit 103. A foreground component image is synthesized, and a synthesized image in which an arbitrary background image and a foreground component image are synthesized is output.

【0561】図80は、合成部1001の構成を示す図
である。背景成分生成部1021は、混合比αおよび任
意の背景画像を基に、背景成分画像を生成して、混合領
域画像合成部1022に供給する。
FIG. 80 is a diagram showing the structure of the synthesizing unit 1001. The background component generation unit 1021 generates a background component image based on the mixture ratio α and an arbitrary background image, and supplies the background component image to the mixed region image synthesis unit 1022.

【0562】混合領域画像合成部1022は、背景成分
生成部1021から供給された背景成分画像と前景成分
画像とを合成することにより、混合領域合成画像を生成
して、生成した混合領域合成画像を画像合成部1023
に供給する。
The mixed area image synthesizing section 1022 generates a mixed area synthesized image by synthesizing the background component image supplied from the background component generating section 1021 and the foreground component image, and generates the mixed area synthesized image. Image synthesis unit 1023
To supply.

【0563】画像合成部1023は、領域情報を基に、
前景成分画像、混合領域画像合成部1022から供給さ
れた混合領域合成画像、および任意の背景画像を合成し
て、合成画像を生成して出力する。
[0563] The image synthesizing unit 1023 calculates the
The foreground component image, the mixed area synthesized image supplied from the mixed area image synthesizing unit 1022, and an arbitrary background image are synthesized to generate and output a synthesized image.

【0564】このように、合成部1001は、前景成分
画像を、任意の背景画像に合成することができる。
[0564] As described above, the synthesizing unit 1001 can synthesize a foreground component image with an arbitrary background image.

【0565】特徴量である混合比αを基に前景成分画像
を任意の背景画像と合成して得られた画像は、単に画素
を合成した画像に比較し、より自然なものと成る。
An image obtained by synthesizing a foreground component image with an arbitrary background image based on the mixture ratio α, which is a feature quantity, is more natural than an image obtained by simply synthesizing pixels.

【0566】図81は、動きボケの量を調整する信号処
理部の機能の更に他の構成を示すブロック図である。図
2に示す信号処理部が領域特定と混合比αの算出を順番
に行うのに対して、図81に示す信号処理部は、領域特
定と混合比αの算出を並行して行う。
FIG. 81 is a block diagram showing still another configuration of the function of the signal processing unit for adjusting the amount of motion blur. While the signal processing unit illustrated in FIG. 2 sequentially performs the region specification and the calculation of the mixture ratio α, the signal processing unit illustrated in FIG. 81 performs the region specification and the calculation of the mixture ratio α in parallel.

【0567】図2のブロック図に示す機能と同様の部分
には同一の番号を付してあり、その説明は省略する。
[0567] The same portions as those in the function shown in the block diagram of FIG. 2 are denoted by the same reference numerals, and description thereof will be omitted.

【0568】入力画像は、混合比算出部1101、前景
背景分離部1102、領域特定部103、およびオブジ
ェクト抽出部101に供給される。
[0568] The input image is supplied to the mixture ratio calculating section 1101, foreground / background separating section 1102, area specifying section 103, and object extracting section 101.

【0569】混合比算出部1101は、入力画像を基
に、画素がカバードバックグラウンド領域に属すると仮
定した場合における推定混合比、および画素がアンカバ
ードバックグラウンド領域に属すると仮定した場合にお
ける推定混合比を、入力画像に含まれる画素のそれぞれ
に対して算出し、算出した画素がカバードバックグラウ
ンド領域に属すると仮定した場合における推定混合比、
および画素がアンカバードバックグラウンド領域に属す
ると仮定した場合における推定混合比を前景背景分離部
1102に供給する。
[0566] Based on the input image, the mixture ratio calculation unit 1101 calculates the estimated mixture ratio when the pixel belongs to the covered background area and the estimated mixture ratio when the pixel belongs to the uncovered background area. The ratio is calculated for each of the pixels included in the input image, and the estimated mixture ratio when the calculated pixel is assumed to belong to the covered background area,
The estimated mixture ratio when the pixel belongs to the uncovered background area is supplied to the foreground / background separation unit 1102.

【0570】図82は、混合比算出部1101の構成の
一例を示すブロック図である。
FIG. 82 is a block diagram showing an example of the configuration of the mixture ratio calculation section 1101.

【0571】図82に示す推定混合比処理部401は、
図47に示す推定混合比処理部401と同じである。図
82に示す推定混合比処理部402は、図47に示す推
定混合比処理部402と同じである。
The estimated mixture ratio processing unit 401 shown in FIG.
This is the same as the estimated mixture ratio processing unit 401 shown in FIG. The estimated mixture ratio processing unit 402 shown in FIG. 82 is the same as the estimated mixture ratio processing unit 402 shown in FIG.

【0572】推定混合比処理部401は、入力画像を基
に、カバードバックグラウンド領域のモデルに対応する
演算により、画素毎に推定混合比を算出して、算出した
推定混合比を出力する。
The estimated mixture ratio processing unit 401 calculates an estimated mixture ratio for each pixel by an operation corresponding to the model of the covered background area based on the input image, and outputs the calculated estimated mixture ratio.

【0573】推定混合比処理部402は、入力画像を基
に、アンカバードバックグラウンド領域のモデルに対応
する演算により、画素毎に推定混合比を算出して、算出
した推定混合比を出力する。
The estimated mixture ratio processing unit 402 calculates an estimated mixture ratio for each pixel by an operation corresponding to the model of the uncovered background area based on the input image, and outputs the calculated estimated mixture ratio.

【0574】前景背景分離部1102は、混合比算出部
1101から供給された、画素がカバードバックグラウ
ンド領域に属すると仮定した場合における推定混合比、
および画素がアンカバードバックグラウンド領域に属す
ると仮定した場合における推定混合比、並びに領域特定
部103から供給された領域情報を基に、入力画像から
前景成分画像を生成し、生成した前景成分画像を動きボ
ケ調整部106および選択部107に供給する。
[0574] The foreground / background separation unit 1102 calculates the estimated mixture ratio supplied from the mixture ratio calculation unit 1101 when the pixel belongs to the covered background area.
Based on the estimated mixture ratio when it is assumed that the pixel belongs to the uncovered background area, and the area information supplied from the area specifying unit 103, a foreground component image is generated from the input image, and the generated foreground component image is generated. The motion blur adjustment unit 106 and the selection unit 107 are supplied.

【0575】図83は、前景背景分離部1102の構成
の一例を示すブロック図である。
FIG. 83 is a block diagram showing an example of the structure of the foreground / background separation unit 1102.

【0576】図58に示す前景背景分離部105と同様
の部分には同一の番号を付してあり、その説明は省略す
る。
The same parts as those in the foreground / background separation unit 105 shown in FIG. 58 are denoted by the same reference numerals, and description thereof will be omitted.

【0577】選択部1121は、領域特定部103から
供給された領域情報を基に、混合比算出部1101から
供給された、画素がカバードバックグラウンド領域に属
すると仮定した場合における推定混合比、および画素が
アンカバードバックグラウンド領域に属すると仮定した
場合における推定混合比のいずれか一方を選択して、選
択した推定混合比を混合比αとして分離部601に供給
する。
[0577] Based on the region information supplied from the region identification unit 103, the selection unit 1121 calculates the estimated mixture ratio supplied from the mixture ratio calculation unit 1101 when the pixel belongs to the covered background region, and One of the estimated mixture ratios when the pixel is assumed to belong to the uncovered background area is selected, and the selected estimated mixture ratio is supplied to the separation unit 601 as the mixture ratio α.

【0578】分離部601は、選択部1121から供給
された混合比αおよび領域情報を基に、混合領域に属す
る画素の画素値から前景の成分および背景の成分を抽出
し、抽出した前景の成分を合成部603に供給すると共
に、背景の成分を合成部605に供給する。
The separation unit 601 extracts a foreground component and a background component from the pixel values of the pixels belonging to the mixed area based on the mixture ratio α and the area information supplied from the selection unit 1121, and extracts the extracted foreground component. Is supplied to the synthesizing unit 603, and the background component is supplied to the synthesizing unit 605.

【0579】分離部601は、図63に示す構成と同じ
構成とすることができる。
The separating section 601 can have the same configuration as that shown in FIG.

【0580】合成部603は、前景成分画像を合成し
て、出力する。合成部605は、背景成分画像を合成し
て出力する。
The combining section 603 combines and outputs the foreground component images. The combining unit 605 combines and outputs a background component image.

【0581】図81に示す動きボケ調整部106は、図
2に示す場合と同様の構成とすることができ、領域情報
および動きベクトルを基に、前景背景分離部1102か
ら供給された前景成分画像に含まれる動きボケの量を調
整して、動きボケの量が調整された前景成分画像を出力
する。
The motion-blur adjusting unit 106 shown in FIG. 81 can have the same configuration as that shown in FIG. 2. Based on the area information and the motion vector, the foreground component image supplied from the foreground / background separating unit 1102 is obtained. Is adjusted, and a foreground component image in which the amount of motion blur is adjusted is output.

【0582】図81に示す選択部107は、例えば使用
者の選択に対応した選択信号を基に、前景背景分離部1
102から供給された前景成分画像、および動きボケ調
整部106から供給された動きボケの量が調整された前
景成分画像のいずれか一方を選択して、選択した前景成
分画像を出力する。
[0583] The selection unit 107 shown in Fig. 81 is for example a foreground / background separation unit 1 based on a selection signal corresponding to the user's selection.
One of the foreground component image supplied from 102 and the foreground component image supplied from the motion blur adjusting unit 106 and having the adjusted amount of motion blur is selected, and the selected foreground component image is output.

【0583】このように、図81に構成を示す信号処理
部は、入力画像に含まれる前景のオブジェクトに対応す
る画像に対して、その画像に含まれる動きボケの量を調
整して出力することができる。図81に構成を示す信号
処理部は、第1の実施例と同様に、埋もれた情報である
混合比αを算出して、算出した混合比αを出力すること
ができる。
[0583] As described above, the signal processing unit shown in Fig. 81 adjusts the amount of motion blur included in an image corresponding to a foreground object included in the input image and outputs the adjusted image. Can be. The signal processing unit shown in FIG. 81 can calculate the mixture ratio α as the buried information and output the calculated mixture ratio α, as in the first embodiment.

【0584】図84は、前景成分画像を任意の背景画像
と合成する信号処理部の機能の他の構成を示すブロック
図である。図79に示す信号処理部が領域特定と混合比
αの算出をシリアルに行うのに対して、図84に示す信
号処理部は、領域特定と混合比αの算出をパラレルに行
う。
FIG. 84 is a block diagram showing another configuration of the function of the signal processing unit for combining the foreground component image with an arbitrary background image. The signal processing unit shown in FIG. 79 serially specifies the region and calculates the mixture ratio α, whereas the signal processing unit illustrated in FIG. 84 performs the region specification and the calculation of the mixture ratio α in parallel.

【0585】図81のブロック図に示す機能と同様の部
分には同一の番号を付してあり、その説明は省略する。
[0585] The same portions as those shown in the block diagram of FIG. 81 are denoted by the same reference numerals, and description thereof will be omitted.

【0586】図84に示す混合比算出部1101は、入
力画像を基に、画素がカバードバックグラウンド領域に
属すると仮定した場合における推定混合比、および画素
がアンカバードバックグラウンド領域に属すると仮定し
た場合における推定混合比を、入力画像に含まれる画素
のそれぞれに対して算出し、算出した画素がカバードバ
ックグラウンド領域に属すると仮定した場合における推
定混合比、および画素がアンカバードバックグラウンド
領域に属すると仮定した場合における推定混合比を前景
背景分離部1102および合成部1201に供給する。
[0586] The mixture ratio calculation unit 1101 shown in FIG. 84 estimates the estimated mixture ratio when the pixel belongs to the covered background area based on the input image, and assumes that the pixel belongs to the uncovered background area. The estimated mixture ratio in the case is calculated for each of the pixels included in the input image, and the estimated mixture ratio in the case where the calculated pixel belongs to the covered background region, and the pixel belongs to the uncovered background region Is supplied to the foreground / background separation unit 1102 and the synthesis unit 1201.

【0587】図84に示す前景背景分離部1102は、
混合比算出部1101から供給された、画素がカバード
バックグラウンド領域に属すると仮定した場合における
推定混合比、および画素がアンカバードバックグラウン
ド領域に属すると仮定した場合における推定混合比、並
びに領域特定部103から供給された領域情報を基に、
入力画像から前景成分画像を生成し、生成した前景成分
画像を合成部1201に供給する。
The foreground / background separation unit 1102 shown in FIG.
The estimated mixture ratio when the pixel is assumed to belong to the covered background region, the estimated mixture ratio when the pixel is assumed to belong to the uncovered background region, and the region identification unit, supplied from the mixture ratio calculation unit 1101. Based on the area information supplied from 103,
A foreground component image is generated from the input image, and the generated foreground component image is supplied to the combining unit 1201.

【0588】合成部1201は、混合比算出部1101
から供給された、画素がカバードバックグラウンド領域
に属すると仮定した場合における推定混合比、および画
素がアンカバードバックグラウンド領域に属すると仮定
した場合における推定混合比、領域特定部103から供
給された領域情報を基に、任意の背景画像と、前景背景
分離部1102から供給された前景成分画像とを合成し
て、任意の背景画像と前景成分画像とが合成された合成
画像を出力する。
[0588] The synthesizing section 1201 includes a mixing ratio calculating section 1101.
, The estimated mixture ratio when the pixel is assumed to belong to the covered background region, and the estimated mixture ratio when the pixel is assumed to belong to the uncovered background region, the region supplied from the region identification unit 103. Based on the information, an arbitrary background image is synthesized with the foreground component image supplied from the foreground / background separation unit 1102, and a synthesized image in which the arbitrary background image and the foreground component image are synthesized is output.

【0589】図85は、合成部1201の構成を示す図
である。図80のブロック図に示す機能と同様の部分に
は同一の番号を付してあり、その説明は省略する。
FIG. 85 is a diagram showing the structure of the synthesizing section 1201. Parts that are the same as the functions illustrated in the block diagram of FIG. 80 are given the same numbers, and descriptions thereof are omitted.

【0590】選択部1221は、領域特定部103から
供給された領域情報を基に、混合比算出部1101から
供給された、画素がカバードバックグラウンド領域に属
すると仮定した場合における推定混合比、および画素が
アンカバードバックグラウンド領域に属すると仮定した
場合における推定混合比のいずれか一方を選択して、選
択した推定混合比を混合比αとして背景成分生成部10
21に供給する。
[0590] Based on the area information supplied from the area specifying section 103, the selection section 1221 calculates the estimated mixture ratio supplied from the mixture ratio calculation section 1101 when the pixel belongs to the covered background area, and One of the estimated mixture ratios when the pixel is assumed to belong to the uncovered background area is selected, and the selected estimated mixture ratio is used as the mixture ratio α as the background component generation unit 10
21.

【0591】図85に示す背景成分生成部1021は、
選択部1221から供給された混合比αおよび任意の背
景画像を基に、背景成分画像を生成して、混合領域画像
合成部1022に供給する。
[0590] The background component generation unit 1021 shown in FIG.
A background component image is generated based on the mixture ratio α and an arbitrary background image supplied from the selection unit 1221, and is supplied to the mixed region image synthesis unit 1022.

【0592】図85に示す混合領域画像合成部1022
は、背景成分生成部1021から供給された背景成分画
像と前景成分画像とを合成することにより、混合領域合
成画像を生成して、生成した混合領域合成画像を画像合
成部1023に供給する。
[0593] Mixed area image synthesizing section 1022 shown in FIG. 85
Generates a mixed area composite image by synthesizing the background component image supplied from the background component generation unit 1021 and the foreground component image, and supplies the generated mixed area composite image to the image synthesis unit 1023.

【0593】画像合成部1023は、領域情報を基に、
前景成分画像、混合領域画像合成部1022から供給さ
れた混合領域合成画像、および任意の背景画像を合成し
て、合成画像を生成して出力する。
[0593] The image synthesizing unit 1023 calculates the
The foreground component image, the mixed area synthesized image supplied from the mixed area image synthesizing unit 1022, and an arbitrary background image are synthesized to generate and output a synthesized image.

【0594】このように、合成部1201は、前景成分
画像を、任意の背景画像に合成することができる。
As described above, the synthesizing unit 1201 can synthesize a foreground component image with an arbitrary background image.

【0595】なお、混合比αは、画素値に含まれる背景
の成分の割合として説明したが、画素値に含まれる前景
の成分の割合としてもよい。
Although the mixing ratio α has been described as the ratio of the background component included in the pixel value, it may be the ratio of the foreground component included in the pixel value.

【0596】また、前景となるオブジェクトの動きの方
向は左から右として説明したが、その方向に限定されな
いことは勿論である。
Although the direction of movement of the foreground object has been described from left to right, it is needless to say that the direction is not limited to that direction.

【0597】以上においては、3次元空間と時間軸情報
を有する現実空間の画像をビデオカメラを用いて2次元
空間と時間軸情報を有する時空間への射影を行った場合
を例としたが、本発明は、この例に限らず、より多くの
第1の次元の第1の情報を、より少ない第2の次元の第
2の情報に射影した場合に、その射影によって発生する
歪みを補正したり、有意情報を抽出したり、またはより
自然に画像を合成する場合に適応することが可能であ
る。
In the above, an example has been described in which an image of a real space having three-dimensional space and time axis information is projected onto a two-dimensional space and time and space having time axis information using a video camera. The present invention is not limited to this example, and corrects the distortion caused by the projection when more first-dimensional first information is projected onto less second-dimensional second information. It can be applied to extracting significant information, or combining images more naturally.

【0598】なお、センサは、CCDに限らす、固体撮像
素子である、例えば、BBD(Bucket Brigade Device)、
CID(Charge Injection Device)、またはCPD(Charge
Priming Device)などのセンサでもよく、また、検出素
子がマトリックス状に配置されているセンサに限らず、
検出素子が1列に並んでいるセンサでもよい。
The sensor is not limited to a CCD but is a solid-state image sensor, for example, a BBD (Bucket Brigade Device),
CID (Charge Injection Device) or CPD (Charge
Priming Device) may be used, and the sensor is not limited to a sensor in which detection elements are arranged in a matrix.
A sensor in which the detection elements are arranged in a line may be used.

【0599】本発明の信号処理を行うプログラムを記録
した記録媒体は、図1に示すように、コンピュータとは
別に、ユーザにプログラムを提供するために配布され
る、プログラムが記録されている磁気ディスク51(フ
ロッピ(登録商標)ディスクを含む)、光ディスク52
(CD-ROM(Compact Disc-Read Only Memory),DVD(Digita
l Versatile Disc)を含む)、光磁気ディスク53(M
D(Mini-Disc)(商標)を含む)、もしくは半導体メ
モリ54などよりなるパッケージメディアにより構成さ
れるだけでなく、コンピュータに予め組み込まれた状態
でユーザに提供される、プログラムが記録されているRO
M22や、記憶部28に含まれるハードディスクなどで
構成される。
As shown in FIG. 1, the recording medium on which the program for performing the signal processing of the present invention is recorded is a magnetic disk on which the program is recorded, which is distributed in order to provide the program to the user separately from the computer. 51 (including floppy (registered trademark) disk), optical disk 52
(CD-ROM (Compact Disc-Read Only Memory), DVD (Digita
l Versatile Disc), magneto-optical disc 53 (M
D (including Mini-Disc) (trademark)) or a package medium including a semiconductor memory 54 and the like, and a program provided to a user in a state where the program is incorporated in a computer in advance. RO
M22, a hard disk included in the storage unit 28, and the like.

【0600】なお、本明細書において、記録媒体に記録
されるプログラムを記述するステップは、記載された順
序に沿って時系列的に行われる処理はもちろん、必ずし
も時系列的に処理されなくとも、並列的あるいは個別に
実行される処理をも含むものである。
[0600] In this specification, the step of describing a program recorded on a recording medium may be performed not only in chronological order according to the described order, but also in chronological order. This also includes processing executed in parallel or individually.

【0601】[0601]

【発明の効果】本発明の画像処理装置および方法、並び
にプログラムによれば、現実世界では複数であるオブジ
ェクトの画素データにおける混合状態を示す混合比の値
の範囲に対応させて、複数の重みを生成し、生成した個
々の重みを示す重み付け情報が生成され、画像データの
注目フレームの各画素と、画像データの注目フレームに
隣接する隣接フレームの各画素との間で、重み付け情報
で示される重みに基づく重み付け差分が検出され、注目
フレームに対応する重み付け差分画像データとして出力
され、注目フレームの画素データと隣接フレームの画素
データとの間の相対的な動きを示す動きベクトルに応じ
て、注目フレームの重み付け差分画像データと隣接フレ
ームの重み付け差分画像データとの相対的な位置を合わ
せて、注目フレームの重み付け差分画像データの各注目
画素を中心とした少なくとも1画素からなる注目ブロッ
クと、隣接フレームの重み付け差分画像データの少なく
とも1画素からなる対応ブロックとの相関が演算され、
重み付け差分画像間相関データとして出力され、重み付
け差分画像間相関データの少なくとも1画素からなる所
定の単位毎に、重み付け差分画像データ間の相関が最大
となる重みが検出され、注目フレームの単位に対応する
混合比として出力されるようにしたので、複数のオブジ
ェクトの混ざり合いの状態を示す混合比を検出すること
ができるようになる。
According to the image processing apparatus, method, and program of the present invention, a plurality of weights are assigned in correspondence with the range of the mixture ratio indicating the mixture state in the pixel data of a plurality of objects in the real world. Weighting information indicating the generated individual weight is generated, and the weight indicated by the weighting information is calculated between each pixel of the frame of interest of the image data and each pixel of an adjacent frame adjacent to the frame of interest of the image data. Is detected, and is output as weighted difference image data corresponding to the frame of interest. The weighted difference is determined based on the motion vector indicating the relative motion between the pixel data of the frame of interest and the pixel data of the adjacent frame. The relative positions of the weighted difference image data of A target block consisting of at least one pixel centered on each pixel of interest of the weighted difference image data, correlation with a corresponding block of at least one pixel of the weighted difference image data between adjacent frames is calculated,
The weighting is output as the weighted difference image correlation data, and for each predetermined unit including at least one pixel of the weighted difference image correlation data, the weight that maximizes the correlation between the weighted difference image data is detected and corresponds to the unit of the frame of interest. Since the mixture ratio is output as a mixture ratio, it is possible to detect a mixture ratio indicating a state of mixture of a plurality of objects.

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

【図1】信号処理部の構成例を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration example of a signal processing unit.

【図2】信号処理部を示すブロック図である。FIG. 2 is a block diagram illustrating a signal processing unit.

【図3】センサによる撮像を説明する図である。FIG. 3 is a diagram illustrating imaging by a sensor.

【図4】画素の配置を説明する図である。FIG. 4 is a diagram illustrating an arrangement of pixels.

【図5】検出素子の動作を説明する図である。FIG. 5 is a diagram illustrating the operation of a detection element.

【図6】動いている前景に対応するオブジェクトと、静
止している背景に対応するオブジェクトとを撮像して得
られる画像を説明する図である。
FIG. 6 is a diagram illustrating an image obtained by capturing an object corresponding to a moving foreground and an object corresponding to a stationary background.

【図7】背景領域、前景領域、混合領域、カバードバッ
クグラウンド領域、およびアンカバードバックグラウン
ド領域を説明する図である。
FIG. 7 is a diagram illustrating a background area, a foreground area, a mixed area, a covered background area, and an uncovered background area.

【図8】静止している前景に対応するオブジェクトおよ
び静止している背景に対応するオブジェクトを撮像した
画像における、隣接して1列に並んでいる画素の画素値
を時間方向に展開したモデル図である。
FIG. 8 is a model diagram in which pixel values of adjacent pixels arranged in one line in an image obtained by capturing an object corresponding to a stationary foreground and an object corresponding to a stationary background are developed in the time direction. It is.

【図9】画素値を時間方向に展開し、シャッタ時間に対
応する期間を分割したモデル図である。
FIG. 9 is a model diagram in which pixel values are developed in the time direction and a period corresponding to a shutter time is divided.

【図10】画素値を時間方向に展開し、シャッタ時間に
対応する期間を分割したモデル図である。
FIG. 10 is a model diagram in which pixel values are developed in the time direction and a period corresponding to a shutter time is divided.

【図11】画素値を時間方向に展開し、シャッタ時間に
対応する期間を分割したモデル図である。
FIG. 11 is a model diagram in which pixel values are developed in the time direction and a period corresponding to a shutter time is divided.

【図12】前景領域、背景領域、および混合領域の画素
を抽出した例を示す図である。
FIG. 12 is a diagram illustrating an example in which pixels in a foreground area, a background area, and a mixed area are extracted.

【図13】画素と画素値を時間方向に展開したモデルと
の対応を示す図である。
FIG. 13 is a diagram showing the correspondence between pixels and models in which pixel values are developed in the time direction.

【図14】画素値を時間方向に展開し、シャッタ時間に
対応する期間を分割したモデル図である。
FIG. 14 is a model diagram in which pixel values are developed in a time direction and a period corresponding to a shutter time is divided.

【図15】画素値を時間方向に展開し、シャッタ時間に
対応する期間を分割したモデル図である。
FIG. 15 is a model diagram in which pixel values are developed in the time direction and a period corresponding to a shutter time is divided.

【図16】画素値を時間方向に展開し、シャッタ時間に
対応する期間を分割したモデル図である。
FIG. 16 is a model diagram in which pixel values are developed in the time direction and a period corresponding to a shutter time is divided.

【図17】画素値を時間方向に展開し、シャッタ時間に
対応する期間を分割したモデル図である。
FIG. 17 is a model diagram in which pixel values are developed in the time direction and a period corresponding to a shutter time is divided.

【図18】画素値を時間方向に展開し、シャッタ時間に
対応する期間を分割したモデル図である。
FIG. 18 is a model diagram in which pixel values are developed in the time direction and a period corresponding to a shutter time is divided.

【図19】動きボケの量の調整の処理を説明するフロー
チャートである。
FIG. 19 is a flowchart illustrating a process of adjusting the amount of motion blur.

【図20】領域特定部103の構成を示すブロック図で
ある。
FIG. 20 is a block diagram showing a configuration of an area specifying unit 103.

【図21】前景に対応するオブジェクトが移動している
ときの画像を説明する図である。
FIG. 21 is a diagram illustrating an image when an object corresponding to the foreground is moving.

【図22】画素値を時間方向に展開し、シャッタ時間に
対応する期間を分割したモデル図である。
FIG. 22 is a model diagram in which pixel values are developed in the time direction and a period corresponding to a shutter time is divided.

【図23】画素値を時間方向に展開し、シャッタ時間に
対応する期間を分割したモデル図である。
FIG. 23 is a model diagram in which pixel values are developed in a time direction and a period corresponding to a shutter time is divided.

【図24】画素値を時間方向に展開し、シャッタ時間に
対応する期間を分割したモデル図である。
FIG. 24 is a model diagram in which pixel values are developed in the time direction and a period corresponding to a shutter time is divided.

【図25】領域判定の条件を説明する図である。FIG. 25 is a diagram illustrating conditions for region determination.

【図26】領域特定部103の領域の特定の結果の例を
示す図である。
FIG. 26 is a diagram illustrating an example of a result of specifying an area by the area specifying unit 103;

【図27】領域特定部103の領域の特定の結果の例を
示す図である。
FIG. 27 is a diagram illustrating an example of a result of specifying an area by the area specifying unit 103;

【図28】領域特定の処理を説明するフローチャートで
ある。
FIG. 28 is a flowchart illustrating an area specifying process.

【図29】領域特定部103の他の構成を示すブロック
図である。
FIG. 29 is a block diagram showing another configuration of the area specifying unit 103.

【図30】画素値を時間方向に展開し、シャッタ時間に
対応する期間を分割したモデル図である。
FIG. 30 is a model diagram in which pixel values are developed in the time direction and a period corresponding to a shutter time is divided.

【図31】背景画像の例を示す図である。FIG. 31 is a diagram illustrating an example of a background image.

【図32】2値オブジェクト画像抽出部302の構成を
示すブロック図である。
FIG. 32 is a block diagram illustrating a configuration of a binary object image extraction unit 302.

【図33】相関値の算出を説明する図である。FIG. 33 is a diagram illustrating calculation of a correlation value.

【図34】相関値の算出を説明する図である。FIG. 34 is a diagram illustrating calculation of a correlation value.

【図35】2値オブジェクト画像の例を示す図である。FIG. 35 is a diagram illustrating an example of a binary object image.

【図36】時間変化検出部303の構成を示すブロック
図である。
FIG. 36 is a block diagram illustrating a configuration of a time change detection unit 303.

【図37】領域判定部342の判定を説明する図であ
る。
FIG. 37 is a diagram for explaining determination by an area determination unit 342.

【図38】時間変化検出部303の判定の例を示す図で
ある。
FIG. 38 is a diagram illustrating an example of determination by the time change detection unit 303.

【図39】領域判定部103の領域特定の処理を説明す
るフローチャートである。
FIG. 39 is a flowchart illustrating an area identification process performed by an area determination unit 103.

【図40】領域判定の処理の詳細を説明するフローチャ
ートである。
FIG. 40 is a flowchart illustrating details of a region determination process.

【図41】領域特定部103のさらに他の構成を示すブ
ロック図である。
FIG. 41 is a block diagram showing still another configuration of the area specifying unit 103.

【図42】ロバスト化部361の構成を説明するブロッ
ク図である。
FIG. 42 is a block diagram illustrating a configuration of a robust unit 361.

【図43】動き補償部381の動き補償を説明する図で
ある。
FIG. 43 is a diagram illustrating motion compensation by a motion compensation unit 381.

【図44】動き補償部381の動き補償を説明する図で
ある。
FIG. 44 is a diagram illustrating motion compensation by a motion compensation unit 381.

【図45】領域特定の処理を説明するフローチャートで
ある。
FIG. 45 is a flowchart illustrating an area specifying process.

【図46】ロバスト化の処理の詳細を説明するフローチ
ャートである。
FIG. 46 is a flowchart illustrating details of robust processing.

【図47】混合比算出部104の構成を示すブロック図
である。
FIG. 47 is a block diagram showing a configuration of a mixture ratio calculator 104.

【図48】推定混合比処理部401の構成を示すブロッ
ク図である。
FIG. 48 is a block diagram illustrating a configuration of an estimated mixture ratio processing unit 401.

【図49】画素値を時間方向に展開し、シャッタ時間に
対応する期間を分割したモデル図である。
FIG. 49 is a model diagram in which pixel values are developed in a time direction and a period corresponding to a shutter time is divided.

【図50】重み付け差分を説明するモデル図である。FIG. 50 is a model diagram illustrating a weighted difference.

【図51】重み付け差分を説明するモデル図である。FIG. 51 is a model diagram illustrating a weighted difference.

【図52】重み付け差分と動きベクトルとの関係を説明
するモデル図である。
FIG. 52 is a model diagram illustrating the relationship between a weighted difference and a motion vector.

【図53】相関値の演算を説明するモデル図である。FIG. 53 is a model diagram illustrating calculation of a correlation value;

【図54】相関値の演算の対象となる画素のブロックの
例を示す図である。
FIG. 54 is a diagram illustrating an example of a block of pixels for which a calculation of a correlation value is performed.

【図55】混合比算出部104の他の構成を示すブロッ
ク図である。
FIG. 55 is a block diagram showing another configuration of the mixture ratio calculator 104.

【図56】混合比の算出の処理を説明するフローチャー
トである。
FIG. 56 is a flowchart illustrating processing for calculating a mixture ratio.

【図57】カバードバックグラウンド領域に対応する混
合比推定の処理を説明するフローチャートである。
FIG. 57 is a flowchart illustrating a process of estimating a mixture ratio corresponding to a covered background area.

【図58】前景背景分離部105の構成の一例を示すブ
ロック図である。
FIG. 58 is a block diagram illustrating an example of a configuration of a foreground / background separation unit 105.

【図59】入力画像、前景成分画像、および背景成分画
像を示す図である。
FIG. 59 is a diagram showing an input image, a foreground component image, and a background component image.

【図60】画素値を時間方向に展開し、シャッタ時間に
対応する期間を分割したモデル図である。
FIG. 60 is a model diagram in which pixel values are developed in the time direction and a period corresponding to a shutter time is divided.

【図61】画素値を時間方向に展開し、シャッタ時間に
対応する期間を分割したモデル図である。
FIG. 61 is a model diagram in which pixel values are developed in the time direction and a period corresponding to a shutter time is divided.

【図62】画素値を時間方向に展開し、シャッタ時間に
対応する期間を分割したモデル図である。
FIG. 62 is a model diagram in which pixel values are developed in the time direction and a period corresponding to a shutter time is divided.

【図63】分離部601の構成の一例を示すブロック図
である。
FIG. 63 is a block diagram illustrating an example of a configuration of a separation unit 601.

【図64】分離された前景成分画像、および背景成分画
像の例を示す図である。
FIG. 64 is a diagram illustrating an example of a separated foreground component image and a background component image.

【図65】前景と背景との分離の処理を説明するフロー
チャートである。
FIG. 65 is a flowchart illustrating a process of separating a foreground and a background.

【図66】動きボケ調整部106の構成の一例を示すブ
ロック図である。
FIG. 66 is a block diagram illustrating an example of a configuration of a motion-blur adjusting unit 106.

【図67】処理単位を説明する図である。FIG. 67 is a diagram illustrating a processing unit.

【図68】前景成分画像の画素値を時間方向に展開し、
シャッタ時間に対応する期間を分割したモデル図であ
る。
FIG. 68 expands pixel values of a foreground component image in the time direction,
FIG. 3 is a model diagram obtained by dividing a period corresponding to a shutter time.

【図69】前景成分画像の画素値を時間方向に展開し、
シャッタ時間に対応する期間を分割したモデル図であ
る。
FIG. 69 expands pixel values of a foreground component image in the time direction,
FIG. 3 is a model diagram obtained by dividing a period corresponding to a shutter time.

【図70】前景成分画像の画素値を時間方向に展開し、
シャッタ時間に対応する期間を分割したモデル図であ
る。
FIG. 70: Expands the pixel values of the foreground component image in the time direction,
FIG. 3 is a model diagram obtained by dividing a period corresponding to a shutter time.

【図71】前景成分画像の画素値を時間方向に展開し、
シャッタ時間に対応する期間を分割したモデル図であ
る。
FIG. 71 develops pixel values of a foreground component image in the time direction,
FIG. 3 is a model diagram obtained by dividing a period corresponding to a shutter time.

【図72】動きボケ調整部106の他の構成を示す図で
ある。
72 is a diagram illustrating another configuration of the motion blur adjustment unit 106. FIG.

【図73】動きボケ調整部106による前景成分画像に
含まれる動きボケの量の調整の処理を説明するフローチ
ャートである。
73 is a flowchart illustrating a process of adjusting the amount of motion blur included in the foreground component image by the motion blur adjustment unit 106. FIG.

【図74】動きボケ調整部106の他の構成を示すブロ
ック図である。
74 is a block diagram illustrating another configuration of the motion blur adjustment unit 106. FIG.

【図75】画素値と前景の成分のとの対応を指定するモ
デルの例を示す図である。
FIG. 75 is a diagram illustrating an example of a model that specifies correspondence between pixel values and foreground components.

【図76】前景の成分の算出を説明する図である。FIG. 76 is a diagram illustrating calculation of a foreground component.

【図77】前景の成分の算出を説明する図である。FIG. 77 is a diagram illustrating calculation of a foreground component.

【図78】前景の動きボケの除去の処理を説明するフロ
ーチャートである。
FIG. 78 is a flowchart illustrating a process for removing motion blur in the foreground.

【図79】信号処理部の機能の他の構成を示すブロック
図である。
FIG. 79 is a block diagram showing another configuration of the function of the signal processing unit.

【図80】合成部1001の構成を示す図である。FIG. 80 is a diagram showing a configuration of a synthesis unit 1001.

【図81】信号処理部の機能のさらに他の構成を示すブ
ロック図である。
FIG. 81 is a block diagram showing still another configuration of the function of the signal processing unit.

【図82】混合比算出部1101の構成を示すブロック
図である。
FIG. 82 is a block diagram showing a configuration of a mixture ratio calculation unit 1101.

【図83】前景背景分離部1102の構成を示すブロッ
ク図である。
FIG. 83 is a block diagram showing a configuration of a foreground / background separation unit 1102.

【図84】信号処理部の機能のさらに他の構成を示すブ
ロック図である。
FIG. 84 is a block diagram showing still another configuration of the function of the signal processing unit.

【図85】合成部1201の構成を示す図である。FIG. 85 is a diagram showing a configuration of a synthesizing unit 1201.

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

21 CPU, 22 ROM, 23 RAM,26 入力
部, 27 出力部, 28 記憶部, 29 通信
部, 51磁気ディスク, 52 光ディスク, 53
光磁気ディスク, 54 半導体メモリ, 101
オブジェクト抽出部, 102 動き検出部, 103
領域特定部, 104 混合比算出部, 105 前
景背景分離部, 106 動きボケ調整部, 107
選択部, 201 フレームメモリ, 202−1乃至
202−4 静動判定部, 203−1乃至203−3
領域判定部, 204 判定フラグ格納フレームメモ
リ, 205 合成部, 206 判定フラグ格納フレ
ームメモリ, 301 背景画像生成部, 302 2
値オブジェクト画像抽出部, 303 時間変化検出
部, 321 相関値演算部, 322しきい値処理
部, 341 フレームメモリ, 342 領域判定
部, 361ロバスト化部, 381 動き補償部,
382 スイッチ, 383−1乃至383−N フレ
ームメモリ、 384−1乃至384−N 重み付け
部,385 積算部, 401 推定混合比処理部,
402 推定混合比処理部,403 混合比決定部,
421 フレームメモリ, 422 重み生成部,42
3 重み付けフレーム差分演算部, 424 動き補償
部, 425 フレームメモリ, 426 相関値演算
部, 427 最大値判定部, 441選択部, 44
2 選択部, 601 分離部, 602 スイッチ,
603合成部, 604 スイッチ, 605 合成
部, 621 フレームメモリ, 622 分離処理ブ
ロック, 623 フレームメモリ, 631 アンカ
バード領域処理部, 632 カバード領域処理部,
633 合成部, 634 合成部, 801 処理単
位決定部, 802 モデル化部, 803 方程式生
成部, 804 足し込み部, 805 演算部, 8
06 動きボケ付加部, 807 選択部, 821
選択部, 901 処理単位決定部, 902 モデル
化部, 903 方程式生成部, 904 演算部,
905 補正部, 906 動きボケ付加部, 907
選択部, 1001 合成部,1021 背景成分生
成部, 1022 混合領域画像合成部, 1023
画像合成部, 1101 混合比算出部, 1102
前景背景分離部, 1121 選択部, 1201 合
成部, 1221 選択部
21 CPU, 22 ROM, 23 RAM, 26 input unit, 27 output unit, 28 storage unit, 29 communication unit, 51 magnetic disk, 52 optical disk, 53
Magneto-optical disk, 54 semiconductor memory, 101
Object extraction unit, 102 Motion detection unit, 103
Area specifying unit, 104 mixture ratio calculating unit, 105 foreground / background separating unit, 106 motion blur adjusting unit, 107
Selection unit, 201 frame memory, 202-1 to 202-4 static / movement determination unit, 203-1 to 203-3
Area determination unit, 204 determination flag storage frame memory, 205 synthesis unit, 206 determination flag storage frame memory, 301 background image generation unit, 302 2
Value object image extraction section, 303 time change detection section, 321 correlation value calculation section, 322 threshold value processing section, 341 frame memory, 342 area determination section, 361 robust conversion section, 381 motion compensation section,
382 switch, 383-1 to 383-N frame memory, 384-1 to 384-N weighting unit, 385 integrating unit, 401 estimated mixture ratio processing unit,
402 estimated mixture ratio processing unit, 403 mixture ratio determination unit,
421 frame memory, 422 weight generator, 42
3 weighted frame difference calculation unit, 424 motion compensation unit, 425 frame memory, 426 correlation value calculation unit, 427 maximum value determination unit, 441 selection unit, 44
2 selection unit, 601 separation unit, 602 switch,
603 synthesis section, 604 switch, 605 synthesis section, 621 frame memory, 622 separation processing block, 623 frame memory, 631 uncovered area processing section, 632 covered area processing section,
633 synthesis unit, 634 synthesis unit, 801 processing unit determination unit, 802 modeling unit, 803 equation generation unit, 804 addition unit, 805 operation unit, 8
06 Motion blur addition unit, 807 selection unit, 821
Selection unit, 901 processing unit determination unit, 902 modeling unit, 903 equation generation unit, 904 operation unit,
905 correction unit, 906 motion blur addition unit, 907
Selection section, 1001 synthesis section, 1021 background component generation section, 1022 mixed area image synthesis section, 1023
Image synthesis unit, 1101 Mixing ratio calculation unit, 1102
Foreground / background separator, 1121 selector, 1201 synthesizer, 1221 selector

フロントページの続き (72)発明者 沢尾 貴志 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 (72)発明者 永野 隆浩 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 (72)発明者 藤原 直樹 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 (72)発明者 三宅 徹 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 (72)発明者 和田 成司 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 Fターム(参考) 5B057 AA20 BA02 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC03 CE04 CE08 CE17 DA06 DB02 DB06 DB09 DC34 DC36 5C022 AB00 AB55 AC69 5C023 AA06 AA11 AA37 BA02 BA04 BA11 CA01 DA02 DA04 5L096 AA02 AA06 BA08 CA04 CA14 DA01 EA39 FA34 GA08 HA03 HA04 Continued on the front page (72) Inventor Takashi Sawao 6-7-35 Kita Shinagawa, Shinagawa-ku, Tokyo Inside Sony Corporation (72) Inventor Takahiro Nagano 6-35-35 Kita Shinagawa, Shinagawa-ku, Tokyo Sony (72) Inventor Naoki Fujiwara 6-7-35 Kita-Shinagawa, Shinagawa-ku, Tokyo Sony Corporation (72) Inventor Toru Miyake 6-35, Kita-Shinagawa, Shinagawa-ku, Tokyo Sony Corporation (72) Inventor Seiji Wada 6-7-35 Kita-Shinagawa, Shinagawa-ku, Tokyo F-term in Sony Corporation (reference) 5B057 AA20 BA02 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC03 CE04 CE08 CE17 DA06 DB02 DB06 DB09 DC34 DC36 5C022 AB00 AB55 AC69 5C023 AA06 AA11 AA37 BA02 BA04 BA11 CA01 DA02 DA04 5L096 AA02 AA06 BA08 CA04 CA14 DA01 EA39 FA34 GA08 HA03 HA04

Claims (44)

【特許請求の範囲】[Claims] 【請求項1】 時間積分効果を有する所定数の画素を有
する撮像素子によって取得された所定数の画素データか
らなる画像データを処理する画像処理装置において、 現実世界では複数であるオブジェクトの前記画素データ
における混合状態を示す混合比の値の範囲に対応させ
て、複数の重みを生成し、生成した個々の前記重みを示
す重み付け情報を生成する重み付け情報生成手段と、 前記画像データの注目フレームの各画素と、前記画像デ
ータの前記注目フレームに隣接する隣接フレームの各画
素との間で、前記重み付け情報で示される前記重みに基
づく重み付け差分を検出し、前記注目フレームに対応す
る重み付け差分画像データとして出力する重み付け差分
画像データ検出手段と、 前記注目フレームの前記画素データと前記隣接フレーム
の前記画素データとの間の相対的な動きを示す動きベク
トルに応じて、前記注目フレームの前記重み付け差分画
像データと前記隣接フレームの前記重み付け差分画像デ
ータとの相対的な位置を合わせて、前記注目フレームの
前記重み付け差分画像データの各注目画素を中心とした
少なくとも1画素からなる注目ブロックと、前記隣接フ
レームの前記重み付け差分画像データの少なくとも1画
素からなる対応ブロックとの相関を演算し、重み付け差
分画像間相関データとして出力する重み付け差分画像間
相関データ検出手段と、 前記重み付け差分画像間相関データの少なくとも1画素
からなる所定の単位毎に、前記重み付け差分画像データ
間の相関が最大となる前記重みを検出し、前記注目フレ
ームの前記単位に対応する前記混合比として出力する混
合比検出手段とを含むことを特徴とする画像処理装置。
1. An image processing apparatus for processing image data consisting of a predetermined number of pixel data obtained by an image sensor having a predetermined number of pixels having a time integration effect, wherein the pixel data of a plurality of objects in the real world is provided. Weighting information generating means for generating a plurality of weights and generating weighting information indicating the generated individual weights in correspondence with the range of the value of the mixing ratio indicating the mixed state in, and each of the frames of interest of the image data Between the pixel and each pixel of an adjacent frame adjacent to the frame of interest of the image data, detects a weighted difference based on the weight indicated by the weighting information, as weighted difference image data corresponding to the frame of interest Weighted difference image data detecting means to be output, the pixel data of the frame of interest and the adjacent frame The relative position between the weighted difference image data of the frame of interest and the weighted difference image data of the adjacent frame is adjusted according to a motion vector indicating a relative movement between the pixel data and the pixel data. Calculates a correlation between a target block of at least one pixel centered on each target pixel of the weighted difference image data of the target frame and a corresponding block of at least one pixel of the weighted difference image data of the adjacent frame, and assigns a weight. Weighted difference image correlation data detection means for outputting as difference image correlation data; and for each predetermined unit consisting of at least one pixel of the weighted difference image correlation data, the correlation between the weighted difference image data is maximized. Detecting a weight and outputting the weight as the mixture ratio corresponding to the unit of the frame of interest An image processing apparatus comprising:
【請求項2】 前記重み付け情報生成手段は、それぞれ
異なる複数の前記混合比に対応する、それぞれ異なる複
数の前記重みを示す前記重み付け情報を順次生成し、 前記重み付け差分画像データ検出手段は、それぞれ異な
る複数の前記重みに対応して、前記重み付け差分を検出
し、前記注目フレームに対応する前記重み付け差分画像
データとして出力し、 前記重み付け差分画像間相関データ検出手段は、それぞ
れ異なる複数の前記重みに対応して、前記相関を演算
し、重み付け差分画像間相関データとして出力し、 前記混合比検出手段は、それぞれ異なる複数の前記重み
のうち、前記重み付け差分画像データ間の相関が最大と
なる前記重みを検出し、前記注目フレームの前記所定の
単位に対応する前記混合比として出力することを特徴と
する請求項1に記載の画像処理装置。
2. The weighting information generating means sequentially generates the weighting information indicating a plurality of different weights respectively corresponding to the plurality of different mixing ratios, and the weighted difference image data detecting means is different from each other. In response to the plurality of weights, the weighted difference is detected and output as the weighted difference image data corresponding to the frame of interest, and the weighted difference image correlation data detecting means corresponds to the plurality of different weights Then, the correlation is calculated and output as weighted difference image correlation data, and the mixture ratio detection unit calculates, from among the plurality of different weights, the weight that maximizes the correlation between the weighted difference image data. Detecting and outputting as the mixture ratio corresponding to the predetermined unit of the frame of interest. The image processing device according to claim 1.
【請求項3】 前記重み付け差分画像間相関データ検出
手段は、前記相関として、前記注目フレームの前記重み
付け差分画像データの各注目画素を中心とした少なくと
も1画素からなる前記注目ブロックと、前記隣接フレー
ムの前記重み付け差分画像データの少なくとも1画素か
らなる前記対応ブロックとの差分絶対値を演算し、前記
重み付け差分画像間相関データとして出力することを特
徴とする請求項1に記載の画像処理装置。
3. The weighted difference image correlation data detecting means, as the correlation, the target block consisting of at least one pixel centered on each target pixel of the weighted difference image data of the target frame, and the adjacent frame 2. The image processing apparatus according to claim 1, wherein an absolute value of a difference between the weighted difference image data and the corresponding block including at least one pixel is calculated and output as the weighted difference image correlation data.
【請求項4】 前記重み付け差分画像間相関データ検出
手段は、前記相関として、前記注目フレームの前記重み
付け差分画像データの各注目画素を中心とした少なくと
も1画素からなる前記注目ブロックと、前記隣接フレー
ムの前記重み付け差分画像データの少なくとも1画素か
らなる前記対応ブロックとの差分絶対値和を演算し、前
記重み付け差分画像間相関データとして出力することを
特徴とする請求項1に記載の画像処理装置。
4. The weighted difference image correlation data detecting means, as the correlation, the target block including at least one pixel centered on each target pixel of the weighted difference image data of the target frame, and the adjacent frame 2. The image processing apparatus according to claim 1, wherein a sum of absolute differences between the weighted difference image data and the corresponding block including at least one pixel is calculated and output as the weighted difference image correlation data.
【請求項5】 前記重み付け差分画像データ検出手段
は、前記注目フレームの前記画素が、複数の前記オブジ
ェクトが混合されている混合領域であって、前景のオブ
ジェクトの動き方向先端部側に形成されるカバードバッ
クグラウンド領域に属する場合、前記注目フレームの各
画素と、前記注目フレームの前の前記フレームの各画素
との間で、前記重み付け情報で示される前記重みによる
重み付け差分を検出し、前記注目フレームの前記画素
が、複数の前記オブジェクトが混合されている混合領域
であって、前記前景のオブジェクトの動き方向後端部側
に形成されるアンカバードバックグラウンド領域に属す
る場合、前記注目フレームの各画素と、前記注目フレー
ムの次の前記フレームの各画素との間で、前記重み付け
情報で示される前記重みによる重み付け差分を検出する
ことを特徴とする請求項1に記載の画像処理装置。
5. The weighted difference image data detecting means, wherein the pixel of the frame of interest is formed in a mixed area in which a plurality of the objects are mixed, and is formed on a front end side of a foreground object in a movement direction. When belonging to the covered background area, between each pixel of the frame of interest and each pixel of the frame before the frame of interest, a weighted difference by the weight indicated by the weighting information is detected, and the frame of interest is detected. Each pixel of the frame of interest when the pixel of the frame of interest belongs to a mixed area where a plurality of the objects are mixed and belongs to an uncovered background area formed on the rear end side in the movement direction of the foreground object And the weight indicated by the weighting information between each pixel of the frame next to the frame of interest The image processing apparatus according to claim 1, wherein a weighted difference is detected by:
【請求項6】 前記画像データにおいて複数の前記オブ
ジェクトのうちの前景となるオブジェクトからなる前景
領域、前記画像データにおいて複数の前記オブジェクト
のうちの背景となるオブジェクトからなる背景領域、複
数の前記オブジェクトが混合されている混合領域であっ
て、前景のオブジェクトの動き方向先端部側に形成され
るカバードバックグラウンド領域、および前記混合領域
であって、前記前景のオブジェクトの動き方向後端部側
に形成されるアンカバードバックグラウンド領域を特定
し、前記前景領域、前記背景領域、並びに前記カバード
バックグラウンド領域および前記アンカバードバックグ
ラウンド領域を含む前記混合領域を示す領域情報を生成
する領域情報生成手段をさらに含むことを特徴とする請
求項1に記載の画像処理装置。
6. A foreground area formed of a foreground object of the plurality of objects in the image data, a background area formed of a background object of the plurality of objects in the image data, and a plurality of the objects A mixed background area, which is a covered background area formed on the front end side of the foreground object in the movement direction, and the mixed area is formed on the rear end side of the foreground object in the movement direction. Further includes area information generating means for specifying an uncovered background area, and generating area information indicating the foreground area, the background area, and the mixed area including the covered background area and the uncovered background area. The image according to claim 1, characterized in that: Processing equipment.
【請求項7】 前記注目フレームの前記画素データと前
記隣接フレームの前記画素データとの間の相対的な動き
を示す前記動きベクトルを検出する動きベクトル検出手
段をさらに含むことを特徴とする請求項1に記載の画像
処理装置。
7. The apparatus according to claim 1, further comprising a motion vector detecting unit configured to detect the motion vector indicating a relative motion between the pixel data of the frame of interest and the pixel data of the adjacent frame. 2. The image processing device according to 1.
【請求項8】 前記混合比検出手段は、複数の前記オブ
ジェクトが混合されている混合領域に属する、前記注目
フレームの前記画素の前記混合比を検出することを特徴
とする請求項1に記載の画像処理装置。
8. The apparatus according to claim 1, wherein the mixture ratio detection unit detects the mixture ratio of the pixels of the frame of interest belonging to a mixture region where a plurality of the objects are mixed. Image processing device.
【請求項9】 前記混合比を基に、前記画素データか
ら、複数の前記オブジェクトのうちの少なくとも前景と
なるオブジェクトを分離する分離手段をさらに含むこと
を特徴とする請求項1に記載の画像処理装置。
9. The image processing apparatus according to claim 1, further comprising: a separation unit configured to separate at least a foreground object among the plurality of objects from the pixel data based on the mixture ratio. apparatus.
【請求項10】 分離された前記前景となるオブジェク
トの動きボケの量を調整する動きボケ調整手段をさらに
含むことを特徴とする請求項9に記載の画像処理装置。
10. The image processing apparatus according to claim 9, further comprising a motion blur adjusting means for adjusting the amount of motion blur of the separated foreground object.
【請求項11】 前記混合比を基に、所望の他のオブジ
ェクトと分離された前記前景となるオブジェクトとを合
成する合成手段をさらに含むことを特徴とする請求項9
に記載の画像処理装置。
11. The image processing apparatus according to claim 9, further comprising combining means for combining another desired object and the separated foreground object based on the mixture ratio.
An image processing apparatus according to claim 1.
【請求項12】 時間積分効果を有する所定数の画素を
有する撮像素子によって取得された所定数の画素データ
からなる画像データを処理する画像処理方法において、 現実世界では複数であるオブジェクトの前記画素データ
における混合状態を示す混合比の値の範囲に対応させ
て、複数の重みを生成し、生成した個々の前記重みを示
す重み付け情報を生成する重み付け情報生成ステップ
と、 前記画像データの注目フレームの各画素と、前記画像デ
ータの前記注目フレームに隣接する隣接フレームの各画
素との間で、前記重み付け情報で示される前記重みに基
づく重み付け差分を検出し、前記注目フレームに対応す
る重み付け差分画像データとして出力する重み付け差分
画像データ検出ステップと、 前記注目フレームの前記画素データと前記隣接フレーム
の前記画素データとの間の相対的な動きを示す動きベク
トルに応じて、前記注目フレームの前記重み付け差分画
像データと前記隣接フレームの前記重み付け差分画像デ
ータとの相対的な位置を合わせて、前記注目フレームの
前記重み付け差分画像データの各注目画素を中心とした
少なくとも1画素からなる注目ブロックと、前記隣接フ
レームの前記重み付け差分画像データの少なくとも1画
素からなる対応ブロックとの相関を演算し、重み付け差
分画像間相関データとして出力する重み付け差分画像間
相関データ検出ステップと、 前記重み付け差分画像間相関データの少なくとも1画素
からなる所定の単位毎に、前記重み付け差分画像データ
間の相関が最大となる前記重みを検出し、前記注目フレ
ームの前記単位に対応する前記混合比として出力する混
合比検出ステップとを含むことを特徴とする画像処理方
法。
12. An image processing method for processing image data consisting of a predetermined number of pixel data obtained by an image sensor having a predetermined number of pixels having a time integration effect, wherein the pixel data of a plurality of objects in the real world is provided. Weighting information generating step of generating a plurality of weights and generating weighting information indicating the generated individual weights in association with the range of the value of the mixing ratio indicating the mixed state in Between the pixel and each pixel of an adjacent frame adjacent to the frame of interest of the image data, detects a weighted difference based on the weight indicated by the weighting information, as weighted difference image data corresponding to the frame of interest A step of detecting a weighted difference image data to be output; According to a motion vector indicating a relative motion between the pixel data of the adjacent frame and the relative position between the weighted difference image data of the frame of interest and the weighted difference image data of the adjacent frame. Calculating a correlation between a target block of at least one pixel centered on each target pixel of the weighted difference image data of the target frame and a corresponding block of at least one pixel of the weighted difference image data of the adjacent frame. Detecting the correlation data between the weighted difference images to be output as the correlation data between the weighted difference images; The weight corresponding to the unit of the frame of interest is detected. A mixing ratio detection step of outputting as a mixing ratio.
【請求項13】 前記重み付け情報生成ステップにおい
て、それぞれ異なる複数の前記混合比に対応する、それ
ぞれ異なる複数の前記重みを示す前記重み付け情報が順
次生成され、 前記重み付け差分画像データ検出ステップにおいて、そ
れぞれ異なる複数の前記重みに対応して、前記重み付け
差分が検出され、前記注目フレームに対応する前記重み
付け差分画像データとして出力され、 前記重み付け差分画像間相関データ検出ステップにおい
て、それぞれ異なる複数の前記重みに対応して、前記相
関が演算され、重み付け差分画像間相関データとして出
力され、 前記混合比検出ステップにおいて、それぞれ異なる複数
の前記重みのうち、前記重み付け差分画像データ間の相
関が最大となる前記重みが検出され、前記注目フレーム
の前記所定の単位に対応する前記混合比として出力され
ることを特徴とする請求項12に記載の画像処理方法。
13. The weighting information generating step sequentially generates the weighting information indicating the plurality of different weights corresponding to the plurality of different mixing ratios, respectively, wherein the weighting information differs in the weighting difference image data detecting step. In response to the plurality of weights, the weighted difference is detected and output as the weighted difference image data corresponding to the frame of interest. Then, the correlation is calculated and output as weighted difference image correlation data. In the mixing ratio detection step, among the plurality of different weights, the weight at which the correlation between the weighted difference image data is maximum is Is detected and the predetermined The image processing method according to claim 12, wherein the image is output as the mixture ratio corresponding to a unit.
【請求項14】 前記重み付け差分画像間相関データ検
出ステップにおいて、前記相関として、前記注目フレー
ムの前記重み付け差分画像データの各注目画素を中心と
した少なくとも1画素からなる前記注目ブロックと、前
記隣接フレームの前記重み付け差分画像データの少なく
とも1画素からなる前記対応ブロックとの差分絶対値が
演算され、前記重み付け差分画像間相関データとして出
力されることを特徴とする請求項12に記載の画像処理
方法。
14. In the weighted difference image correlation data detecting step, the correlation block includes at least one pixel centered on each pixel of interest in the weighted difference image data of the frame of interest and the adjacent frame as the correlation. The image processing method according to claim 12, wherein an absolute value of a difference between the weighted difference image data and the corresponding block including at least one pixel is calculated and output as the weighted difference image correlation data.
【請求項15】 前記重み付け差分画像間相関データ検
出ステップにおいて、前記相関として、前記注目フレー
ムの前記重み付け差分画像データの各注目画素を中心と
した少なくとも1画素からなる前記注目ブロックと、前
記隣接フレームの前記重み付け差分画像データの少なく
とも1画素からなる前記対応ブロックとの差分絶対値和
が演算され、前記重み付け差分画像間相関データとして
出力されることを特徴とする請求項12に記載の画像処
理方法。
15. In the weighted difference image correlation data detecting step, as the correlation, the focused block including at least one pixel centered on each focused pixel of the weighted difference image data of the focused frame; 13. The image processing method according to claim 12, wherein a sum of absolute differences between the weighted difference image data and the corresponding block including at least one pixel is calculated and output as the weighted difference image correlation data. .
【請求項16】 前記重み付け差分画像データ検出ステ
ップにおいて、前記注目フレームの前記画素が、複数の
前記オブジェクトが混合されている混合領域であって、
前景のオブジェクトの動き方向先端部側に形成されるカ
バードバックグラウンド領域に属する場合、前記注目フ
レームの各画素と、前記注目フレームの前の前記フレー
ムの各画素との間で、前記重み付け情報で示される前記
重みによる重み付け差分が検出され、前記注目フレーム
の前記画素が、複数の前記オブジェクトが混合されてい
る混合領域であって、前記前景のオブジェクトの動き方
向後端部側に形成されるアンカバードバックグラウンド
領域に属する場合、前記注目フレームの各画素と、前記
注目フレームの次の前記フレームの各画素との間で、前
記重み付け情報で示される前記重みによる重み付け差分
が検出されることを特徴とする請求項12に記載の画像
処理方法。
16. In the weighted difference image data detecting step, the pixel of the frame of interest is a mixed area where a plurality of the objects are mixed,
When belonging to the covered background area formed on the front end side in the movement direction of the foreground object, the weighting information indicates between each pixel of the frame of interest and each pixel of the frame before the frame of interest. The weighted difference due to the weight is detected, and the pixel of the frame of interest is a mixed area in which a plurality of the objects are mixed, and the uncovered pixel is formed on the rear end side in the movement direction of the foreground object. When belonging to a background area, between each pixel of the frame of interest and each pixel of the frame next to the frame of interest, a weight difference by the weight indicated by the weight information is detected. 13. The image processing method according to claim 12, wherein:
【請求項17】 前記画像データにおいて複数の前記オ
ブジェクトのうちの前景となるオブジェクトからなる前
景領域、前記画像データにおいて複数の前記オブジェク
トのうちの背景となるオブジェクトからなる背景領域、
複数の前記オブジェクトが混合されている混合領域であ
って、前景のオブジェクトの動き方向先端部側に形成さ
れるカバードバックグラウンド領域、および前記混合領
域であって、前記前景のオブジェクトの動き方向後端部
側に形成されるアンカバードバックグラウンド領域を特
定し、前記前景領域、前記背景領域、並びに前記カバー
ドバックグラウンド領域および前記アンカバードバック
グラウンド領域を含む前記混合領域を示す領域情報を生
成する領域情報生成ステップをさらに含むことを特徴と
する請求項12に記載の画像処理方法。
17. A foreground area including a foreground object among the plurality of objects in the image data, a background area including a background object among the plurality of objects in the image data,
A mixed area in which a plurality of the objects are mixed, a covered background area formed on the front end side in the movement direction of the foreground object, and the mixed area, a rear end in the movement direction of the foreground object Area information for specifying an uncovered background area formed on the side of the section and generating area information indicating the foreground area, the background area, and the mixed area including the covered background area and the uncovered background area The image processing method according to claim 12, further comprising a generating step.
【請求項18】 前記注目フレームの前記画素データと
前記隣接フレームの前記画素データとの間の相対的な動
きを示す前記動きベクトルを検出する動きベクトル検出
ステップをさらに含むことを特徴とする請求項12に記
載の画像処理方法。
18. The method according to claim 18, further comprising detecting a motion vector indicating a relative motion between the pixel data of the frame of interest and the pixel data of the adjacent frame. 13. The image processing method according to item 12.
【請求項19】 前記混合比検出ステップにおいて、複
数の前記オブジェクトが混合されている混合領域に属す
る、前記注目フレームの前記画素の前記混合比が検出さ
れることを特徴とする請求項12に記載の画像処理方
法。
19. The mixture ratio detection step according to claim 12, wherein the mixture ratio of the pixels of the frame of interest belonging to a mixture region in which the plurality of objects are mixed is detected. Image processing method.
【請求項20】 前記混合比を基に、前記画素データか
ら、複数の前記オブジェクトのうちの少なくとも前景と
なるオブジェクトを分離する分離ステップをさらに含む
ことを特徴とする請求項12に記載の画像処理方法。
20. The image processing apparatus according to claim 12, further comprising a separating step of separating at least a foreground object among the plurality of objects from the pixel data based on the mixture ratio. Method.
【請求項21】 分離された前記前景となるオブジェク
トの動きボケの量を調整する動きボケ調整ステップをさ
らに含むことを特徴とする請求項20に記載の画像処理
方法。
21. The image processing method according to claim 20, further comprising a motion blur adjusting step of adjusting an amount of motion blur of the separated foreground object.
【請求項22】 前記混合比を基に、所望の他のオブジ
ェクトと分離された前記前景となるオブジェクトとを合
成する合成ステップをさらに含むことを特徴とする請求
項20に記載の画像処理方法。
22. The image processing method according to claim 20, further comprising a synthesizing step of synthesizing another desired object and the separated foreground object based on the mixture ratio.
【請求項23】 時間積分効果を有する所定数の画素を
有する撮像素子によって取得された所定数の画素データ
からなる画像データを処理するプログラムであって、 現実世界では複数であるオブジェクトの前記画素データ
における混合状態を示す混合比の値の範囲に対応させ
て、複数の重みを生成し、生成した個々の前記重みを示
す重み付け情報を生成する重み付け情報生成ステップ
と、 前記画像データの注目フレームの各画素と、前記画像デ
ータの前記注目フレームに隣接する隣接フレームの各画
素との間で、前記重み付け情報で示される前記重みに基
づく重み付け差分を検出し、前記注目フレームに対応す
る重み付け差分画像データとして出力する重み付け差分
画像データ検出ステップと、 前記注目フレームの前記画素データと前記隣接フレーム
の前記画素データとの間の相対的な動きを示す動きベク
トルに応じて、前記注目フレームの前記重み付け差分画
像データと前記隣接フレームの前記重み付け差分画像デ
ータとの相対的な位置を合わせて、前記注目フレームの
前記重み付け差分画像データの各注目画素を中心とした
少なくとも1画素からなる注目ブロックと、前記隣接フ
レームの前記重み付け差分画像データの少なくとも1画
素からなる対応ブロックとの相関を演算し、重み付け差
分画像間相関データとして出力する重み付け差分画像間
相関データ検出ステップと、 前記重み付け差分画像間相関データの少なくとも1画素
からなる所定の単位毎に、前記重み付け差分画像データ
間の相関が最大となる前記重みを検出し、前記注目フレ
ームの前記単位に対応する前記混合比として出力する混
合比検出ステップとを含むことを特徴とするコンピュー
タが読み取り可能なプログラムが記録されている記録媒
体。
23. A program for processing image data consisting of a predetermined number of pixel data obtained by an image sensor having a predetermined number of pixels having a time integration effect, wherein the pixel data of a plurality of objects in the real world is provided. Weighting information generating step of generating a plurality of weights and generating weighting information indicating the generated individual weights in association with the range of the value of the mixing ratio indicating the mixed state in Between the pixel and each pixel of an adjacent frame adjacent to the frame of interest of the image data, detects a weighted difference based on the weight indicated by the weighting information, as weighted difference image data corresponding to the frame of interest Detecting the weighted difference image data to be output; and the pixel data of the frame of interest and the adjacent In accordance with a motion vector indicating a relative motion between the pixel data of the frame, the relative position of the weighted difference image data of the frame of interest and the weighted difference image data of the adjacent frame are aligned, Calculating a correlation between a block of interest consisting of at least one pixel centered on each pixel of interest of the weighted difference image data of the frame of interest and a corresponding block consisting of at least one pixel of the weighted difference image data of the adjacent frame; A step of detecting the correlation data between the weighted difference images, which is output as the correlation data between the weighted difference images; and the correlation between the weighted difference image data is maximized for each predetermined unit including at least one pixel of the correlation data between the weighted difference images. Detecting the weight, the mixing corresponding to the unit of the frame of interest And a mixing ratio detecting step of outputting the ratio as a ratio.
【請求項24】 前記重み付け情報生成ステップにおい
て、それぞれ異なる複数の前記混合比に対応する、それ
ぞれ異なる複数の前記重みを示す前記重み付け情報が順
次生成され、 前記重み付け差分画像データ検出ステップにおいて、そ
れぞれ異なる複数の前記重みに対応して、前記重み付け
差分が検出され、前記注目フレームに対応する前記重み
付け差分画像データとして出力され、 前記重み付け差分画像間相関データ検出ステップにおい
て、それぞれ異なる複数の前記重みに対応して、前記相
関が演算され、重み付け差分画像間相関データとして出
力され、 前記混合比検出ステップにおいて、それぞれ異なる複数
の前記重みのうち、前記重み付け差分画像データ間の相
関が最大となる前記重みが検出され、前記注目フレーム
の前記所定の単位に対応する前記混合比として出力され
ることを特徴とする請求項23に記載の記録媒体。
24. The weighting information generating step sequentially generates the weighting information indicating a plurality of different weights corresponding to the plurality of different mixing ratios, respectively, wherein the weighting information differs in the weighting difference image data detecting step. In response to the plurality of weights, the weighted difference is detected and output as the weighted difference image data corresponding to the frame of interest. Then, the correlation is calculated and output as weighted difference image correlation data. In the mixing ratio detection step, among the plurality of different weights, the weight at which the correlation between the weighted difference image data is maximum is Is detected and the predetermined The recording medium according to claim 23, wherein the recording medium is output as the mixture ratio corresponding to a unit.
【請求項25】 前記重み付け差分画像間相関データ検
出ステップにおいて、前記相関として、前記注目フレー
ムの前記重み付け差分画像データの各注目画素を中心と
した少なくとも1画素からなる前記注目ブロックと、前
記隣接フレームの前記重み付け差分画像データの少なく
とも1画素からなる前記対応ブロックとの差分絶対値が
演算され、前記重み付け差分画像間相関データとして出
力されることを特徴とする請求項23に記載の記録媒
体。
25. The weighted difference image correlation data detecting step, wherein, as the correlation, the target block including at least one pixel centered on each target pixel of the weighted difference image data of the target frame; 24. The recording medium according to claim 23, wherein a difference absolute value between the weighted difference image data and the corresponding block including at least one pixel is calculated and output as the weighted difference image correlation data.
【請求項26】 前記重み付け差分画像間相関データ検
出ステップにおいて、前記相関として、前記注目フレー
ムの前記重み付け差分画像データの各注目画素を中心と
した少なくとも1画素からなる前記注目ブロックと、前
記隣接フレームの前記重み付け差分画像データの少なく
とも1画素からなる前記対応ブロックとの差分絶対値和
が演算され、前記重み付け差分画像間相関データとして
出力されことを特徴とする請求項23に記載の記録媒
体。
26. The weighted difference image correlation data detecting step, wherein the correlation includes, as the correlation, the target block including at least one pixel centered on each target pixel of the weighted difference image data of the target frame, and the adjacent frame. 24. The recording medium according to claim 23, wherein a sum of absolute differences between the weighted difference image data and the corresponding block including at least one pixel is calculated and output as the weighted difference image correlation data.
【請求項27】 前記重み付け差分画像データ検出ステ
ップにおいて、前記注目フレームの前記画素が、複数の
前記オブジェクトが混合されている混合領域であって、
前景のオブジェクトの動き方向先端部側に形成されるカ
バードバックグラウンド領域に属する場合、前記注目フ
レームの各画素と、前記注目フレームの前の前記フレー
ムの各画素との間で、前記重み付け情報で示される前記
重みによる重み付け差分が検出され、前記注目フレーム
の前記画素が、複数の前記オブジェクトが混合されてい
る混合領域であって、前記前景のオブジェクトの動き方
向後端部側に形成されるアンカバードバックグラウンド
領域に属する場合、前記注目フレームの各画素と、前記
注目フレームの次の前記フレームの各画素との間で、前
記重み付け情報で示される前記重みによる重み付け差分
が検出されることを特徴とする請求項23に記載の記録
媒体。
27. In the weighted difference image data detecting step, the pixel of the frame of interest is a mixed area in which a plurality of the objects are mixed,
When belonging to the covered background area formed on the front end side in the movement direction of the foreground object, the weighting information indicates between each pixel of the frame of interest and each pixel of the frame before the frame of interest. The weighted difference due to the weight is detected, and the pixel of the frame of interest is a mixed area in which a plurality of the objects are mixed, and the uncovered pixel is formed on the rear end side in the movement direction of the foreground object. When belonging to a background area, between each pixel of the frame of interest and each pixel of the frame next to the frame of interest, a weight difference by the weight indicated by the weight information is detected. 24. The recording medium according to claim 23.
【請求項28】 前記プログラムは、前記画像データに
おいて複数の前記オブジェクトのうちの前景となるオブ
ジェクトからなる前景領域、前記画像データにおいて複
数の前記オブジェクトのうちの背景となるオブジェクト
からなる背景領域、複数の前記オブジェクトが混合され
ている混合領域であって、前景のオブジェクトの動き方
向先端部側に形成されるカバードバックグラウンド領
域、および前記混合領域であって、前記前景のオブジェ
クトの動き方向後端部側に形成されるアンカバードバッ
クグラウンド領域を特定し、前記前景領域、前記背景領
域、並びに前記カバードバックグラウンド領域および前
記アンカバードバックグラウンド領域を含む前記混合領
域を示す領域情報を生成する領域情報生成ステップをさ
らに含むことを特徴とする請求項23に記載の記録媒
体。
28. The program according to claim 28, wherein the program comprises: a foreground area including a foreground object among the plurality of objects in the image data; a background area including a background object among the plurality of objects in the image data; A mixed background area in which the object is mixed, a covered background area formed on the front end side in the movement direction of the foreground object, and the mixed area, which is a rear end in the movement direction of the foreground object. Area information generation for identifying an uncovered background area formed on the side and generating area information indicating the foreground area, the background area, and the mixed area including the covered background area and the uncovered background area Characterized by further comprising a step 24. The recording medium according to claim 23.
【請求項29】 前記プログラムは、前記注目フレーム
の前記画素データと前記隣接フレームの前記画素データ
との間の相対的な動きを示す前記動きベクトルを検出す
る動きベクトル検出ステップをさらに含むことを特徴と
する請求項23に記載の記録媒体。
29. The program according to claim 29, further comprising a motion vector detecting step of detecting the motion vector indicating a relative motion between the pixel data of the frame of interest and the pixel data of the adjacent frame. The recording medium according to claim 23, wherein
【請求項30】 前記混合比検出ステップにおいて、複
数の前記オブジェクトが混合されている混合領域に属す
る、前記注目フレームの前記画素の前記混合比が検出さ
れることを特徴とする請求項23に記載の記録媒体。
30. The mixture ratio detection step, wherein the mixture ratio of the pixel of the frame of interest belonging to a mixture region where a plurality of the objects are mixed is detected. Recording medium.
【請求項31】 前記プログラムは、前記混合比を基
に、前記画素データから、複数の前記オブジェクトのう
ちの少なくとも前景となるオブジェクトを分離する分離
ステップをさらに含むことを特徴とする請求項23に記
載の記録媒体。
31. The program according to claim 23, wherein the program further comprises a separation step of separating at least a foreground object among the plurality of objects from the pixel data based on the mixture ratio. The recording medium according to the above.
【請求項32】 前記プログラムは、分離された前記前
景となるオブジェクトの動きボケの量を調整する動きボ
ケ調整ステップをさらに含むことを特徴とする請求項3
1に記載の記録媒体。
32. The program according to claim 3, further comprising a motion blur adjusting step of adjusting a motion blur amount of the separated foreground object.
2. The recording medium according to 1.
【請求項33】 前記プログラムは、前記混合比を基
に、所望の他のオブジェクトと分離された前記前景とな
るオブジェクトとを合成する合成ステップをさらに含む
ことを特徴とする請求項31に記載の記録媒体。
33. The program according to claim 31, wherein the program further includes a combining step of combining another desired object and the separated object serving as the foreground based on the mixture ratio. recoding media.
【請求項34】 時間積分効果を有する所定数の画素を
有する撮像素子によって取得された所定数の画素データ
からなる画像データを処理するコンピュータに、 現実世界では複数であるオブジェクトの前記画素データ
における混合状態を示す混合比の値の範囲に対応させ
て、複数の重みを生成し、生成した個々の前記重みを示
す重み付け情報を生成する重み付け情報生成ステップ
と、 前記画像データの注目フレームの各画素と、前記画像デ
ータの前記注目フレームに隣接する隣接フレームの各画
素との間で、前記重み付け情報で示される前記重みに基
づく重み付け差分を検出し、前記注目フレームに対応す
る重み付け差分画像データとして出力する重み付け差分
画像データ検出ステップと、 前記注目フレームの前記画素データと前記隣接フレーム
の前記画素データとの間の相対的な動きを示す動きベク
トルに応じて、前記注目フレームの前記重み付け差分画
像データと前記隣接フレームの前記重み付け差分画像デ
ータとの相対的な位置を合わせて、前記注目フレームの
前記重み付け差分画像データの各注目画素を中心とした
少なくとも1画素からなる注目ブロックと、前記隣接フ
レームの前記重み付け差分画像データの少なくとも1画
素からなる対応ブロックとの相関を演算し、重み付け差
分画像間相関データとして出力する重み付け差分画像間
相関データ検出ステップと、 前記重み付け差分画像間相関データの少なくとも1画素
からなる所定の単位毎に、前記重み付け差分画像データ
間の相関が最大となる前記重みを検出し、前記注目フレ
ームの前記単位に対応する前記混合比として出力する混
合比検出ステップとを実行させるプログラム。
34. A computer for processing image data consisting of a predetermined number of pixel data obtained by an image pickup device having a predetermined number of pixels having a time integration effect, wherein a computer mixes a plurality of objects in the real world with the pixel data. In correspondence with the value range of the mixture ratio indicating the state, a plurality of weights are generated, and a weighting information generating step of generating weighting information indicating the generated individual weights, and each pixel of the target frame of the image data, Detecting a weighted difference based on the weight indicated by the weighting information between each pixel of an adjacent frame adjacent to the frame of interest of the image data, and outputting the weighted difference image data corresponding to the frame of interest. Detecting the weighted difference image data; and determining the pixel data of the frame of interest and the adjacent frame. The relative positions of the weighted difference image data of the frame of interest and the weighted difference image data of the adjacent frame are aligned according to a motion vector indicating a relative movement between the pixel data of the frame and the pixel data of the frame. Calculating a correlation between a target block of at least one pixel centered on each target pixel of the weighted difference image data of the target frame and a corresponding block of at least one pixel of the weighted difference image data of the adjacent frame. Detecting the correlation data between the weighted difference images to be output as correlation data between the weighted difference images; and for each predetermined unit consisting of at least one pixel of the correlation data between the weighted difference images, the correlation between the weighted difference image data is maximum. And the mixture ratio corresponding to the unit of the frame of interest. And a mixing ratio detecting step of outputting the output.
【請求項35】 前記重み付け情報生成ステップにおい
て、それぞれ異なる複数の前記混合比に対応する、それ
ぞれ異なる複数の前記重みを示す前記重み付け情報が順
次生成され、 前記重み付け差分画像データ検出ステップにおいて、そ
れぞれ異なる複数の前記重みに対応して、前記重み付け
差分が検出され、前記注目フレームに対応する前記重み
付け差分画像データとして出力され、 前記重み付け差分画像間相関データ検出ステップにおい
て、それぞれ異なる複数の前記重みに対応して、前記相
関が演算され、重み付け差分画像間相関データとして出
力され、 前記混合比検出ステップにおいて、それぞれ異なる複数
の前記重みのうち、前記重み付け差分画像データ間の相
関が最大となる前記重みが検出され、前記注目フレーム
の前記所定の単位に対応する前記混合比として出力され
ることを特徴とする請求項34に記載のプログラム。
35. The weighting information generating step, wherein the weighting information indicating the plurality of different weights respectively corresponding to the plurality of different mixing ratios is sequentially generated, and the weighting information differs in the weighting difference image data detecting step. In response to the plurality of weights, the weighted difference is detected and output as the weighted difference image data corresponding to the frame of interest. Then, the correlation is calculated and output as weighted difference image correlation data. In the mixing ratio detection step, among the plurality of different weights, the weight at which the correlation between the weighted difference image data is maximum is Is detected and the predetermined 35. The program according to claim 34, wherein the program is output as the mixture ratio corresponding to a unit.
【請求項36】 前記重み付け差分画像間相関データ検
出ステップにおいて、前記相関として、前記注目フレー
ムの前記重み付け差分画像データの各注目画素を中心と
した少なくとも1画素からなる前記注目ブロックと、前
記隣接フレームの前記重み付け差分画像データの少なく
とも1画素からなる前記対応ブロックとの差分絶対値が
演算され、前記重み付け差分画像間相関データとして出
力されることを特徴とする請求項34に記載のプログラ
ム。
36. In the weighted difference image correlation data detecting step, the target block including at least one pixel centered on each target pixel of the weighted difference image data of the target frame as the correlation, and the adjacent frame 35. The program according to claim 34, wherein a difference absolute value between the weighted difference image data and the corresponding block including at least one pixel is calculated and output as the weighted difference image correlation data.
【請求項37】 前記重み付け差分画像間相関データ検
出ステップにおいて、前記相関として、前記注目フレー
ムの前記重み付け差分画像データの各注目画素を中心と
した少なくとも1画素からなる前記注目ブロックと、前
記隣接フレームの前記重み付け差分画像データの少なく
とも1画素からなる前記対応ブロックとの差分絶対値和
が演算され、前記重み付け差分画像間相関データとして
出力されことを特徴とする請求項34に記載のプログラ
ム。
37. The weighted difference image correlation data detecting step, wherein the correlation includes, as the correlation, the target block including at least one pixel centered on each target pixel of the weighted difference image data of the target frame; 35. The program according to claim 34, wherein a sum of absolute differences between the weighted difference image data and the corresponding block including at least one pixel is calculated and output as the weighted difference image correlation data.
【請求項38】 前記重み付け差分画像データ検出ステ
ップにおいて、前記注目フレームの前記画素が、複数の
前記オブジェクトが混合されている混合領域であって、
前景のオブジェクトの動き方向先端部側に形成されるカ
バードバックグラウンド領域に属する場合、前記注目フ
レームの各画素と、前記注目フレームの前の前記フレー
ムの各画素との間で、前記重み付け情報で示される前記
重みによる重み付け差分が検出され、前記注目フレーム
の前記画素が、複数の前記オブジェクトが混合されてい
る混合領域であって、前記前景のオブジェクトの動き方
向後端部側に形成されるアンカバードバックグラウンド
領域に属する場合、前記注目フレームの各画素と、前記
注目フレームの次の前記フレームの各画素との間で、前
記重み付け情報で示される前記重みによる重み付け差分
が検出されることを特徴とする請求項34に記載のプロ
グラム。
38. In the weighted difference image data detecting step, the pixel of the frame of interest is a mixed area where a plurality of the objects are mixed,
When belonging to the covered background area formed on the front end side in the movement direction of the foreground object, the weighting information indicates between each pixel of the frame of interest and each pixel of the frame before the frame of interest. The weighted difference due to the weight is detected, and the pixel of the frame of interest is a mixed area in which a plurality of the objects are mixed, and the uncovered pixel is formed on the rear end side in the movement direction of the foreground object. When belonging to a background area, between each pixel of the frame of interest and each pixel of the frame next to the frame of interest, a weight difference by the weight indicated by the weight information is detected. 35. The program according to claim 34, wherein
【請求項39】 前記画像データにおいて複数の前記オ
ブジェクトのうちの前景となるオブジェクトからなる前
景領域、前記画像データにおいて複数の前記オブジェク
トのうちの背景となるオブジェクトからなる背景領域、
複数の前記オブジェクトが混合されている混合領域であ
って、前景のオブジェクトの動き方向先端部側に形成さ
れるカバードバックグラウンド領域、および前記混合領
域であって、前記前景のオブジェクトの動き方向後端部
側に形成されるアンカバードバックグラウンド領域を特
定し、前記前景領域、前記背景領域、並びに前記カバー
ドバックグラウンド領域および前記アンカバードバック
グラウンド領域を含む前記混合領域を示す領域情報を生
成する領域情報生成ステップをさらに含むことを特徴と
する請求項34に記載のプログラム。
39. A foreground area formed of a foreground object of the plurality of objects in the image data, a background area formed of a background object of the plurality of objects in the image data,
A mixed area in which a plurality of the objects are mixed, a covered background area formed on the front end side in the movement direction of the foreground object, and the mixed area, a rear end in the movement direction of the foreground object Area information for specifying an uncovered background area formed on the side of the section and generating area information indicating the foreground area, the background area, and the mixed area including the covered background area and the uncovered background area 35. The program according to claim 34, further comprising a generating step.
【請求項40】 前記注目フレームの前記画素データと
前記隣接フレームの前記画素データとの間の相対的な動
きを示す前記動きベクトルを検出する動きベクトル検出
ステップをさらに含むことを特徴とする請求項34に記
載のプログラム。
40. The method of claim 40, further comprising detecting a motion vector indicating a relative motion between the pixel data of the frame of interest and the pixel data of the adjacent frame. The program according to claim 34.
【請求項41】 前記混合比検出ステップにおいて、複
数の前記オブジェクトが混合されている混合領域に属す
る、前記注目フレームの前記画素の前記混合比が検出さ
れることを特徴とする請求項34に記載のプログラム。
41. The mixture ratio detection step, wherein the mixture ratio of the pixels of the frame of interest belonging to a mixture region where a plurality of the objects are mixed is detected. Program.
【請求項42】 前記混合比を基に、前記画素データか
ら、複数の前記オブジェクトのうちの少なくとも前景と
なるオブジェクトを分離する分離ステップをさらに含む
ことを特徴とする請求項34に記載のプログラム。
42. The program according to claim 34, further comprising a separating step of separating at least a foreground object among the plurality of objects from the pixel data based on the mixture ratio.
【請求項43】 分離された前記前景となるオブジェク
トの動きボケの量を調整する動きボケ調整ステップをさ
らに含むことを特徴とする請求項42に記載のプログラ
ム。
43. The program according to claim 42, further comprising a motion blur adjusting step of adjusting an amount of motion blur of the separated foreground object.
【請求項44】 前記混合比を基に、所望の他のオブジ
ェクトと分離された前記前景となるオブジェクトとを合
成する合成ステップをさらに含むことを特徴とする請求
項42に記載のプログラム。
44. The program according to claim 42, further comprising a combining step of combining another desired object and the separated foreground object based on the mixture ratio.
JP2001169946A 2001-06-05 2001-06-05 Image processing apparatus and method, recording medium, and program Expired - Fee Related JP4596209B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2001169946A JP4596209B2 (en) 2001-06-05 2001-06-05 Image processing apparatus and method, recording medium, and program
KR1020037001610A KR100924401B1 (en) 2001-06-05 2002-05-24 Image processor
US10/343,675 US7139019B2 (en) 2001-06-05 2002-05-24 Image processing device
CNB028025261A CN1251148C (en) 2001-06-05 2002-05-24 Image processor
PCT/JP2002/005045 WO2002099753A1 (en) 2001-06-05 2002-05-24 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001169946A JP4596209B2 (en) 2001-06-05 2001-06-05 Image processing apparatus and method, recording medium, and program

Publications (3)

Publication Number Publication Date
JP2002366949A true JP2002366949A (en) 2002-12-20
JP2002366949A5 JP2002366949A5 (en) 2008-04-24
JP4596209B2 JP4596209B2 (en) 2010-12-08

Family

ID=19011955

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001169946A Expired - Fee Related JP4596209B2 (en) 2001-06-05 2001-06-05 Image processing apparatus and method, recording medium, and program

Country Status (1)

Country Link
JP (1) JP4596209B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003006656A (en) * 2001-06-22 2003-01-10 Sony Corp Image processor and method for processing image, recording medium and program
JP2003006650A (en) * 2001-06-20 2003-01-10 Sony Corp Device and method for processing image, recording medium and program
JP2003006653A (en) * 2001-06-26 2003-01-10 Sony Corp Image processor and method for processing image, recording medium and program
JP2003006651A (en) * 2001-06-22 2003-01-10 Sony Corp Image processor and method for processing image, recording medium and program
JP2003006658A (en) * 2001-06-19 2003-01-10 Sony Corp Image processor and method for processing image, recording medium and program
JP2003006652A (en) * 2001-06-25 2003-01-10 Sony Corp Image processor and method for processing image, recording medium and program
JP2003016446A (en) * 2001-06-27 2003-01-17 Sony Corp Image processor and image processing method, recording medium, and program

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0362692A (en) * 1989-04-27 1991-03-18 Sony Corp Moving compensation video signal standard converter
JPH07336688A (en) * 1994-06-06 1995-12-22 Nippon Hoso Kyokai <Nhk> Uncoveered area detecting method
JPH10164436A (en) * 1996-12-04 1998-06-19 Sony Corp Device and method for detecting contour and generating key signal
JP2000030040A (en) * 1998-07-14 2000-01-28 Canon Inc Image processor and computer readable recording medium
JP2001250119A (en) * 1999-12-28 2001-09-14 Sony Corp Device and method for signal processing and recording medium
JP2002190016A (en) * 2000-12-21 2002-07-05 Sony Corp Signal processor, method and recording medium
JP2002190028A (en) * 2000-12-21 2002-07-05 Sony Corp Device and method for processing signal, and recording medium
JP2002190015A (en) * 2000-12-21 2002-07-05 Sony Corp Device and method for processing image, and recording medium
JP2002373337A (en) * 2001-06-15 2002-12-26 Sony Corp Device and method for processing image, recording medium and program
JP2002373336A (en) * 2001-06-15 2002-12-26 Sony Corp Device and method for processing image, recording medium and program
JP2002373338A (en) * 2001-06-15 2002-12-26 Sony Corp Device and method for processing image, recording medium and program
JP2002373330A (en) * 2001-06-15 2002-12-26 Sony Corp Device and method for processing image, recording medium and program
JP2002373335A (en) * 2001-06-15 2002-12-26 Sony Corp Device and method for processing image, recording medium and program
JP2002373339A (en) * 2001-06-15 2002-12-26 Sony Corp Device and method for processing image, recording medium and program

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0362692A (en) * 1989-04-27 1991-03-18 Sony Corp Moving compensation video signal standard converter
JPH07336688A (en) * 1994-06-06 1995-12-22 Nippon Hoso Kyokai <Nhk> Uncoveered area detecting method
JPH10164436A (en) * 1996-12-04 1998-06-19 Sony Corp Device and method for detecting contour and generating key signal
JP2000030040A (en) * 1998-07-14 2000-01-28 Canon Inc Image processor and computer readable recording medium
JP2001250119A (en) * 1999-12-28 2001-09-14 Sony Corp Device and method for signal processing and recording medium
JP2002190016A (en) * 2000-12-21 2002-07-05 Sony Corp Signal processor, method and recording medium
JP2002190028A (en) * 2000-12-21 2002-07-05 Sony Corp Device and method for processing signal, and recording medium
JP2002190015A (en) * 2000-12-21 2002-07-05 Sony Corp Device and method for processing image, and recording medium
JP2002373337A (en) * 2001-06-15 2002-12-26 Sony Corp Device and method for processing image, recording medium and program
JP2002373336A (en) * 2001-06-15 2002-12-26 Sony Corp Device and method for processing image, recording medium and program
JP2002373338A (en) * 2001-06-15 2002-12-26 Sony Corp Device and method for processing image, recording medium and program
JP2002373330A (en) * 2001-06-15 2002-12-26 Sony Corp Device and method for processing image, recording medium and program
JP2002373335A (en) * 2001-06-15 2002-12-26 Sony Corp Device and method for processing image, recording medium and program
JP2002373339A (en) * 2001-06-15 2002-12-26 Sony Corp Device and method for processing image, recording medium and program

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003006658A (en) * 2001-06-19 2003-01-10 Sony Corp Image processor and method for processing image, recording medium and program
JP4596215B2 (en) * 2001-06-19 2010-12-08 ソニー株式会社 Image processing apparatus and method, recording medium, and program
JP2003006650A (en) * 2001-06-20 2003-01-10 Sony Corp Device and method for processing image, recording medium and program
JP4596216B2 (en) * 2001-06-20 2010-12-08 ソニー株式会社 Image processing apparatus and method, recording medium, and program
JP2003006651A (en) * 2001-06-22 2003-01-10 Sony Corp Image processor and method for processing image, recording medium and program
JP4596218B2 (en) * 2001-06-22 2010-12-08 ソニー株式会社 Image processing apparatus and method, recording medium, and program
JP2003006656A (en) * 2001-06-22 2003-01-10 Sony Corp Image processor and method for processing image, recording medium and program
JP4596217B2 (en) * 2001-06-22 2010-12-08 ソニー株式会社 Image processing apparatus and method, recording medium, and program
JP2003006652A (en) * 2001-06-25 2003-01-10 Sony Corp Image processor and method for processing image, recording medium and program
JP4596219B2 (en) * 2001-06-25 2010-12-08 ソニー株式会社 Image processing apparatus and method, recording medium, and program
JP4596220B2 (en) * 2001-06-26 2010-12-08 ソニー株式会社 Image processing apparatus and method, recording medium, and program
JP2003006653A (en) * 2001-06-26 2003-01-10 Sony Corp Image processor and method for processing image, recording medium and program
JP2003016446A (en) * 2001-06-27 2003-01-17 Sony Corp Image processor and image processing method, recording medium, and program
JP4596225B2 (en) * 2001-06-27 2010-12-08 ソニー株式会社 Image processing apparatus and method, recording medium, and program

Also Published As

Publication number Publication date
JP4596209B2 (en) 2010-12-08

Similar Documents

Publication Publication Date Title
JP4596202B2 (en) Image processing apparatus and method, and recording medium
JP4596220B2 (en) Image processing apparatus and method, recording medium, and program
JP4596224B2 (en) Image processing apparatus and method, recording medium, and program
JP4596222B2 (en) Image processing apparatus and method, recording medium, and program
KR100843815B1 (en) Image processing apparatus and method
JP4596221B2 (en) Image processing apparatus and method, recording medium, and program
JP4596203B2 (en) Image processing apparatus and method, recording medium, and program
JP4106874B2 (en) Image processing apparatus and method, and recording medium
KR20030022358A (en) Image processor
JP4840630B2 (en) Image processing apparatus and method, recording medium, and program
JP2003016452A (en) Device and method for image processing, recording medium, and program
JP2002373330A (en) Device and method for processing image, recording medium and program
JP4596215B2 (en) Image processing apparatus and method, recording medium, and program
JP4596209B2 (en) Image processing apparatus and method, recording medium, and program
JP4150949B2 (en) Image processing apparatus and method, recording medium, and program
JP4596217B2 (en) Image processing apparatus and method, recording medium, and program
JP4596218B2 (en) Image processing apparatus and method, recording medium, and program
JP4596225B2 (en) Image processing apparatus and method, recording medium, and program
KR100895744B1 (en) Image processing apparatus, method and recording medium, and image pickup apparatus

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080307

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080307

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100525

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100701

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100826

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100908

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131001

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees