JP6929133B2 - Imaging device, control method and program of imaging device - Google Patents

Imaging device, control method and program of imaging device Download PDF

Info

Publication number
JP6929133B2
JP6929133B2 JP2017107073A JP2017107073A JP6929133B2 JP 6929133 B2 JP6929133 B2 JP 6929133B2 JP 2017107073 A JP2017107073 A JP 2017107073A JP 2017107073 A JP2017107073 A JP 2017107073A JP 6929133 B2 JP6929133 B2 JP 6929133B2
Authority
JP
Japan
Prior art keywords
region
image
images
predetermined condition
control unit
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.)
Active
Application number
JP2017107073A
Other languages
Japanese (ja)
Other versions
JP2018207177A (en
Inventor
英貴 門井
英貴 門井
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2017107073A priority Critical patent/JP6929133B2/en
Publication of JP2018207177A publication Critical patent/JP2018207177A/en
Application granted granted Critical
Publication of JP6929133B2 publication Critical patent/JP6929133B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、撮像装置に関するものであり、特にパノラマ画像を生成する撮像装置に関するものである。 The present invention relates to an image pickup apparatus, and more particularly to an image pickup apparatus for generating a panoramic image.

デジタルカメラなどを移動させながら複数の画像を撮像し、撮像した複数の画像を繋ぎ合わせることによりパノラマ画像を生成する技術が知られている。たとえば、特許文献1では、動画を利用してパノラマ画像を生成する技術が開示されている。ただし、特許文献1に開示された技術では、動体が存在すると、同じ動体が複数回現れるなど、ユーザにとって違和感のある合成画像ができてしまう可能性がある。 A technique is known in which a plurality of images are captured while moving a digital camera or the like, and a panoramic image is generated by joining the plurality of captured images. For example, Patent Document 1 discloses a technique for generating a panoramic image using a moving image. However, in the technique disclosed in Patent Document 1, if a moving body is present, the same moving body may appear a plurality of times, resulting in a composite image that is uncomfortable for the user.

特許文献2では、撮像素子を複数の領域に分けてパンニングをしながら撮影を繰り返し、それぞれの撮影で生成された画像のうち、撮像素子の同一領域に対応する画像をつなぎ合わせて複数のパノラマ画像を生成する。そして、これら複数のパノラマ画像のそれぞれから動体を検出し、これら複数のパノラマ画像を動体が存在しない領域を用いて合成することで、動体を削除したパノラマ画像を生成する方法が開示されている。特許文献2に開示された技術では、パノラマ撮像中で撮像した画像に、パノラマ合成用の領域を複数設定することが記載されている。 In Patent Document 2, the image sensor is divided into a plurality of regions and shooting is repeated while panning, and among the images generated by each shooting, the images corresponding to the same region of the image sensor are joined to form a plurality of panoramic images. To generate. Then, a method of generating a panoramic image in which a moving object is deleted by detecting a moving object from each of the plurality of panoramic images and synthesizing the plurality of panoramic images using a region in which the moving object does not exist is disclosed. In the technique disclosed in Patent Document 2, it is described that a plurality of regions for panoramic composition are set in an image captured during panoramic imaging.

特開2000−244814号公報Japanese Unexamined Patent Publication No. 2000-244814 特開2014−11782号公報Japanese Unexamined Patent Publication No. 2014-11782

しかし、特許文献2に開示された技術では、動体を削除したパノラマ画像を生成する前に、複数のパノラマ画像を生成する必要があるため、大きなメモリ量が必要という課題が生じる。 However, in the technique disclosed in Patent Document 2, since it is necessary to generate a plurality of panoramic images before generating a panoramic image in which moving objects are deleted, there arises a problem that a large amount of memory is required.

本発明は、上記の課題を鑑みてなされたものであり、パノラマ画像の合成において動体が存在する場合、より少ないメモリ量で不要な動体の除去を実現する撮像装置を提供することを目的とする。 The present invention has been made in view of the above problems, and an object of the present invention is to provide an imaging device that realizes removal of unnecessary moving objects with a smaller amount of memory when moving objects are present in the composition of panoramic images. ..

本発明は、時間的に連続する複数の画像を撮像する撮像手段と、前記複数の画像のそれぞれに対して第1領域、前記複数の画像のそれぞれの一部の画像に対して第2領域を設定し、前記複数の画像の撮像と並行して、前記複数の画像における第1領域と第2領域とに対して、記憶手段への記憶および前記記憶手段からの削除を制御する制御手段と、前記複数の画像のそれぞれにおいて、前記第1領域が所定の条件を満たせば、該第1領域の画像を用い、前記第1領域が前記所定の条件を満たさなければ、該第1領域の画像を切り出した画像よりも前に撮像された画像から切り出した第2領域の画像のうち、該第1領域と重複する画角を有し、かつ、前記所定の条件を満たす画像を用いて、パノラマ画像を生成する生成手段を有し、前記制御手段は、前記第1領域が前記所定の条件を満たせば、該第1領域と重複する画角を有し、かつ、該第1領域を切り出した画像よりも前に撮像された画像から切り出した第2領域を前記記憶手段から削除することを特徴とする撮像装置を提供する。 The present invention provides an imaging means for capturing a plurality of images that are continuous in time, a first region for each of the plurality of images, and a second region for each part of the plurality of images. A control means for controlling storage in the storage means and deletion from the storage means with respect to the first region and the second region in the plurality of images in parallel with the imaging of the plurality of images. In each of the plurality of images, if the first region satisfies a predetermined condition, the image of the first region is used, and if the first region does not satisfy the predetermined condition, the image of the first region is used. A panoramic image using an image of the second region cut out from an image captured before the cut-out image, which has an angle of view overlapping with the first region and satisfies the predetermined conditions. The control means has an angle of view that overlaps with the first region if the first region satisfies the predetermined condition, and the control means is an image obtained by cutting out the first region. Provided is an image pickup apparatus characterized in that a second region cut out from an image captured before is deleted from the storage means.

本発明によれば、パノラマの合成において、撮像画像において異なる切り出し領域における動体検出を利用し、1つの動体が重複して存在しないパノラマ画像を作成できるとともに、使用するメモリ量の削減を図れる。 According to the present invention, in panoramic composition, it is possible to create a panoramic image in which one moving object does not exist in duplicate by utilizing motion detection in different cutout regions in the captured image, and it is possible to reduce the amount of memory used.

本発明の実施形態に係るデジタルカメラの概略構成を示す背面斜視図である。It is a rear perspective view which shows the schematic structure of the digital camera which concerns on embodiment of this invention. 本発明の実施形態に係るデジタルカメラのハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware structure of the digital camera which concerns on embodiment of this invention. 本発明の実施形態に係るパノラマ撮像中のデジタルカメラの動く方向と画像データの切り出し領域との関係を説明するための図である。It is a figure for demonstrating the relationship between the moving direction of a digital camera during panoramic imaging which concerns on embodiment of this invention, and the cut-out area of image data. 本発明の実施形態に係るパノラマ画像の合成処理の流れを説明する図である。It is a figure explaining the flow of the composition processing of the panoramic image which concerns on embodiment of this invention. 動体が存在する場合のパノラマ合成の課題を説明するための図である。It is a figure for demonstrating the problem of panoramic composition in the presence of a moving body. 本発明の実施形態を説明するためのフローチャートである。It is a flowchart for demonstrating embodiment of this invention. 本発明の実施形態における第2領域の決定を説明するための図である。It is a figure for demonstrating the determination of the 2nd region in embodiment of this invention. 本発明の実施形態におけるパノラマ合成を説明するための図である。It is a figure for demonstrating panoramic composition in embodiment of this invention. 本発明の実施形態における領域の比較の高速化を説明するための図である。It is a figure for demonstrating speed-up of comparison of regions in embodiment of this invention.

以下では、添付の図面を参照しながら、本発明の好適な実施形態について詳細に説明する。 Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

(本発明の実施形態)
図1は、本発明の実施形態に係るデジタルカメラの概略構成を示す背面斜視図である。
(Embodiment of the present invention)
FIG. 1 is a rear perspective view showing a schematic configuration of a digital camera according to an embodiment of the present invention.

デジタルカメラ100の背面には、画像や各種の情報を表示する表示部101と、ユーザによる各種操作を受け付ける各種スイッチやボタン等の操作部材からなる操作部102が設けられている。また、デジタルカメラ100の背面には、撮像モード等を切り替えるモード切替スイッチ104と、回転操作可能なコントローラホイール103が設けられている。デジタルカメラ100の上面には、撮像指示を行うシャッタボタン121と、デジタルカメラ100の電源のオン/オフを切り替える電源スイッチ122と、被写体に対して閃光を照射するストロボ141が設けられている。 On the back surface of the digital camera 100, a display unit 101 for displaying images and various information, and an operation unit 102 including operation members such as various switches and buttons for receiving various operations by the user are provided. Further, on the back surface of the digital camera 100, a mode changeover switch 104 for switching an imaging mode or the like and a controller wheel 103 capable of rotation operation are provided. On the upper surface of the digital camera 100, a shutter button 121 for giving an imaging instruction, a power switch 122 for switching the power of the digital camera 100 on / off, and a strobe 141 for irradiating a subject with a flash of light are provided.

デジタルカメラ100は、接続ケーブル111及びコネクタ112を介して外部装置と接続可能であり、外部装置に画像データ(静止画データ、動画データ)等を出力することができる。デジタルカメラ100の下面には、蓋131により開閉可能な記憶媒体スロット(不図示)が設けられており、記憶媒体スロットに対してメモリカード等の記憶媒体130を挿抜することができるようになっている。 The digital camera 100 can be connected to an external device via the connection cable 111 and the connector 112, and can output image data (still image data, moving image data) or the like to the external device. A storage medium slot (not shown) that can be opened and closed by a lid 131 is provided on the lower surface of the digital camera 100 so that a storage medium 130 such as a memory card can be inserted and removed from the storage medium slot. There is.

記憶媒体スロットに格納された記憶媒体130は、デジタルカメラ100のシステム制御部210(図2参照)と通信可能である。なお、記憶媒体130は、記憶媒体スロットに対して挿抜可能なメモリカード等に限定されるものではなく、DVD−RWディスク等の光学ディスクやハードディスク等の磁気ディスクであってもよく、更に、デジタルカメラ100の本体に内蔵されていてもよい。 The storage medium 130 stored in the storage medium slot can communicate with the system control unit 210 (see FIG. 2) of the digital camera 100. The storage medium 130 is not limited to a memory card or the like that can be inserted into and removed from the storage medium slot, and may be an optical disk such as a DVD-RW disk or a magnetic disk such as a hard disk, and is further digital. It may be built in the main body of the camera 100.

図2は、デジタルカメラ100のハードウェア構成を示すブロック図である。デジタルカメラ100は、バリア201、撮像レンズ202、シャッタ203及び撮像部204を備える。バリア201は、撮像光学系を覆うことにより、撮像光学系の汚れや破損を防止する。撮像レンズ202は、ズームレンズ、フォーカスレンズを含むレンズ群により構成されており、撮像光学系を構成する。シャッタ203は、絞り機能を備え、撮像部204に対する露光量を調節する。撮像部204は、光学像を電気信号(アナログ信号)に変換する撮像素子であり、たとえば、RGBの画素が規則的に配置されたベイヤー配列構造を有するCCDセンサやCMOSセンサ等のイメージセンサである。なお、シャッタ203は、機械式シャッタであってもよいし、撮像素子のリセットタイミングの制御によって蓄積時間を制御する電子シャッタであってもよい。 FIG. 2 is a block diagram showing a hardware configuration of the digital camera 100. The digital camera 100 includes a barrier 201, an image pickup lens 202, a shutter 203, and an image pickup unit 204. The barrier 201 covers the imaging optical system to prevent the imaging optical system from becoming dirty or damaged. The image pickup lens 202 is composed of a lens group including a zoom lens and a focus lens, and constitutes an image pickup optical system. The shutter 203 has an aperture function and adjusts the amount of exposure to the imaging unit 204. The image pickup unit 204 is an image pickup element that converts an optical image into an electric signal (analog signal), and is, for example, an image sensor such as a CCD sensor or a CMOS sensor having a Bayer array structure in which RGB pixels are regularly arranged. .. The shutter 203 may be a mechanical shutter or an electronic shutter whose storage time is controlled by controlling the reset timing of the image sensor.

デジタルカメラ100は、A/D変換器205、画像処理部206、メモリ制御部207、D/A変換器208、メモリ209及びシステム制御部210を備える。撮像部204からA/D変換器205へアナログ信号が出力され、A/D変換器205は、取得したアナログ信号をデジタル信号からなる画像データに変換して、画像処理部206またはメモリ制御部207へ出力する。 The digital camera 100 includes an A / D converter 205, an image processing unit 206, a memory control unit 207, a D / A converter 208, a memory 209, and a system control unit 210. An analog signal is output from the image pickup unit 204 to the A / D converter 205, and the A / D converter 205 converts the acquired analog signal into image data composed of digital signals, and the image processing unit 206 or the memory control unit 207. Output to.

画像処理部206は、A/D変換器205から取得した画像データまたはメモリ制御部207から取得したデータに対して、画素補間やシェーディング補正等の補正処理、ホワイトバランス処理、γ補正処理、色変換処理等を行う。また、画像処理部206は、画像の切り出しや変倍処理を行うことで電子ズーム機能を実現する。更に、画像処理部206は撮像した画像の画像データを用いて所定の演算処理を行い、こうして得られた演算結果に基づいてシステム制御部210が露光制御や測距制御を行う。たとえば、システム制御部210により、TTL(スルー・ザ・レンズ)方式のAF(オートフォーカス)処理、AE(自動露出)処理、EF(ストロボプリ発光)処理が行われる。画像処理部206は、撮像した画像の画像データを用いて所定の演算処理を行い、得られた演算結果を用いて、システム制御部210はTTL方式のAWB(オートホワイトバランス)処理を行う。 The image processing unit 206 performs correction processing such as pixel interpolation and shading correction, white balance processing, gamma correction processing, and color conversion for the image data acquired from the A / D converter 205 or the data acquired from the memory control unit 207. Perform processing, etc. Further, the image processing unit 206 realizes an electronic zoom function by cutting out an image and performing scaling processing. Further, the image processing unit 206 performs a predetermined calculation process using the image data of the captured image, and the system control unit 210 performs exposure control and distance measurement control based on the calculation result obtained in this way. For example, the system control unit 210 performs TTL (through-the-lens) AF (autofocus) processing, AE (autoexposure) processing, and EF (strobe pre-emission) processing. The image processing unit 206 performs a predetermined calculation process using the image data of the captured image, and the system control unit 210 performs a TTL method AWB (auto white balance) process using the obtained calculation result.

画像処理部206は、時間的に連続して撮像された複数の画像からパノラマ画像を合成し、またその合成結果の判断を行う画像合成処理回路を有する。画像合成処理回路は、単純な加算平均合成だけでなく、合成対象の画像データの各領域において最も明るい値または暗い値を持つ画素を選択して1枚の画像データを生成する比較明合成や比較暗合成等の処理を行うことができる。また、合成結果を特定の基準に基づいて評価し、判定する。なお、画像処理部206が画像合成処理回路を備える構成の代わりに、システム制御部210によるソフトウェア処理によって画像合成処理回路の機能を実現する構成としてもよい。 The image processing unit 206 has an image compositing processing circuit that synthesizes a panoramic image from a plurality of images continuously captured in time and determines the compositing result. The image composition processing circuit is not limited to simple addition and average composition, but also comparative bright composition and comparison in which pixels having the brightest value or the darkest value in each region of the image data to be synthesized are selected to generate one image data. Processing such as dark composition can be performed. In addition, the synthesis result is evaluated and judged based on a specific criterion. Instead of the configuration in which the image processing unit 206 includes the image composition processing circuit, the function of the image composition processing circuit may be realized by software processing by the system control unit 210.

A/D変換器205から出力される画像データは、画像処理部206及びメモリ制御部207を介して、或いは、メモリ制御部207を介して、メモリ209に書き込まれる。メモリ209は、表示部101に表示する画像データを格納する画像表示用メモリ(ビデオメモリ)を兼ねている。メモリ209は、所定枚数の静止画像、パノラマ画像(広角画像)、パノラマ画像合成結果を格納することができる記憶容量を備えている。なお、メモリ209は、システム制御部210が不揮発性メモリ211から読み出したプログラム等を展開する作業領域として用いることもできる。 The image data output from the A / D converter 205 is written to the memory 209 via the image processing unit 206 and the memory control unit 207, or via the memory control unit 207. The memory 209 also serves as an image display memory (video memory) for storing image data to be displayed on the display unit 101. The memory 209 has a storage capacity capable of storing a predetermined number of still images, panoramic images (wide-angle images), and panoramic image composition results. The memory 209 can also be used as a work area for developing a program or the like read from the non-volatile memory 211 by the system control unit 210.

メモリ209に格納されている画像表示用データ(デジタルデータ)は、D/A変換器208に送信される。D/A変換器208は、受信したデジタルデータをアナログ信号に変換して表示部101に供給し、これにより、表示部101に画像が表示される。表示部101は、液晶ディスプレイまたは有機ELディスプレイ等の表示装置であり、D/A変換器208からのアナログ信号に基づいて画像を表示する。表示部101における画像表示のオン/オフは、システム制御部210によって切り替えられ、画像表示をオフにすることで電力消費を低減させることができる。なお、撮像部204からA/D変換器205を通じてメモリ209に蓄積されるデジタル信号をD/A変換器208によりアナログ信号に変換して表示部101に逐次表示することにより、スルー画像を表示する電子ビューファインダ機能を実現することができる。 The image display data (digital data) stored in the memory 209 is transmitted to the D / A converter 208. The D / A converter 208 converts the received digital data into an analog signal and supplies it to the display unit 101, whereby the image is displayed on the display unit 101. The display unit 101 is a display device such as a liquid crystal display or an organic EL display, and displays an image based on an analog signal from the D / A converter 208. The on / off of the image display on the display unit 101 is switched by the system control unit 210, and the power consumption can be reduced by turning off the image display. The digital signal stored in the memory 209 from the imaging unit 204 through the A / D converter 205 is converted into an analog signal by the D / A converter 208 and sequentially displayed on the display unit 101 to display a through image. The electronic viewfinder function can be realized.

デジタルカメラ100は、不揮発性メモリ211、システムタイマ212、システムメモリ213、検出部215及びストロボ制御部217を備える。不揮発性メモリ211は、電気的に消去や記憶が可能なメモリ(たとえば、EEPROM等)であり、システム制御部210が実行するプログラムや動作用の定数等を格納する。また、不揮発性メモリ211は、システム情報を記憶する領域やユーザ設定情報を記憶する領域を有しており、システム制御部210は、デジタルカメラ100の起動時に不揮発性メモリ211に記憶された種々の情報や設定を読み出して復元する。 The digital camera 100 includes a non-volatile memory 211, a system timer 212, a system memory 213, a detection unit 215, and a strobe control unit 217. The non-volatile memory 211 is a memory (for example, EEPROM or the like) that can be electrically erased or stored, and stores a program executed by the system control unit 210, constants for operation, and the like. Further, the non-volatile memory 211 has an area for storing system information and an area for storing user setting information, and the system control unit 210 has various types of areas stored in the non-volatile memory 211 when the digital camera 100 is started. Read and restore information and settings.

システム制御部210は、CPUを備え、不揮発性メモリ211に記憶されている各種のプログラムコードを実行することにより、デジタルカメラ100の全体的な動作を制御する。なお、システム制御部210が不揮発性メモリ211から読み出したプログラムや動作用の定数、変数等は、システムメモリ213上に展開される。システムメモリ213には、RAMが用いられる。更に、システム制御部210は、メモリ209やD/A変換器208、表示部101等を制御することにより、表示制御を行う。システムタイマ212は、各種の制御に用いる時間や内蔵された時計の時間を計測する。ストロボ制御部217は、被写体の明るさに応じて、ストロボ141の発光を制御する。検出部215は、ジャイロやセンサを含み、デジタルカメラ100の角速度情報、姿勢情報等を取得する。なお、角速度情報は、デジタルカメラ100によるパノラマ撮像時の角速度及び角加速度の情報を含む。また、姿勢情報は、水平方向に対するデジタルカメラ100の傾き等の情報を含む。 The system control unit 210 has a CPU and controls the overall operation of the digital camera 100 by executing various program codes stored in the non-volatile memory 211. The programs, operation constants, variables, and the like read from the non-volatile memory 211 by the system control unit 210 are expanded on the system memory 213. RAM is used for the system memory 213. Further, the system control unit 210 controls the display by controlling the memory 209, the D / A converter 208, the display unit 101, and the like. The system timer 212 measures the time used for various controls and the time of the built-in clock. The strobe control unit 217 controls the light emission of the strobe 141 according to the brightness of the subject. The detection unit 215 includes a gyro and a sensor, and acquires angular velocity information, attitude information, and the like of the digital camera 100. The angular velocity information includes information on the angular velocity and the angular acceleration at the time of panoramic imaging by the digital camera 100. Further, the posture information includes information such as the inclination of the digital camera 100 with respect to the horizontal direction.

図2に示される表示部101、操作部102、コントローラホイール103、シャッタボタン121、モード切替スイッチ104、電源スイッチ122及びストロボ141は、図1を参照して説明したものと同じである。 The display unit 101, the operation unit 102, the controller wheel 103, the shutter button 121, the mode changeover switch 104, the power switch 122, and the strobe 141 shown in FIG. 2 are the same as those described with reference to FIG.

操作部102を構成する各種の操作部材は、たとえば、表示部101に表示される種々の機能アイコンの選択に用いられ、所定の機能アイコンが選択されることにより、場面毎に機能が割り当てられる。即ち、操作部102の各操作部材は、各種の機能ボタンとして作用する。機能ボタンとしては、たとえば、終了ボタン、戻るボタン、画像送りボタン、ジャンプボタン、絞込みボタン、属性変更ボタン、DISPボタン等が挙げられる。たとえば、メニューボタンが押下されると、各種の設定を行うためのメニュー画面が表示部101に表示される。ユーザは、表示部101に表示されたメニュー画面と、上下左右の4方向ボタンやSETボタンとを用いて、直感的に設定操作を行うことができる。 Various operation members constituting the operation unit 102 are used for selecting various function icons displayed on the display unit 101, for example, and when a predetermined function icon is selected, a function is assigned to each scene. That is, each operating member of the operating unit 102 acts as various function buttons. Examples of the function button include an end button, a back button, an image feed button, a jump button, a narrowing down button, an attribute change button, a DISP button, and the like. For example, when the menu button is pressed, a menu screen for making various settings is displayed on the display unit 101. The user can intuitively perform the setting operation by using the menu screen displayed on the display unit 101 and the up / down / left / right four-direction buttons and the SET button.

回転操作が可能な操作部材であるコントローラホイール103は、4方向ボタンと共に選択項目を指定するとき等に使用される。コントローラホイール103を回転操作すると、操作量(回転角度や回転回数等)に応じた電気的なパルス信号が発生する。システム制御部210は、このパルス信号を解析して、デジタルカメラ100の各部を制御する。 The controller wheel 103, which is an operating member capable of rotating, is used when designating a selection item together with a four-direction button. When the controller wheel 103 is rotated, an electric pulse signal corresponding to the amount of operation (rotation angle, number of rotations, etc.) is generated. The system control unit 210 analyzes this pulse signal and controls each unit of the digital camera 100.

シャッタボタン121は、第1スイッチSW1と第2スイッチSW2を有する。第1スイッチSW1は、シャッタボタン121の操作途中の半押し状態でオンとなり、これにより、撮像準備を指示する信号がシステム制御部210に送信される。システム制御部210は、第1スイッチSW1がオンになった信号を受信すると、AF処理、AE処理、AWB処理、EF処理等の動作を開始する。第2スイッチSW2は、シャッタボタン121の操作が完了する全押し状態でオンとなり、これにより、撮像開始を指示する信号がシステム制御部210に送信される。システム制御部210は、第2スイッチSW2がオンになった信号を受信すると、撮像部204からの信号読み出しから記憶媒体130への画像データの書き込みまでの一連の撮像動作を行う。 The shutter button 121 has a first switch SW1 and a second switch SW2. The first switch SW1 is turned on in a half-pressed state during the operation of the shutter button 121, whereby a signal instructing the preparation for imaging is transmitted to the system control unit 210. When the system control unit 210 receives the signal that the first switch SW1 is turned on, the system control unit 210 starts operations such as AF processing, AE processing, AWB processing, and EF processing. The second switch SW2 is turned on when the operation of the shutter button 121 is completed, and a signal instructing the start of imaging is transmitted to the system control unit 210. When the system control unit 210 receives the signal that the second switch SW2 is turned on, the system control unit 210 performs a series of imaging operations from reading the signal from the imaging unit 204 to writing the image data to the storage medium 130.

モード切替スイッチ104は、デジタルカメラ100の動作モードを、静止画撮像モード、動画撮像モード、再生モード等の各種モードの間で切り替えるためのスイッチである。静止画撮像モードは、オート撮像モード等の他に、パノラマ撮像によりパノラマ画像を合成するパノラマ画像撮像モードを含む。 The mode changeover switch 104 is a switch for switching the operation mode of the digital camera 100 between various modes such as a still image imaging mode, a moving image imaging mode, and a playback mode. The still image imaging mode includes a panoramic image imaging mode in which panoramic images are combined by panoramic imaging, in addition to an auto imaging mode and the like.

デジタルカメラ100は、電源部214及び電源制御部218を備える。電源部214は、アルカリ電池やリチウム電池等の一次電池、NiCd電池やNiMH電池、Li電池等の二次電池、或いは、ACアダプタ等であり、電源制御部218へ電力を供給する。電源制御部218は、電源部214における電池の装着の有無、電池の種類、電池残量等を検出し、その検出結果及びシステム制御部210の指示に基づいて、必要な電圧を必要な期間、記憶媒体130を含む各部へ供給する。 The digital camera 100 includes a power supply unit 214 and a power supply control unit 218. The power supply unit 214 is a primary battery such as an alkaline battery or a lithium battery, a secondary battery such as a NiCd battery, a NiMH battery, or a Li battery, an AC adapter, or the like, and supplies power to the power supply control unit 218. The power supply control unit 218 detects whether or not a battery is installed in the power supply unit 214, the type of battery, the remaining battery level, and the like, and based on the detection result and the instruction of the system control unit 210, a necessary voltage is applied for a necessary period. It is supplied to each part including the storage medium 130.

デジタルカメラ100は、記憶媒体130が記憶媒体スロット(不図示)に装着された際に、記憶媒体130とシステム制御部210との間の通信を可能にするための記憶媒体I/F216を備える。記憶媒体130の詳細については、図1を参照して既に説明しているため、ここでの説明を省略する。 The digital camera 100 includes a storage medium I / F 216 for enabling communication between the storage medium 130 and the system control unit 210 when the storage medium 130 is installed in a storage medium slot (not shown). Since the details of the storage medium 130 have already been described with reference to FIG. 1, the description thereof will be omitted here.

次に、パノラマ撮像の方法と、複数の撮像画像からパノラマ画像を合成する方法について説明する。最初に、パノラマ画像を合成するために撮像画像の画像データから所定の領域を切り出す処理について説明する。 Next, a method of panoramic imaging and a method of synthesizing a panoramic image from a plurality of captured images will be described. First, a process of cutting out a predetermined region from the image data of the captured image in order to synthesize the panoramic image will be described.

図3は、パノラマ撮像中のデジタルカメラ100の動く方向と画像データの切り出し領域との関係を説明するための図である。 FIG. 3 is a diagram for explaining the relationship between the moving direction of the digital camera 100 during panoramic imaging and the cutout region of image data.

図3(a)は、撮像部204が有する撮像素子の有効画像領域を示しており、“Wv”は水平方向の有効画素数であり、“Hv”は垂直方向の有効画素数である。図3(b)は、撮像画像の画像データから切り出した切り出し領域を示しており、“Wcrop”は水平方向の切り出し画素数であり、“Hcrop”は垂直方向の切り出し画素数である。 FIG. 3A shows an effective image area of the image sensor included in the image pickup unit 204, where “Wv” is the number of effective pixels in the horizontal direction and “Hv” is the number of effective pixels in the vertical direction. FIG. 3B shows a cutout region cut out from the image data of the captured image, where “Wcrop” is the number of cutout pixels in the horizontal direction and “Hcrop” is the number of cutout pixels in the vertical direction.

図3(c)は、矢印で示す水平方向にデジタルカメラ100を移動させながらパノラマ撮像を行った場合の画像データに対する切り出し領域を示す図である。図3(c)においてハッチングにて示した領域S1が画像データからの切り出し領域を示しており、下記の(式1)および(式2)を満たす。
Wv>Wcrop・・・・・・(式1)
Hv=Hcrop・・・・・・(式2)
FIG. 3C is a diagram showing a cutout region for image data when panoramic imaging is performed while moving the digital camera 100 in the horizontal direction indicated by the arrow. The region S1 shown by hatching in FIG. 3 (c) indicates a region cut out from the image data, and satisfies the following (Equation 1) and (Equation 2).
Wv> Wcrop ... (Equation 1)
Hv = Hcrop ... (Equation 2)

同様に、図3(d)は、矢印で示す鉛直方向にデジタルカメラ100を移動させながらパノラマ撮像を行った場合の画像データに対する切り出し領域を示す図である。図3(d)においてハッチングにて示した領域S2が画像データの切り出し領域を示しており、下記の(式3)および(式4)を満たす。
Wv=Wcrop・・・・・・(式3)
Hv>Hcrop・・・・・・(式4)
Similarly, FIG. 3D is a diagram showing a cutout region for image data when panoramic imaging is performed while moving the digital camera 100 in the vertical direction indicated by the arrow. The area S2 shown by hatching in FIG. 3 (d) indicates a cut-out area of image data, and satisfies the following (Equation 3) and (Equation 4).
Wv = Wcrop ... (Equation 3)
Hv> Hcrop ... (Equation 4)

撮像画像の画像データの切り出し領域は、画像データ毎に異なるようにしてもよい。また、パノラマ撮像の開始時とパノラマ撮像の終了時の画像データについては、画角を広くするために切り出し領域を広くしてもよい。画像データの切り出し領域の決定方法は、たとえば、撮像直後のデジタルカメラ100の角度と1フレーム前のデジタルカメラ100の角度との差等により決定することができる。パノラマ画像の合成処理に必要な画像データのみを切り出して保存することにより、メモリ209の記憶容量を節約することができる。 The cutout area of the image data of the captured image may be different for each image data. Further, with respect to the image data at the start of panoramic imaging and at the end of panoramic imaging, the cutout area may be widened in order to widen the angle of view. The method for determining the cutout region of the image data can be determined, for example, by the difference between the angle of the digital camera 100 immediately after imaging and the angle of the digital camera 100 one frame before. By cutting out and storing only the image data necessary for the panoramic image compositing process, the storage capacity of the memory 209 can be saved.

なお、前述した切り出し領域は、できるだけ撮像画像の中央に設定するとよい。これは、撮像画像の中央は、一般的に歪が少なく、切り出し領域を画像の中央に設定すれば、より自然な合成画像が生成できるからである。 The cutout region described above should be set in the center of the captured image as much as possible. This is because the center of the captured image is generally less distorted, and a more natural composite image can be generated by setting the cutout region to the center of the image.

次に、パノラマ画像の合成方法について説明する。システム制御部210は、パノラマ撮像時に保存された切り出し領域をメモリ209から読み出し、読み出した画像データに対応する画像間の位置ずれを検出する。一例としては、システム制御部210は、切り出し領域を任意のサイズの小ブロックに分割し、小ブロック毎に輝度のSAD(Sum of Absolute Difference)が最小となる対応点を算出する。システム制御部210は、算出したSADが最小となる対応点より、動きベクトルを算出することができる。なお、システム制御部210は、動きベクトルの算出において、検出部215が検出した角速度情報や姿勢情報等を用いて行ってもよい。続いて、システム制御部210は、隣り合う切り出し領域の画像間で求めた動きベクトルに基づいて、切り出し領域の画像間の位置ずれを補正し、切り出し領域の画像間の重複部を加重加算などにより合成する。 Next, a method of synthesizing panoramic images will be described. The system control unit 210 reads the cutout area saved at the time of panoramic image capture from the memory 209, and detects the positional deviation between the images corresponding to the read image data. As an example, the system control unit 210 divides the cutout area into small blocks of an arbitrary size, and calculates a corresponding point at which the brightness SAD (Sum of Absolute Difference) is minimized for each small block. The system control unit 210 can calculate the motion vector from the corresponding point where the calculated SAD is the minimum. The system control unit 210 may use the angular velocity information, the attitude information, and the like detected by the detection unit 215 in calculating the motion vector. Subsequently, the system control unit 210 corrects the positional deviation between the images in the cutout region based on the motion vector obtained between the images in the adjacent cutout region, and weights and adds the overlapping portion between the images in the cutout region. Synthesize.

図4は、パノラマ画像の合成処理の流れを説明する図である。図4では、ドットハッチングされた領域は、被写界にある並木を模式的に表した領域であり、斜線ハッチングされた領域は、画像データの切り出し領域を表している。図4(a)は、ユーザがシャッタボタン121を押下し、第1スイッチSW1がオンにされた状態を示し、ユーザは、主被写体に対してピント合わせを行うことを示している。図4(b)は、シャッタボタン121の第2スイッチSW2がオンにされた位置を示しており、ユーザが合成しようとしているパノラマ画像の一方の端に合わせて被写界を設定している。図4(b)では、撮像部204は画像410を撮像する。図4(c)乃至図4(e)では、ユーザが合成しようとしているパノラマ画像の他方の端に向けてデジタルカメラ100を移動させながら、パノラマ撮像を行っている状態を模式的に示している。図4(e)は、ユーザがシャッタボタン121の押下をやめ、パノラマ撮像が終了した状態を示している。図4(b)乃至図4(e)では、撮像部204が画像410乃至470計7枚の画像を撮像したが、画像430、450および460は不図示である。画像処理部206は、撮像部204が撮像した画像410乃至470に対して切り出し処理を行い、切り出し領域411乃至471を生成する。システム制御部210において、切り出し領域の幅は、予め定めてもよいが、パノラマ撮像中のデジタルカメラ100の移動速度などに応じて変化させてもよい。 FIG. 4 is a diagram illustrating a flow of a panoramic image compositing process. In FIG. 4, the dot-hatched area is an area schematically representing a row of trees in the field of view, and the shaded area is a cut-out area of image data. FIG. 4A shows a state in which the user presses the shutter button 121 and the first switch SW1 is turned on, and shows that the user focuses on the main subject. FIG. 4B shows the position where the second switch SW2 of the shutter button 121 is turned on, and the field of view is set according to one end of the panoramic image that the user is trying to synthesize. In FIG. 4B, the imaging unit 204 captures the image 410. 4 (c) to 4 (e) schematically show a state in which a panoramic image is taken while moving the digital camera 100 toward the other end of the panoramic image that the user is trying to synthesize. .. FIG. 4E shows a state in which the user stops pressing the shutter button 121 and panoramic imaging is completed. In FIGS. 4 (b) to 4 (e), the image pickup unit 204 has captured a total of seven images 410 to 470, but the images 430, 450 and 460 are not shown. The image processing unit 206 performs cutout processing on the images 410 to 470 captured by the image pickup unit 204 to generate cutout regions 411 to 471. In the system control unit 210, the width of the cutout region may be predetermined, but may be changed according to the moving speed of the digital camera 100 during panoramic imaging.

図4(f)は、画像処理部206が、撮像部204が撮像した複数の画像を合成してできたパノラマ画像を示している。ここで、手振れなどのため、切り出し領域411乃至471の上辺と下辺とは合っていないため、画像処理部206は、縦方向に対しても切り出し処理を行う。その結果、画像処理部206は、領域400が示したようなパノラマ画像を生成する。 FIG. 4 (f) shows a panoramic image formed by the image processing unit 206 synthesizing a plurality of images captured by the image pickup unit 204. Here, since the upper side and the lower side of the cutout areas 411 to 471 do not match due to camera shake or the like, the image processing unit 206 also performs the cutout process in the vertical direction. As a result, the image processing unit 206 generates a panoramic image as shown by the area 400.

図4では、説明を容易にするため、切り出し領域411乃至471の互いに重畳する領域がなく、かつ、互いに隣接している例を示している。もし、重畳する領域が存在していれば、重畳する領域の中央を境目として、画像処理部206は、その左側に片方の切り出し領域、右側にもう片方の切り出し領域の画素情報を合成画像に出力する。もしくは、画像処理部206は、境目上に両方の切り出し領域の画素情報を50%ずつ合成した値を出力し、境目からの距離が離れるに従って境目の左側では片方の切り出し領域を、境目の右側ではもう片方の切り出し領域の割合を大きくしながら合成を行う。 FIG. 4 shows an example in which the cutout regions 411 to 471 do not have overlapping regions and are adjacent to each other for ease of explanation. If there is an overlapping area, the image processing unit 206 outputs the pixel information of one cutout area on the left side and the other cutout area on the right side to the composite image with the center of the overlapping area as a boundary. do. Alternatively, the image processing unit 206 outputs a value obtained by synthesizing the pixel information of both cutout regions by 50% on the boundary, and as the distance from the boundary increases, one cutout area is displayed on the left side of the boundary and one cutout area is displayed on the right side of the boundary. Synthesis is performed while increasing the proportion of the other cutout area.

本実施形態では、シャッタボタン121の押下の終了を待たずに、パノラマ画像の合成処理を開始する。具体的には、図4(c)に示す撮像処理と並行して、画像処理部206は図4(a)と図4(b)に示す矩形領域511と512の画像の合成処理を行ってもよい。画像処理部206が並行処理を行うことによって全体のパノラマ画像の合成処理時間を短縮することができる。画像処理部206は、合成したパノラマ画像はメモリ制御部207を経て、一旦メモリ209に格納する。最後に、システム制御部は、メモリ209に格納されたパノラマ画像をI/F216を介して記憶媒体130に記録する。 In the present embodiment, the panoramic image compositing process is started without waiting for the end of pressing the shutter button 121. Specifically, in parallel with the imaging process shown in FIG. 4 (c), the image processing unit 206 performs a composite process of the images of the rectangular regions 511 and 512 shown in FIGS. 4 (a) and 4 (b). May be good. By performing parallel processing by the image processing unit 206, the composition processing time of the entire panoramic image can be shortened. The image processing unit 206 temporarily stores the combined panoramic image in the memory 209 via the memory control unit 207. Finally, the system control unit records the panoramic image stored in the memory 209 on the storage medium 130 via the I / F 216.

しかしながら、図4で示したようなパノラマ画像の合成は、動体が存在すると、不自然なパノラマ画像が生成してしまう可能性がある。以下では、動体が存在する場合のパノラマ合成の一例を説明する。 However, the composition of the panoramic image as shown in FIG. 4 may generate an unnatural panoramic image in the presence of a moving object. In the following, an example of panoramic composition in the presence of a moving object will be described.

図5は、動体が存在する場合のパノラマ合成を説明するための図である。図5に示したシーンは、図4と異なり、被写体としての人物は動体であり、パノラマ撮像中に移動しているものとする。 FIG. 5 is a diagram for explaining panoramic composition in the presence of a moving object. In the scene shown in FIG. 5, unlike FIG. 4, it is assumed that the person as the subject is a moving object and is moving during panoramic imaging.

図5(a)乃至(e)はパノラマ撮像の各撮像シーンを順番に模式的に示した図である。矩形領域510、520、530、540、550は、各撮像で撮像部204が撮像した画像の撮像画角を表している。図4と同様に、斜線ハッチングされた領域511、521、531、541、551は、画像データの切り出し領域を表している。システム制御部210は、時間的に連続する複数の画像間の移動方向と移動量を、検出部215が検出した角速度情報や姿勢情報や、他に動きベクトル情報を基に算出することができる。図5(f)は画像処理部206が図5(a)乃至(e)に示したパノラマ撮像で撮像部204が撮像した複数の画像を合成した結果であるパノラマ画像500を模式的に示す。 5 (a) to 5 (e) are diagrams schematically showing each imaging scene of panoramic imaging in order. The rectangular regions 510, 520, 530, 540, and 550 represent the imaging angle of view of the image captured by the imaging unit 204 in each imaging. Similar to FIG. 4, the shaded hatched areas 511, 521, 513, 541, and 551 represent the cutout areas of the image data. The system control unit 210 can calculate the movement direction and the movement amount between a plurality of images that are continuous in time based on the angular velocity information and the posture information detected by the detection unit 215, and other motion vector information. FIG. 5 (f) schematically shows a panoramic image 500 which is a result of the image processing unit 206 synthesizing a plurality of images captured by the imaging unit 204 in the panoramic imaging shown in FIGS. 5 (a) to 5 (e).

しかしながら、図5に示したシーンでは、人物が動体であるため、この人物が切り出し領域511乃至541のすべてに映ってしまっている。システム制御部210は、こうした切り出し領域をパノラマ合成に用いると、図5(f)のパノラマ画像500に示したように、動体の人物が複数回映るような画像ができてしまう。 However, in the scene shown in FIG. 5, since the person is a moving object, this person is reflected in all of the cutout areas 511 to 541. When the system control unit 210 uses such a cutout region for panoramic composition, as shown in the panoramic image 500 of FIG. 5 (f), an image in which a moving person is projected a plurality of times is created.

そこで、本実施形態において、システム制御部210は、画像記録用のメモリ容量を配慮しながら、所定の条件を満たす領域を合成に用いることで、上記のような違和感のあるパノラマ画像を生成させないようにする。 Therefore, in the present embodiment, the system control unit 210 does not generate the panoramic image having a sense of incongruity as described above by using an area satisfying a predetermined condition for synthesis while considering the memory capacity for image recording. To.

図6は、本実施形態を説明するためのフローチャートである。このフローチャートは、ユーザが操作部102を操作することでパノラマ画像を生成するモードを設定し、かつ、ユーザがシャッタボタン121を操作した場合に、開始される。図7は、後述するステップS605における第2領域の決定を説明するためのフローチャートである。図8は、本実施形態におけるパノラマ画像の合成を説明するための図である。図8では、デジタルカメラ100を動かしながら画像810乃至840を撮像したことを示している。以下では、本実施形態のフローを図6乃至図8を用いて詳細に説明する。 FIG. 6 is a flowchart for explaining the present embodiment. This flowchart is started when the user sets a mode for generating a panoramic image by operating the operation unit 102 and the user operates the shutter button 121. FIG. 7 is a flowchart for explaining the determination of the second region in step S605, which will be described later. FIG. 8 is a diagram for explaining the composition of panoramic images in the present embodiment. FIG. 8 shows that images 810 to 840 were captured while moving the digital camera 100. Hereinafter, the flow of the present embodiment will be described in detail with reference to FIGS. 6 to 8.

ステップS601では、撮像部204が撮像を行う。このとき、図8(a)に示した画像810を撮像したものとする。システム制御部210は、メモリ209に撮像部204が撮像した画像810を一時記憶する。ただし、デジタルカメラ100の移動方向は右であるため、後述するように、画像810において、領域811より左の部分は合成に用いることがないので、この部分は記憶しない。 In step S601, the imaging unit 204 performs imaging. At this time, it is assumed that the image 810 shown in FIG. 8A is captured. The system control unit 210 temporarily stores the image 810 captured by the image pickup unit 204 in the memory 209. However, since the moving direction of the digital camera 100 is to the right, as will be described later, in the image 810, the portion to the left of the region 811 is not used for compositing, so this portion is not stored.

ステップS602では、画像処理部206は、画像810において、第1領域811を切り出す。図8(a)において、第1領域811は、画像810の中央よりも左側に寄って位置しているが、あくまでも図示の便宜上のためである。後述するように、本実施形態における合成において、第1領域が優先的に使われるため、歪などを考慮して、一般的に、画像処理部206は優先的に第1領域を画像の中央から切り出すほうが好ましい。 In step S602, the image processing unit 206 cuts out the first region 811 in the image 810. In FIG. 8A, the first region 811 is located closer to the left side than the center of the image 810, but for convenience of illustration only. As will be described later, in the composition in the present embodiment, the first region is preferentially used. Therefore, in consideration of distortion and the like, the image processing unit 206 generally preferentially sets the first region from the center of the image. It is preferable to cut it out.

ステップS603では、撮像部204が次の撮像を行う。このとき、図8(b)に示した画像820を撮像したものとする。ユーザがデジタルカメラ100を移動させながら撮像を行っているため、画像810と画像820との画角がずれている。ステップS601と同様に、システム制御部210は、メモリ209に画像820を一時記憶する。 In step S603, the imaging unit 204 performs the next imaging. At this time, it is assumed that the image 820 shown in FIG. 8B is captured. Since the user performs imaging while moving the digital camera 100, the angles of view of the image 810 and the image 820 are deviated. Similar to step S601, the system control unit 210 temporarily stores the image 820 in the memory 209.

ステップS604では、画像処理部206は、画像820において、第1領域821を切り出す。第1領域811と第1領域821は、パノラマ画像の合成において、隣り合うため、画像処理部206は、両者の画角の間に隙間が出ないように切り出す。そのために、画像処理部206は、検出部215が検出した速度などの情報を参照して、画像から切り出す第1領域の画角の位置を決めてよい。なお、画像処理部206は、撮像した画像からSAD値や特徴点抽出などを利用して第1領域の画角の位置を決めてもよいが、動体が占める領域が大きいときなどは、静止領域のみでSAD値や特徴点抽出などを行うことが難しいケースがある。したがって、ステップS604で、画像処理部206は、検出部215が検出した速度などの情報を参照して、第1領域の画角の位置を決めることが望ましい。また、システム制御部210は、第1領域よりも左の部分を合成に用いないので、この時点でメモリ209から第1領域よりも左の部分を削除してよい。 In step S604, the image processing unit 206 cuts out the first region 821 in the image 820. Since the first region 811 and the first region 821 are adjacent to each other in the composition of the panoramic image, the image processing unit 206 cuts out so that there is no gap between the angles of view of both. Therefore, the image processing unit 206 may determine the position of the angle of view of the first region to be cut out from the image by referring to information such as the speed detected by the detection unit 215. The image processing unit 206 may determine the position of the angle of view of the first region from the captured image by using the SAD value, feature point extraction, or the like, but when the region occupied by the moving object is large, the stationary region There are cases where it is difficult to extract SAD values and feature points only by using only. Therefore, in step S604, it is desirable that the image processing unit 206 determines the position of the angle of view of the first region with reference to information such as the speed detected by the detection unit 215. Further, since the system control unit 210 does not use the portion to the left of the first region for synthesis, the portion to the left of the first region may be deleted from the memory 209 at this point.

ステップS605では、システム制御部210は、第2領域を決定する。ステップS605の詳細は、図7に示したフローで説明する。 In step S605, the system control unit 210 determines the second region. The details of step S605 will be described with reference to the flow shown in FIG.

ステップS701では、画像処理部206は、ステップS604で第1領域を切り出したフレームの画像よりも1フレーム前に撮像した画像から、第2領域の候補を切り出す。たとえば、画像処理部206は、画像820から切り出した第1領域821に対して、1フレーム前の画像810から第2領域の候補を切り出す。後述するように、システム制御部210は、ステップS606で、第1領域と第2領域の候補とに対して動体検出のための比較を行うため、第1領域と第2領域の候補とは重複する画角を持つことが必要である。したがって、画像処理部206は、画像810から、図8(b)に示す画像820の第1領域821と重複する画角を有する第2領域の候補812を切り出す。同様に、画像処理部206は、画像830から第1領域831を切り出し、その1フレーム前の画像820から、この第1領域831と重複する画角を有する第2領域の候補822を切り出す。 In step S701, the image processing unit 206 cuts out a candidate for the second region from the image captured one frame before the image of the frame from which the first region was cut out in step S604. For example, the image processing unit 206 cuts out a candidate for the second region from the image 810 one frame before with respect to the first region 821 cut out from the image 820. As will be described later, in step S606, the system control unit 210 compares the candidates in the first region and the second region for motion detection, so that the candidates in the first region and the candidates in the second region overlap. It is necessary to have an angle of view. Therefore, the image processing unit 206 cuts out the candidate 812 of the second region having an angle of view overlapping with the first region 821 of the image 820 shown in FIG. 8B from the image 810. Similarly, the image processing unit 206 cuts out the first region 831 from the image 830, and cuts out the candidate 822 of the second region having an angle of view overlapping with the first region 831 from the image 820 one frame before the image 830.

ステップS702で、システム制御部210は、ステップS701で画像処理部206が第2領域の候補を切り出した画像の第1領域に動体があるかどうかを判断する。システム制御部210は、動体があると判断した場合、ステップS703に進み、画像処理部206は第3領域の切り出しを行う。システム制御部210は、動体がないと判断した場合、ステップS707に進み、ステップS701で画像処理部206が切り出した第2領域の候補を第2領域とする。 In step S702, the system control unit 210 determines whether or not there is a moving object in the first region of the image in which the image processing unit 206 cuts out the candidate of the second region in step S701. When the system control unit 210 determines that there is a moving object, the system control unit 210 proceeds to step S703, and the image processing unit 206 cuts out the third region. When the system control unit 210 determines that there is no moving object, the system proceeds to step S707, and the candidate for the second region cut out by the image processing unit 206 in step S701 is set as the second region.

例えば、画像810から切り出した第2領域の候補812に対して、この画像から切り出した第1領域811に動体がない(動体が検出されない)ため、システム制御部210は、ステップS707に進み、第2領域の候補812を第2領域とする。また、画像820から切り出した第2領域の候補822に対して、この画像から切り出した第1領域821に動体があるため、ステップS703に進む。なお、初めてこのステップS702に進んだ場合には、第2候補領域を切り出した画像には1枚目に撮像された画像が該当し、その画像の第1領域が動体であるか否かの判定を行っていないため、ステップS707に進むものとする。 For example, with respect to the candidate 812 of the second region cut out from the image 810, since there is no moving body in the first region 811 cut out from this image (the moving body is not detected), the system control unit 210 proceeds to step S707 and proceeds to the second step. The candidate 812 of the two regions is set as the second region. Further, with respect to the candidate 822 of the second region cut out from the image 820, since there is a moving body in the first region 821 cut out from this image, the process proceeds to step S703. When the process proceeds to step S702 for the first time, the image obtained by cutting out the second candidate region corresponds to the image captured on the first image, and it is determined whether or not the first region of the image is a moving object. Since the above is not performed, it is assumed that the process proceeds to step S707.

ステップS703では、画像処理部206は、ステップS701で切り出した第2領域の候補の画像より前のフレームのうち、第1領域に動体がないと判断されたフレームのうち、最も撮像されたタイミングが近いフレームの画像から、第3領域を切り出す。後述するように、システム制御部210はステップS704で、第2領域の候補と第3領域とに対して動体検出のための比較を行うため、第2領域の候補と第3領域とが同じ画角をもつ必要がある。たとえば、画像処理部206は、画像830において第1領域831を切り出し、画像820において第1領域831に対応する第2領域の候補822を切り出す。このとき、第2領域の候補822を切り出した画像820の第1領域821には、動体が含まれている。このような場合に、画像820よりも前のフレームであって、第1領域811から動体が検出されていない画像810から、第2領域の候補822と重複する画角を有する第3領域813を切り出す。また、画像処理部206は、画像840において、第1領域841を切り出し、画像830において、第1領域841と重複する画角を有する第2領域の候補832を切り出す。画像820における第1領域821に動体があるため、システム制御部210は、それよりも前のフレームである画像810において、第2領域の候補832と重複する画角を有する第3領域814を切り出す。 In step S703, the image processing unit 206 sets the most captured timing among the frames before the candidate image of the second region cut out in step S701 and which is determined to have no moving object in the first region. A third region is cut out from an image of a close frame. As will be described later, in step S704, the system control unit 210 makes a comparison between the candidate in the second region and the third region for motion detection, so that the candidate in the second region and the third region have the same image. Must have horns. For example, the image processing unit 206 cuts out the first region 831 in the image 830, and cuts out the candidate 822 of the second region corresponding to the first region 831 in the image 820. At this time, a moving body is included in the first region 821 of the image 820 from which the candidate 822 of the second region is cut out. In such a case, from the image 810 which is a frame before the image 820 and in which no moving object is detected from the first region 811, the third region 813 having an angle of view overlapping with the candidate 822 of the second region is displayed. break the ice. Further, the image processing unit 206 cuts out the first region 841 in the image 840, and cuts out the candidate 832 in the second region having an angle of view overlapping with the first region 841 in the image 830. Since there is a moving object in the first region 821 of the image 820, the system control unit 210 cuts out a third region 814 having an angle of view overlapping with the candidate 832 of the second region in the image 810 which is a frame before that. ..

ステップS704で、システム制御部210は、画像処理部206がステップS701で切り出した第2領域の候補と、ステップS703で切り出した第3領域を比較する。ステップS704での比較は、動体検出のためのもので、この結果をもってシステム制御部210は次のステップS704での第2領域の候補に動体が存在するかを判断する。ここでの比較の方法は、画素値差分検出や画像相関判定など公知のものでよい。画素値差分検出では、システム制御部210は、第2領域の候補と第3領域との同じ位置にある画素の画素値の差を計算する。または、画素の輝度信号(Y)の差を計算してもよい。この差が所定値以上であれば、システム制御部210は、計算の対象である画素をカウント対象とし、領域全体においてカウントされた画素数が予め定められた閾値を超えると、システム制御部210は、その領域に動体が存在すると判断する。画像相関判定の方法では、システム制御部210は、2つの領域に対して、指定したブロックサイズで分割し、ブロック内の輝度値(Y)の平均値を計算する。さらに、システム制御部210は、2つの領域のそれぞれに対して、ブロックの輝度値の平均値の分散値を計算する。2つの領域の分散値の差が、予め定められた閾値以上であれば、システム制御部210は、動体が存在すると判断する。 In step S704, the system control unit 210 compares the candidate for the second region cut out by the image processing unit 206 in step S701 with the third region cut out in step S703. The comparison in step S704 is for detecting a moving object, and based on this result, the system control unit 210 determines whether or not a moving object exists as a candidate for the second region in the next step S704. The method of comparison here may be a known method such as pixel value difference detection or image correlation determination. In the pixel value difference detection, the system control unit 210 calculates the difference in the pixel values of the pixels at the same positions in the candidate in the second region and the third region. Alternatively, the difference in the luminance signals (Y) of the pixels may be calculated. If this difference is equal to or greater than a predetermined value, the system control unit 210 counts the pixels to be calculated, and when the number of pixels counted in the entire area exceeds a predetermined threshold value, the system control unit 210 causes the system control unit 210 to count. , Judge that there is a moving object in that area. In the image correlation determination method, the system control unit 210 divides the two regions into a designated block size and calculates the average value of the luminance values (Y) in the blocks. Further, the system control unit 210 calculates the variance value of the average value of the brightness values of the blocks for each of the two regions. If the difference between the variance values of the two regions is equal to or greater than a predetermined threshold value, the system control unit 210 determines that a moving object exists.

ステップS705で、システム制御部210は、第2領域の候補に動体が存在すると判断した場合、ステップS706に進み、第2領域の候補と重複する画角を有する第3領域を第2領域と決定する。一方、ステップS704で、システム制御部210は、第2領域の候補に動体が存在しないと判断した場合、ステップS707に進み、この第2領域の候補を第2領域と決定する。 In step S705, when the system control unit 210 determines that a moving object exists in the candidate of the second region, the system proceeds to step S706 and determines that the third region having an angle of view overlapping with the candidate of the second region is the second region. do. On the other hand, in step S704, when the system control unit 210 determines that the moving object does not exist in the candidate of the second region, the system proceeds to step S707 and determines the candidate of this second region as the second region.

たとえば、システム制御部210は、画像820における第2領域の候補822と画像810における第3領域813とを比較して動体を検出するとする。図8の例では、画像820の第2領域の候補822に動体が存在すると認められるため(木の前の人が跳んでいる)、システム制御部210は、第2の領域の候補822を第2の領域とせず、第3の領域813を第2の領域と決定する。一方、システム制御部210は、画像830における第2領域の候補832と画像810の第3領域814とを比較し、動体がないと認められるので、第2領域の候補832を第2領域と決定する。 For example, the system control unit 210 compares the candidate 822 of the second region in the image 820 with the third region 813 in the image 810 to detect a moving object. In the example of FIG. 8, since it is recognized that a moving object exists in the candidate 822 in the second region of the image 820 (the person in front of the tree is jumping), the system control unit 210 selects the candidate 822 in the second region. The third region 813 is determined to be the second region instead of the second region. On the other hand, the system control unit 210 compares the candidate 832 in the second region in the image 830 with the third region 814 in the image 810 and determines that there is no moving object, so that the candidate 832 in the second region is the second region. do.

以上は、第2領域の決定についての説明であった。上記のような処理で、システム制御部210は、動体のない領域を第2領域として決定し、第1領域における動体検出の誤りを防ぐとともに、動体のある第2領域を合成画像に使ってしまうことを回避することができる。 The above has been described for determining the second region. In the above process, the system control unit 210 determines the region without the moving object as the second region, prevents an error in detecting the moving object in the first region, and uses the second region with the moving object for the composite image. Can be avoided.

次に、システム制御部210は、ステップS606で、ステップS604で画像処理部206が切り出した第1領域と、ステップS605で決定した第2領域とに対して、動体検出のための比較を行う。方法は、ステップS703と同様のため、詳細の説明は省略する。 Next, in step S606, the system control unit 210 makes a comparison for motion detection with respect to the first region cut out by the image processing unit 206 in step S604 and the second region determined in step S605. Since the method is the same as in step S703, detailed description thereof will be omitted.

ステップS607で、システム制御部210は、ステップS606での比較の結果に応じて、第1領域に動体が存在するかどうかについて判断する。第1領域に動体がなければ、ステップS608に進み、システム制御部210は該第1領域にフラグを立てる。第1領域に動体があれば、ステップS609に進み、システム制御部210はステップS605で決定した第2領域にフラグを立てる。 In step S607, the system control unit 210 determines whether or not there is a moving object in the first region according to the result of the comparison in step S606. If there is no moving object in the first region, the process proceeds to step S608, and the system control unit 210 sets a flag in the first region. If there is a moving object in the first region, the process proceeds to step S609, and the system control unit 210 sets a flag in the second region determined in step S605.

次に、ステップS610で、システム制御部210は、メモリ209から、不要な領域の削除を行う。ここでいう不要な領域とは、ステップS610の時点で、システム制御部210が確実に合成に用いないと判定した領域を指す。具体的に、システム制御部210は、ステップS608またはS609でフラグを立てた領域の画角よりも、デジタルカメラ100の移動方向の逆方向にあるフラグの立っていない領域を削除する。 Next, in step S610, the system control unit 210 deletes an unnecessary area from the memory 209. The unnecessary region referred to here refers to a region determined by the system control unit 210 to be reliably not used for synthesis at the time of step S610. Specifically, the system control unit 210 deletes the unflagged area in the direction opposite to the moving direction of the digital camera 100 from the angle of view of the area flagged in step S608 or S609.

たとえば、システム制御部210は、図8(b)に示した画像820において、第1領域821に動体があると判断し、第2領域812にフラグを立てた時点、メモリ209から第2領域の右端よりも左にあるフラグの立っていない領域を削除する。具体的に、システム制御部210は、画像810における第2領域812、および画像820における第1領域821の左端よりも左にある部分を削除する。 For example, in the image 820 shown in FIG. 8B, the system control unit 210 determines that there is a moving object in the first area 821, and when the second area 812 is flagged, the memory 209 to the second area Delete the unflagged area to the left of the right edge. Specifically, the system control unit 210 deletes the second region 812 in the image 810 and the portion to the left of the left end of the first region 821 in the image 820.

次に、システム制御部210は、図8(c)に示した画像830において、第1領域831を切り出す。第2領域の候補822に動体が存在するため、画像処理部206は、画像810において第3領域813を第2領域として切り出す。システム制御部210は、第1領域831と第2領域813とを比較した結果、第1領域831に動体があるため、第2領域813にフラグを立てる。これに応じて、システム制御部210は、第2領域813の画角の右端より左側にある領域をメモリ209から削除する。具体的には、システム制御部210は、第1領域831と第2領域の候補822とを削除する。また、画像820における第1領域821に動体が存在するため、画像処理部206はこの時点以降も画像820からは第2領域も第3領域も切り出すことがない。したがって、システム制御部210は、画像820における第2領域の候補822の右端よりも右にある部分も削除してよい。つまり、システム制御部210は、第2領域813にフラグを立てるとともに、画像820の全体を削除する。 Next, the system control unit 210 cuts out the first region 831 in the image 830 shown in FIG. 8 (c). Since the moving object exists in the candidate 822 of the second region, the image processing unit 206 cuts out the third region 813 as the second region in the image 810. As a result of comparing the first region 831 and the second region 813, the system control unit 210 sets a flag in the second region 813 because there is a moving object in the first region 831. In response to this, the system control unit 210 deletes the area on the left side of the right end of the angle of view of the second area 813 from the memory 209. Specifically, the system control unit 210 deletes the first region 831 and the candidate 822 of the second region. Further, since the moving body exists in the first region 821 of the image 820, the image processing unit 206 does not cut out the second region and the third region from the image 820 even after this point. Therefore, the system control unit 210 may also delete the portion to the right of the right end of the candidate 822 in the second region in the image 820. That is, the system control unit 210 sets a flag in the second region 813 and deletes the entire image 820.

最後に、システム制御部210は、図8(d)に示した画像840において、第1領域841を切り出す。第2の領域の候補832に動体が存在しないので、第2の領域の候補832を第2領域とし、システム制御部210は、第1領域841を第2領域832と比較し、第1領域841に動体がいないと判断する。したがって、システム制御部210は、第1領域841にフラグを立てる。この時点では、システム制御部210は、第2領域832と第3領域814とを削除する。 Finally, the system control unit 210 cuts out the first region 841 in the image 840 shown in FIG. 8 (d). Since there is no moving object in the candidate 832 in the second region, the candidate 832 in the second region is set as the second region, and the system control unit 210 compares the first region 841 with the second region 832 and compares the first region 841 with the second region 832. Judge that there is no moving body. Therefore, the system control unit 210 sets a flag in the first region 841. At this point, the system control unit 210 deletes the second region 832 and the third region 814.

なお、前述するステップS702およびS707で説明したように、画像処理部206は、第2領域の候補を切り出した画像の第1領域に動体がないとき、システム制御部210は、第2領域の候補を第2領域と決定する。画像840における第1領域841に動体がないので、画像処理部206は、画像841に動体を検出しなかった時点以降では、画像841より前に撮像した画像からは、第2領域も第3領域も切り出すことがない。したがって、システム制御部210は、画像841に動体検出しなかったら、画像810乃至830におけるフラグが立っていないすべての領域を削除する。 As described in steps S702 and S707 described above, when the image processing unit 206 has no moving object in the first region of the image obtained by cutting out the candidate for the second region, the system control unit 210 is the candidate for the second region. Is determined as the second region. Since there is no moving object in the first region 841 in the image 840, the image processing unit 206 also has the second region as the third region from the image captured before the image 841 after the time when the moving object is not detected in the image 841. Will not be cut out. Therefore, if the system control unit 210 does not detect a moving object in the image 841, the system control unit 210 deletes all the regions in the images 810 to 830 that are not flagged.

上述したように、システム制御部210は、画像の領域にフラグを立てた時点で、不要な領域を判断し削除を行うことによって、使用するメモリ209の容量を最小限に抑えることができる。その抑えた容量の分で、画質の向上に寄与することが期待できる。 As described above, the system control unit 210 can minimize the capacity of the memory 209 used by determining and deleting an unnecessary area when the image area is flagged. It can be expected that the reduced capacity will contribute to the improvement of image quality.

ステップS611で、システム制御部210は、パノラマ撮像が終了したかどうかについて判断する。判断の方法としては、ユーザがボタンの押下の中止を基準にしてよい、または、予め撮像枚数あるいは画角の範囲を定めた場合、それを達しているかどうかを判断してもよい。ステップS611でシステム制御部210はパノラマ撮像が終了していると判断した場合は、ステップS612に進み、パノラマ撮像がまだ終了していないと判断した場合、ステップS603に進む。 In step S611, the system control unit 210 determines whether or not the panoramic imaging is completed. As a method of determination, the user may decide on the basis of stopping the pressing of the button, or if the number of images to be imaged or the range of the angle of view is determined in advance, it may be determined whether or not the range has been reached. If the system control unit 210 determines in step S611 that the panoramic imaging has been completed, the process proceeds to step S612, and if it determines that the panoramic imaging has not yet been completed, the system proceeds to step S603.

最後に、ステップS612で、システム制御部210は、ステップS602で画像処理部206が切り出した第1領域および、ステップS608とステップS609でフラグを立てた領域を用いてパノラマ画像の合成を行う。システム制御部210は、上述したフラグが立っている領域に対応する画像間の位置ずれを検出する。一例としては、システム制御部210は、フラグが立っている領域を任意のサイズの小ブロックに分割し、小ブロック毎に輝度のSAD(Sum of Absolute Difference)が最小となる対応点を算出する。システム制御部210は、算出したSADが最小となる対応点より、動きベクトルを算出することができる。なお、システム制御部210は、動きベクトルの算出において、検出部215が検出した角速度情報や姿勢情報等を用いて行ってもよい。続いて、システム制御部210は、隣り合う領域の画像間で求めた動きベクトルに基づいて、領域間の位置ずれを補正し、領域間の重複部を加重加算などにより合成する。 Finally, in step S612, the system control unit 210 synthesizes a panoramic image using the first region cut out by the image processing unit 206 in step S602 and the regions flagged in steps S608 and S609. The system control unit 210 detects the positional deviation between the images corresponding to the above-mentioned flagged region. As an example, the system control unit 210 divides the flagged area into small blocks of an arbitrary size, and calculates a corresponding point at which the brightness SAD (Sum of Absolute Difference) is minimized for each small block. The system control unit 210 can calculate the motion vector from the corresponding point where the calculated SAD is the minimum. The system control unit 210 may use the angular velocity information, the attitude information, and the like detected by the detection unit 215 in calculating the motion vector. Subsequently, the system control unit 210 corrects the positional deviation between the regions based on the motion vectors obtained between the images of the adjacent regions, and synthesizes the overlapping portions between the regions by weighted addition or the like.

なお、以上のような実施方法では、動体がそれぞれのフレームの画像の第1領域の付近に居続けてしまうと、最初の画像に対してフラグが立ち続けるため、その画像の画角を使い切っても動体が消えない場合、広角のパノラマ画像の合成はできない。このような状況を防ぐために、動体がそれぞれのフレームの第1領域の付近に居続ける場合、ユーザに警告を行うようにしてもよい。 In the above implementation method, if the moving object remains near the first region of the image of each frame, the flag continues to be set for the first image, so even if the angle of view of the image is used up. If the moving object does not disappear, the wide-angle panoramic image cannot be combined. To prevent this situation, the user may be warned if the moving object remains near the first region of each frame.

また、ステップS606およびステップS704で2つの領域の比較において、比較する領域を限定してさらなる高速化も可能である。図9は、本実施形態における領域の比較の高速化を説明するための図である。図9(a)の斜線部を比較する領域とする。デジタルカメラ100の移動方向が右の場合、図9(b)の斜線部のように左側の一部分、デジタルカメラ100の移動方向が左の場合、図9(c)の斜線部のように右側の一部分のみで類似度の算出を行っても良い。その理由は、合成画像部323の画像とパノラマ合成するとき、デジタルカメラ100の移動方向が右方向の場合は左側の部分がつながるように合成を行い、デジタルカメラ100の移動方向が左方向の場合は右側の部分がつながるように合成を行うからである。つまりは、つなぎ目部分に移動している被写体が存在しているかを判定すれば良い。そのため、移動する被写体が一部にしか存在しないと想定できるシーンではさらに類似度を算出する領域を縮小できる。たとえば被写体が下部分しか移動しないはずであると分かるシーン(シーンの上半分が静止している空と山々で構成される風景シーン等)では、斜線部領域をさらに下の部分だけと縮小することも可能である。このように類似度算出領域が小さくなると、計算時間の短縮などのメリットがある。 Further, in the comparison of the two regions in step S606 and step S704, the region to be compared can be limited and the speed can be further increased. FIG. 9 is a diagram for explaining the speeding up of comparison of regions in the present embodiment. The shaded area in FIG. 9A is used as the area to be compared. When the moving direction of the digital camera 100 is on the right, a part on the left side as shown by the shaded area in FIG. 9 (b), and when the moving direction of the digital camera 100 is on the left, the right side as shown by the shaded area in FIG. 9 (c). The similarity may be calculated only for a part. The reason is that when panoramic composition is performed with the image of the composite image unit 323, when the movement direction of the digital camera 100 is the right direction, the left side portion is connected, and when the movement direction of the digital camera 100 is the left direction. This is because the composition is performed so that the right parts are connected. That is, it is sufficient to determine whether or not there is a moving subject at the joint portion. Therefore, in a scene where it can be assumed that there is only a part of the moving subject, the area for calculating the similarity can be further reduced. For example, in a scene where you know that the subject should move only in the lower part (such as a landscape scene consisting of the sky and mountains where the upper half of the scene is stationary), reduce the shaded area to only the lower part. Is also possible. When the similarity calculation area becomes small in this way, there are merits such as shortening the calculation time.

本実施形態によれば、パノラマ合成を行うデジタルカメラを用いて、より少ないメモリ容量で、動体の除去を実現することができる。 According to this embodiment, it is possible to realize the removal of moving objects with a smaller memory capacity by using a digital camera that performs panoramic composition.

(その他の実施形態)
なお、上記実施形態においては、個人向けのデジタルカメラをもとに説明を行ったが、パノラマ撮像および合成機能を搭載していれば、携帯機器やスマートフォン、あるいは、サーバーに接続されたネットワークカメラなどに適用することも可能である。
(Other embodiments)
In the above embodiment, the description is based on a digital camera for individuals, but if it is equipped with a panoramic imaging and compositing function, a mobile device, a smartphone, a network camera connected to a server, etc. It is also possible to apply to.

なお、本発明は、上述の実施形態の1つ以上の機能を実現するプログラムを、ネットワークまたは記憶媒体を介してシステムまたは装置に供給し、そのシステムまたは装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読み出し作動させる処理でも実現可能である。また、1以上の機能を実現する回路(たとえば、ASIC)によっても実現可能である。 In the present invention, a program that realizes one or more functions of the above-described embodiment is supplied to a system or device via a network or a storage medium, and one or more processors in the computer of the system or device program. It can also be realized by the process of reading and operating. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

100 デジタルカメラ
102 操作部
104 モード切替スイッチ
130 記録媒体
204 撮像部
206 画像処理部
207 メモリ制御部
209 メモリ
210 システム制御部
215 検出部
216 I/F
100 Digital camera 102 Operation unit 104 Mode changeover switch 130 Recording medium 204 Imaging unit 206 Image processing unit 207 Memory control unit 209 Memory 210 System control unit 215 Detection unit 216 I / F

Claims (14)

時間的に連続する複数の画像を撮像する撮像手段と、
前記複数の画像のそれぞれに対して第1領域、前記複数の画像のそれぞれの一部の画像に対して第2領域を設定し、前記複数の画像の撮像と並行して、前記複数の画像における第1領域と第2領域とに対して、記憶手段への記憶および前記記憶手段からの削除を制御する制御手段と、
前記複数の画像のそれぞれにおいて、前記第1領域が所定の条件を満たせば、該第1領域の画像を用い、前記第1領域が前記所定の条件を満たさなければ、該第1領域の画像を切り出した画像よりも前に撮像された画像から切り出した第2領域の画像のうち、該第1領域と重複する画角を有し、かつ、前記所定の条件を満たす画像を用いて、パノラマ画像を生成する生成手段を有し、
前記制御手段は、前記第1領域が前記所定の条件を満たせば、該第1領域と重複する画角を有し、かつ、該第1領域を切り出した画像よりも前に撮像された画像から切り出した第2領域を前記記憶手段から削除することを特徴とする撮像装置。
An imaging means that captures multiple images that are continuous in time,
A first region is set for each of the plurality of images, and a second region is set for each part of the plurality of images, and the plurality of images are captured in parallel with the imaging of the plurality of images. A control means for controlling storage in the storage means and deletion from the storage means with respect to the first region and the second region, and
In each of the plurality of images, if the first region satisfies a predetermined condition, the image of the first region is used, and if the first region does not satisfy the predetermined condition, the image of the first region is used. A panoramic image using an image of the second region cut out from an image captured before the cut-out image, which has an angle of view overlapping with the first region and satisfies the predetermined conditions. Has a generation means to generate
If the first region satisfies the predetermined condition, the control means has an angle of view that overlaps with the first region, and is from an image captured before the image obtained by cutting out the first region. An imaging device characterized in that the cut out second region is deleted from the storage means.
動体を検出する動体検出手段を有し、
前記所定の条件は、前記動体が存在しないことであることを特徴とする請求項1に記載の撮像装置。
It has a moving object detecting means for detecting a moving object,
The imaging device according to claim 1, wherein the predetermined condition is that the moving object does not exist.
前記動体検出手段は、重複する画角を有する複数の領域を比較することによって、該領域に動体が存在するかを検出することを特徴とする請求項2に記載の撮像装置。 The imaging device according to claim 2, wherein the moving object detecting means detects whether or not a moving object is present in the plurality of regions having overlapping angles of view. 前記動体検出手段は、前記第1領域と該第1領域と重複する画角を有する前記第2領域とを比較することによって、該第1領域に動体を検出する請求項3に記載の撮像装置。 The imaging device according to claim 3, wherein the moving object detecting means detects a moving object in the first region by comparing the first region with the second region having an angle of view overlapping with the first region. .. 前記制御手段は、前記複数の画像のそれぞれにおいて、画像の中央の位置を含むように前記第1領域を設定することを特徴とする請求項1乃至4のいずれか1項に記載の撮像装置。 The imaging device according to any one of claims 1 to 4, wherein the control means sets the first region of each of the plurality of images so as to include a position at the center of the image. 前記制御手段は、前記複数の画像の少なくとも一部の画像において、第3領域を設定し、
前記生成手段は、前記第2領域を該第2領域と重複する画角を有する前記第3領域とを比較することによって、該第2領域が前記所定の条件を満たすかどうかを判断することを特徴とする請求項1乃至5のいずれか1項に記載の撮像装置。
The control means sets a third region in at least a part of the plurality of images.
The generation means determines whether or not the second region satisfies the predetermined condition by comparing the second region with the third region having an angle of view overlapping with the second region. The imaging apparatus according to any one of claims 1 to 5, which is characterized.
前記制御手段は、前記第2領域を切り出した前記画像から切り出した前記第1領域が前記所定の条件を満たさないときに、前記第3領域を設定することを特徴とする請求項6に記載の撮像装置。 The sixth aspect of claim 6, wherein the control means sets the third region when the first region cut out from the image obtained by cutting out the second region does not satisfy the predetermined condition. Imaging device. 前記制御手段は、前記第2領域を切り出した前記画像よりも前に撮像され、かつ、切り出した第1領域が前記所定の条件を満たす前記画像のうち、前記第2領域を切り出した前記画像との撮像のタイミングが最も近い前記画像に、前記第3領域を設定することを特徴とする請求項7に記載の撮像装置。 The control means is the same as the image obtained by cutting out the second region from the images in which the first region cut out is captured before the image obtained by cutting out the second region and the cut out first region satisfies the predetermined condition. The imaging apparatus according to claim 7, wherein the third region is set on the image having the closest imaging timing. 前記制御手段は、前記第2領域が、前記所定の条件を満たさないとき、前記第3領域を、新たな第2領域として設定することを特徴とする請求項6乃至8のいずれか1項に記載の撮像装置。 The control means according to any one of claims 6 to 8, wherein when the second region does not satisfy the predetermined condition, the third region is set as a new second region. The imaging apparatus described. 前記制御手段は、前記第2領域と前記第3領域との幅を等しく設定することを特徴とする請求項6乃至9のいずれか1項に記載の撮像装置。 The imaging device according to any one of claims 6 to 9, wherein the control means sets the widths of the second region and the third region equally. 前記制御手段は、前記第1領域と前記第2領域との幅を等しく設定することを特徴とする請求項1乃至10のいずれか1項に記載の撮像装置。 The imaging device according to any one of claims 1 to 10, wherein the control means sets the widths of the first region and the second region equally. 前記制御手段は、前記複数の画像のそれぞれの同じ位置において、前記第1領域を設定することを特徴とする請求項1乃至11のいずれか1項に記載の撮像装置。 The imaging device according to any one of claims 1 to 11, wherein the control means sets the first region at the same position of each of the plurality of images. 時間的に連続する複数の画像を撮像するステップと、
前記複数の画像のそれぞれに対して第1領域、前記複数の画像のそれぞれの一部の画像に対して第2領域を設定し、前記複数の画像を撮像するステップと並行して、前記複数の画像における第1領域と第2領域とに対して、記憶手段への記憶および前記記憶手段からの削除を制御するステップと、
前記複数の画像のそれぞれにおいて、前記第1領域が所定の条件を満たせば、該第1領域の画像を用い、前記第1領域が前記所定の条件を満たさなければ、該第1領域の画像を切り出した画像よりも前に撮像された画像から切り出した第2領域の画像のうち、該第1領域と重複する画角を有し、かつ、前記所定の条件を満たす画像を用いて、パノラマ画像を生成するステップを有し、
前記制御するステップにおいては、前記第1領域が前記所定の条件を満たせば、該第1領域と重複する画角を有し、かつ、該第1領域を切り出した画像よりも前に撮像された画像から切り出した第2領域を前記記憶手段から削除することを特徴とする撮像装置の制御方法。
Steps to capture multiple images that are continuous in time,
A first region is set for each of the plurality of images, and a second region is set for each part of the plurality of images, and the plurality of images are captured in parallel with the step of capturing the plurality of images. A step of controlling storage in the storage means and deletion from the storage means with respect to the first region and the second region in the image, and
In each of the plurality of images, if the first region satisfies a predetermined condition, the image of the first region is used, and if the first region does not satisfy the predetermined condition, the image of the first region is used. A panoramic image using an image of the second region cut out from an image captured before the cut-out image, which has an angle of view overlapping with the first region and satisfies the predetermined conditions. Has steps to generate
In the control step, if the first region satisfies the predetermined condition, the first region has an angle of view overlapping with the first region, and the image is taken before the image obtained by cutting out the first region. A control method for an imaging device, which comprises deleting a second region cut out from an image from the storage means.
撮像装置のコンピュータに動作させるコンピュータのプログラムであって、
時間的に連続する複数の画像を撮像するステップと、
前記複数の画像のそれぞれに対して第1領域、前記複数の画像のそれぞれの一部の画像に対して第2領域を設定し、前記複数の画像を撮像するステップと並行して、前記複数の画像における第1領域と第2領域とに対して、記憶手段への記憶および前記記憶手段からの削除を制御するステップと、
前記複数の画像のそれぞれにおいて、前記第1領域が所定の条件を満たせば、該第1領域の画像を用い、前記第1領域が前記所定の条件を満たさなければ、該第1領域の画像を切り出した画像よりも前に撮像された画像から切り出した第2領域の画像のうち、該第1領域と重複する画角を有し、かつ、前記所定の条件を満たす画像を用いて、パノラマ画像を生成するステップを行わせ、
前記制御するステップにおいては、前記第1領域が前記所定の条件を満たせば、該第1領域と重複する画角を有し、かつ、該第1領域を切り出した画像よりも前に撮像された画像から切り出した第2領域を前記記憶手段から削除することを特徴とするプログラム。
A computer program that runs on the computer of the image pickup device.
Steps to capture multiple images that are continuous in time,
A first region is set for each of the plurality of images, and a second region is set for each part of the plurality of images, and the plurality of images are captured in parallel with the step of capturing the plurality of images. A step of controlling storage in the storage means and deletion from the storage means with respect to the first region and the second region in the image, and
In each of the plurality of images, if the first region satisfies a predetermined condition, the image of the first region is used, and if the first region does not satisfy the predetermined condition, the image of the first region is used. A panoramic image using an image of the second region cut out from an image captured before the cut-out image, which has an angle of view overlapping with the first region and satisfies the predetermined conditions. Let me take the steps to generate
In the control step, if the first region satisfies the predetermined condition, the first region has an angle of view overlapping with the first region, and the image is taken before the image obtained by cutting out the first region. A program characterized by deleting a second region cut out from an image from the storage means.
JP2017107073A 2017-05-30 2017-05-30 Imaging device, control method and program of imaging device Active JP6929133B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017107073A JP6929133B2 (en) 2017-05-30 2017-05-30 Imaging device, control method and program of imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017107073A JP6929133B2 (en) 2017-05-30 2017-05-30 Imaging device, control method and program of imaging device

Publications (2)

Publication Number Publication Date
JP2018207177A JP2018207177A (en) 2018-12-27
JP6929133B2 true JP6929133B2 (en) 2021-09-01

Family

ID=64957459

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017107073A Active JP6929133B2 (en) 2017-05-30 2017-05-30 Imaging device, control method and program of imaging device

Country Status (1)

Country Link
JP (1) JP6929133B2 (en)

Also Published As

Publication number Publication date
JP2018207177A (en) 2018-12-27

Similar Documents

Publication Publication Date Title
JP7023662B2 (en) Image processing device, image pickup device, control method and program of image processing device
JP6833746B2 (en) Imaging equipment, imaging methods, programs and recording media
JP6604831B2 (en) Image processing apparatus, image processing apparatus control method, and program
JP6124700B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP6516787B2 (en) Image processing apparatus, control method for image processing apparatus, and program
JP7005324B2 (en) Imaging device, control method and program of imaging device
JP6833801B2 (en) Imaging equipment, imaging methods, programs and recording media
US10867389B2 (en) Image processing apparatus, image pickup apparatus, method for controlling image processing apparatus and storage medium
JP7163057B2 (en) IMAGING DEVICE, IMAGING METHOD, PROGRAM AND RECORDING MEDIUM
CN110505394B (en) Image processing apparatus, image processing method, image pickup apparatus, and storage medium
JP2018006828A (en) Imaging apparatus, control method therefor and program
JP2019125928A (en) Imaging device, imaging method, and program
JP2012060299A (en) Image pickup device, control method thereof, program, and recording medium
JP6761303B2 (en) Imaging device and its control method
JP6929133B2 (en) Imaging device, control method and program of imaging device
JP7051586B2 (en) Imaging equipment, imaging methods and programs
JP6869841B2 (en) Image processing device, control method of image processing device, and program
JP6604998B2 (en) Image processing apparatus, imaging apparatus, image processing apparatus control method, and program
JP7086774B2 (en) Imaging equipment, imaging methods and programs
JP2018207178A (en) Imaging apparatus, control method and program of imaging apparatus
JP2008306284A (en) Photographing apparatus, display method and program
JP2019186831A (en) Image processing apparatus, imaging apparatus, image processing method, and program
JP2019068243A (en) Image processing apparatus, imaging apparatus, control method of image processing apparatus, and program
JP2023104368A (en) Imaging apparatus, imaging method, program, and recording medium
CN116261050A (en) Image processing apparatus, image processing method, image capturing apparatus, and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200528

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210512

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210622

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210624

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210810

R151 Written notification of patent or utility model registration

Ref document number: 6929133

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151