JP2010239459A - Image combination apparatus and program - Google Patents

Image combination apparatus and program Download PDF

Info

Publication number
JP2010239459A
JP2010239459A JP2009086121A JP2009086121A JP2010239459A JP 2010239459 A JP2010239459 A JP 2010239459A JP 2009086121 A JP2009086121 A JP 2009086121A JP 2009086121 A JP2009086121 A JP 2009086121A JP 2010239459 A JP2010239459 A JP 2010239459A
Authority
JP
Japan
Prior art keywords
image
subject
images
unit
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.)
Granted
Application number
JP2009086121A
Other languages
Japanese (ja)
Other versions
JP2010239459A5 (en
JP5267279B2 (en
Inventor
Atsushi Muraki
淳 村木
Hiroshi Shimizu
博 清水
Hiroyuki Hoshino
博之 星野
Erina Ichikawa
英里奈 市川
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2009086121A priority Critical patent/JP5267279B2/en
Publication of JP2010239459A publication Critical patent/JP2010239459A/en
Publication of JP2010239459A5 publication Critical patent/JP2010239459A5/ja
Application granted granted Critical
Publication of JP5267279B2 publication Critical patent/JP5267279B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To produce a highly interesting image by giving motion to an image after combination. <P>SOLUTION: An imaging apparatus 100 comprises: a motion detecting unit 8f; and an image combining unit 8g. On the basis of motion image data recording a moving subject, the motion detecting unit 8f detects "motion information" of the subject and the image combining unit 8g produces a composite motion picture by combining a subject cut-out image and a background image for predetermined motion in the subject region of the subject cut-out image while reflecting the "motion information" detected by the motion detecting unit. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、複数の画像を合成する画像合成装置及びプログラムに関する。   The present invention relates to an image composition apparatus and a program for synthesizing a plurality of images.

従来、被写体画像と背景用画像やフレーム画像を合成することにより合成画像を生成する技術が知られている(例えば、特許文献1参照)。   Conventionally, a technique for generating a composite image by combining a subject image with a background image or a frame image is known (see, for example, Patent Document 1).

特開2004−159158号公報JP 2004-159158 A

しかしながら、上記特許文献1のように静止画像どうしを合成した場合、合成後の画像において被写体の位置は合成位置で固定されたままであり、興趣に欠ける画像になってしまう。   However, when still images are combined as in Patent Document 1, the position of the subject remains fixed at the combined position in the combined image, resulting in an uninteresting image.

そこで、本発明の課題は、合成後の画像に動きを与えることができ、興趣性の高い画像を生成することができる画像合成装置及びプログラムを提供することである。   Therefore, an object of the present invention is to provide an image composition device and a program that can give a motion to a synthesized image and can generate a highly interesting image.

上記課題を解決するため、請求項1に記載の発明の画像合成装置は、
第1及び第2静止画像を取得する静止画取得手段と、複数の画像に共通して含まれる被写体の前記複数の画像にわたる変化を検出する検出手段と、前記第2静止画像を背景として、前記検出手段によって検出された変化を反映して前記第1静止画像を合成した合成動画を生成する合成手段と、を備えたことを特徴としている。
In order to solve the above-described problem, an image composition device according to a first aspect of the present invention provides:
Still image acquisition means for acquiring the first and second still images, detection means for detecting changes over the plurality of images of the subject commonly included in the plurality of images, and the second still image as a background, And synthesizing means for generating a synthesized moving image obtained by synthesizing the first still image reflecting the change detected by the detecting means.

請求項2に記載の発明は、請求項1に記載の画像合成装置において、
前記被写体の前記複数の画像にわたる変化とは、前記複数の画像の画角における前記被写体の位置の単位時間当たりの変化、前記複数の画像における前記被写体の画像が占める範囲の単位時間当たりの変化、前記複数の画像の水平方向及び垂直方向の少なくとも一方に対する前記被写体の回転角度の単位時間当たりの変化の少なくとも何れか一つであることを特徴としている。
According to a second aspect of the present invention, in the image composition device according to the first aspect,
The change of the subject over the plurality of images is a change per unit time of the position of the subject in the angle of view of the plurality of images, a change per unit time of a range occupied by the image of the subject in the plurality of images, It is at least one of the change per unit time of the rotation angle of the subject with respect to at least one of the horizontal direction and the vertical direction of the plurality of images.

請求項3に記載の発明は、請求項1又は2に記載の画像合成装置において、
前記検出手段によって検出された変化を複数枚の画像として記憶する記憶手段を更に備え、前記合成手段は、前記記憶手段から複数枚の画像を読み出す読出手段と、前記第2静止画像を背景画像として、前記読出手段によって読み出された複数枚の画像の夫々における被写体の位置に前記第1静止画像を合成した合成静止画像を複数生成する生成手段と、を含むことを特徴としている。
According to a third aspect of the present invention, in the image composition device according to the first or second aspect,
The apparatus further comprises storage means for storing the changes detected by the detection means as a plurality of images, the synthesizing means reads out the plurality of images from the storage means, and uses the second still image as a background image. And generating means for generating a plurality of synthesized still images obtained by synthesizing the first still image at the position of the subject in each of the plurality of images read by the reading means.

請求項4に記載の発明は、請求項3に記載の画像合成装置において、
前記生成手段は、前記検出手段により検出された変化に基づいて、合成内容情報を順次生成する合成内容生成手段と、前記合成内容生成手段により順次生成された合成内容情報に応じて、前記第1静止画像の合成位置、大きさや形状、及び、回転角度のうち、少なくとも何れか一つを設定する設定手段と、を含むことを特徴としている。
According to a fourth aspect of the present invention, in the image synthesizing device according to the third aspect,
The generating means generates composite content information sequentially based on the change detected by the detecting means, and the first content according to the composite content information sequentially generated by the composite content generating means. And setting means for setting at least one of a still image combining position, size and shape, and rotation angle.

請求項5に記載の発明は、請求項1〜4の何れか一項に記載の画像合成装置において、
連続した複数の静止画を含む動画像或いは連写画像を取得する画像取得手段を更に備え、前記検出手段は、前記画像取得手段により取得された前記動画像及び前記連写画像を前記複数の画像として、これら複数の画像に共通して含まれる被写体の前記複数の画像にわたる変化を検出することを特徴としている。
The invention according to claim 5 is the image composition device according to any one of claims 1 to 4,
The image acquisition device further includes a moving image or a continuous shot image including a plurality of continuous still images, and the detection unit converts the moving image and the continuous shot image acquired by the image acquisition device to the plurality of images. As described above, a change in the subject included in the plurality of images in common with the plurality of images is detected.

請求項6に記載の発明は、請求項5に記載の画像合成装置において、
前記画像取得手段は、撮像手段を含むことを特徴としている。
According to a sixth aspect of the present invention, in the image composition device according to the fifth aspect,
The image acquisition means includes an imaging means.

請求項7に記載の発明は、請求項1〜6の何れか一項に記載の画像合成装置において、
前記第1静止画像は、所定の静止画像から特定の領域を抽出した抽出画像であることを特徴としている。
The invention according to claim 7 is the image composition apparatus according to any one of claims 1 to 6,
The first still image is an extracted image obtained by extracting a specific area from a predetermined still image.

請求項8に記載の発明のプログラムは、
コンピュータを、第1及び第2静止画像を取得する静止画取得手段、複数の画像に共通して含まれる被写体の前記複数の画像にわたる変化を検出する検出手段、前記第2静止画像を背景として、前記検出手段によって検出された変化を反映して前記第1静止画像を合成した合成動画を生成する合成手段、として機能させることを特徴としている。
The program of the invention described in claim 8 is:
With the computer, still image acquisition means for acquiring the first and second still images, detection means for detecting changes over the plurality of images of the subject included in common to the plurality of images, the second still image as a background, It is characterized by functioning as a synthesizing unit that generates a synthesized moving image obtained by synthesizing the first still image reflecting the change detected by the detecting unit.

本発明によれば、静止画像同士の合成後の画像に動きを与えることができ、興趣性の高い画像を生成することができる。   ADVANTAGE OF THE INVENTION According to this invention, a motion can be given to the image after the synthesis | combination of still images, and an image with high interest property can be produced | generated.

本発明を適用した一実施形態の撮像装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the imaging device of one Embodiment to which this invention is applied. 図1の撮像装置による被写体切り抜き処理に係る動作の一例を示すフローチャートである。3 is a flowchart illustrating an example of an operation related to subject clipping processing by the imaging apparatus of FIG. 1. 図2の被写体切り抜き処理に係る画像の一例を模式的に示す図である。It is a figure which shows typically an example of the image which concerns on the to-be-photographed object cutting process of FIG. 図1の撮像装置による背景用画像生成処理に係る動作の一例を示すフローチャートである。3 is a flowchart illustrating an example of an operation related to background image generation processing by the imaging apparatus of FIG. 1. 図1の撮像装置による合成画像生成処理に係る動作の一例を示すフローチャートである。3 is a flowchart illustrating an example of an operation related to a composite image generation process by the imaging apparatus of FIG. 1. 図5の合成画像生成処理における第1画像合成処理に係る動作の一例を示すフローチャートである。It is a flowchart which shows an example of the operation | movement which concerns on the 1st image composition process in the composite image generation process of FIG. 図5の合成画像生成処理における第2画像合成処理に係る動作の一例を示すフローチャートである。It is a flowchart which shows an example of the operation | movement which concerns on the 2nd image composition process in the composite image generation process of FIG. 図5の合成画像生成処理にて画像合成される画像の一例を模式的に示す図である。It is a figure which shows typically an example of the image synthesize | combined by the synthesized image generation process of FIG. 図5の合成画像生成処理に係る動画像データの一例を模式的に示す図である。It is a figure which shows typically an example of the moving image data which concern on the synthesized image generation process of FIG. 図9の動画像データから抽出された動く被写体の一例を模式的に示す図である。It is a figure which shows typically an example of the to-be-moved subject extracted from the moving image data of FIG. 図5の合成画像生成処理により生成された合成動画の一例を模式的に示す図である。It is a figure which shows typically an example of the synthetic | combination moving image produced | generated by the synthetic image production | generation process of FIG.

以下に、本発明について、図面を用いて具体的な態様を説明する。ただし、発明の範囲は、図示例に限定されない。
図1は、本発明を適用した一実施形態の撮像装置100の概略構成を示すブロック図である。
本実施形態の撮像装置100は、動く被写体O(図9(a)等参照)の動きを記録した動き画像データに基づいて動く被写体Oの「動き情報」を検出し、検出された「動き情報」に基づいて、動く被写体Oの動きに応じて被写体切り抜き画像P3(図8(b)参照)の被写体領域Sを所定動作させるように当該被写体切り抜き画像P3と背景用画像P4(図8(a)参照)とを合成して被写体合成画像P5(図11(a)〜図11(d)参照)の合成動画を生成する。
具体的には、図1に示すように、撮像装置100は、レンズ部1と、電子撮像部2と、撮像制御部3と、画像データ生成部4と、画像メモリ5と、特徴量演算部6と、ブロックマッチング部7と、画像処理部8と、記録媒体9と、表示制御部10と、表示部11と、操作入力部12と、CPU13とを備えている。
また、撮像制御部3と、特徴量演算部6と、ブロックマッチング部7と、画像処理部8と、CPU13は、例えば、カスタムLSI1Aとして設計されている。
Hereinafter, specific embodiments of the present invention will be described with reference to the drawings. However, the scope of the invention is not limited to the illustrated examples.
FIG. 1 is a block diagram illustrating a schematic configuration of an imaging apparatus 100 according to an embodiment to which the present invention is applied.
The imaging apparatus 100 according to the present embodiment detects the “movement information” of the moving subject O based on the motion image data in which the movement of the moving subject O (see FIG. 9A and the like) is recorded. ”, The subject cutout image P3 and the background image P4 (FIG. 8A) so that the subject region S of the subject cutout image P3 (see FIG. 8B) is operated in accordance with the movement of the moving subject O. )) To generate a composite moving image of the subject composite image P5 (see FIGS. 11A to 11D).
Specifically, as illustrated in FIG. 1, the imaging apparatus 100 includes a lens unit 1, an electronic imaging unit 2, an imaging control unit 3, an image data generation unit 4, an image memory 5, and a feature amount calculation unit. 6, a block matching unit 7, an image processing unit 8, a recording medium 9, a display control unit 10, a display unit 11, an operation input unit 12, and a CPU 13.
In addition, the imaging control unit 3, the feature amount calculation unit 6, the block matching unit 7, the image processing unit 8, and the CPU 13 are designed as, for example, a custom LSI 1A.

レンズ部1は、複数のレンズから構成され、ズームレンズやフォーカスレンズ等を備えている。
また、レンズ部1は、図示は省略するが、被写体の撮像の際に、ズームレンズを光軸方向に移動させるズーム駆動部、フォーカスレンズを光軸方向に移動させる合焦駆動部等を備えていても良い。
The lens unit 1 includes a plurality of lenses and includes a zoom lens, a focus lens, and the like.
Although not shown, the lens unit 1 includes a zoom drive unit that moves the zoom lens in the optical axis direction and a focus drive unit that moves the focus lens in the optical axis direction when imaging a subject. May be.

電子撮像部2は、例えば、CCD(Charge Coupled Device)やCMOS(Complementary Metal-oxide Semiconductor)等のイメージセンサから構成され、レンズ部1の各種レンズを通過した光学像を二次元の画像信号に変換する。   The electronic imaging unit 2 is composed of an image sensor such as a CCD (Charge Coupled Device) or a CMOS (Complementary Metal-oxide Semiconductor), for example, and converts an optical image that has passed through various lenses of the lens unit 1 into a two-dimensional image signal. To do.

撮像制御部3は、図示は省略するが、タイミング発生器、ドライバなどを備えている。そして、撮像制御部3は、タイミング発生器、ドライバにより電子撮像部2を走査駆動して、所定周期毎に光学像を電子撮像部2により二次元の画像信号に変換させ、当該電子撮像部2の撮像領域から1画面分ずつ画像フレームを読み出して画像データ生成部4に出力させる。
また、撮像制御部3は、AF(自動合焦処理)、AE(自動露出処理)、AWB(自動ホワイトバランス)等の被写体を撮像する際の条件の調整制御を行う。
Although not shown, the imaging control unit 3 includes a timing generator, a driver, and the like. Then, the imaging control unit 3 scans and drives the electronic imaging unit 2 with a timing generator and a driver, converts the optical image into a two-dimensional image signal with the electronic imaging unit 2 every predetermined period, and the electronic imaging unit 2 Image frames are read out from the imaging area for each screen and output to the image data generation unit 4.
In addition, the imaging control unit 3 performs adjustment control of conditions when imaging a subject such as AF (automatic focusing process), AE (automatic exposure process), and AWB (automatic white balance).

このように構成された撮像レンズ部1、電子撮像部2及び撮像制御部3は、撮像手段として、画像合成処理に係る被写体存在画像P1(図3(a)参照)や背景用画像P4(図8(a)参照)を撮像する。
また、撮像レンズ部1、電子撮像部2及び撮像制御部3は、被写体存在画像P1の撮像後、当該被写体存在画像P1の撮像の際の撮像条件を固定した状態で、被写体切り抜き画像P3(図3(c)参照)の生成のための被写体非存在画像P2(図3(b)参照)を撮像する。
The imaging lens unit 1, the electronic imaging unit 2, and the imaging control unit 3 configured in this way function as an imaging unit as a subject presence image P1 (see FIG. 3A) and a background image P4 (see FIG. 3A) related to image composition processing. 8 (a)).
In addition, the imaging lens unit 1, the electronic imaging unit 2, and the imaging control unit 3 capture the subject clipped image P3 (see FIG. 3) in a state where the imaging conditions for capturing the subject presence image P1 are fixed after the subject presence image P1 is captured. The non-existing subject image P2 (see FIG. 3B) for generating 3) is captured.

画像データ生成部4は、電子撮像部2から転送された画像フレームのアナログ値の信号に対してRGBの各色成分毎に適宜ゲイン調整した後に、サンプルホールド回路(図示略)でサンプルホールドしてA/D変換器(図示略)でデジタルデータに変換し、カラープロセス回路(図示略)で画素補間処理及びγ補正処理を含むカラープロセス処理を行った後、デジタル値の輝度信号Y及び色差信号Cb,Cr(YUVデータ)を生成する。
カラープロセス回路から出力される輝度信号Y及び色差信号Cb,Crは、図示しないDMAコントローラを介して、バッファメモリとして使用される画像メモリ5にDMA転送される。
The image data generation unit 4 appropriately adjusts the gain for each RGB color component with respect to the analog value signal of the image frame transferred from the electronic imaging unit 2, and then performs sample holding by a sample hold circuit (not shown). The digital signal is converted into digital data by a / D converter (not shown), color processing including pixel interpolation processing and γ correction processing is performed by a color process circuit (not shown), and then a digital luminance signal Y and color difference signal Cb , Cr (YUV data).
The luminance signal Y and the color difference signals Cb and Cr output from the color process circuit are DMA-transferred to an image memory 5 used as a buffer memory via a DMA controller (not shown).

画像メモリ5は、例えば、DRAM等により構成され、特徴量演算部6と、ブロックマッチング部7と、画像処理部8と、CPU13等によって処理されるデータ等を一時記憶する。   The image memory 5 is composed of, for example, a DRAM or the like, and temporarily stores data processed by the feature amount calculation unit 6, the block matching unit 7, the image processing unit 8, the CPU 13, and the like.

特徴量演算部6は、被写体非存在画像P2を基準として、当該被写体非存在画像P2から特徴点を抽出する特徴抽出処理を行う。具体的には、特徴量演算部6は、被写体非存在画像P2のYUVデータに基づいて、所定数(或いは、所定数以上)の特徴の高いブロック領域(特徴点)を選択して、当該ブロックの内容をテンプレート(例えば、16×16画素の正方形)として抽出する。
ここで、特徴抽出処理とは、多数の候補ブロックから追跡に都合の良い特徴性の高いものを選択する処理である。
The feature quantity calculation unit 6 performs feature extraction processing for extracting feature points from the subject non-existing image P2 with reference to the subject non-existing image P2. Specifically, the feature amount calculation unit 6 selects a predetermined number (or a predetermined number or more) of highly featured block areas (feature points) based on the YUV data of the subject non-existing image P2, and selects the relevant block. Is extracted as a template (for example, a square of 16 × 16 pixels).
Here, the feature extraction process is a process of selecting a feature having a high characteristic convenient for tracking from a large number of candidate blocks.

ブロックマッチング部7は、被写体非存在画像P2と被写体存在画像P1の位置合わせのためのブロックマッチング処理を行う。具体的には、ブロックマッチング部7は、特徴抽出処理にて抽出されたテンプレートが被写体存在画像P1内のどこに対応するか、つまり、被写体存在画像P1内にてテンプレートの画素値が最適にマッチする位置(対応領域)を探索する。そして、画素値の相違度の評価値(例えば、差分二乗和(SSD)や差分絶対値和(SAD)等)が最も良かった被写体非存在画像P2と被写体存在画像P1間の最適なオフセットを当該テンプレートの動きベクトルとして算出する。   The block matching unit 7 performs block matching processing for aligning the subject non-existing image P2 and the subject existing image P1. Specifically, the block matching unit 7 optimally matches where the template extracted by the feature extraction process corresponds to in the subject existing image P1, that is, the template pixel value optimally matches in the subject existing image P1. Search for a position (corresponding region). Then, an optimum offset between the subject non-existing image P2 and the subject existing image P1 having the best evaluation value (for example, sum of squared differences (SSD), sum of absolute differences (SAD), etc.) is calculated. Calculated as a template motion vector.

画像処理部8は、被写体存在画像P1と被写体非存在画像P2との位置合わせを行う位置合わせ部8aを具備している。
位置合わせ部8aは、被写体非存在画像P2から抽出した特徴点に基づいて、被写体非存在画像P2に対する被写体存在画像P1の各画素の座標変換式(射影変換行列)を算出し、当該座標変換式に従って被写体存在画像P1を座標変換して被写体非存在画像P2と位置合わせを行う。
The image processing unit 8 includes an alignment unit 8a that performs alignment between the subject presence image P1 and the subject non-existence image P2.
The alignment unit 8a calculates a coordinate conversion formula (projection conversion matrix) of each pixel of the subject presence image P1 with respect to the subject non-existence image P2 based on the feature points extracted from the subject non-existence image P2, and the coordinate conversion formula Accordingly, the subject presence image P1 is coordinate-converted to align with the subject non-existence image P2.

また、画像処理部8は、位置合わせ部8aにより位置合わせされた被写体存在画像P1と被写体非存在画像P2との間で対応する各画素の差分情報を生成し、当該差分情報を基準として被写体存在画像P1から被写体が含まれる被写体領域Sを抽出する被写体領域抽出部8bを具備している。   Further, the image processing unit 8 generates difference information of corresponding pixels between the subject presence image P1 and the subject non-existence image P2 aligned by the alignment unit 8a, and the subject exists based on the difference information. A subject region extraction unit 8b that extracts a subject region S including the subject from the image P1 is provided.

また、画像処理部8は、被写体存在画像P1内で抽出された被写体領域Sの位置を特定して、被写体存在画像P1における被写体領域Sの位置を示す位置情報を生成する位置情報生成部8cを具備している。
ここで、位置情報としては、例えば、アルファマップが挙げられ、アルファマップとは、被写体存在画像P1の各画素について、被写体領域Sの画像を所定の背景に対してアルファブレンディングする際の重みをアルファ値(0≦α≦1)として表したものである。
Further, the image processing unit 8 specifies a position of the subject region S extracted in the subject presence image P1, and a position information generation unit 8c that generates position information indicating the position of the subject region S in the subject presence image P1. It has.
Here, as the position information, for example, an alpha map can be cited. The alpha map is a weight for alpha blending the image of the subject area S with respect to a predetermined background for each pixel of the subject existing image P1. It is expressed as a value (0 ≦ α ≦ 1).

また、画像処理部8は、生成されたアルファマップに基づいて、被写体存在画像P1の各画素のうち、アルファ値が1の画素を所定の単一色画像(図示略)に対して透過させずに、且つ、アルファ値が0の画素を透過させるように、被写体の画像を所定の単一色画像と合成して被写体切り抜き画像P3(図3(c)参照)の画像データを生成する切抜画像生成部8dを具備している。
これにより、切抜画像生成部8dは、背景と被写体とが存在する被写体存在画像P1から被写体が含まれる領域を切り抜いた被写体切り抜き画像P3を取得する。
Further, the image processing unit 8 does not transmit a pixel having an alpha value of 1 out of each pixel of the subject existing image P1 to a predetermined single color image (not shown) based on the generated alpha map. In addition, a cut-out image generation unit that generates image data of the cut-out image P3 of the subject (see FIG. 3C) by combining the image of the subject with a predetermined single-color image so that the pixels with an alpha value of 0 are transmitted. 8d.
Thereby, the cut-out image generation unit 8d acquires the subject cut-out image P3 obtained by cutting out the area including the subject from the subject existing image P1 in which the background and the subject exist.

また、画像処理部8は、動く被写体Oの動きを連続した複数の静止画を含む動画像又は連写画像で記録した動き画像データ(詳細後述)を取得する動き画像取得部8eを具備している。
具体的には、動き画像取得部8eは、記録媒体9に記録されている動き画像データのうち、ユーザによる操作入力部12の選択決定ボタン12bの所定操作に基づいて指示された動き画像データを読み出して取得する。
In addition, the image processing unit 8 includes a motion image acquisition unit 8e that acquires motion image data (details will be described later) recorded as a moving image including a plurality of continuous still images or continuous shot images of the movement of the moving subject O. Yes.
Specifically, the motion image acquisition unit 8e receives the motion image data instructed based on a predetermined operation of the selection determination button 12b of the operation input unit 12 by the user among the motion image data recorded on the recording medium 9. Read and get.

また、画像処理部8は、動き画像取得部8eにより取得された動き画像データから動く被写体Oの「動き情報」を検出する動き検出部8fを具備している。
具体的には、動き検出部8fは、動き画像データに対して所定の画像処理を施すことにより当該動き画像データに含まれる動く被写体Oを特定して、当該動く被写体Oの単位時間当たりの「動き情報」(複数の画像に共通して含まれる動く被写体Oの複数の画像にわたる変化)を検出する。例えば、動き画像データとして、Motion−JPEG形式で記録された複数の画像フレームf1、…からなる動画像データMが動き画像取得部8eにより取得された場合、動き検出部8fは、これら複数の画像フレームf1、…に対して、平滑化処理を行ってノイズを除去した後、マトリックス演算により1階微分処理を行って画素集合の輪郭線(エッジ部分)を抽出する。そして、動き検出部8fは、抽出処理後の画像に対してエッジの連結性を高めるために膨張処理を行った後、所定数よりも画素の連結数の少ない孤立した連結成分(画像集合)を除く処理を行って、面積が最大となる動く被写体Oの外周輪郭を特定することで、動く被写体Oの外周輪郭で囲まれた画像領域の位置を、各画像フレームf中の動く被写体Oの位置として特定する。
The image processing unit 8 includes a motion detection unit 8f that detects “motion information” of the moving subject O from the motion image data acquired by the motion image acquisition unit 8e.
Specifically, the motion detection unit 8f performs predetermined image processing on the motion image data to identify the moving subject O included in the motion image data, and displays “ "Motion information" (changes over a plurality of images of a moving subject O included in a plurality of images in common) is detected. For example, when moving image data M composed of a plurality of image frames f1,... Recorded in the Motion-JPEG format is acquired as the moving image data by the moving image acquisition unit 8e, the motion detection unit 8f A smoothing process is performed on the frames f1,... To remove noise, and then a first-order differentiation process is performed by a matrix operation to extract a contour line (edge part) of the pixel set. Then, the motion detection unit 8f performs an expansion process on the extracted image to enhance edge connectivity, and then uses an isolated connected component (image set) having a smaller number of connected pixels than a predetermined number. By performing the removal process and specifying the outer peripheral contour of the moving subject O having the largest area, the position of the image region surrounded by the outer peripheral contour of the moving subject O is determined as the position of the moving subject O in each image frame f. As specified.

そして、動き検出部8fは、動画像データMを構成する複数の画像フレームf、…の各々の動く被写体Oの位置に基づいて、各画像フレームf中の動く被写体Oの中心座標を特定するとともに、各画像フレームfの所定位置(例えば、左端及び上端)から所定方向(例えば、左端から右端に向けてX軸方向や、上端から下端に向けてY軸方向等)に走査することで、当該動く被写体Oを囲む矩形枠W(図10(a)等参照)を特定して、当該矩形枠WのX軸(水平)方向のサイズ及びY軸(垂直)方向のサイズ(縦横のサイズ)を算出する。
また、動き検出部8fは、最初の画像フレームf1の矩形枠Wに対する二番目以降の各画像フレームfの矩形枠W(図10(b)〜図10(d)参照)の各角部の座標の移動量として相対位置情報を順次算出する。さらに、動き検出部8fは、最初の画像フレームf1の矩形枠Wに対する二番目以降の各画像フレームfの矩形枠WのX軸方向及びY軸方向の変倍率として相対範囲情報を順次算出する。さらに、動き検出部8fは、最初の画像フレームf1の矩形枠Wに対する二番目以降の各画像フレームfの矩形枠Wの回転角度として相対角度情報を順次算出する。
このように、動き検出部8fは、二番目以降の画像フレームf中の動く被写体Oの単位時間当たりの「動き情報」として、相対位置情報、相対範囲情報、相対角度情報を検出する。
Then, the motion detector 8f specifies the center coordinates of the moving subject O in each image frame f based on the position of the moving subject O in each of the plurality of image frames f,... Constituting the moving image data M. By scanning in a predetermined direction (for example, the X-axis direction from the left end to the right end, the Y-axis direction from the upper end to the lower end, etc.) from a predetermined position (for example, the left end and the upper end) of each image frame f, A rectangular frame W (see FIG. 10A) surrounding the moving subject O is specified, and the size of the rectangular frame W in the X-axis (horizontal) direction and the size in the Y-axis (vertical) direction (vertical and horizontal sizes) are determined. calculate.
The motion detection unit 8f also coordinates the corners of the rectangular frames W (see FIGS. 10B to 10D) of the second and subsequent image frames f with respect to the rectangular frame W of the first image frame f1. The relative position information is sequentially calculated as the amount of movement. Furthermore, the motion detection unit 8f sequentially calculates relative range information as a scaling factor in the X-axis direction and the Y-axis direction of the rectangular frames W of the second and subsequent image frames f with respect to the rectangular frame W of the first image frame f1. Furthermore, the motion detection unit 8f sequentially calculates relative angle information as the rotation angle of the rectangular frames W of the second and subsequent image frames f with respect to the rectangular frame W of the first image frame f1.
In this way, the motion detection unit 8f detects relative position information, relative range information, and relative angle information as “motion information” per unit time of the moving subject O in the second and subsequent image frames f.

なお、上記した動く被写体Oの特定の手法は、一例であってこれに限られるものではなく、適宜任意に変更しても良い。
例えば、最初の画像フレームf1にて、特定の被写体にピントが合っている場合には、AFエリア(合焦箇所)内の撮像対象を動く被写体Oとして特定しても良い。また、二番目以降の画像フレームfについては、最初の画像フレームf1から検出された動く被写体Oを動体として特定し、所定の動体解析技術を利用して隣合う画像フレームf間で動く被写体Oを追跡しても良い。
また、操作入力部12としてタッチパネル(図示略)を表示画面に配設して、タッチパネルの接触位置に応じて動く被写体Oを特定するような構成としても良い。即ち、表示部11に表示された画像フレームfにおける動く被写体Oの位置を、ユーザによるタッチパネルの所定の接触操作により指示入力して、動き検出部8fは、タッチパネルの接触操作に基づいて入力された位置情報に基づいて動く被写体Oを特定するようにしても良い。
また、上記の各処理の高速化を図る上では、各画像フレームfの解像度を低減させた低解像度画像を用いて行っても良い。
Note that the above-described specific method of moving the subject O is an example and is not limited to this, and may be arbitrarily changed as appropriate.
For example, when a specific subject is in focus in the first image frame f1, the imaging target in the AF area (focused position) may be specified as the moving subject O. For the second and subsequent image frames f, the moving subject O detected from the first image frame f1 is specified as a moving object, and the moving subject O is moved between adjacent image frames f using a predetermined moving object analysis technique. May be tracked.
Moreover, it is good also as a structure which arrange | positions the touchscreen (not shown) as the operation input part 12 on a display screen, and specifies the to-be-photographed object O according to the contact position of a touchscreen. That is, the position of the moving subject O in the image frame f displayed on the display unit 11 is input by a predetermined touch operation of the touch panel by the user, and the motion detection unit 8f is input based on the touch operation of the touch panel. The moving object O may be specified based on the position information.
Further, in order to increase the speed of each of the above processes, a low resolution image in which the resolution of each image frame f is reduced may be used.

また、画像処理部8は、被写体切り抜き画像P3と背景用画像P4とを合成する画像合成部8gを具備している。具体的には、画像合成部8gは、記録媒体9からユーザ所望の背景用画像P4を取得して、当該背景用画像P4の各画素のうち、アルファ値が0の画素は透過させ、アルファ値が1の画素は被写体切り抜き画像P3の対応する画素の画素値で上書きし、さらに、背景用画像P4の各画素のうち、アルファ値が0<α<1の画素は1の補数(1−α)を用いて被写体領域Sを切り抜いた画像(背景用画像×(1−α))を生成した後、アルファマップにおける1の補数(1−α)を用いて被写体切り抜き画像P3を生成した際に単一背景色とブレンドした値を計算し、当該値を被写体切り抜き画像P3から減算し、それを被写体領域Sを切り抜いた画像(背景用画像×(1−α))と合成する。   The image processing unit 8 includes an image composition unit 8g that synthesizes the subject cutout image P3 and the background image P4. Specifically, the image composition unit 8g acquires a user-desired background image P4 from the recording medium 9, and transmits pixels with an alpha value of 0 among the pixels of the background image P4. Is overwritten with the pixel value of the corresponding pixel of the subject cutout image P3, and among the pixels of the background image P4, the pixel with an alpha value of 0 <α <1 is a 1's complement (1-α ) Is used to generate the cropped image P3 using the one's complement (1-α) in the alpha map. A value blended with a single background color is calculated, and the value is subtracted from the subject cutout image P3, and is combined with an image obtained by cutting out the subject region S (background image × (1-α)).

また、画像合成部8gは、被写体切り抜き画像P3の背景用画像P4に対する合成を制御する合成制御部8hを具備している。即ち、画像合成部8gは、合成制御部8hの制御下にて背景用画像P4に対する被写体切り抜き画像P3の合成位置、大きさ、形状及び回転角度等を調整して画像合成により複数の画像フレームg、…を生成して、当該複数の画像フレームg、…からなる被写体合成画像P5の合成動画を生成する。
具体的には、合成制御部8hは、動き検出部8fにより検出された相対位置情報、相対範囲情報、相対角度情報等の「動き情報」に基づいて、合成動画を構成する二番目以降の画像フレームgについて被写体切り抜き画像P3の合成内容情報を順次生成する。
ここで、合成内容情報としては、相対位置情報に基づいて生成される被写体切り抜き画像P3の合成位置に係る被写体領域Sの中心座標や、相対範囲情報に基づいて生成される被写体切り抜き画像P3の合成サイズに係る最初の画像フレームg1に対する被写体領域Sの変倍率や、相対角度情報に基づいて生成される被写体切り抜き画像P3の合成の向きに係る最初の画像フレームg1に対する被写体領域Sの回転角度等が挙げられる。
そして、合成制御部8hは、被写体切り抜き画像P3の最初の画像フレームg1をユーザにより指定された所望の位置に画像合成部8gにより合成した後、二番目以降の画像フレームgについて、順次生成された被写体切り抜き画像P3の合成内容情報に応じて当該被写体切り抜き画像P3の合成位置、大きさ、形状及び回転角度等を設定して画像合成部8gに合成させる。例えば、図10に示したように、動画像データMの二番目の画像フレームf2の動く被写体Oは、最初の画像フレームf1に対して合成位置が右側にずれているとともに、上下方向に伸びていることから、二番目の画像フレームg2は、被写体領域Sが動く被写体Oと略同様に最初の画像フレームg1に対して合成位置が右側にずれているとともに、上下方向に伸びるように形状を変化させて合成する。また、動画像データMの三番目の画像フレームf3は、合成位置が二番目の画像フレームf2よりもさらに右側にずれているが、最初の画像フレームf1と大きさ及び形状が略等しくなっていることから、三番目の画像フレームg3は、被写体領域Sの合成位置が動く被写体Oと略同様に二番目の画像フレームg2よりもさらに右側にずれているが、最初の画像フレームg1と大きさ及び形状が略等しくなるように合成する。また、動画像データMのn番目の画像フレームfnは、合成位置が三番目の画像フレームf3よりもさらに右側にずれているとともに、最初の画像フレームf1に対して上下方向に縮んでいることから、n番目の画像フレームgnは、被写体領域Sの合成位置が動く被写体Oと略同様に三番目の画像フレームg3よりもさらに右側にずれているとともに、最初の画像フレームg1に対して上下方向に縮んだように合成する。
The image composition unit 8g includes a composition control unit 8h that controls composition of the subject cutout image P3 with the background image P4. That is, the image composition unit 8g adjusts the composition position, size, shape, rotation angle, and the like of the subject cutout image P3 with respect to the background image P4 under the control of the composition control unit 8h, and combines the plurality of image frames g by image composition. ,... Are generated to generate a composite moving image of the subject composite image P5 including the plurality of image frames g,.
Specifically, the composition control unit 8h includes the second and subsequent images constituting the composition video based on “motion information” such as relative position information, relative range information, and relative angle information detected by the motion detection unit 8f. The composite content information of the subject clipped image P3 is sequentially generated for the frame g.
Here, as the composition content information, the center coordinates of the subject region S related to the composition position of the subject clipped image P3 generated based on the relative position information, and the composition of the subject clipped image P3 generated based on the relative range information. The magnification of the subject area S relative to the first image frame g1 related to the size, the rotation angle of the subject area S relative to the first image frame g1 related to the direction of synthesis of the subject cutout image P3 generated based on the relative angle information, and the like. Can be mentioned.
Then, the composition control unit 8h composes the first image frame g1 of the subject cutout image P3 at a desired position specified by the user by the image composition unit 8g, and then sequentially generates the second and subsequent image frames g. The composition position, size, shape, rotation angle, and the like of the subject clipped image P3 are set according to the composition content information of the subject clipped image P3, and are combined by the image composition unit 8g. For example, as shown in FIG. 10, the moving subject O of the second image frame f2 of the moving image data M is shifted to the right with respect to the first image frame f1 and extends vertically. Therefore, the second image frame g2 has a shape shifted so as to extend in the vertical direction while the composition position is shifted to the right with respect to the first image frame g1 in substantially the same manner as the subject O in which the subject region S moves. To synthesize. Further, the third image frame f3 of the moving image data M is shifted further to the right than the second image frame f2, but the size and shape are substantially the same as the first image frame f1. Therefore, the third image frame g3 is further shifted to the right side from the second image frame g2 in substantially the same manner as the subject O in which the composition position of the subject region S moves. Synthesize so that the shapes are approximately equal. Further, the nth image frame fn of the moving image data M is shifted further to the right than the third image frame f3 and is contracted in the vertical direction with respect to the first image frame f1. The n-th image frame gn is shifted further to the right than the third image frame g3 substantially in the same manner as the subject O in which the composition position of the subject region S moves, and in the vertical direction with respect to the first image frame g1. Synthesize as if shrunk.

このように、画像合成部8gは、合成動画を構成する複数の画像フレームg、…について、背景用画像P4に対する被写体切り抜き画像P3の合成位置、大きさ、形状及び回転角度のうち、少なくとも何れか一を変えて合成して当該画像フレームgを順次生成していくことで、動き検出部8fにより検出された「動き情報」に基づいて、動被写体切り抜き画像P3を所定動作させるように当該被写体切り抜き画像P3と背景用画像P4とを合成して合成動画を生成する。
なお、画像フレームgの合成数は、例えば、動画像データMの画像フレームf数と同じであっても良いし、生成される合成動画の時間に応じて予め指定された数であっても良い。
In this way, the image composition unit 8g has at least one of the composition position, size, shape, and rotation angle of the subject cutout image P3 with respect to the background image P4 for the plurality of image frames g,. The subject image clipping g is sequentially generated by changing the image to generate the image frame g so that the moving subject clipping image P3 is caused to perform a predetermined operation based on the “motion information” detected by the motion detection unit 8f. A synthesized moving image is generated by synthesizing the image P3 and the background image P4.
The number of image frames g combined may be, for example, the same as the number of image frames f of the moving image data M, or may be a number specified in advance according to the time of the generated combined moving image. .

記録媒体9は、例えば、不揮発性メモリ(フラッシュメモリ)等により構成され、画像処理部8のJPEG圧縮部(図示略)により符号化された背景用画像P4や被写体切り抜き画像P3の静止画像データを記憶する。
また、被写体切り抜き画像P3の画像データは、画像処理部8の位置情報生成部8cにより生成されたアルファマップと対応付けられて、当該被写体切り抜き画像P3の画像データの拡張子を「.jpe」として保存されている。
The recording medium 9 is constituted by, for example, a nonvolatile memory (flash memory) or the like, and the still image data of the background image P4 and the subject cutout image P3 encoded by the JPEG compression unit (not shown) of the image processing unit 8 is stored. Remember.
Further, the image data of the subject cutout image P3 is associated with the alpha map generated by the position information generation unit 8c of the image processing unit 8, and the extension of the image data of the subject cutout image P3 is set to “.jpe”. Saved.

また、記録媒体9は、撮像レンズ部1、電子撮像部2及び撮像制御部3による動く被写体Oの撮像により生成された複数の画像フレームf、…を画像処理部8の符号化部(図示略)により所定の圧縮形式で符号化した動き画像データを記憶する。
動き画像データは、動く被写体Oの動きを所定の記録方式で記録したものであり、例えば、所定の撮像フレームレートで撮像された連続した複数の画像フレーム(例えば、n枚の画像フレーム)f、…からなる動画像データM(図9参照)や、所定のシャッタースピードで連写された連写画像データ等が挙げられる。
ここで、動画像データMとしては、例えば、図9(a)〜図9(d)に示すように、人物の跳躍動作を横から撮像してMotion−JPEG形式で記録したものが挙げられる。なお、図9(a)〜図9(d)は、動画像データMを構成する連続するn枚の画像フレームf1〜fnを模式的に表しており、これらの画像フレームf1〜fnを時間軸に沿って図9(a)〜図9(d)として表すものとする。
Further, the recording medium 9 includes a plurality of image frames f generated by imaging the moving subject O by the imaging lens unit 1, the electronic imaging unit 2, and the imaging control unit 3. ) To store the motion image data encoded in a predetermined compression format.
The motion image data is obtained by recording the movement of the moving subject O by a predetermined recording method. For example, a plurality of continuous image frames (for example, n image frames) f captured at a predetermined imaging frame rate, .., Moving image data M (see FIG. 9), continuous shot image data continuously shot at a predetermined shutter speed, and the like.
Here, as the moving image data M, for example, as illustrated in FIGS. 9A to 9D, the person's jumping motion is captured from the side and recorded in the Motion-JPEG format. 9A to 9D schematically show n consecutive image frames f1 to fn constituting the moving image data M, and these image frames f1 to fn are represented on a time axis. 9 (a) to 9 (d).

表示制御部10は、画像メモリ5に一時的に記憶されている表示用の画像データを読み出して表示部11に表示させる制御を行う。
具体的には、表示制御部10は、VRAM、VRAMコントローラ、デジタルビデオエンコーダなどを備えている。そして、デジタルビデオエンコーダは、CPU13の制御下にて画像メモリ5から読み出されてVRAM(図示略)に記憶されている輝度信号Y及び色差信号Cb,Crを、VRAMコントローラを介してVRAMから定期的に読み出して、これらのデータを元にビデオ信号を発生して表示部11に出力する。
The display control unit 10 performs control for reading display image data temporarily stored in the image memory 5 and displaying the read image data on the display unit 11.
Specifically, the display control unit 10 includes a VRAM, a VRAM controller, a digital video encoder, and the like. The digital video encoder periodically reads the luminance signal Y and the color difference signals Cb and Cr read from the image memory 5 and stored in the VRAM (not shown) under the control of the CPU 13 from the VRAM via the VRAM controller. Are read out, a video signal is generated based on these data, and is output to the display unit 11.

表示部11は、例えば、液晶表示装置であり、表示制御部10からのビデオ信号に基づいて電子撮像部2により撮像された画像などを表示画面に表示する。具体的には、表示部11は、撮像モードにて、撮像レンズ部1、電子撮像部2及び撮像制御部3による被写体の撮像により生成された複数の画像フレームf、…に基づいてライブビュー画像を表示したり、本撮像画像として撮像されたレックビュー画像を表示する。   The display unit 11 is, for example, a liquid crystal display device, and displays an image captured by the electronic imaging unit 2 based on a video signal from the display control unit 10 on a display screen. Specifically, the display unit 11 is configured to display a live view image based on a plurality of image frames f generated by imaging an object by the imaging lens unit 1, the electronic imaging unit 2, and the imaging control unit 3 in the imaging mode. Or a REC view image captured as the actual captured image.

操作入力部12は、当該撮像装置100の所定操作を行うためのものである。具体的には、操作入力部12は、被写体の撮影指示に係るシャッタボタン12a、撮像モードや機能等の選択指示や被写体切り抜き画像P3の初期合成位置の設定指示に係る選択決定ボタン12b、ズーム量の調整指示に係るズームボタン(図示略)等を備え、これらのボタンの操作に応じて所定の操作信号をCPU13に出力する。   The operation input unit 12 is for performing a predetermined operation of the imaging apparatus 100. Specifically, the operation input unit 12 includes a shutter button 12a related to a subject shooting instruction, a selection determination button 12b related to a selection instruction for an imaging mode, a function, and the like, and an instruction for setting an initial composite position of the subject cutout image P3, and a zoom amount. A zoom button (not shown) relating to the adjustment instruction is provided, and a predetermined operation signal is output to the CPU 13 in accordance with the operation of these buttons.

CPU13は、撮像装置100の各部を制御するものである。具体的には、CPU13は、撮像装置100用の各種処理プログラム(図示略)に従って各種の制御動作を行うものである。   The CPU 13 controls each part of the imaging device 100. Specifically, the CPU 13 performs various control operations in accordance with various processing programs (not shown) for the imaging apparatus 100.

次に、撮像装置100による被写体切り抜き処理について、図2及び図3を参照して説明する。
図2は、被写体切り抜き処理に係る動作の一例を示すフローチャートである。また、図3は、被写体切り抜き処理に係る画像の一例を模式的に示す図である。
被写体切り抜き処理は、ユーザによる操作入力部12の選択決定ボタン12bの所定操作に基づいて、メニュー画面に表示された複数の撮像モードの中から被写体切り抜きモードが選択指示された場合に実行される処理である。
Next, the subject clipping process performed by the imaging apparatus 100 will be described with reference to FIGS.
FIG. 2 is a flowchart illustrating an example of an operation related to the subject clipping process. FIG. 3 is a diagram schematically illustrating an example of an image related to the subject clipping process.
The subject clipping process is executed when a subject clipping mode is selected from a plurality of imaging modes displayed on the menu screen based on a predetermined operation of the selection determination button 12b of the operation input unit 12 by the user. It is.

図2に示すように、先ず、CPU13は、表示制御部10に、撮像レンズ部1、電子撮像部2及び撮像制御部3による被写体の撮像により生成された複数の画像フレームに基づいてライブビュー画像を表示部11の表示画面に表示させるとともに、当該ライブビュー画像に重畳させて、被写体存在画像P1の撮像指示メッセージを表示部11の表示画面に表示させる(ステップS1)。   As shown in FIG. 2, first, the CPU 13 causes the display control unit 10 to display a live view image based on a plurality of image frames generated by imaging an object by the imaging lens unit 1, the electronic imaging unit 2, and the imaging control unit 3. Is displayed on the display screen of the display unit 11 and superimposed on the live view image, an imaging instruction message of the subject existing image P1 is displayed on the display screen of the display unit 11 (step S1).

次に、CPU13は、ユーザによる操作入力部12のシャッタボタン12aの所定操作に基づいて撮像指示が入力されたか否かを判定する(ステップS2)。ここで、撮像指示が入力されたと判定されると(ステップS2;YES)、CPU13は、撮像制御部3に、フォーカスレンズの合焦位置や露出条件(シャッター速度、絞り、増幅率等)やホワイトバランス等の条件を調整させて、被写体存在画像P1(図3(a)参照)の光学像を所定の条件で電子撮像部2により撮像させて、画像データ生成部4に、電子撮像部2から転送された被写体存在画像P1の画像フレームのYUVデータを生成させる(ステップS3)。なお、当該被写体存在画像P1のYUVデータは、画像メモリ5に一時記憶される。
また、CPU13は、撮像制御部3を制御して、当該被写体存在画像P1の撮像の際の合焦位置や露出条件やホワイトバランス等の条件を固定した状態を維持する。
Next, the CPU 13 determines whether or not an imaging instruction has been input based on a predetermined operation of the shutter button 12a of the operation input unit 12 by the user (step S2). If it is determined that an imaging instruction has been input (step S2; YES), the CPU 13 instructs the imaging control unit 3 to focus the focus lens, exposure conditions (shutter speed, aperture, amplification factor, etc.) and white. By adjusting conditions such as balance, an optical image of the subject existing image P1 (see FIG. 3A) is picked up by the electronic image pickup unit 2 under a predetermined condition, and the image data generation unit 4 causes the electronic image pickup unit 2 to YUV data of the image frame of the transferred subject presence image P1 is generated (step S3). The YUV data of the subject existing image P1 is temporarily stored in the image memory 5.
Further, the CPU 13 controls the imaging control unit 3 to maintain a state in which conditions such as a focus position, an exposure condition, and a white balance at the time of imaging the subject presence image P1 are fixed.

そして、CPU13は、表示制御部10に、撮像レンズ部1、電子撮像部2及び撮像制御部3による被写体の撮像により生成された複数の画像フレームに基づいてライブビュー画像を表示部11の表示画面に表示させるとともに、当該ライブビュー画像に重畳させて、被写体存在画像P1の半透過の表示態様の画像と被写体非存在画像P2の撮像指示メッセージを表示部11の表示画面に表示させる(ステップS4)。
この後、CPU13は、ユーザによる操作入力部12のシャッタボタン12aの所定操作に基づいて撮像指示が入力されたか否かを判定する(ステップS5)。そして、ユーザは、被写体を画角外に移動させるか、或いは被写体が移動するのを待った後、ユーザにより被写体非存在画像P2が被写体存在画像P1の半透過の画像と重なるようにカメラ位置が調整されて、操作入力部12のシャッタボタン12aが所定操作されて撮像指示が入力されたと判定されると(ステップS5;YES)、CPU13は、撮像制御部3に、被写体非存在画像P2(図3(b)参照)の光学像を被写体存在画像P1の撮像後に固定された条件で電子撮像部2により撮像させて、画像データ生成部4に、電子撮像部2から転送された被写体非存在画像P2の画像フレームに基づいて、被写体非存在画像P2のYUVデータを生成させる(ステップS6)。なお、当該被写体存在画像P1のYUVデータは、画像メモリ5に一時記憶される。
Then, the CPU 13 causes the display control unit 10 to display a live view image on the display unit 11 based on a plurality of image frames generated by imaging the subject by the imaging lens unit 1, the electronic imaging unit 2, and the imaging control unit 3. And the image of the semi-transparent display mode of the subject presence image P1 and the imaging instruction message of the subject non-existence image P2 are superimposed on the live view image and displayed on the display screen of the display unit 11 (step S4). .
Thereafter, the CPU 13 determines whether or not an imaging instruction has been input based on a predetermined operation of the shutter button 12a of the operation input unit 12 by the user (step S5). Then, after the user moves the subject out of the angle of view or waits for the subject to move, the user adjusts the camera position so that the subject non-existing image P2 overlaps the semi-transparent image of the subject existing image P1. When it is determined that the shutter button 12a of the operation input unit 12 is operated for a predetermined time and an imaging instruction is input (step S5; YES), the CPU 13 causes the imaging control unit 3 to display the subject nonexistent image P2 (FIG. 3). The optical image (see (b)) is captured by the electronic imaging unit 2 under conditions fixed after the subject presence image P1 is captured, and the subject non-existence image P2 transferred from the electronic imaging unit 2 to the image data generation unit 4 is captured. YUV data of the subject non-existing image P2 is generated based on the image frame (step S6). The YUV data of the subject existing image P1 is temporarily stored in the image memory 5.

次に、CPU13は、特徴量演算部6、ブロックマッチング部7及び画像処理部8に、画像メモリ5に一時記憶されている被写体非存在画像P2のYUVデータを基準として、被写体存在画像P1のYUVデータを射影変換させるための射影変換行列を所定の画像変換モデル(例えば、相似変換モデル、或いは合同変換モデル)で算出させる(ステップS7)。
具体的には、特徴量演算部6は、被写体非存在画像P2のYUVデータに基づいて、所定数(或いは、所定数以上)の特徴の高いブロック領域(特徴点)を選択して、当該ブロックの内容をテンプレートとして抽出する。そして、ブロックマッチング部7は、特徴抽出処理にて抽出されたテンプレートの画素値が最適にマッチする位置を被写体存在画像P1内にて探索して、画素値の相違度の評価値が最も良かった被写体非存在画像P2と被写体存在画像P1間の最適なオフセットを当該テンプレートの動きベクトルとして算出する。そして、画像処理部8の位置合わせ部8aは、ブロックマッチング部7により算出された複数のテンプレートの動きベクトルに基づいて全体の動きベクトルを統計的に算出し、当該動きベクトルに係る特徴点対応を用いて被写体存在画像P1の射影変換行列を算出する。
Next, the CPU 13 uses the YUV data of the subject non-existing image P2 temporarily stored in the image memory 5 in the feature amount calculation unit 6, the block matching unit 7, and the image processing unit 8 as a reference to YUV of the subject existing image P1. A projection transformation matrix for projectively transforming data is calculated using a predetermined image transformation model (for example, a similarity transformation model or a joint transformation model) (step S7).
Specifically, the feature amount calculation unit 6 selects a predetermined number (or a predetermined number or more) of highly featured block areas (feature points) based on the YUV data of the subject non-existing image P2, and selects the relevant block. Is extracted as a template. Then, the block matching unit 7 searches the subject existing image P1 for a position where the pixel value of the template extracted by the feature extraction process is optimally matched, and the evaluation value of the difference between the pixel values is the best. An optimal offset between the subject non-existing image P2 and the subject existing image P1 is calculated as a motion vector of the template. Then, the alignment unit 8a of the image processing unit 8 statistically calculates the entire motion vector based on the motion vectors of the plurality of templates calculated by the block matching unit 7, and performs feature point correspondence related to the motion vector. Using this, a projective transformation matrix of the subject existing image P1 is calculated.

次に、CPU13は、位置合わせ部8aに、算出された射影変換行例に基づいて被写体存在画像P1を射影変換させることで、被写体存在画像P1のYUVデータと被写体非存在画像P2のYUVデータとを位置合わせする処理を行わせる(ステップS8)。   Next, the CPU 13 causes the alignment unit 8a to perform projective transformation of the subject presence image P1 based on the calculated projective transformation row example, whereby the YUV data of the subject presence image P1 and the YUV data of the subject non-existence image P2 Is performed (step S8).

そして、CPU13は、画像処理部8の被写体領域抽出部8bに、被写体存在画像P1から被写体が含まれる被写体領域Sを抽出する処理を行わせる(ステップS9)。
具体的には、被写体領域抽出部8bは、被写体存在画像P1のYUVデータと被写体非存在画像P2のYUVデータの各々に対してローパスフィルタをかけて各画像の高周波成分を除去する。その後、被写体領域抽出部8bは、ローパスフィルタをかけた被写体存在画像P1と被写体非存在画像P2との間で対応する各画素について相違度を算出して相違度マップを生成する。続けて、被写体領域抽出部8bは、各画素に係る相違度マップを所定の閾値で2値化した後、相違度マップから細かいノイズや手ぶれにより相違が生じた領域を除去するために収縮処理を行う。その後、被写体領域抽出部8bは、ラベリング処理を行って、所定値以下の領域や最大領域以外の領域を除去した後、一番大きな島のパターンを被写体領域Sとして特定し、収縮分を修正するための膨張処理を行う。
Then, the CPU 13 causes the subject region extraction unit 8b of the image processing unit 8 to perform a process of extracting the subject region S including the subject from the subject presence image P1 (step S9).
Specifically, the subject region extraction unit 8b applies a low-pass filter to each of the YUV data of the subject presence image P1 and the YUV data of the subject non-existence image P2 to remove the high-frequency component of each image. Thereafter, the subject area extraction unit 8b calculates a difference for each corresponding pixel between the subject existing image P1 and the subject non-existing image P2 subjected to the low-pass filter, and generates a difference map. Subsequently, the subject region extraction unit 8b binarizes the dissimilarity map relating to each pixel with a predetermined threshold value, and then performs a contraction process to remove a region in which the difference is caused by fine noise or camera shake from the dissimilarity map. Do. After that, the subject region extraction unit 8b performs a labeling process to remove a region below a predetermined value or a region other than the maximum region, identifies the largest island pattern as the subject region S, and corrects the shrinkage. Expansion processing is performed.

次に、CPU13は、画像処理部8の位置情報生成部8cに、抽出された被写体領域Sの被写体存在画像P1内での位置を示すアルファマップを生成させる(ステップS10)。   Next, the CPU 13 causes the position information generation unit 8c of the image processing unit 8 to generate an alpha map indicating the position of the extracted subject region S in the subject existing image P1 (step S10).

その後、CPU13は、画像処理部8の切抜画像生成部8dに、被写体の画像を所定の単一色画像と合成した被写体切り抜き画像P3(図3(c)参照)の画像データを生成する処理を行わせる(ステップS11)。
具体的には、切抜画像生成部8dは、被写体存在画像P1、単一色画像及びアルファマップを読み出して画像メモリ5に展開した後、被写体存在画像P1の全ての画素について、アルファ値が0の画素については(α=0)、透過させ、アルファ値が0<α<1の画素については(0<α<1)、所定の単一色とブレンディングを行い、アルファ値が1の画素については(α=1)、何もせずに所定の単一色に対して透過させないようにする。
Thereafter, the CPU 13 performs a process of generating image data of a subject cutout image P3 (see FIG. 3C) obtained by combining the subject image with a predetermined single color image in the cutout image generation unit 8d of the image processing unit 8. (Step S11).
Specifically, the cut-out image generation unit 8d reads out the subject existing image P1, the single color image, and the alpha map and develops them in the image memory 5, and thereafter, for all the pixels of the subject existing image P1, the pixels having an alpha value of 0. (Α = 0) for transmission, and for pixels with an alpha value of 0 <α <1, (0 <α <1), blending with a predetermined single color is performed, and for pixels with an alpha value of 1 (α = 1) Do nothing and do not transmit light to a predetermined single color.

その後、CPU13は、記録媒体9の所定の記憶領域に、画像処理部8の位置情報生成部8cにより生成されたアルファマップと被写体切り抜き画像P3の画像データを対応付けて、当該被写体切り抜き画像P3の画像データの拡張子を「.jpe」として一ファイルで記憶させる(ステップS12)。
これにより、被写体切り抜き処理を終了する。この結果、例えば、背景内から被写体として自動車が抽出された被写体切り抜き画像P3の静止画像データが生成される。
Thereafter, the CPU 13 associates the alpha map generated by the position information generation unit 8c of the image processing unit 8 with the image data of the subject clipped image P3 in a predetermined storage area of the recording medium 9, and stores the clipped image P3 of the subject clipped image P3. The extension of the image data is stored as one file with “.jpe” (step S12).
Thereby, the subject clipping process is completed. As a result, for example, still image data of a subject cutout image P3 in which a car is extracted as a subject from the background is generated.

次に、撮像装置100による背景用画像生成処理について、図4を参照して説明する。
図4は、背景用画像生成処理に係る動作の一例を示すフローチャートである。
背景用画像生成処理は、通常の静止画像の撮像処理であり、ユーザによる操作入力部12の選択決定ボタン12bの所定操作に基づいて、メニュー画面に表示された複数の撮像モードの中から静止画撮像モードが選択指示された場合に実行される処理である。
Next, background image generation processing by the imaging apparatus 100 will be described with reference to FIG.
FIG. 4 is a flowchart illustrating an example of an operation related to the background image generation processing.
The background image generation process is a normal still image imaging process, and a still image is selected from a plurality of imaging modes displayed on the menu screen based on a predetermined operation of the selection determination button 12b of the operation input unit 12 by the user. This is a process executed when an imaging mode selection instruction is given.

図4に示すように、先ず、CPU13は、表示制御部10に、撮像レンズ部1、電子撮像部2及び撮像制御部3による背景用画像P4の撮像により生成された複数の画像フレームに基づいてライブビュー画像を表示部11の表示画面に表示させる(ステップS21)。   As shown in FIG. 4, first, the CPU 13 causes the display control unit 10 based on a plurality of image frames generated by imaging the background image P4 by the imaging lens unit 1, the electronic imaging unit 2, and the imaging control unit 3. The live view image is displayed on the display screen of the display unit 11 (step S21).

次に、CPU13は、ユーザによる操作入力部12のシャッタボタン12aの所定操作に基づいて撮像指示が入力されたか否かを判定する(ステップS22)。ここで、撮像指示が入力されたと判定されると(ステップS22;YES)、CPU13は、撮像制御部3に、フォーカスレンズの合焦位置や露出条件(シャッター速度、絞り、増幅率等)やホワイトバランス等の条件を調整させて、背景用画像P4(図8(b)参照)の光学像を所定の条件で電子撮像部2により撮像させる(ステップS23)。   Next, the CPU 13 determines whether or not an imaging instruction has been input based on a predetermined operation of the shutter button 12a of the operation input unit 12 by the user (step S22). If it is determined that an imaging instruction has been input (step S22; YES), the CPU 13 instructs the imaging control unit 3 to focus the focus lens, exposure conditions (shutter speed, aperture, amplification factor, etc.) and white. By adjusting conditions such as balance, an optical image of the background image P4 (see FIG. 8B) is picked up by the electronic image pickup unit 2 under predetermined conditions (step S23).

続けて、CPU13は、画像データ生成部4に、電子撮像部2から転送された背景用画像P4の画像フレームのYUVデータを生成させた後、記録媒体9の所定の記憶領域に、背景用画像P4のYUVデータをExif形式の画像ファイルとして記憶させる(ステップS24)。
これにより、背景用画像生成処理を終了する。この結果、例えば、山林が記録された背景用画像P4の静止画像データが生成される。
Subsequently, the CPU 13 causes the image data generation unit 4 to generate the YUV data of the image frame of the background image P4 transferred from the electronic imaging unit 2, and then the background image is stored in a predetermined storage area of the recording medium 9. The P4 YUV data is stored as an Exif format image file (step S24).
Thus, the background image generation process is terminated. As a result, for example, still image data of the background image P4 in which the forest is recorded is generated.

次に、合成画像生成処理について図5〜図11を参照して詳細に説明する。
図5は、合成画像生成処理に係る動作の一例を示すフローチャートである。また、図6は、合成画像生成処理における第1画像合成処理に係る動作の一例を示すフローチャートであり、図7は、合成画像生成処理における第2画像合成処理に係る動作の一例を示すフローチャートである。また、図8(a)及び図8(b)は、合成画像生成処理にて画像合成される画像の一例を模式的に示す図である。また、図9(a)〜図9(d)は、合成画像生成処理に係る動画像データの一例を模式的に示す図であり、図10(a)〜図10(d)は、動画像データから抽出された動く被写体の一例を模式的に示す図である。また、図11(a)〜図11(d)は、合成画像生成処理により生成された合成動画の一例を模式的に示す図である。
Next, the composite image generation process will be described in detail with reference to FIGS.
FIG. 5 is a flowchart illustrating an example of an operation related to the composite image generation process. FIG. 6 is a flowchart showing an example of an operation related to the first image composition process in the composite image generation process, and FIG. 7 is a flowchart showing an example of an operation related to the second image composition process in the composite image generation process. is there. FIGS. 8A and 8B are diagrams schematically illustrating an example of an image that is combined in the combined image generation process. FIGS. 9A to 9D are diagrams schematically illustrating an example of moving image data related to the composite image generation process, and FIGS. 10A to 10D are moving images. It is a figure which shows typically an example of the to-be-photographed subject extracted from the data. FIGS. 11A to 11D are diagrams schematically illustrating an example of a synthesized moving image generated by the synthesized image generation process.

合成画像生成処理は、ユーザによる操作入力部12の選択決定ボタン12bの所定操作に基づいて、メニュー画面に表示された複数の撮像モードの中から画像合成モードが選択指示された場合に実行される処理である。
図5に示すように、ユーザによる操作入力部12の所定操作に基づいて、記録媒体9に記録されている複数の画像の中で合成画像の背景となる所望の背景用画像P4(図8(a)参照)が選択して指定されると、画像処理部8は、指定された背景用画像P4の画像データを読み出して画像メモリ5に展開する(ステップS31)。
The composite image generation processing is executed when an image combination mode is selected from a plurality of imaging modes displayed on the menu screen based on a predetermined operation of the selection determination button 12b of the operation input unit 12 by the user. It is processing.
As shown in FIG. 5, based on a predetermined operation of the operation input unit 12 by the user, a desired background image P4 (FIG. 8 (FIG. 8)) that becomes the background of the composite image among a plurality of images recorded on the recording medium 9. When a) (see a) is selected and specified, the image processing unit 8 reads the image data of the specified background image P4 and develops it in the image memory 5 (step S31).

次に、ユーザによる操作入力部12の所定操作に基づいて、記録媒体9に記録されている複数の画像の中で所望の被写体切り抜き画像P3(図8(b)参照)が選択して指定されると、画像処理部8は、指定された被写体切り抜き画像P3の画像データを読み出して画像メモリ5に展開する(ステップS32)。
続けて、CPU13は、静止画像である被写体切り抜き画像P3の被写体領域Sの画像を所定動作させる合成動画の生成指示選択画面を表示部の表示画面に表示させて、ユーザによる操作入力部12の選択決定ボタン12bの所定操作に基づいて合成動画の生成指示が入力されたか否かを判定する(ステップS33)。
Next, based on a predetermined operation of the operation input unit 12 by the user, a desired subject cutout image P3 (see FIG. 8B) is selected and designated from among a plurality of images recorded on the recording medium 9. Then, the image processing unit 8 reads out the image data of the designated subject cutout image P3 and develops it in the image memory 5 (step S32).
Subsequently, the CPU 13 causes the display screen of the display unit to display a synthetic moving image generation instruction selection screen for performing a predetermined operation on the image of the subject region S of the subject cutout image P3 that is a still image, and the user selects the operation input unit 12. It is determined whether or not an instruction to generate a composite moving image has been input based on a predetermined operation of the determination button 12b (step S33).

ここで、合成動画の生成指示が入力されたと判定されると(ステップS33;YES)、CPU13は、記録媒体9に記録されている動き画像データのうち、ユーザによる操作入力部12の選択決定ボタン12bの所定操作に基づいて指定された動き画像データを動き画像取得部8eに読み出させる(ステップS34)。ここで、例えば、連写によりMotion−JPEG形式で記録された複数の画像フレームf、…からなる動画像データM(図9(a)〜図9(d)参照)を、動き画像データとして読み出すものとする。
続けて、CPU13は、読み出された動画像データMに対して所定の画像処理を施すことにより当該動画像データMに含まれる動く被写体Oを特定し、この動く被写体Oの単位時間当たりの変化を「動き情報」として検出する(ステップS35)。
ここで、上記の「動き情報」には、動画像データMを構成する各画像フレームfの画角における動く被写体Oの中心位置の単位時間当たりの変化(以下、相対位置情報という)、動画像データMを構成する各画像フレームfにおける動く被写体Oの画像が占める範囲の単位時間当たりの変化(以下、相対範囲情報という)、動画像データMを構成する各画像フレームfの水平方向及び垂直方向の少なくとも一方に対する、動く被写体Oの回転角度の単位時間当たりの変化(以下、相対角度情報という)が含まれる。
その後、ユーザによる操作入力部12の選択決定ボタン12bの所定操作に基づいて、合成動画の最初の画像フレームf1における被写体切り抜き画像P3の初期合成位置が決定されると(ステップS36)、CPU13は、背景用画像P4と被写体切り抜き画像P3とを合成して合成動画を生成する第1画像合成処理を画像合成部8gに行わせる(ステップS37)。
なお、被写体切り抜き画像P3の初期合成位置は、動き検出部8fにより検出された「動き情報」などに基づいて当該被写体切り抜き画像P3の被写体領域Sの画像が背景用画像P4からはみ出さないように画像合成部8gが自動的に決定するようにしても良い。
Here, if it is determined that an instruction to generate a synthetic moving image has been input (step S33; YES), the CPU 13 selects a selection determination button of the operation input unit 12 by the user from the motion image data recorded on the recording medium 9. The motion image acquisition unit 8e is caused to read the motion image data designated based on the predetermined operation 12b (step S34). Here, for example, moving image data M (see FIGS. 9A to 9D) including a plurality of image frames f,... Recorded in the Motion-JPEG format by continuous shooting is read as motion image data. Shall.
Subsequently, the CPU 13 performs predetermined image processing on the read moving image data M to identify the moving subject O included in the moving image data M, and changes the moving subject O per unit time. Is detected as “motion information” (step S35).
Here, the “motion information” includes a change per unit time of the center position of the moving subject O at the angle of view of each image frame f constituting the moving image data M (hereinafter referred to as relative position information), a moving image. The change per unit time of the range of the image of the moving subject O in each image frame f constituting the data M (hereinafter referred to as relative range information), the horizontal direction and the vertical direction of each image frame f constituting the moving image data M Change in the rotation angle of the moving subject O per unit time (hereinafter referred to as relative angle information).
Thereafter, when the initial composite position of the subject cutout image P3 in the first image frame f1 of the composite moving image is determined based on a predetermined operation of the selection determination button 12b of the operation input unit 12 by the user (step S36), the CPU 13 The image synthesizing unit 8g is caused to perform a first image synthesizing process for synthesizing the background image P4 and the subject cutout image P3 to generate a synthesized moving image (step S37).
Note that the initial composite position of the subject clipped image P3 is set so that the image of the subject region S of the subject clipped image P3 does not protrude from the background image P4 based on the “motion information” detected by the motion detector 8f. The image composition unit 8g may determine automatically.

ここで、第1画像合成処理について図6のフローチャートを参照して詳細に説明する。
図6に示すように、画像合成部8gは、被写体切り抜き画像P3と対応付けて保存されているアルファマップを読み出して画像メモリ5に展開する(ステップS51)。
なお、図5のステップS36にて背景用画像P4における被写体切り抜き画像P3の合成位置が決定された際に、背景用画像P4とアルファマップとがずれてしまいアルファマップの範囲外となる領域については、α=0としてアルファ値が存在しない領域を生じさせないようにする。
Here, the first image composition processing will be described in detail with reference to the flowchart of FIG.
As shown in FIG. 6, the image composition unit 8g reads the alpha map stored in association with the subject cutout image P3 and develops it in the image memory 5 (step S51).
Note that when the composition position of the subject cutout image P3 in the background image P4 is determined in step S36 in FIG. 5, the background image P4 and the alpha map are misaligned and the region is out of the alpha map range. , Α = 0, so that an area where no alpha value exists is not generated.

次に、画像合成部8gの合成制御部8hは、合成動画を構成する複数の画像フレームg、…のうち、処理対象に係る最初の画像フレームg1のフレーム番号として「1」を指定する(ステップS52)。
次に、画像合成部8gは、背景用画像P4の何れか一の画素(例えば、左上隅部の画素)を指定して(ステップS53)、当該画素について、アルファマップのアルファ値に基づいて処理を分岐させる(ステップS54)。具体的には、画像合成部8gは、背景用画像P4の何れか一の画素のうち、アルファ値が1の画素については(ステップS54;α=1)、被写体切り抜き画像P3の対応する画素の画素値で上書きし(ステップS55)、アルファ値が0<α<1の画素については(ステップS54;0<α<1)、1の補数(1−α)を用いて被写体領域Sを切り抜いた画像(背景用画像×(1−α))を生成した後、アルファマップにおける1の補数(1−α)を用いて被写体切り抜き画像P3を生成した際に単一背景色とブレンドした値を計算し、当該値を被写体切り抜き画像P3から減算し、それを被写体領域Sを切り抜いた画像(背景用画像×(1−α))と合成し(ステップS56)、アルファ値が0の画素については(ステップS54;α=0)、何もせずに背景用画像P4を透過さるようにする。
Next, the composition control unit 8h of the image composition unit 8g designates “1” as the frame number of the first image frame g1 related to the processing object among the plurality of image frames g,. S52).
Next, the image composition unit 8g designates any one pixel (for example, the pixel in the upper left corner) of the background image P4 (step S53), and processes the pixel based on the alpha value of the alpha map. Is branched (step S54). Specifically, the image composition unit 8g, for any one of the pixels of the background image P4, for a pixel with an alpha value of 1 (step S54; α = 1), the corresponding pixel of the subject cutout image P3 The pixel value is overwritten (step S55), and for the pixel with an alpha value of 0 <α <1 (step S54; 0 <α <1), the subject area S is cut out using the one's complement (1-α). After the image (background image × (1-α)) is generated, the blended value with the single background color is calculated when the subject cutout image P3 is generated using the one's complement (1-α) in the alpha map. Then, the value is subtracted from the subject cutout image P3, and is combined with an image obtained by cutting out the subject region S (background image × (1-α)) (step S56). Step S54; α = 0), Also to monkey through the background for the image P4 without.

続けて、画像合成部8gは、背景用画像P4の全ての画素について処理したか否かを判定する(ステップS57)。
ここで、全ての画素について処理していないと判定されると(ステップS57;NO)、画像合成部8gは、処理対象として次の画素を指定して当該画素に処理対象を移動させて(ステップS58)、処理をステップS54に移行させる。
上記の処理を、ステップS57にて全ての画素について処理したと判定されるまで(ステップS57;YES)、繰り返すことで、画像合成部8gは、被写体切り抜き画像P3と背景用画像P4とを合成した被写体合成画像P5の合成動画を構成する最初の画像フレームg1(図11(a)参照)を生成する。
Subsequently, the image composition unit 8g determines whether or not all the pixels of the background image P4 have been processed (step S57).
If it is determined that all the pixels have not been processed (step S57; NO), the image composition unit 8g designates the next pixel as the processing target and moves the processing target to the pixel (step S57). (S58), the process proceeds to step S54.
By repeating the above processing until it is determined that all pixels have been processed in step S57 (step S57; YES), the image composition unit 8g composites the subject cutout image P3 and the background image P4. A first image frame g1 (see FIG. 11A) that forms a composite moving image of the subject composite image P5 is generated.

そして、ステップS57にて全ての画素について処理したと判定されると(ステップS57;YES)、合成制御部8hは、合成動画を構成する全ての画像フレームgについて処理したか否かを判定する(ステップS59)。
ここで、全ての画像フレームgについて処理していないと判定されると(ステップS59;NO)、合成制御部8hは、合成動画を構成する複数の画像フレームg、…のうち、処理対象として次の画像フレームgに係るフレーム番号を+1インクリメントして指定する(ステップS60)。これにより、二番目の画像フレームg2が画像合成処理の対象として指定される。
If it is determined in step S57 that all pixels have been processed (step S57; YES), the composition control unit 8h determines whether or not processing has been performed for all image frames g constituting the composite video ( Step S59).
Here, if it is determined that all image frames g have not been processed (step S59; NO), the composition control unit 8h selects the next among the plurality of image frames g,. The frame number related to the image frame g is designated by incrementing by +1 (step S60). As a result, the second image frame g2 is designated as the target of the image composition process.

次に、合成制御部8hは、動き検出部8fにより検出された相対位置情報、相対範囲情報、相対角度情報等の「動き情報」に基づいて、合成動画を構成する二番目の画像フレームg2について、被写体切り抜き画像P3の合成位置に係る被写体領域Sの中心座標、最初の画像フレームg1に対する被写体領域Sが占める範囲、最初の画像フレームg1に対する被写体領域Sの回転角度等の合成内容情報を生成する(ステップS61)。
続けて、合成制御部8hは、二番目の画像フレームg2について、順次生成された被写体切り抜き画像P3の合成内容情報に応じて当該被写体切り抜き画像P3の合成位置、大きさや形状、及び、回転角度等を設定する(ステップS62)。このとき、合成制御部8hは、設定した被写体切り抜き画像P3の合成位置、大きさや形状、及び、回転角度等に応じてアルファマップにおける被写体領域部分(α=1)及び被写体領域以外の部分(α=0)を修正して、各画像フレームgにおける被写体切り抜き画像P3とアルファマップとがずれないように調整する。
Next, the composition control unit 8h uses the “motion information” such as the relative position information, the relative range information, and the relative angle information detected by the motion detection unit 8f for the second image frame g2 constituting the composition video. The composite content information such as the center coordinates of the subject area S related to the synthesis position of the subject clipped image P3, the range occupied by the subject area S with respect to the first image frame g1, and the rotation angle of the subject area S with respect to the first image frame g1 are generated. (Step S61).
Subsequently, for the second image frame g2, the composition control unit 8h determines the composition position, size, shape, rotation angle, and the like of the subject clipped image P3 according to the composition content information of the subject clipped image P3 that is sequentially generated. Is set (step S62). At this time, the composition control unit 8h determines the subject area part (α = 1) and the part other than the subject area (α in the alpha map) according to the composition position, size, shape, rotation angle, and the like of the set subject clipped image P3. = 0) is corrected so that the subject cutout image P3 and the alpha map in each image frame g are adjusted so as not to be shifted.

次に、画像合成部8gは、処理をステップS53に移行させて、背景用画像P4の例えば左上隅部の画素からステップS54〜S58を順次行うことで、被写体切り抜き画像P3と背景用画像P4とを合成した被写体合成画像P5の合成動画を構成する二番目の画像フレームg2を生成する。これにより、最初の画像フレームg1に対して被写体領域Sの合成位置、大きさや形状、及び、回転角度等が調整された二番目の画像フレームg2(図11(b)参照)が生成される。
そして、二番目の画像フレームg2の生成が完了することによって、ステップS57にて全ての画素について合成処理したと判定されると(ステップS57;YES)、処理をステップS58に移行させて、合成制御部8hは、合成動画を構成する全ての画像フレームgについて合成処理したか否かを判定する(ステップS59)。
上記の合成処理を、全ての画像フレームgについて行った判定されるまで(ステップS59;YES)、繰り返すことで、画像合成部8gは、被写体合成画像P5の合成動画を構成する全ての画像フレームg1〜gn(図11(a)〜図11(d)参照)を生成する。
これにより、第1画像合成処理を終了する。
Next, the image composition unit 8g shifts the processing to step S53, and sequentially performs steps S54 to S58 from, for example, the upper left corner pixel of the background image P4, so that the subject cutout image P3 and the background image P4 To generate a second image frame g2 constituting a synthesized moving image of the subject synthesized image P5. Accordingly, a second image frame g2 (see FIG. 11B) in which the composition position, size, shape, rotation angle, and the like of the subject region S are adjusted with respect to the first image frame g1 is generated.
If the generation of the second image frame g2 is completed and it is determined in step S57 that all pixels have been combined (step S57; YES), the process proceeds to step S58 to perform combining control. The unit 8h determines whether or not the synthesis process has been performed for all the image frames g constituting the synthesized moving image (step S59).
By repeating the above synthesis process for all image frames g (step S59; YES), the image synthesis unit 8g repeats all the image frames g1 constituting the synthesized video of the subject synthesized image P5. To gn (see FIGS. 11A to 11D) are generated.
Thereby, the first image composition process is completed.

図5に示すように、その後、CPU13は、表示制御部10に、画像合成部8gにより生成された複数の画像フレームg、…からなる被写体合成画像P5の合成動画の画像データに基づいて、各画像フレームgを所定の表示フレームレートで切り換えて表示部11の表示画面に再生表示させることで、背景用画像P4を背景として自動車(被写体領域S)が所定動作する被写体合成画像P5の合成動画を再生する(ステップS38)。   As shown in FIG. 5, after that, the CPU 13 causes the display control unit 10 to display each of the synthesized moving image image data of the subject synthesized image P5 including the plurality of image frames g generated by the image synthesizing unit 8g. By switching the image frame g at a predetermined display frame rate and reproducing and displaying it on the display screen of the display unit 11, a composite moving image of the subject composite image P5 in which the automobile (subject region S) operates in a predetermined manner with the background image P4 as the background Playback is performed (step S38).

一方、ステップS33にて、合成動画の生成指示が入力されていないと判定されると(ステップS33;NO)、ユーザによる操作入力部12の選択決定ボタン12bの所定操作に基づいて、ユーザ所望の被写体切り抜き画像P3の合成位置を指定して決定した後(ステップS39)、CPU13は、背景用画像P4と被写体切り抜き画像P3とを合成して通常の静止画像である被写体合成画像を生成する第2画像合成処理を画像合成部8gに行わせる(ステップS40)。   On the other hand, if it is determined in step S33 that a synthetic moving image generation instruction has not been input (step S33; NO), based on a predetermined operation of the selection determination button 12b of the operation input unit 12 by the user, a user desired After specifying and determining the synthesis position of the subject clipped image P3 (step S39), the CPU 13 synthesizes the background image P4 and the subject clipped image P3 to generate a subject composite image that is a normal still image. The image composition processing is performed by the image composition unit 8g (step S40).

ここで、第2画像合成処理について図7を参照して詳細に説明する。
図7に示すように、画像合成部8gは、被写体切り抜き画像P3と対応付けて保存されているアルファマップを読み出して画像メモリ5に展開する(ステップS71)。
なお、図5のステップS39にて背景用画像P4における被写体切り抜き画像P3の合成位置が決定された際に、背景用画像P4とアルファマップとがずれてしまいアルファマップの範囲外となる領域については、α=0としてアルファ値が存在しない領域を生じさせないようにする。
Here, the second image composition processing will be described in detail with reference to FIG.
As shown in FIG. 7, the image composition unit 8g reads the alpha map stored in association with the subject cutout image P3 and develops it in the image memory 5 (step S71).
Note that when the synthesis position of the subject cutout image P3 in the background image P4 is determined in step S39 in FIG. 5, the background image P4 and the alpha map are misaligned and are out of the alpha map range. , Α = 0, so that an area where no alpha value exists is not generated.

次に、画像合成部8gは、背景用画像P4の何れか一の画素(例えば、左上隅部の画素)を指定して(ステップS72)、当該画素について、アルファマップのアルファ値に基づいて処理を分岐させる(ステップS73)。具体的には、画像合成部8gは、背景用画像P4の何れか一の画素のうち、アルファ値が1の画素については(ステップS73;α=1)、被写体切り抜き画像P3の対応する画素の画素値で上書きし(ステップS74)、アルファ値が0<α<1の画素については(ステップS73;0<α<1)、1の補数(1−α)を用いて被写体領域SAを切り抜いた画像(背景用画像×(1−α))を生成した後、アルファマップにおける1の補数(1−α)を用いて被写体切り抜き画像P3を生成した際に単一背景色とブレンドした値を計算し、当該値を被写体切り抜き画像P3から減算し、それを被写体領域SAを切り抜いた画像(背景用画像×(1−α))と合成し(ステップS75、アルファ値が0の画素については(ステップS73;α=0)、何もせずに背景用画像P4を透過さるようにする。   Next, the image composition unit 8g designates any one pixel (for example, the pixel at the upper left corner) of the background image P4 (step S72), and processes the pixel based on the alpha value of the alpha map. Is branched (step S73). Specifically, the image composition unit 8g, for any one of the pixels of the background image P4, for a pixel with an alpha value of 1 (step S73; α = 1), the corresponding pixel of the subject cutout image P3 The pixel value is overwritten (step S74), and for the pixel with an alpha value of 0 <α <1, the subject area SA is cut out using 1's complement (1-α) (step S73; 0 <α <1). After the image (background image × (1-α)) is generated, the blended value with the single background color is calculated when the subject cutout image P3 is generated using the one's complement (1-α) in the alpha map. Then, the value is subtracted from the subject cutout image P3, and is combined with an image obtained by cutting out the subject area SA (background image × (1-α)) (step S75, for pixels with an alpha value of 0 (step S73; α = 0) Anything to monkey through the background for the image P4 without.

続けて、画像合成部8gは、背景用画像P4の全ての画素について処理したか否かを判定する(ステップS76)。
ここで、全ての画素について処理していないと判定されると(ステップS76;NO)、画像合成部8gは、処理対象として次の画素を指定して当該画素に処理対象を移動させて(ステップS77)、処理をステップS73に移行させる。
上記の処理を、ステップS76にて全ての画素について処理したと判定されるまで(ステップS76;YES)、繰り返すことで、画像合成部8gは、被写体切り抜き画像P3と背景用画像P4とを合成した通常の静止画像である被写体合成画像の画像データを生成させる。
これにより、第2画像合成処理を終了する。
Subsequently, the image composition unit 8g determines whether or not all the pixels of the background image P4 have been processed (step S76).
If it is determined that all the pixels have not been processed (step S76; NO), the image composition unit 8g designates the next pixel as a processing target and moves the processing target to the pixel (step S76). (S77) The process proceeds to step S73.
By repeating the above process until it is determined in step S76 that all pixels have been processed (step S76; YES), the image composition unit 8g composites the subject cutout image P3 and the background image P4. Image data of a subject composite image that is a normal still image is generated.
Thus, the second image composition process is finished.

図5に示すように、その後、CPU13は、表示制御部10に、画像合成部8gにより生成された被写体合成画像の画像データに基づいて、背景用画像P4に被写体が重畳された被写体合成画像(図示略)を表示部11の表示画面に表示させる(ステップS38)。
これにより、合成画像生成処理を終了する。
As shown in FIG. 5, thereafter, the CPU 13 causes the display control unit 10 to combine the subject on the background image P4 based on the image data of the subject composite image generated by the image composition unit 8g ( (Not shown) is displayed on the display screen of the display unit 11 (step S38).
Thus, the composite image generation process is finished.

以上のように、本実施形態の撮像装置100によれば、動く被写体Oの「動き情報」を動き検出部8fにより検出し、当該「動き情報」を反映させて被写体切り抜き画像P3の被写体領域Sを所定動作させるように当該被写体切り抜き画像P3と背景用画像P4とを合成して被写体合成画像P5の合成動画を画像合成部8gにより生成する。
具体的には、動き検出部8fは、「動き情報」として、動き画像取得部8eにより取得された動画像データMにおける画像フレームfにわたる動く被写体Oの変化を「動き情報」として検出する。そして、合成制御部8hは、動き検出部8fにより検出された「動き情報」に基づいて、当該合成動画の画像フレームfの各々を構成する被写体切り抜き画像P3の合成内容情報を順次生成して、順次生成された合成内容情報に応じて、被写体切り抜き画像P3の背景用画像P4における合成位置、大きさ、形状及び回転角度等を設定して、各画像フレームg毎に背景用画像P4と合成していくことで、複数の画像フレームg、…からなる被写体合成画像P5の合成動画を生成する。
従って、静止画像どうしの画像合成であっても、動き画像データから検出した動く被写体Oの「動き情報」に基づいて、当該動く被写体Oの動きと略等しい動作を合成後の被写体合成画像P5に与えることができ、興趣性の高い被写体合成画像P5を生成することができる。
As described above, according to the imaging apparatus 100 of the present embodiment, the “motion information” of the moving subject O is detected by the motion detection unit 8f, and the subject region S of the subject cutout image P3 is reflected by reflecting the “motion information”. The subject cutout image P3 and the background image P4 are combined so that the subject composition image P5 is synthesized by the image composition unit 8g.
Specifically, the motion detection unit 8f detects, as “motion information”, a change of the moving subject O over the image frame f in the moving image data M acquired by the motion image acquisition unit 8e as “motion information”. Then, based on the “motion information” detected by the motion detection unit 8f, the composition control unit 8h sequentially generates composition content information of the subject clipped image P3 that constitutes each of the image frames f of the composite movie, The composition position, size, shape, rotation angle, and the like of the subject clipped image P3 in the background image P4 are set according to the sequentially generated composition content information, and the image is synthesized with the background image P4 for each image frame g. As a result, a composite moving image of the subject composite image P5 composed of a plurality of image frames g,... Is generated.
Accordingly, even in the case of image synthesis between still images, based on the “motion information” of the moving subject O detected from the motion image data, an operation substantially equivalent to the motion of the moving subject O is performed on the synthesized subject composite image P5. It is possible to generate a subject composition image P5 that can be given and is highly interesting.

また、動画像データMから動く被写体Oの「動き情報」として当該動く被写体Oの位置、大きさ、形状、回転角度を検出するので、当該「動き情報」を用いることで被写体切り抜き画像P3の被写体領域Sの合成位置や向きだけでなく、大きさや形状も動的に変更することができ、静止画像どうしの画像合成であっても、表現力豊かな動きを付与することができる。   Further, since the position, size, shape, and rotation angle of the moving subject O are detected as the “movement information” of the moving subject O from the moving image data M, the subject of the subject cutout image P3 can be obtained by using the “movement information”. Not only the composition position and orientation of the region S, but also the size and shape can be dynamically changed, and even in the case of image composition between still images, a motion rich in expressiveness can be imparted.

また、動く被写体Oを撮像することで連続した複数の静止画からなる動画像データM(動き画像データ)を生成して、動き画像取得部8eは、生成された動画像データMを記録媒体9から取得することができる。
つまり、所定の動く被写体Oの動きが記録された動き画像データを記録媒体9に記録しておくだけで、この記録媒体9から動き画像データを取得して当該動き画像データに基づいて「動き情報」を生成することができ、当該撮像装置100単体で被写体切り抜き画像P3の被写体領域Sを所定動作させるように被写体切り抜き画像P3と背景用画像P4とを合成して被写体合成画像P5を生成することができる。
Further, by capturing a moving subject O, moving image data M (moving image data) composed of a plurality of continuous still images is generated, and the moving image acquisition unit 8e uses the generated moving image data M as a recording medium 9. Can be obtained from.
That is, only by recording the motion image data in which the motion of the predetermined moving subject O is recorded on the recording medium 9, the motion image data is acquired from the recording medium 9 and the “motion information” is obtained based on the motion image data. The subject cutout image P3 and the background image P4 are combined to generate a subject composite image P5 so that the subject region S of the subject cutout image P3 is operated in a predetermined manner by the imaging apparatus 100 alone. Can do.

なお、本発明は、上記実施形態に限定されることなく、本発明の趣旨を逸脱しない範囲において、種々の改良並びに設計の変更を行っても良い。
例えば、動き画像データとして、Motion−JPEG形式で記録された動画像データMを例示したが、これに限られるものではなく、例えば、連続した複数の静止画からなる連写画像であっても良い。この場合にあっても、上記実施形態と同様に、連続する静止画どうしの間で動く被写体Oの単位時間当たりの「動き情報」を検出して、当該「動き情報」に基づいて被写体切り抜き画像P3の被写体領域Sを所定動作させる。
また、前もって被写体切り抜き処理を実行して、当該処理により生成された複数の画像フレームf、…からなる被写体切り抜き画像P3の動画像データMを利用して、「動き情報」を検出しても良い。この場合には、動く被写体Oである被写体領域Sが予め抽出されていることから、動く被写体Oの特定の処理を簡略化して、被写体切り抜き処理の高速化を図ることができる。
The present invention is not limited to the above-described embodiment, and various improvements and design changes may be made without departing from the spirit of the present invention.
For example, the moving image data M recorded in the Motion-JPEG format is exemplified as the moving image data. However, the moving image data is not limited to this, and may be, for example, a continuous image including a plurality of continuous still images. . Even in this case, as in the above-described embodiment, the “movement information” per unit time of the subject O moving between successive still images is detected, and the subject cut-out image is based on the “movement information”. A predetermined operation is performed on the subject area S of P3.
Alternatively, the subject clipping process may be executed in advance, and the “motion information” may be detected using the moving image data M of the subject clipping image P3 formed by the plurality of image frames f,. . In this case, since the subject area S, which is the moving subject O, is extracted in advance, it is possible to simplify the specific processing of the moving subject O and speed up the subject clipping process.

また、上記実施形態にあっては、動画像データMの記録方式として、Motion−JPEG形式を例示したが、MPEG形式であっても良い。かかる場合には、動く被写体Oの動きを検出する際に、予め当該MPEG形式の動画像データMを復号化して複数の画像フレームf、…を生成することで、画像フレームf間の動く被写体Oの動きの検出を行うことができる。   In the above embodiment, the Motion-JPEG format is exemplified as the recording method of the moving image data M, but the MPEG format may be used. In such a case, when the movement of the moving subject O is detected, the moving image data M in the MPEG format is decoded in advance to generate a plurality of image frames f,. Motion can be detected.

さらに、上記実施形態にあっては、「動き情報」としての相対位置情報、相対範囲情報、相対角度情報を、最初の画像フレームf1を基準として二番目以降の各画像フレームfについて算出するようにしたが、これに限られるものではなく、連続する画像フレームf間で算出するようにしても良い。即ち、連続する画像フレームf間にて、矩形枠Wの各角部の座標の移動量として相対位置情報を算出し、矩形枠WのX軸方向及びY軸方向の変倍率として相対範囲情報を算出し、矩形枠Wの回転角度として相対角度情報を算出しても良い。   Furthermore, in the above embodiment, the relative position information, the relative range information, and the relative angle information as “motion information” are calculated for each of the second and subsequent image frames f on the basis of the first image frame f1. However, the present invention is not limited to this, and the calculation may be performed between successive image frames f. That is, relative position information is calculated as the amount of movement of the coordinates of each corner of the rectangular frame W between successive image frames f, and the relative range information is calculated as a scaling factor of the rectangular frame W in the X-axis direction and the Y-axis direction. The relative angle information may be calculated as the rotation angle of the rectangular frame W.

また、撮像装置100の構成は、上記実施形態に例示したものは一例であり、これに限られるものではない。即ち、画像合成装置として、撮像装置を例示したが、これに限られるものではい。例えば、被写体切り抜き画像P3、背景用画像P4及び動き画像データの生成は、当該撮像装置100とは異なる撮像装置にて行い、この撮像装置から転送された画像データのみを記録して、合成画像生成処理のみを実行する画像合成装置であっても良い。   In addition, the configuration of the imaging apparatus 100 is merely an example illustrated in the above embodiment, and is not limited thereto. In other words, the image pickup apparatus is exemplified as the image composition apparatus, but is not limited thereto. For example, the subject cutout image P3, the background image P4, and the motion image data are generated by an imaging device different from the imaging device 100, and only the image data transferred from the imaging device is recorded to generate a composite image. An image composition device that executes only processing may be used.

加えて、上記実施形態にあっては、静止画取得手段、検出手段、合成制御手段としての機能を、CPU13の制御下にて、画像処理部8の切抜画像生成部8d、動き検出部8f、画像合成部8gが駆動することにより実現される構成としたが、これに限られるものではなく、CPU13によって所定のプログラム等が実行されることにより実現される構成としても良い。
即ち、プログラムを記憶するプログラムメモリ(図示略)に、静止画取得処理ルーチン、検出処理ルーチン、合成制御処理ルーチンを含むプログラムを記憶しておく。そして、静止画取得処理ルーチンによりCPU13に、第1及び第2静止画像を取得させるようにしても良い。また、検出処理ルーチンによりCPU13に、複数の画像に共通して含まれる被写体の複数の画像にわたる変化を検出させるようにしても良い。また、合成制御処理ルーチンによりCPU13に、第2静止画像を背景として、検出された複数の画像にわたる変化を反映して第1静止画像を合成した合成動画を生成させるようにしても良い。
In addition, in the above embodiment, the functions as the still image acquisition unit, the detection unit, and the synthesis control unit are controlled under the control of the CPU 13 by the cutout image generation unit 8d, the motion detection unit 8f, Although the configuration realized by driving the image composition unit 8g is not limited to this, the configuration may be realized by executing a predetermined program or the like by the CPU 13.
That is, a program including a still image acquisition processing routine, a detection processing routine, and a composition control processing routine is stored in a program memory (not shown) that stores the program. Then, the first and second still images may be acquired by the CPU 13 by a still image acquisition processing routine. Further, the detection processing routine may cause the CPU 13 to detect changes in a plurality of images of a subject included in common in the plurality of images. Further, the synthesis control processing routine may cause the CPU 13 to generate a synthesized moving image in which the first still image is synthesized by reflecting changes over a plurality of detected images with the second still image as a background.

100 撮像装置
1 レンズ部
2 電子撮像部
3 撮像制御部
8 画像処理部
8d 切抜画像生成部
8e 動き画像取得部
8f 動き検出部
8h 画像合成部
8g 合成制御部
9 記録媒体
11 表示部
13 CPU
DESCRIPTION OF SYMBOLS 100 Imaging device 1 Lens part 2 Electronic imaging part 3 Imaging control part 8 Image processing part 8d Cutout image generation part 8e Motion image acquisition part 8f Motion detection part 8h Image composition part 8g Composition control part 9 Recording medium 11 Display part 13 CPU

Claims (8)

第1及び第2静止画像を取得する静止画取得手段と、
複数の画像に共通して含まれる被写体の前記複数の画像にわたる変化を検出する検出手段と、
前記第2静止画像を背景として、前記検出手段によって検出された変化を反映して前記第1静止画像を合成した合成動画を生成する合成手段と、
を備えたことを特徴とする画像合成装置。
Still image acquisition means for acquiring first and second still images;
Detection means for detecting changes over the plurality of images of a subject commonly included in the plurality of images;
Combining means for generating a combined moving image in which the first still image is combined with the second still image as a background and reflecting the change detected by the detecting means;
An image composition device comprising:
前記被写体の前記複数の画像にわたる変化とは、前記複数の画像の画角における前記被写体の位置の単位時間当たりの変化、前記複数の画像における前記被写体の画像が占める範囲の単位時間当たりの変化、前記複数の画像の水平方向及び垂直方向の少なくとも一方に対する前記被写体の回転角度の単位時間当たりの変化の少なくとも何れか一つであることを特徴とする請求項1に記載の画像合成装置。   The change of the subject over the plurality of images is a change per unit time of the position of the subject in the angle of view of the plurality of images, a change per unit time of a range occupied by the image of the subject in the plurality of images, The image synthesizing apparatus according to claim 1, wherein the image synthesizing apparatus is at least one of a change per unit time in a rotation angle of the subject with respect to at least one of a horizontal direction and a vertical direction of the plurality of images. 前記検出手段によって検出された変化を複数枚の画像として記憶する記憶手段を更に備え、
前記合成手段は、
前記記憶手段から複数枚の画像を読み出す読出手段と、
前記第2静止画像を背景画像として、前記読出手段によって読み出された複数枚の画像の夫々における被写体の位置に前記第1静止画像を合成した合成静止画像を複数生成する生成手段と、
を含むことを特徴とする請求項1又は2に記載の画像合成装置。
Storage means for storing changes detected by the detection means as a plurality of images;
The synthesis means includes
Reading means for reading a plurality of images from the storage means;
Generating means for generating a plurality of composite still images obtained by combining the first still images at the positions of subjects in each of a plurality of images read by the reading means with the second still image as a background image;
The image synthesizing apparatus according to claim 1 or 2, characterized by comprising:
前記生成手段は、
前記検出手段により検出された変化に基づいて、合成内容情報を順次生成する合成内容生成手段と、
前記合成内容生成手段により順次生成された合成内容情報に応じて、前記第1静止画像の合成位置、大きさや形状、及び、回転角度のうち、少なくとも何れか一つを設定する設定手段と、
を含むことを特徴とする請求項3に記載の画像合成装置。
The generating means includes
Based on the change detected by the detecting means, combined content generating means for sequentially generating combined content information;
A setting unit that sets at least one of a synthesis position, a size and a shape, and a rotation angle of the first still image according to the synthesis content information sequentially generated by the synthesis content generation unit;
The image synthesizing apparatus according to claim 3, further comprising:
連続した複数の静止画を含む動画像或いは連写画像を取得する画像取得手段を更に備え、
前記検出手段は、前記画像取得手段により取得された前記動画像及び前記連写画像を前記複数の画像として、これら複数の画像に共通して含まれる被写体の前記複数の画像にわたる変化を検出することを特徴とする請求項1〜4の何れか一項に記載の画像合成装置。
An image acquisition means for acquiring a moving image or a continuous shot image including a plurality of continuous still images;
The detecting means detects the change over the plurality of images of the subject commonly included in the plurality of images, using the moving image and the continuous shot image acquired by the image acquiring means as the plurality of images. The image composition device according to any one of claims 1 to 4, wherein
前記画像取得手段は、撮像手段を含むことを特徴とする請求項5に記載の画像合成装置。   The image synthesizing apparatus according to claim 5, wherein the image acquisition unit includes an imaging unit. 前記第1静止画像は、所定の静止画像から特定の領域を抽出した抽出画像であることを特徴とする請求項1〜6の何れか一項に記載の画像合成装置。   The image synthesizing apparatus according to claim 1, wherein the first still image is an extracted image obtained by extracting a specific region from a predetermined still image. コンピュータを、
第1及び第2静止画像を取得する静止画取得手段、
複数の画像に共通して含まれる被写体の前記複数の画像にわたる変化を検出する検出手段、
前記第2静止画像を背景として、前記検出手段によって検出された変化を反映して前記第1静止画像を合成した合成動画を生成する合成手段、
として機能させることを特徴とするプログラム。
Computer
Still image acquisition means for acquiring first and second still images;
Detecting means for detecting a change over the plurality of images of a subject commonly included in the plurality of images;
Combining means for generating a combined moving image in which the first still image is combined by reflecting the change detected by the detecting means with the second still image as a background;
A program characterized by functioning as
JP2009086121A 2009-03-31 2009-03-31 Image composition apparatus and program Expired - Fee Related JP5267279B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009086121A JP5267279B2 (en) 2009-03-31 2009-03-31 Image composition apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009086121A JP5267279B2 (en) 2009-03-31 2009-03-31 Image composition apparatus and program

Publications (3)

Publication Number Publication Date
JP2010239459A true JP2010239459A (en) 2010-10-21
JP2010239459A5 JP2010239459A5 (en) 2012-05-17
JP5267279B2 JP5267279B2 (en) 2013-08-21

Family

ID=43093398

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009086121A Expired - Fee Related JP5267279B2 (en) 2009-03-31 2009-03-31 Image composition apparatus and program

Country Status (1)

Country Link
JP (1) JP5267279B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014217009A (en) * 2013-04-30 2014-11-17 株式会社ニコン Image processing device and image processing program
JP2016015182A (en) * 2015-11-04 2016-01-28 株式会社東芝 Image processor, method and program
JP2021170810A (en) * 2020-05-07 2021-10-28 マクセル株式会社 Photographing device
US11870944B2 (en) 2015-06-26 2024-01-09 Maxell, Ltd. Imaging device and image processing method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009064288A (en) * 2007-09-07 2009-03-26 Casio Comput Co Ltd Composite image output device and composite image output processing program
JP2009116575A (en) * 2007-11-06 2009-05-28 Olympus Imaging Corp Image synthesizing apparatus and image synthesizing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009064288A (en) * 2007-09-07 2009-03-26 Casio Comput Co Ltd Composite image output device and composite image output processing program
JP2009116575A (en) * 2007-11-06 2009-05-28 Olympus Imaging Corp Image synthesizing apparatus and image synthesizing method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014217009A (en) * 2013-04-30 2014-11-17 株式会社ニコン Image processing device and image processing program
US11870944B2 (en) 2015-06-26 2024-01-09 Maxell, Ltd. Imaging device and image processing method
JP2016015182A (en) * 2015-11-04 2016-01-28 株式会社東芝 Image processor, method and program
JP2021170810A (en) * 2020-05-07 2021-10-28 マクセル株式会社 Photographing device
JP7362696B2 (en) 2020-05-07 2023-10-17 マクセル株式会社 Imaging device

Also Published As

Publication number Publication date
JP5267279B2 (en) 2013-08-21

Similar Documents

Publication Publication Date Title
JP5051156B2 (en) Image processing apparatus and program
JP5105550B2 (en) Image composition apparatus and program
JP4760973B2 (en) Imaging apparatus and image processing method
TWI468770B (en) Imaging apparatus, focusing method, and computer-readable recording medium recording program
JP4798236B2 (en) Imaging apparatus, image processing method, and program
JP4807432B2 (en) Imaging apparatus, image processing method, and program
JP5267279B2 (en) Image composition apparatus and program
JP5402166B2 (en) Image composition apparatus and program
JP2011066827A (en) Image processing apparatus, image processing method and program
JP5402148B2 (en) Image composition apparatus, image composition method, and program
JP5471425B2 (en) Imaging apparatus, imaging control program, and imaging method
JP2011182014A (en) Image pickup device, image processing method and program
JP5476900B2 (en) Image composition apparatus, image composition method, and program
JP5636660B2 (en) Image processing apparatus, image processing method, and program
JP5332668B2 (en) Imaging apparatus and subject detection program
JP5493839B2 (en) Imaging apparatus, image composition method, and program
JP2011041041A (en) Imaging apparatus, imaging method and program
JP2010154390A (en) Imaging device, imaging method, and program
JP5548023B2 (en) Imaging apparatus and imaging method
JP2011003057A (en) Image composition device, image specifying method, image composition method, and program
JP5494537B2 (en) Image processing apparatus and program
JP2010278701A (en) Image combining device, and image combining method and program
JP5381207B2 (en) Image composition apparatus and program
JP5741062B2 (en) Image processing apparatus, image processing method, and program
JP2009049457A (en) Imaging device and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120328

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120328

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20120328

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130308

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: 20130409

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130422

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5267279

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees