JP4453716B2 - Still image synthesizing apparatus and still image synthesizing method from moving image - Google Patents
Still image synthesizing apparatus and still image synthesizing method from moving image Download PDFInfo
- Publication number
- JP4453716B2 JP4453716B2 JP2007125162A JP2007125162A JP4453716B2 JP 4453716 B2 JP4453716 B2 JP 4453716B2 JP 2007125162 A JP2007125162 A JP 2007125162A JP 2007125162 A JP2007125162 A JP 2007125162A JP 4453716 B2 JP4453716 B2 JP 4453716B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- frame
- motion vector
- still image
- still
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Images
Landscapes
- Studio Circuits (AREA)
- Television Signal Processing For Recording (AREA)
- Editing Of Facsimile Originals (AREA)
- Studio Devices (AREA)
- Image Processing (AREA)
Description
本発明は、動画像におけるフレーム画像から、動きのあった被写体部分の画像を抽出し静止画像に合成する静止画合成装置、及び動画像からの静止画合成方法に関する。 The present invention relates to a still image synthesizing apparatus that extracts an image of a moving subject portion from a frame image in a moving image and combines it with a still image, and a still image synthesizing method from a moving image.
従来、デジタルカメラにおいては、1回の撮影操作で被写体を複数回連続して撮影する連写撮影モードを備えたものがある。係る撮影モードは、動きのある被写体の画像を時系列的に記録することができるため、例えばゴルフスウィングや野球の投球動作等のフォーム分析を行う場合に用いられている。 Conventionally, some digital cameras have a continuous shooting mode in which a subject is continuously shot a plurality of times by one shooting operation. Such a shooting mode can record an image of a moving subject in time series, and is used, for example, when performing a form analysis such as a golf swing or a baseball pitching operation.
さらに、前述した連写撮影モードで記録した複数画像から、各画像について動きのあった被写体部分を切り出し、切り出した複数の被写体部分の画像を1枚の画像に合成することによって、被写体の動きを視覚的に把握できるようにする技術が本出願人において提案されるに至っている(下記特許文献1参照。)。
Furthermore, from the plurality of images recorded in the continuous shooting mode described above, the subject portion that has moved for each image is cut out, and the images of the plurality of subject portions that have been cut out are combined into a single image, thereby moving the subject movement. A technique for enabling visual recognition has been proposed by the present applicant (see
しかしながら、各フレーム画像から抽出した部分画像を静止画像に合成するとき、撮影時のカメラ揺れに起因する位置ズレを補償することができないという問題があった。However, when a partial image extracted from each frame image is combined with a still image, there is a problem in that it is not possible to compensate for a positional shift caused by camera shake during shooting.
本発明は、かかる従来の課題に鑑みてなされたものであり、最終的に得られる静止画像から撮影時のカメラ揺れの影響を排除して、生成する静止画像の品質を向上させることができる静止画合成装置、及び動画像からの静止画合成方法を提供することを目的とする。 The present invention has been made in view of such conventional problems, and eliminates the influence of camera shake at the time of shooting from a finally obtained still image and can improve the quality of a still image to be generated. An object of the present invention is to provide an image composition device and a method for synthesizing a still image from a moving image.
前記課題を解決するために請求項1の発明にあっては、動画像を取得する取得手段と、この取得手段により取得された前記動画像に含まれるフレーム画像中における各部分の動きベクトルに基づき、前記フレーム画像中の部分画像を選択する選択手段と、この選択手段により選択された部分画像を静止画像に合成する合成手段と、同一フレーム画像における各部分の動きベクトルに基づき、それらの部分の全体的な動きの傾向を示すフレーム動きベクトルを演算する演算手段と、この演算手段により演算されたフレーム動きベクトルに基づき、前記合成手段により静止画像に合成される部分画像の静止画像に対する合成位置を補正する補正手段とを備えたものとした。
In order to solve the above-mentioned problem, in the invention of
かかる構成においては、各フレーム画像から抽出した部分画像を静止画像に合成するとき、撮影時のカメラ揺れに起因する位置ズレを補償することができる。 In such a configuration, when a partial image extracted from each frame image is combined with a still image, it is possible to compensate for a positional shift caused by camera shake at the time of shooting.
また、請求項2の発明にあっては、前記選択手段は、前記フレーム画像中において動きベクトルが所定の閾値よりも大きい部分があるか否かを判断する動きベクトル判断手段を含み、前記動きベクトル判断手段により動きベクトルが所定の閾値よりも大きいと判断された部分の画像を部分画像として選択するものとした。 According to a second aspect of the present invention, the selection unit includes a motion vector determination unit that determines whether or not there is a portion in the frame image where the motion vector is larger than a predetermined threshold. The image of the part for which the motion vector is determined to be larger than the predetermined threshold by the determination means is selected as the partial image.
かかる構成においては、静止画像への合成に適した部分画像だけを抽出することができる。 In such a configuration, it is possible to extract only a partial image suitable for synthesis with a still image.
また、請求項3の発明にあっては、前記選択手段は、更に、前記動きベクトル判断手段により動きベクトルが所定の閾値よりも大きいと判断された部分の画像に隣接する部分の画像を部分画像として選択するものとした。
In the invention of
かかる構成においては、各フレーム画像における、本来抽出して合成すべき部分画像が欠落する率を減少させることができる。 In such a configuration, it is possible to reduce the rate at which partial images that should be extracted and combined in each frame image are missing.
また、請求項4の発明にあっては、前記選択手段は、更に、前記隣接する部分画像が所定の選択条件を満足するか否かを判断する選択条件判断手段を含み、前記選択条件判断手段により所定の選択条件を満足すると判断された前記隣接する部分画像を選択するものとした。
In the invention according to
かかる構成においては、静止画像に合成すべき部分画像を、各フレーム画像から精度よく抽出することができる。 In such a configuration, a partial image to be synthesized with a still image can be accurately extracted from each frame image.
また、請求項5の発明にあっては、フレーム画像中の部分画像の輪郭を抽出する輪郭抽出手段を備え、前記選択条件判断手段は、前記輪郭抽出手段により動きベクトルが所定の閾値よりも大きい部分の画像から抽出された輪郭と、前記輪郭抽出手段により前記隣接する部分画像から抽出された輪郭との間における連続性の度合が所定の閾値よりも大きいか否かを判断するものとした。
Further, in the invention of
かかる構成においては、各フレーム画像から、合成すべき部分画像をより一層精度よく抽出することができる。In such a configuration, a partial image to be synthesized can be extracted from each frame image with higher accuracy.
また、請求項6の発明にあっては、前記取得手段により取得された動画像を構成する複数のフレーム画像のうち任意のフレーム画像を指定する指定手段を備え、前記合成手段は、前記選択手段により選択された部分画像を、前記指定手段により指定されたフレーム画像に合成するものとした。 The invention according to claim 6 further comprises a designation unit that designates an arbitrary frame image among a plurality of frame images constituting the moving image acquired by the acquisition unit, and the synthesis unit includes the selection unit. The partial image selected by the above is synthesized with the frame image designated by the designation means.
また、請求項7の発明にあっては、前記合成手段により生成された合成静止画像を表示出力又は印刷出力する画像出力手段を備えたものとした。According to a seventh aspect of the invention, there is provided image output means for displaying or printing out the synthesized still image generated by the synthesizing means.
また、請求項8の発明にあっては、前記取得手段は、動画像を記憶するメモリを含み、前記メモリに記憶されている動画像を取得するものとした。In the invention according to claim 8, the acquisition means includes a memory for storing a moving image, and acquires the moving image stored in the memory.
また、請求項9の発明にあっては、前記取得手段は、被写体を撮像し、動画像を出力する撮像手段を含み、前記撮像手段から出力された動画像を取得するものとした。In the invention of
また、請求項10の発明にあっては、動画像を取得するステップと、前記取得された動画像に含まれるフレーム画像中における各部分の動きベクトルに基づき、前記フレーム画像中の部分画像を選択するステップと、前記選択された部分画像を静止画像に合成するステップと、同一フレーム画像における各部分の動きベクトルに基づき、それらの部分の全体的な動きの傾向を示すフレーム動きベクトルを演算するステップと、前記演算されたフレーム動きベクトルに基づき、前記静止画像に合成される部分画像の静止画像に対する合成位置を補正するステップとを含むことを特徴とする動画像からの静止画合成方法とした。According to the invention of
また、請求項11の発明にあっては、静止画合成装置が有するコンピュータに、動画像を取得する処理と、前記取得された動画像に含まれるフレーム画像中における各部分の動きベクトルに基づき、前記フレーム画像中の部分画像を選択する処理と、前記選択された部分画像を静止画像に合成する処理と、同一フレーム画像における各部分の動きベクトルに基づき、それらの部分の全体的な動きの傾向を示すフレーム動きベクトルを演算する処理と、前記演算されたフレーム動きベクトルに基づき、前記静止画像に合成される部分画像の静止画像に対する合成位置を補正する処理とを実行させるための静止画合成プログラムとした。Further, in the invention of claim 11, based on the processing of acquiring the moving image in the computer of the still image synthesizing apparatus and the motion vector of each part in the frame image included in the acquired moving image, A process of selecting a partial image in the frame image, a process of synthesizing the selected partial image with a still image, and an overall movement tendency of those parts based on a motion vector of each part in the same frame image A still image synthesis program for executing a process for calculating a frame motion vector indicating the position and a process for correcting a synthesis position of a partial image to be synthesized with the still image based on the calculated frame motion vector It was.
以上説明したように、本発明においては、各フレーム画像から抽出した部分画像を静止画像に合成するとき、撮影時のカメラ揺れに起因する位置ズレを補償することができるようにした。よって、最終的に得られる静止画像から撮影時のカメラ揺れの影響を排除することができ、生成する静止画像の品質を向上させることが可能となる。 As described above, in the present invention, when a partial image extracted from each frame image is combined with a still image, it is possible to compensate for a positional shift caused by camera shake during shooting. Therefore, it is possible to eliminate the influence of camera shake at the time of shooting from the finally obtained still image, and it is possible to improve the quality of the generated still image.
以下、本発明の一実施の形態を図にしたがって説明する。 Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
(第1の実施の形態)
図1は、本発明の各実施の形態に共通する静止画合成装置1を示すブロック図である。静止画合成装置1は、MPEG(Motion Picture Experts Group)規格に準拠する動画データ、すなわちフレーム間予測符号化技術を用いて符号化された動画像から、被写体の動きが視覚的に把握可能な静止画を生成する機能を有するものであり、画像データ取込み部2と、ワークメモリ3、操作部4、画像処理部5、モニタ8、プリンタ9とを備えている。
(First embodiment)
FIG. 1 is a block diagram showing a still
ここで、MPEG方式により記録されている動画像の概略について説明する。すなわち、MPEG方式においては、図11に示したように動画を構成する一連のフレーム画像F1〜Fnに、Iピクチャ(Intra Picture、フレーム内符号化画像)と、Pピクチャ(Predicitive Picture、順方向予測符号化画像)及びBピクチャ(Bidirectionally Picture、双方向予測符号化画像)とが混在している。Iピクチャはフレーム内符号化により記録されている完全な画像であるが、P、Bピクチャはフレーム間予測符号化により記録されている画像であって、図12に示したように所定数に分割されたマクロブロック毎に、動きベクトル(MV)と予測誤差によって表現されており、それらと共に、先に復号されている他のフレーム画像(Pピクチャでは過去のフレーム画像、Bピクチャについては過去又は未来のフレーム画像)を復元用予測画像を用いて復元されるようになっている。動きベクトルは、過去(又は未来)のフレームとの間における被写体が動いた方向と距離とを示すデータであり、予測誤差は、過去(又は未来)のフレームとの間における画素値の差分情報をDCT(Discrete Cosine Transform)係数により量子化したデータである。つまり、PピクチャとBピクチャとは、いずれかのIピクチャを起点とする一連の再生処理を経なければ生成し得ない画像である。 Here, an outline of a moving image recorded by the MPEG system will be described. That is, in the MPEG system, as shown in FIG. 11, a series of frame images F1 to Fn, an I picture (Intra Picture, intra-frame encoded image), and a P picture (Predictive Picture, forward prediction) are included. (Encoded image) and B picture (Bidirectionally Picture, bi-directional predictive encoded image) are mixed. The I picture is a complete picture recorded by intraframe coding, while the P and B pictures are pictures recorded by interframe predictive coding and are divided into a predetermined number as shown in FIG. Each of the macroblocks is represented by a motion vector (MV) and a prediction error, and together with the other frame images (the past frame image in the P picture, the past or the future in the B picture). Frame image) is restored using the restoration prediction image. The motion vector is data indicating the direction and distance that the subject has moved from the past (or future) frame, and the prediction error is the difference information of the pixel value from the past (or future) frame. This is data quantized by a DCT (Discrete Course Transform) coefficient. That is, the P picture and the B picture are images that cannot be generated unless a series of reproduction processes starting from one of the I pictures.
一方、前述した画像データ取込み部2は、上述した構成の動画データを取り込む部分であり、例えばデジタルカメラやデジタルビデオカメラに設けられた動画エンコーダ、或いは動画データが蓄積されたハードディスク等の記録媒体や、動画データが蓄積されたビデオCDが装着されるディスクドライブ等である。ワークメモリ3は、動画像の各フレームデータを記憶したり、それに基づき後述する方法により作成される静止画データを記憶するDRAM等である。操作部4はユーザーインターフェイスとして各種の操作キーから構成されており、動画像のどの部分から静止画を合成するかを指示するための操作キーが含まれる。
On the other hand, the image
画像処理部5は、動画データをデコードするデコード部6と、デコードしたデータに基づき静止画を合成する画像合成部7から構成される。図2は、前記画像処理部5の詳細を示すブロック図であり、前記デコード部6は、第1及び第2の可変長復号部6a,6bと、逆量子化部6c、逆DCT部6d、動き補償部6e、フレームメモリ6fを備えている。また、前記画像合成部7は、採用判定部7aと合成処理部7bとを備えており、採用判定部7aが本発明の選択手段として機能する。合成処理部7bは、静止画データの生成過程で使用されるスチルバッファ71を備えるとともに本発明の合成手段として機能する。
The
モニタ8は、画像処理部5においてデーコードされた動画像や合成された静止画像を表示し、プリンタ9は合成された静止画を印刷する。
The monitor 8 displays the moving image data decoded by the
次に、以上の構成からなる静止画合成装置1の動作を説明する。図3は、例えば記録されている任意の動画像から静止画像を合成するときの動作を示すフローチャートである。
Next, the operation of the still
静止画合成装置1は、画像データ取込み部2から指定された動画データを読み出し(ステップS1)、動画像を構成する複数のフレーム画像F1〜Fn(図11)から、ユーザーに、所望するスタートフレーム、ベースフレーム、エンドフレームを指定させる(ステップS2)。スタートフレームは静止画像を合成するとき最初に処理対象となるフレーム、エンドフレームは最後に処理対象となるフレームであり、ベースフレームは、スタートフレームとエンドフレームとの間のフレームに含まれる部分画像を合成するとき元(背景)となるフレーム画像である。なお、ベースフレームとして指定させるフレーム画像の種類はI、P、Bピクチャのいずれであってもよく、また、動画像とは別に記録されている任意の静止画像や空白(単色で塗りつぶされた画像)を指定可能としてもよい。
The still
また、上記各フレームの指定は、例えば動画像を先頭から再生してモニタ8に表示させながら所望するフレーム画像を選択させることにより行う。その際、前記画像処理部5においては、前記デコード部6が以下の動作で各フレーム画像を復元する。なお、以下の説明では、便宜上、動画像を構成する複数のフレーム画像F1〜Fnが、IピクチャとPピクチャのみであることを前提とする。
The designation of each frame is performed, for example, by selecting a desired frame image while reproducing a moving image from the top and displaying it on the monitor 8. At that time, in the
先ず、先頭のフレーム画像F1つまりIピクチャを復元するときには、ブロック毎に、第1の可変長復号部6aによるDTC係数の復号化、逆量子化部6cによる逆量子化処理、逆DCT部6dによる逆DCT演算を順に行って対象ブロックの画像(以下、部分画像という。)を復元する。そして、それを前述したワークメモリ3へ出力する一方、フレームメモリ6fにも蓄積する。これを全てのブロックに対して行うことにより、ワークメモリ3及びフレームメモリ6fにフレーム画像F1を生成する。
First, when restoring the first frame image F1, that is, an I picture, for each block, decoding of the DTC coefficient by the first variable
さらに、2枚目以降のフレーム画像つまりPピクチャの復元に際しては、DTC係数と動きベクトルMV(図12参照)とを分離した後、各々を第1及び第2の可変長復号部6a,6bによって復号し、復号したDTC係数に対して逆量子化処理、逆DCT演算を順に行い予測誤差の画像データを取得する。また、動き補償部6eによって、フレームメモリ6fに蓄積されている画像を復元用予測画像とし、そこから、復号した動きベクトルMVによって表されるブロック部分の画像データを取り出し、それを前記予測誤差の画像データに加えることにより部分画像を復元する。そして、それを前述したワークメモリ3へ出力する一方、フレームメモリ6fにも蓄積する。これを全てのブロックに対して行うことにより、ワークメモリ3にフレーム画像が生成され、かつ同一の画像がフレームメモリ6fの新たな復元用予測画像として更新される。
Further, when restoring the second and subsequent frame images, that is, P pictures, after separating the DTC coefficient and the motion vector MV (see FIG. 12), the first and second variable
一方、前述したスタートフレーム、ベースフレーム、エンドフレームが指定されたら、指定されたベースフレームの静止画データを合成処理部7bのスチルバッファ71に記憶する(ステップS3)。なお、前述したように動画像を先頭から再生してモニタ8に表示させてベースフレームを指定させる場合には、その時点で記憶させてもよい。
On the other hand, when the above-mentioned start frame, base frame, and end frame are designated, the still picture data of the designated base frame is stored in the still buffer 71 of the
引き続き、動画像における対象フレーム(当初はスタートフレーム)を選択し(ステップS4)、さらにそのフレームにおける復元対象となる対象ブロックを選択し(ステップS5)、その部分画像を、前述した通常の動画再生時と同様の手順で復元する。またその間には、前記採用判定部7aにおいて動きベクトルMVを抽出し(ステップS6)、それが予め決められている閾値よりも大きいか否かを判断する(ステップS7)。ここで動きベクトルMVが閾値よりも大きければ(ステップS7でYES)、合成処理部7bにおいてスチルバッファ71に記憶されているベースフレームの画像(静止画像)に、復元した部分画像を合成する(ステップS8)。
Subsequently, a target frame (initially a start frame) in the moving image is selected (step S4), a target block to be restored in that frame is further selected (step S5), and the partial image is reproduced as the above-described normal moving image reproduction. Restore in the same way as time. In the meantime, the
また、動きベクトルMVが閾値以下であれば(ステップS7でNO)、上記合成処理をスキップして、次の対象ブロックについてもステップS6〜S8の処理を行う。やがて、全てのブロックに対する処理が終了したら(ステップS9でYES)、引き続き、対象フレームに次のフレームを選択した後(ステップS4)、ステップS5〜S9の処理を繰り返す。つまり、前記スチルバッファ71に記憶している画像に、各フレーム画像から抽出された部分画像であって、前のフレーム画像と比べて一定以上の動きがあった被写体部分の画像である部分画像だけを復号順に合成する。
If the motion vector MV is equal to or less than the threshold (NO in step S7), the above synthesis process is skipped, and the processes in steps S6 to S8 are performed for the next target block. When the processing for all the blocks is finished (YES in step S9), the next frame is selected as the target frame (step S4), and then the processing of steps S5 to S9 is repeated. That is, only the partial image extracted from each frame image and the image of the subject portion that has moved more than a certain amount compared to the previous frame image is included in the image stored in the still
そして、エンドフレームまでの全てのフレームに対する処理が終了したら(ステップS10でYES)、その時点で、スチルバッファ71に記憶されている合成画像のデータ、つまり被写体の動きを視覚的に把握することができる静止画像のデータをワークメモリ3へ出力して合成処理を終了する。なお、ワークメモリ3へ出力された静止画像は、その後、モニタ8によって表示されるとともに、ユーザーの指示に応じてプリンタ9により印刷される。
When the processing for all the frames up to the end frame is completed (YES in step S10), at that time, the synthetic image data stored in the still buffer 71, that is, the movement of the subject can be visually grasped. The data of the still image that can be output is output to the
以上のように、本実施の形態においては、動画像から、被写体の動きが視覚的に把握可能な静止画像を生成するとき、スタートフレームからエンドフレームまでの処理対象とする複数のフレーム画像から、必要な部分画像だけを動きベクトルに基づき選択的に抽出して静止画像に合成するため、異なるフレーム画像同士を比較して動きのあった被写体部分の部分画像を特定し、特定した部分画像を別途切り出する場合に比べその処理に無駄がない。よって、静止画像の生成を効率的に行うことができる。 As described above, in the present embodiment, when generating a still image from which a motion of a subject can be visually grasped from a moving image, from a plurality of frame images to be processed from a start frame to an end frame, In order to selectively extract only necessary partial images based on motion vectors and combine them with still images, compare partial frame images to identify partial images of subject parts that have moved, and specify the specified partial images separately Compared to the case of cutting out, the processing is not wasteful. Therefore, it is possible to efficiently generate a still image.
また、本実施の形態では、部分画像(ブロック毎の画像)の抽出処理、及び静止画像への合成処理を、処理対象とする複数のフレーム画像の復元(復号)処理を行う間にそれと並行して行うため、前述したように動画像の再生に使用するデコード部6を静止画像合成時に流用することができる。したがって、静止画合成装置1の構成が簡単であり、それを容易かつ低コストで実施することができる。
In the present embodiment, the extraction process of partial images (images for each block) and the synthesis process to a still image are performed in parallel with the restoration (decoding) process of a plurality of frame images to be processed. Therefore, as described above, the decoding unit 6 used for reproducing a moving image can be used for still image synthesis. Therefore, the configuration of the still
(第2の実施の形態)
次に、本発明の第2の実施の形態を説明する。第1の実施の形態では、各フレーム画像から、動きベクトルが閾値よりも大きいブロックの画像を抽出して静止画像に合成するものとしたが、本実施の形態は、動画像を構成する各フレーム画像が、例えば図4に示したように横9×縦6のブロック(マクロブロック)に分割されて符号化されているとき、動きベクトルが閾値よりも大きいブロック(同図に黒塗りで示したブロック)の画像(部分画像)と共に、それと隣接するブロック(斜線及び網掛けで示したブロック)の画像(他の部分画像)も静止画像として合成するものである。
(Second Embodiment)
Next, a second embodiment of the present invention will be described. In the first embodiment, an image of a block having a motion vector larger than the threshold is extracted from each frame image and synthesized with a still image. However, in the present embodiment, each frame constituting a moving image For example, when an image is divided and encoded into 9 × 6 blocks (macroblocks) as shown in FIG. 4, a block whose motion vector is larger than a threshold (shown in black in the figure) In addition to the image (partial image) of the block, the image (the other partial image) of the block adjacent thereto (the block indicated by hatching and hatching) is also synthesized as a still image.
図5は、本実施の形態の静止画合成装置における画像処理部5の詳細を示した図2に対応するブロック図である。本実施の形態では、前述した採用判定部7aに採用判定バッファ72が設けられている。この採用判定バッファ72は、復号処理中の対象フレームの全ブロックについて、それが静止画像として合成すべきブロックか否かの判定結果を記憶するためのバッファ(一時記憶用のメモリ等)であって、この採用判定バッファ72にはブロック毎に判定結果が記憶されるよう構成されている。
FIG. 5 is a block diagram corresponding to FIG. 2 showing the details of the
そして、本実施の形態においては、第1の実施の形態と同様に、スタートフレームからエンドフレームまでの対象フレームを復号する間に、採用判定バッファ72が、対象ブロック毎に動きベクトルが閾値よりも大きいか否かを判別し、閾値よりも大きいときには、そのブロックの画像を合成すべきものであることを示す採用フラグを採用判定バッファ72に記憶する。同時に、そのブロックに隣接する他のブロックについても採用フラグを記憶する。
In the present embodiment, as in the first embodiment, while decoding the target frame from the start frame to the end frame, the
図6は、係る採用フラグの記憶処理動作の内容を示す説明図であって、同図において、「ブロック番号」は採用判定バッファ72内でブロック毎に付与されている、同一フレーム内での復号順(左から右、上から下へ向かう順)と一致する番号を、「動きベクトル」はブロック毎の動きベクトルを、「採用判定」は前記採用フラグの有無、及びそれが記憶された原因を示している。また「採用判定」の「×」は採用フラグが記録されていないことを示し、「◎」はそのブロックにおける動きベクトルが閾値よりも大きいことに起因して採用フラグが記録されたことを示し、かつ「○」はそのブロックが、それと隣接する他のブロックの動きベクトルが閾値よりも大きいことに起因して採用フラグが記録されたことを示している。
FIG. 6 is an explanatory diagram showing the contents of the storage processing operation of the adoption flag. In FIG. 6, “block number” is assigned to each block in the
また、図示した例は、動きベクトルの閾値が例えば(5,5)である場合を示したものであって、この場合においては、ブロック番号21,22,24のブロックの動きベクトルが(2,1)、ブロック番号23のブロック(ここでは、図4に黒塗りで示したブロックである)の動きベクトルが(10,−12)であるため、上記の判別、及び判定の記憶処理が繰り返し行われる間、ブロック番号22のブロックが復号対象となった時点まで、ブロック番号21,22の採用判定は「×」となるが、ブロック番号23のブロックが復号対象となった時点で、その採用判定が「◎」となると同時に、それと隣接するブロック番号22,24のブロックの採用判定が「○」となることとなる。なお、図6には示さないが、ブロック番号13〜15,31〜33のブロックの採用判定も「○」となる。
The illustrated example shows a case where the threshold value of the motion vector is, for example, (5, 5). In this case, the motion vector of the block with the
そして、全てのブロックについて上記の判別、及び判定の記憶が終了したら、その時点で、採用判定バッファ72において採用フラグが記憶されている(図6で採用判定が「◎」又は「○」である)ブロックの情報が採用判定部7aから前記合成処理部7bへ送られる。さらに、それに応答して合成処理部7bが、それらのブロックに対応する複数の部分画像をフレームメモリ6fから読み出すとともに、それらを内部のスチルバッファ71に記憶されている静止画像に順に合成する。
When the above determination and storage of the determination are completed for all the blocks, the adoption flag is stored in the
それ以後、対象フレームを順に切り換えながら、各フレーム画像について前述と同様の処理を実施する。そして、エンドフレームまでの全てのフレームに対する処理が終了したら、第1の実施の形態と同様、その時点で、スチルバッファ71に記憶されている合成画像のデータ、つまり被写体の動きを視覚的に把握することができる静止画像のデータをワークメモリ3へ出力して合成処理を終了する。
Thereafter, the same processing as described above is performed for each frame image while sequentially switching the target frames. When all the frames up to the end frame have been processed, the synthesized image data stored in the still buffer 71, that is, the movement of the subject is visually grasped at that time, as in the first embodiment. Still image data that can be output is output to the
ここで本実施の形態においては、スタートフレームからエンドフレームまでの各フレーム画像から、動きベクトルが閾値よりも大きいブロックの画像(部分画像)と共に、その周囲のブロックの画像(他の部分画像)も抽出し、それらの部分画像を静止画像として合成するため、第1の実施の形態と比べ以下のような効果を得ることができる。 Here, in the present embodiment, from each frame image from the start frame to the end frame, an image of a block having a motion vector larger than the threshold (partial image) and an image of the surrounding blocks (other partial images) are also included. Since they are extracted and synthesized as still images, the following effects can be obtained compared to the first embodiment.
すなわち動画像の各フレーム間における動き補償の有無は動画が符号化された時点で適宜決められているものであるため、動きのある被写体部分の全て、つまり被写体部分が含まれる全てのブロックについて動き補償が行われているとは限らない。そのため、動きベクトルが閾値よりも大きいブロックだけを静止画像に合成する場合には、動きのある被写体部分が含まれているにもかかわらず、合成されない部分画像が存在することとなる。一方、あるブロックの画像が、動きがあった被写体部分を構成しているときには、それと隣接するブロックの画像が上記被写体部分を構成している場合が多い。したがって、本実施の形態によれば、本来抽出して合成すべき部分画像が欠落する率を減少させることができるため、最終的に生成する静止画像に、動きのある被写体部分をより忠実に反映させることができる。 In other words, the presence or absence of motion compensation between each frame of the moving image is determined as appropriate at the time when the moving image is encoded. Therefore, the motion of all moving subject portions, that is, all blocks including the subject portion is determined. Compensation is not always done. For this reason, when only a block having a motion vector larger than the threshold value is combined with a still image, there is a partial image that is not combined although a moving subject portion is included. On the other hand, when an image of a certain block constitutes a moving subject part, an image of a block adjacent to the block often constitutes the subject part. Therefore, according to the present embodiment, it is possible to reduce the rate of missing partial images that should be originally extracted and synthesized, so that the moving subject portion is more faithfully reflected in the finally generated still image. Can be made.
また、第1の実施の形態と同様、異なるフレーム画像同士を比較して動きのあった被写体部分の部分画像を特定し、特定した部分画像を別途切り出する場合に比べその処理に無駄がなく、静止画像の生成を効率的に行うことができ、また、動画像の再生に使用するデコード部6を静止画像合成時においてもそのまま使用することができるため、静止画合成装置1の構成が簡単であり、それを容易に実現することができる。
In addition, as in the first embodiment, compared with different frame images, the partial image of the subject part that has moved is identified, and the process is less wasteful than when the identified partial image is cut out separately, Still image generation can be performed efficiently, and the decoding unit 6 used for moving image reproduction can be used as it is even during still image synthesis, so the configuration of the still
(第3の実施の形態)
次に、本発明の第3の実施の形態を説明する。第2の実施の形態では、動きベクトルが閾値よりも大きいブロックに隣接するブロックの画像を全て静止画像に合成するものとしたが、本実施の形態は、隣接するブロックのうち予測誤差の大きいものだけを静止画像に合成するものである。
(Third embodiment)
Next, a third embodiment of the present invention will be described. In the second embodiment, all the images of the blocks adjacent to the block whose motion vector is larger than the threshold value are combined with the still image. However, in this embodiment, the adjacent block having a large prediction error is used. Is synthesized into a still image.
図7は、本実施の形態の静止画合成装置における画像処理部5の詳細を示した図5に対応するブロック図である。本実施の形態では第2の実施の形態と異なり、逆DCT部6dにおいて復元された予測誤差(画素値のデータ)を採用判定部7aに入力するとともに、採用判定バッファ72には、前述した判定結果に加え予測誤差のデータがブロック毎に記憶されるよう構成されている。
FIG. 7 is a block diagram corresponding to FIG. 5 showing details of the
そして、本実施の形態においても、スタートフレームからエンドフレームまでの対象フレームを復号する間、採用判定部7aは、対象ブロック毎に動きベクトルが閾値よりも大きいか否かを判別し、閾値よりも大きいときには、そのブロックの画像を合成すべきものであることを示す採用フラグを採用判定バッファ72に記憶する。さらに、対象ブロックの予測誤差も採用判定バッファ72に記憶する。やがて全てのブロックについて上記の判別、及び判定の記憶が終了したら、その時点で、採用フラグが記憶されているブロックと隣接するブロックのうち、記憶されている予測誤差が予め決められている閾値よりも大きいブロックについて新たに採用フラグを記憶する。なお、予測誤差の大きさは、例えば当該ブロック内の全ての画素値の合計値や平均値である。
Also in the present embodiment, while decoding the target frame from the start frame to the end frame, the
図8は、上記の採用フラグの記憶処理動作の内容を示した、図6に対応する説明図であって、図示したように本実施の形態では、動きベクトルが閾値よりも大きかったブロック番号23と隣接するブロック番号22,24のブロックのうち、予測誤差が小さいブロック番号22のブロックについては採用判定が「×」となり、予測誤差が大きいブロック番号24のブロックについてはブロックの採用判定は「○」となる。
FIG. 8 is an explanatory diagram corresponding to FIG. 6 showing the contents of the above-described storage processing operation of the adoption flag. As shown in the figure, in this embodiment, the
そして、全てのブロックについて上記の判別、及び判定の記憶が終了したら、その時点で、採用判定バッファ72において採用フラグが記憶されている(図8で採用判定が「◎」又は「○」である)ブロックの情報が採用判定部7aから前記合成処理部7bへ送られる。さらに、それに応答して合成処理部7bが、それらのブロックに対応する複数の部分画像をフレームメモリ6fから読み出すとともに、それらを内部のスチルバッファ71に記憶されている静止画像に順に合成する。なお、これ以後の動作については第2の実施の形態と同様である。
When the above determination and storage of the determination are completed for all the blocks, the adoption flag is stored in the
以上のように本実施の形態においては、スタートフレームからエンドフレームまでの各フレーム画像から、動きベクトルが閾値よりも大きいブロックの画像と共に、それと隣接するブロックの画像のうちで予測誤差が閾値よりも大きなものを抽出し、それらの部分画像を静止画像として合成するため、以下のような効果を得ることができる。 As described above, in the present embodiment, the prediction error is larger than the threshold value in each of the frame images from the start frame to the end frame together with the image of the block whose motion vector is larger than the threshold value. Since the large ones are extracted and the partial images are synthesized as still images, the following effects can be obtained.
すなわち、前述したように動きベクトルが閾値よりも大きいブロックだけを静止画像に合成する場合には、動きのある被写体部分が含まれているにもかかわらず、抽出されず合成されないブロックの画像(部分画像)が存在することとなる。一方、あるブロックの画像が、動きがあった被写体部分を構成しているときには、それと隣接するブロックの画像が上記被写体部分を構成している場合が多く、しかも予測誤差が大きいブロックについてはその確率が極めて高い。したがって、第2の実施の形態に比べると、合成すべき部分画像の抽出精度が高く、ベースフレームとして指定された静止画像に、動きのある被写体部分を正確に合成することができる。 That is, as described above, when only a block having a motion vector larger than the threshold is combined with a still image, an image of a block that is not extracted and not combined even though a moving subject portion is included (part Image) exists. On the other hand, when an image of a certain block constitutes a moving subject part, the image of a block adjacent to the block often constitutes the subject part, and the probability of a block having a large prediction error. Is extremely high. Therefore, compared with the second embodiment, the extraction accuracy of the partial image to be combined is high, and the moving subject portion can be accurately combined with the still image specified as the base frame.
また、第1及び第2の実施の形態と同様、異なるフレーム画像同士を比較して動きのあった被写体部分の部分画像を特定し、特定した部分画像を別途切り出する場合に比べその処理に無駄がなく、静止画像の生成を効率的に行うことができ、また、動画像の再生に使用するデコード部6を静止画像合成時においてもそのまま使用することができるため、静止画合成装置の構成が簡単であり、それを容易に実現することができる。 Also, as in the first and second embodiments, compared to different frame images, a partial image of a subject portion that has moved is identified, and the processing is wasteful compared to a case where the identified partial image is cut out separately. Therefore, the still image can be generated efficiently, and the decoding unit 6 used for moving image reproduction can be used as it is even during still image synthesis. It is simple and can be realized easily.
(第4の実施の形態)
次に、本発明の第4の実施の形態を説明する。第3の実施の形態では、前記採用判定部7aが、予測誤差が所定の閾値よりも大きいことを条件(選択条件)として、動きベクトルが閾値よりも大きいブロックに隣接したブロックの合成の可否を判定するものとしたが、本実施の形態は、上記条件に、そのブロックの画像が、動きベクトルが閾値よりも大きいブロックの画像との間で輪郭に連続性があることを加えたものである。
(Fourth embodiment)
Next, a fourth embodiment of the present invention will be described. In the third embodiment, the
図9は、本実施の形態の静止画合成装置における画像処理部5の詳細を示す、第3の実施の形態で図7に示したものに対応するブロック図である。本実施の形態では第3の実施の形態と異なり、前記フレームメモリ6fに記憶されている復元用予測画像のデータが入力するとともに、入力した画像から輪郭を抽出する本発明の輪郭抽出手段である輪郭抽出部7cを有しており、そこで抽出された輪郭のデータが採用判定部7aへ出力される構成となっている。
FIG. 9 is a block diagram showing details of the
そして、本実施の形態においても、スタートフレームからエンドフレームまでの対象フレームを復号する間、採用判定部7aは、対象ブロック毎に動きベクトルが閾値よりも大きいブロックについて、その画像が合成すべきものであることを示す採用フラグを採用判定バッファ72に記憶する。また、全てのブロックについて上記の判別、及び判定フラグの記憶が終了したら、その時点で、採用フラグが記憶されているブロックと隣接するブロックのうち、記憶されている予測誤差が予め決められている閾値よりも大きいブロックについて新たに採用フラグを記憶する。
Also in this embodiment, while decoding the target frame from the start frame to the end frame, the
さらに、本実施の形態では、採用判定部7aが、採用フラグが記憶されているブロックと、それに隣接する各々のブロック(但し、採用フラグが記憶されているものは除く)について、互いの画像における輪郭をフレーム画像における位置関係に即して所定の方法により比較し、両者間における輪郭の連続性を数値化する。そして、隣接する各々のブロックに前記連続性が所定レベルに達しているものがあれば、そのブロックについて、採用判定バッファ72に新たに採用フラグを記憶する。
Further, in the present embodiment, the
以後は、第3の実施の形態と同様に、採用判定バッファ72において採用フラグが記憶されているブロックの情報が採用判定部7aから合成処理部7bへ送られ、それに基づき合成処理部7bによって複数の部分画像がフレームメモリ6fから読み出されるとともに、それが内部のスチルバッファ71に記憶されている静止画像に順に合成されることとなる。
Thereafter, as in the third embodiment, the information of the block in which the adoption flag is stored in the
以上のように本実施の形態においては、動きベクトルが閾値よりも大きいブロックに隣接したブロックの合成の可否を判定する際の条件として、そのブロックの画像が、動きベクトルが閾値よりも大きいブロックの画像との間で輪郭に一定以上の連続性があることを追加したことから、第3の実施の形態に比べ、各フレーム画像から合成すべき部分画像をより一層精度よく抽出することができる。その結果、ベースフレームとして指定された静止画像に、動きのある被写体部分だけを確実に合成することができる。 As described above, in the present embodiment, as a condition for determining whether or not a block adjacent to a block having a motion vector larger than the threshold value can be combined, the image of the block is a block having a motion vector larger than the threshold value. Since it has been added that the contour has a certain continuity with the image, the partial image to be synthesized can be extracted from each frame image with higher accuracy than in the third embodiment. As a result, only a moving subject portion can be reliably combined with a still image designated as a base frame.
また、第1〜第3の実施の形態と同様、異なるフレーム画像同士を比較して動きのあった被写体部分の部分画像を特定し、特定した部分画像を別途切り出する場合に比べその処理に無駄がなく、静止画像の生成を効率的に行うことができ、また、動画像の再生に使用するデコード部6を静止画像合成時においてもそのまま使用することができるため、静止画合成装置の構成が簡単であり、それを容易に実現することができる。 Also, as in the first to third embodiments, compared to different frame images, a partial image of a subject portion that has moved is specified, and the processing is wasteful compared to a case where the specified partial image is cut out separately. Therefore, the still image can be generated efficiently, and the decoding unit 6 used for moving image reproduction can be used as it is even during still image synthesis. It is simple and can be realized easily.
(第5の実施の形態)
次に、本発明の第5の実施の形態を説明する。本実施の形態は、スタートフレームからエンドフレームまでの対象フレームを復号する間に、第3の実施の形態と同様の方法により抽出した部分画像を静止画像に合成するとき、その位置を補正するものである。
(Fifth embodiment)
Next, a fifth embodiment of the present invention will be described. In this embodiment, the position is corrected when a partial image extracted by the same method as in the third embodiment is combined with a still image while decoding the target frame from the start frame to the end frame. It is.
図10は、本実施の形態の静止画合成装置における画像処理部5の詳細を示す、第3の実施の形態で図7に示したものに対応するブロック図である。本実施の形態では第3の実施の形態と異なり、前記画像合成部7(図1)が、採用判定部7aと合成処理部7bに加え、フレーム動きベクトル推定部7dと、本発明の演算手段として機能するフレーム動きベクトル累積部7eとを備えており、フレーム動きベクトル推定部7dには、第2の可変長復号部6bで復号された対象ブロックの動きベクトルが入力する構成となっている。
FIG. 10 is a block diagram showing details of the
そして、本実施の形態においては、対象フレームを復号する間、画像合成部7が以下のように動作する。すなわち採用判定部7aは第3の実施の形態で説明した手順で、同一フレームの全ブロックについて、その画像を静止画像として合成すべきか否かの判定を行うとともに、その判定結果を採用判定バッファ72に記憶する。一方、それと並行してフレーム動きベクトル推定部7dは、入力した各ブロックの動きベクトルについて、その内容別に出現回数をカウントする統計的処理を行い、最終的な処理結果をフレーム動きベクトル累積部7eへ出力する。フレーム動きベクトル累積部7eは、入力した動きベクトルの内容別の出現回数(ブロック数)に基づき、各ブロックにおける全体的な動きの傾向を示すフレーム動きベクトルを演算し、それを合成処理部7bへ出力する。
In this embodiment, the
前記フレーム動きベクトルの演算は、最も出現回数が多い動きベクトルについて、出現回数が決められた数以上で、かつその動きベクトルが決められた閾値(合成するブロックの判定に用いられるものとは異なる閾値である。)よりも小さいといった決定条件を満たせば、その動きベクトルを前記フレーム動きベクトルとして決定し、上記決定条件を満たさなければ、フレーム動きベクトルの内容を動き無しを示すもの(0,0)とする演算である。 In the calculation of the frame motion vector, the motion vector having the highest number of appearances is equal to or more than the number of appearances and the threshold value for which the motion vector is determined (threshold different from that used for determining the block to be synthesized) The motion vector is determined as the frame motion vector if the determination condition is smaller than 0). If the determination condition is not satisfied, the content of the frame motion vector indicates no motion (0, 0) Is the operation.
ここで、フレーム動きベクトルの演算に際して、対象フレームが撮影時にカメラ揺れがあったものである場合、本来は動きのない背景等の被写体部分のブロックについては、その動きベクトルの内容が同一となる可能性が高い。例えば各ブロックの動きベクトルの内容が図8に示したようなものであって、ブロック番号21,22,24のブロックのように微少な動きを示す動きベクトル(2,1)が大勢を占めている場合が、それに相当する。そして、上記動きベクトル(2,1)が前述した決定条件を満たすものであった場合には、それがフレーム動きベクトルとして合成処理部7bへ出力される。
Here, when calculating the frame motion vector, if the target frame is a camera shake at the time of shooting, the content of the motion vector can be the same for the block of the subject portion such as the background that originally does not move. High nature. For example, the content of the motion vector of each block is as shown in FIG. 8, and motion vectors (2, 1) indicating a slight motion such as the blocks of
また、合成処理部7bは、採用判定部7aから各ブロックの採用判定結果が送られると、それに従い複数の部分画像をフレームメモリ6fから読み出すとともに、それらを内部のスチルバッファ71に記憶されている静止画像に順に合成する。そのとき、本実施の形態においては、合成処理部7bが、読み出した部分画像を、本来のブロック位置から前記フレーム動きベクトルより示される距離だけ所定の方向へシフトさせて静止画像に合成する。これにより、静止画像に合成される部分画像におけるカメラ揺れに起因する位置ズレが補償される。なお、これ以外の動作については第3の実施の形態と同様である。
Further, when the adoption determination result of each block is sent from the
以上のように本実施の形態においては、各フレーム画像から抽出した部分画像を静止画像に合成するとき、撮影時のカメラ揺れに起因する位置ズレを補償することができる。したがって、最終的に得られる静止画像から撮影時のカメラ揺れの影響を排除することができ、静止画像の品質が向上する。 As described above, in this embodiment, when a partial image extracted from each frame image is combined with a still image, it is possible to compensate for a positional shift caused by camera shake at the time of shooting. Therefore, the influence of camera shake at the time of shooting can be eliminated from the finally obtained still image, and the quality of the still image is improved.
また、第1〜第4の実施の形態と同様、異なるフレーム画像同士を比較して動きのあった被写体部分の部分画像を特定し、特定した部分画像を別途切り出する場合に比べその処理に無駄がなく、静止画像の生成を効率的に行うことができ、また、動画像の再生に使用するデコード部6を静止画像合成時においてもそのまま使用することができるため、静止画合成装置の構成が簡単であり、それを容易に実現することができる。 Further, as in the first to fourth embodiments, compared with different frame images, the partial image of the subject portion that has moved is identified, and the processing is wasteful compared to the case where the identified partial image is cut out separately. Therefore, the still image can be generated efficiently, and the decoding unit 6 used for moving image reproduction can be used as it is even during still image synthesis. It is simple and can be realized easily.
なお、本実施の形態では、静止画像における部分画像の合成位置を、部分画像の合成時点でフレーム動きベクトルに基づき補正するようにしたが、以下のようにしてもよい。すなわち前記採用判定部7aに、全ての対象ブロックの動きベクトルを記憶するバッファを設けるとともに、前記フレーム動きベクトル累積部7eから採用判定部7aにフレーム動きベクトルを出力させる構成とするとともに、前記採用判定部7aに、前記バッファに記憶した全ての動きベクトルをフレーム動きベクトルに基づき予め補正した後、各ブロックに対する前述した判定処理を行わせるようにしてもよい。その場合であっても、結果的には静止画像における部分画像の合成位置をフレーム動きベクトルに基づき補正することができる。
In the present embodiment, the composition position of the partial image in the still image is corrected based on the frame motion vector at the time of synthesis of the partial image, but may be as follows. That is, the
また、本実施の形態においては、第3の実施の形態を基本としたものについて説明したが、それ以外の前述した他の実施の形態にフレーム動きベクトル推定部7dとフレーム動きベクトル累積部7eとを付加することにより、静止画像から撮影時のカメラ揺れの影響を排除するようにしてもよい。
In the present embodiment, the basic configuration of the third embodiment has been described. However, in the other embodiments described above, the frame motion
なお、以上の説明においては、主として、被写体の動きを視覚的に把握することができる静止画像を生成し、それを表示したり印刷したりする静止画合成装置について説明したが、本発明は、例えば動画撮影機能を有するデジタルカメラや、デジタルビデオカメラに適用することができる。また、前述した画像処理部5が行うデータ処理は、専用のハードウェア資源を用いなくとも実現することができる。したがって、例えば汎用のパーソナルコンピュータと、それに前記画像処理部5と同様のデータ処理を行わせるための所定のソフトウェアとによっても本発明を実施することができる。
In the above description, a still image synthesizing apparatus that mainly generates a still image that can visually grasp the movement of the subject and displays or prints the still image has been described. For example, the present invention can be applied to a digital camera having a moving image shooting function and a digital video camera. Further, the data processing performed by the
1 静止画合成装置
2 画像データ取込み部
5 画像処理部
6 デコード部
6a 第1の可変長復号部
6a 第2の可変長復号部
6c 逆量子化部
6d 逆DCT部
6e 動き補償部
6f フレームメモリ
7 画像合成部
7a 採用判定部
7b 合成処理部
7c 輪郭抽出部
7d フレーム動きベクトル推定部
7e フレーム動きベクトル累積部
8 モニタ
9 プリンタ
DESCRIPTION OF
Claims (11)
この取得手段により取得された前記動画像に含まれるフレーム画像中における各部分の動きベクトルに基づき、前記フレーム画像中の部分画像を選択する選択手段と、
この選択手段により選択された部分画像を静止画像に合成する合成手段と、
同一フレーム画像における各部分の動きベクトルに基づき、それらの部分の全体的な動きの傾向を示すフレーム動きベクトルを演算する演算手段と、
この演算手段により演算されたフレーム動きベクトルに基づき、前記合成手段により静止画像に合成される部分画像の静止画像に対する合成位置を補正する補正手段と
を備えたことを特徴とする静止画合成装置。 An acquisition means for acquiring a moving image;
Selection means for selecting a partial image in the frame image based on a motion vector of each part in the frame image included in the moving image acquired by the acquisition means ;
Combining means for combining the partial image selected by the selecting means with a still image ;
Based on the motion vector of each part in the same frame image, a calculation means for calculating a frame motion vector indicating the overall motion tendency of those parts;
A still image synthesizing apparatus comprising: correction means for correcting a synthesis position of a partial image synthesized with a still image by the synthesis means based on a frame motion vector calculated by the calculation means .
前記フレーム画像中において動きベクトルが所定の閾値よりも大きい部分があるか否かを判断する動きベクトル判断手段を含み、
前記動きベクトル判断手段により動きベクトルが所定の閾値よりも大きいと判断された部分の画像を部分画像として選択することを特徴とする請求項1記載の静止画合成装置。 The selection means includes
Motion vector determining means for determining whether or not there is a portion in which the motion vector is larger than a predetermined threshold in the frame image;
2. The still image synthesizing apparatus according to claim 1, wherein an image of a part for which a motion vector is determined to be larger than a predetermined threshold by the motion vector determination unit is selected as a partial image.
前記動きベクトル判断手段により動きベクトルが所定の閾値よりも大きいと判断された部分の画像に隣接する部分の画像を部分画像として選択することを特徴とする請求項2記載の静止画合成装置。 The selecting means further includes:
3. The still image synthesizing apparatus according to claim 2 , wherein an image of a portion adjacent to an image of a portion whose motion vector is determined to be larger than a predetermined threshold by the motion vector determining means is selected as a partial image.
前記隣接する部分画像が所定の選択条件を満足するか否かを判断する選択条件判断手段を含み、
前記選択条件判断手段により所定の選択条件を満足すると判断された前記隣接する部分画像を選択することを特徴とする請求項3記載の静止画合成装置。 The selecting means further includes:
A selection condition determining means for determining whether or not the adjacent partial image satisfies a predetermined selection condition;
4. The still image synthesizing apparatus according to claim 3 , wherein the adjacent partial images determined to satisfy a predetermined selection condition by the selection condition determining means are selected.
前記選択条件判断手段は、The selection condition determining means includes
前記輪郭抽出手段により動きベクトルが所定の閾値よりも大きい部分の画像から抽出された輪郭と、前記輪郭抽出手段により前記隣接する部分画像から抽出された輪郭との間における連続性の度合が所定の閾値よりも大きいか否かを判断することを特徴とする請求項4記載の静止画合成装置。The degree of continuity between the contour extracted from the image of the portion where the motion vector is larger than a predetermined threshold by the contour extracting unit and the contour extracted from the adjacent partial image by the contour extracting unit is predetermined. 5. The still image synthesis apparatus according to claim 4, wherein it is determined whether or not the threshold value is larger than the threshold value.
前記合成手段は、前記選択手段により選択された部分画像を、前記指定手段により指定されたフレーム画像に合成することを特徴とする請求項1乃至5いずれか記載の静止画合成装置。 A designating unit for designating an arbitrary frame image among a plurality of frame images constituting the moving image obtained by the obtaining unit;
The combining means, the partial image selected by the selecting means, still image synthesizing apparatus according to any one of claims 1 to 5, characterized in that the synthesis to the designated frame image by the specifying means.
動画像を記憶するメモリを含み、Including a memory for storing moving images,
前記メモリに記憶されている動画像を取得することを特徴とする請求項1乃至7いずれか記載の静止画合成装置。8. The still image synthesizing apparatus according to claim 1, wherein a moving image stored in the memory is acquired.
被写体を撮像し、動画像を出力する撮像手段を含み、Including imaging means for imaging a subject and outputting a moving image;
前記撮像手段から出力された動画像を取得することを特徴とする請求項1乃至7いずれか記載の静止画合成装置。The still image synthesizing apparatus according to claim 1, wherein a moving image output from the imaging unit is acquired.
前記取得された動画像に含まれるフレーム画像中における各部分の動きベクトルに基づき、前記フレーム画像中の部分画像を選択するステップと、Selecting a partial image in the frame image based on a motion vector of each part in the frame image included in the acquired moving image;
前記選択された部分画像を静止画像に合成するステップと、Combining the selected partial image with a still image;
同一フレーム画像における各部分の動きベクトルに基づき、それらの部分の全体的な動きの傾向を示すフレーム動きベクトルを演算するステップと、Calculating a frame motion vector based on a motion vector of each part in the same frame image and indicating an overall motion tendency of those parts;
前記演算されたフレーム動きベクトルに基づき、前記静止画像に合成される部分画像の静止画像に対する合成位置を補正するステップとCorrecting a combined position of the partial image combined with the still image based on the calculated frame motion vector with respect to the still image;
を含むことを特徴とする動画像からの静止画合成方法。A method for synthesizing a still image from a moving image.
動画像を取得する処理と、Processing to acquire a moving image;
前記取得された動画像に含まれるフレーム画像中における各部分の動きベクトルに基づき、前記フレーム画像中の部分画像を選択する処理と、A process of selecting a partial image in the frame image based on a motion vector of each part in the frame image included in the acquired moving image;
前記選択された部分画像を静止画像に合成する処理と、A process of combining the selected partial image with a still image;
同一フレーム画像における各部分の動きベクトルに基づき、それらの部分の全体的な動きの傾向を示すフレーム動きベクトルを演算する処理と、Based on the motion vector of each part in the same frame image, a process for calculating a frame motion vector indicating the overall motion tendency of those parts;
前記演算されたフレーム動きベクトルに基づき、前記静止画像に合成される部分画像の静止画像に対する合成位置を補正する処理とProcessing for correcting a composite position of a partial image to be combined with the still image based on the calculated frame motion vector with respect to the still image;
を実行させるための静止画合成プログラム。Still image composition program to execute.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007125162A JP4453716B2 (en) | 2007-05-10 | 2007-05-10 | Still image synthesizing apparatus and still image synthesizing method from moving image |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007125162A JP4453716B2 (en) | 2007-05-10 | 2007-05-10 | Still image synthesizing apparatus and still image synthesizing method from moving image |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2003169664A Division JP4155118B2 (en) | 2003-06-13 | 2003-06-13 | Still image synthesizing apparatus and still image synthesizing method from moving image |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2007274718A JP2007274718A (en) | 2007-10-18 |
| JP4453716B2 true JP4453716B2 (en) | 2010-04-21 |
Family
ID=38676948
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2007125162A Expired - Lifetime JP4453716B2 (en) | 2007-05-10 | 2007-05-10 | Still image synthesizing apparatus and still image synthesizing method from moving image |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4453716B2 (en) |
-
2007
- 2007-05-10 JP JP2007125162A patent/JP4453716B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JP2007274718A (en) | 2007-10-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4155118B2 (en) | Still image synthesizing apparatus and still image synthesizing method from moving image | |
| JP4261630B2 (en) | Image encoding apparatus and method, and computer-readable recording medium on which an image encoding program is recorded | |
| JP5437807B2 (en) | Moving picture encoding apparatus and moving picture decoding apparatus | |
| US8848034B2 (en) | Image processing apparatus, control method thereof, and program | |
| US7800678B2 (en) | Image processing device having blur correction function | |
| JP6278712B2 (en) | Imaging apparatus and control method thereof | |
| JP4420061B2 (en) | Still image synthesizing apparatus and still image synthesizing method from moving image | |
| JP2016005103A (en) | Imaging apparatus and control method thereof | |
| JP4453716B2 (en) | Still image synthesizing apparatus and still image synthesizing method from moving image | |
| JP2007122232A (en) | Image processing apparatus and program | |
| US8165217B2 (en) | Image decoding apparatus and method for decoding prediction encoded image data | |
| JP6313614B2 (en) | Video encoding apparatus and control method thereof | |
| JP5044922B2 (en) | Imaging apparatus and program | |
| JP4979623B2 (en) | Image processing device | |
| JP4665737B2 (en) | Image processing apparatus and program | |
| JP6069929B2 (en) | Image selection method, image selection apparatus, encoding apparatus, image selection system, image selection program, encoding program, and image encoding selection program | |
| JP2012044240A (en) | Moving image encoding apparatus | |
| KR100987584B1 (en) | Video change system and method for efficient storage of high resolution video | |
| JP2009284411A (en) | Imaging apparatus | |
| JP2006033142A (en) | Moving picture coding apparatus, moving picture coding method, program, recording medium, image processing apparatus, and image processing system | |
| US9838666B2 (en) | Video decoding device and image display device | |
| JP5207693B2 (en) | Image coding apparatus and image coding method | |
| JP2008187446A (en) | Decoding error correction method and apparatus | |
| JPH07236146A (en) | Image signal coding apparatus and quantization parameter setting method | |
| JP2010021709A (en) | Image processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20091110 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20091125 |
|
| 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: 20100112 |
|
| 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: 20100125 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130212 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4453716 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130212 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140212 Year of fee payment: 4 |
|
| EXPY | Cancellation because of completion of term |