JP2016119724A - Dynamic image photographing device, dynamic image shaking correction method, and program - Google Patents

Dynamic image photographing device, dynamic image shaking correction method, and program Download PDF

Info

Publication number
JP2016119724A
JP2016119724A JP2016061059A JP2016061059A JP2016119724A JP 2016119724 A JP2016119724 A JP 2016119724A JP 2016061059 A JP2016061059 A JP 2016061059A JP 2016061059 A JP2016061059 A JP 2016061059A JP 2016119724 A JP2016119724 A JP 2016119724A
Authority
JP
Japan
Prior art keywords
moving image
amount
frame
frame section
control
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
JP2016061059A
Other languages
Japanese (ja)
Other versions
JP6090494B2 (en
Inventor
麻帆 鈴木
Mahan Suzuki
麻帆 鈴木
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 JP2016061059A priority Critical patent/JP6090494B2/en
Publication of JP2016119724A publication Critical patent/JP2016119724A/en
Application granted granted Critical
Publication of JP6090494B2 publication Critical patent/JP6090494B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To correct shaking in a case where large shaking is generated in a photographed dynamic image, and to obtain a dynamic image having continuity.SOLUTION: A dynamic image photographing device comprises: shaking correction means for cutting out a partial image having predetermined size from an image of each frame included in photographed dynamic image data, and adjusting a position of each cutout partial image on the basis of a detected shaking amount to correct shaking of the dynamic image data; and control means for performing control of changing the predetermined size on the basis of the detected shaking amount. For a first frame section where a shaking amount of a first threshold or more is detected, the control means performs first control of determining the predetermined size on the basis of the shaking amount detected corresponding to the frame in the same first frame section. For a second frame section adjacent to the first frame section, the control means performs second control different from the first control.SELECTED DRAWING: Figure 3

Description

本発明は、動画撮影装置および動画像揺れ補正方法ならびにプログラムに関する。   The present invention relates to a moving image photographing apparatus, a moving image fluctuation correcting method, and a program.

デジタルカメラ、ビデオカメラ、動画撮影機能付き携帯カメラ等の撮影装置では、動画撮影時にイメージセンサから取得される画像の一部を切り出すとともに、この切り出された画像の位置を検出される手振れの方向や量に応じて調整することにより手振れを補正する電子式の手振れ補正機能を有するものがある。この電子式の手振れ補正機能は、イメージセンサの有効画素領域の周囲に補正可能な手振れ量に応じたサイズの余白領域を設ける必要があるが、記録される画像領域をなるべく大きく確保したいために補正可能な手振れ量が制限されている。このため、装置本体自身が大きく動作することや、装置本体を持った手を大きく動かしてしまうことで生じる、画面全体の大きなゆらぎは補正できないのが一般的である。   In a photographing device such as a digital camera, a video camera, and a mobile camera with a moving image shooting function, a part of an image acquired from an image sensor is cut out at the time of moving image shooting, and the direction of camera shake for detecting the position of the cut out image Some have an electronic camera shake correction function that corrects camera shake by adjusting the amount. This electronic camera shake correction function needs to provide a margin area of a size corresponding to the amount of camera shake that can be corrected around the effective pixel area of the image sensor, but it is corrected in order to ensure that the recorded image area is as large as possible. The amount of possible camera shake is limited. For this reason, it is generally impossible to correct large fluctuations in the entire screen that occur when the apparatus main body itself operates greatly or when the hand holding the apparatus main body is moved greatly.

また、被写体を見失ったときに撮影者がしばしば行う被写体を探す行為は、画面を短時間にあわただしく大きく動かすので、撮影時の手振れ補正機能では補正しきれず、結果として、再生時に画像を視聴することは不快であり、無駄であった。また、この種の従来装置の中には、予め設定された切り出しサイズでは画像の揺れが補正できないような大きな揺れが生じた場合であっても、動的に切り出しサイズを縮小することで、大きな揺れを補正可能にする技術が開示されている(例えば、特許文献1参照)。   Also, the act of searching for a subject often performed by a photographer when he / she loses sight of the subject moves the screen tremendously in a short period of time, so it cannot be corrected by the image stabilization function during shooting, and as a result, the user can view the image during playback. Was uncomfortable and wasted. In addition, in this type of conventional apparatus, even when a large fluctuation occurs in which the fluctuation of the image cannot be corrected with a preset clipping size, a large size can be obtained by dynamically reducing the clipping size. A technique that enables correction of shaking is disclosed (see, for example, Patent Document 1).

特開2007−300581号公報JP 2007-300581 A

しかしながら、上記従来装置では、撮影した動画像に大きな変化(揺れ)が生じて切り出しサイズを小さくした場合、この状態で切り出した画像のサイズを他のフレームの画像のサイズと合わせるために拡大処理を行うが、切り出しサイズの変化に応じて拡大率の変化が急激になることにより動画の連続性が損なわれるおそれがあった。   However, in the above-described conventional device, when a large change (shake) occurs in the captured moving image and the cutout size is reduced, an enlargement process is performed to match the size of the cutout image in this state with the size of the image of another frame. However, there is a possibility that the continuity of the moving image may be lost due to a rapid change in the enlargement ratio according to the change in the cutout size.

本発明は、上記した課題を解決するためになされたものであり、撮影した動画像に大きな揺れが生じている場合にも揺れを補正可能であり、かつ、連続性のある動画像を得ることを可能にする動画撮影装置および動画像揺れ補正方法ならびにプログラムを提供することを目的とする。   The present invention has been made to solve the above-described problems, and can obtain a continuous moving image that can correct the shaking even when the captured moving image is greatly shaken. It is an object of the present invention to provide a moving image photographing apparatus, a moving image fluctuation correcting method, and a program that make it possible.

上記した課題を解決するため本発明の第1の観点による動画撮像装置は、動画像を撮像する撮像手段と、前記撮像手段により撮像された動画像データに含まれる各フレームの揺れ量を検出する検出手段と、前記撮像手段により撮像された動画像データに含まれる各フレームの画像内から所定サイズの部分画像を切り取るとともに、この切り取られる各部分画像の位置を前記検出手段により検出された揺れ量に応じて調整することにより前記動画像データの揺れを補正する揺れ補正手段と、前記検出手段により検出された揺れ量に応じて前記所定サイズを変化させる制御を実行する制御手段と、を具備し、前記揺れ補正手段は、前記所定サイズで切り取った複数の部分画像のサイズを合わせるように、前記制御手段の制御による前記所定サイズの変化に応じて、前記所定サイズで切り取った各部分画像を拡大または縮小し、前記制御手段は、前記検出手段により第1の閾値以上の揺れ量が検出された第1のフレーム区間については、同じ第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて前記所定サイズを決定する第1の制御を実行し、該第1のフレーム区間に隣接する第2のフレーム区間については、同じ第2のフレーム区間ではなく前記第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて前記所定サイズを決定する前記第1の制御とは異なる第2の制御を実行することを特徴とする。   In order to solve the above problems, a moving image imaging apparatus according to a first aspect of the present invention detects an amount of shaking of each frame included in moving image data picked up by an image pickup unit that picks up a moving image and the moving image data. A partial image of a predetermined size is cut out from the image of each frame included in the moving image data picked up by the image pickup means and the detection means, and the amount of shaking detected by the detection means as to the position of each cut out partial image And a control unit for executing control for changing the predetermined size according to the amount of shaking detected by the detecting unit. The shake correcting means adjusts the predetermined size under the control of the control means so as to match the sizes of the plurality of partial images cut out at the predetermined size. In response to the change, each partial image cut out at the predetermined size is enlarged or reduced, and the control means is the same for the first frame section in which the detection means detects a fluctuation amount equal to or greater than a first threshold. A first control for determining the predetermined size according to the amount of shaking detected by the detection means corresponding to a frame in the first frame section is executed, and a second adjacent to the first frame section is performed. For the frame section, the first control for determining the predetermined size according to the amount of shaking detected by the detection means corresponding to a frame in the first frame section instead of the same second frame section; Are characterized by executing different second controls.

本発明の第2の観点による動画像揺れ補正方法は、撮像手段により撮像された動画像データの揺れ補正を行う動画像揺れ補正方法であって、前記撮像手段により撮像された動画像データに含まれる各フレームの揺れ量を検出する第1のステップと、前記撮像手段により撮像された動画像データに含まれる各フレームの画像内から所定サイズの部分画像を切り取るとともに、この切り取られる各部分画像の位置を前記第1ステップにより検出された揺れ量に応じて調整することにより前記動画像データの揺れを補正する第2ステップと、前記第1ステップにより検出された揺れ量に応じて前記所定サイズを変化させる制御を実行する第3ステップと、を有し、前記第2ステップは、前記所定サイズで切り取った複数の部分画像のサイズを合わせるように、前記第3ステップの制御による前記所定サイズの変化に応じて、前記所定サイズで切り取った各部分画像を拡大または縮小し、前記第3ステップは、前記第1ステップにより第1の閾値以上の揺れ量が検出された第1のフレーム区間については、同じ第1のフレーム区間内のフレームに対応して前記第1ステップにより検出された揺れ量に応じて前記所定サイズを決定する第1の制御を実行し、該第1のフレーム区間に隣接する第2のフレーム区間については、同じ第2のフレーム区間ではなく前記第1のフレーム区間内のフレームに対応して前記第1ステップにより検出された揺れ量に応じて前記所定サイズを決定する前記第1の制御とは異なる第2の制御を実行することを特徴とする。   A moving image shake correction method according to a second aspect of the present invention is a moving image shake correction method for performing shake correction of moving image data captured by an imaging unit, and is included in the moving image data captured by the imaging unit. A first step of detecting the amount of shaking of each frame, and cutting out a partial image of a predetermined size from within the image of each frame included in the moving image data captured by the imaging means, and A second step for correcting the shaking of the moving image data by adjusting the position according to the shaking amount detected by the first step, and the predetermined size according to the shaking amount detected by the first step. A third step of executing control to change, wherein the second step matches the sizes of the plurality of partial images cut out at the predetermined size. As described above, each partial image cut out at the predetermined size is enlarged or reduced according to the change in the predetermined size by the control of the third step, and the third step is equal to or more than a first threshold value by the first step. For the first frame section in which the amount of shaking is detected, the first size is determined in accordance with the amount of shaking detected in the first step corresponding to the frame in the same first frame section. The second frame interval adjacent to the first frame interval is detected by the first step not corresponding to the same second frame interval but corresponding to a frame in the first frame interval. The second control different from the first control for determining the predetermined size according to the amount of shaking is performed.

本発明の第3の観点による動画像揺れ補正プログラムは、動画像撮影装置のコンピュータによって実行され、撮像手段により撮像された動画像データに含まれる各フレームの揺れ量を検出する検出手段を備えた動画像撮影装置の動画像揺れ補正プログラムであって、コンピュータに、前記撮像手段により撮像された動画像データに含まれる各フレームの画像内から所定サイズの部分画像を切り取るとともに、この切り取られる各部分画像の位置を前記検出手段により検出された揺れ量に応じて調整することにより前記動画像データの揺れを補正する揺れ補正処理と、前記検出手段により検出された揺れ量に応じて前記所定サイズを変化させる制御を実行する制御処理と、を実行させ、前記揺れ補正処理は、前記所定サイズで切り取った複数の部分画像のサイズを合わせるように、前記制御処理の制御による前記所定サイズの変化に応じて、前記所定サイズで切り取った各部分画像を拡大または縮小し、前記制御処理は、前記検出手段により第1の閾値以上の揺れ量が検出された第1のフレーム区間については、同じ第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて前記所定サイズを決定する第1の制御を実行し、該第1のフレーム区間に隣接する第2のフレーム区間については、同じ第2のフレーム区間ではなく前記第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて前記所定サイズを決定する前記第1の制御とは異なる第2の制御を実行することを特徴とする。   A moving image shake correction program according to a third aspect of the present invention includes a detecting unit that is executed by a computer of a moving image capturing device and detects a shake amount of each frame included in moving image data captured by an image capturing unit. A moving image shake correction program for a moving image capturing apparatus, wherein a computer cuts out a partial image of a predetermined size from the image of each frame included in the moving image data captured by the imaging unit, and each of the cut out portions A shake correction process for correcting the shake of the moving image data by adjusting the position of the image according to the shake amount detected by the detection means, and the predetermined size according to the shake amount detected by the detection means. A control process for executing a control to be changed, and the shake correction process includes a plurality of pieces cut out at the predetermined size. The partial images cut out at the predetermined size are enlarged or reduced in accordance with the change in the predetermined size by the control of the control process so that the sizes of the divided images are matched. For the first frame section in which the amount of swing equal to or greater than the threshold value is detected, the predetermined size is determined according to the amount of swing detected by the detecting means corresponding to the frame in the same first frame section. 1 is executed, and the second frame section adjacent to the first frame section is detected by the detecting means in correspondence with the frame in the first frame section, not the same second frame section. A second control different from the first control for determining the predetermined size in accordance with the amount of shaking performed is performed.

本発明によれば、撮影した動画像に大きな揺れが生じている場合にも、揺れを補正可能であり、かつ、連続性のある動画像を得ることを可能にする動画撮影装置および動画像揺れ補正方法ならびにプログラムを提供することができる。   According to the present invention, a moving image shooting apparatus and a moving image shake that can correct the shake and obtain a continuous moving image even when the taken moving image has a large shake. A correction method and a program can be provided.

本発明の第1実施形態によるデジタルカメラの構成を示すブロック図である。It is a block diagram which shows the structure of the digital camera by 1st Embodiment of this invention. 本発明の第1実施形態によるデジタルカメラの制御部の構成を示すブロック図である。It is a block diagram which shows the structure of the control part of the digital camera by 1st Embodiment of this invention. 本発明の第1実施形態によるデジタルカメラの揺れ補正処理を示す概念図である。It is a conceptual diagram which shows the shake correction process of the digital camera by 1st Embodiment of this invention. 本発明の第1実施形態によるデジタルカメラの動画再生時の揺れ補正処理を示すフローチャートである。It is a flowchart which shows the shake correction process at the time of the moving image reproduction of the digital camera by 1st Embodiment of this invention. 本発明の第2実施形態によるデジタルカメラの動画撮影時の揺れ補正処理を示すフローチャートである。It is a flowchart which shows the shake correction process at the time of the moving image photography of the digital camera by 2nd Embodiment of this invention.

以下、添付図面を参照して、本発明を実施するための形態(以下、本実施形態という)について詳細に説明する。なお、本実施形態の説明の全体を通して同じ要素には同じ番号を付している。なお、本実施形態の説明の全体を通して同じ要素には同じ番号を付している。本実施形態は、デジタルカメラに限らず、ビデオカメラ、動画撮影機能付きの携帯電話装置などに適用される。   DESCRIPTION OF EMBODIMENTS Hereinafter, a mode for carrying out the present invention (hereinafter referred to as this embodiment) will be described in detail with reference to the accompanying drawings. Note that the same numbers are assigned to the same elements throughout the description of the present embodiment. Note that the same numbers are assigned to the same elements throughout the description of the present embodiment. This embodiment is applied not only to a digital camera but also to a video camera, a mobile phone device with a moving image shooting function, and the like.

(第1の実施形態)
(第1実施形態の構成)
図1は、本発明の一実施形態によるデジタルカメラ1の構成を示すブロック図である。図1において、画像取得部10は、レンズ11、シャッタ12、LPF13からなる。レンズ11は、通常の光学レンズであり、非球面レンズを重ねたレンズ群からなる。シャッタ12は、シャッタボタンが操作されると、制御部20によって駆動されるドライバ14により動作する、所謂メカニカルシャッタである。なお、デジタルカメラによっては、メカニカルシャッタを備えない場合もあり、沈胴式のレンズ構造、メカニカルズームを搭載する機種の場合、これらの駆動制御もドライバ14で行う。LPF13は、水晶ローパスフィルタであり、モアレの発生を防ぐために搭載されている。
(First embodiment)
(Configuration of the first embodiment)
FIG. 1 is a block diagram showing a configuration of a digital camera 1 according to an embodiment of the present invention. In FIG. 1, the image acquisition unit 10 includes a lens 11, a shutter 12, and an LPF 13. The lens 11 is a normal optical lens and includes a lens group in which aspherical lenses are stacked. The shutter 12 is a so-called mechanical shutter that is operated by a driver 14 driven by the control unit 20 when a shutter button is operated. Depending on the digital camera, a mechanical shutter may not be provided. In the case of a model equipped with a retractable lens structure and a mechanical zoom, these drivers are also controlled by the driver 14. The LPF 13 is a crystal low-pass filter and is mounted to prevent the occurrence of moire.

次に、アナログ信号処理部15は、撮像センサ(CCD,CMOS)16、サンプリング/信号増幅処理部17、A/Dコンバータ18からなる。撮像センサ16は、被写体画像(イメージ)を結像し、RGBの各色の光の強さを、電流値に変換する。サンプリング/信号増幅処理部17は、ノイズや色むらを抑えるための相関二重サンプリング処理や信号増幅処理を行う。A/Dコンバータ18は、アナログフロントエンドとも呼ばれ、サンプリング・増幅したアナログ信号をデジタル信号に変換する(RGB,CMYG各色について12bitデータに変換してバスラインに出力する)。   Next, the analog signal processing unit 15 includes an image sensor (CCD, CMOS) 16, a sampling / signal amplification processing unit 17, and an A / D converter 18. The imaging sensor 16 forms a subject image (image), and converts the intensity of light of each color of RGB into a current value. The sampling / signal amplification processing unit 17 performs correlated double sampling processing and signal amplification processing for suppressing noise and color unevenness. The A / D converter 18 is also called an analog front end, and converts the sampled / amplified analog signal into a digital signal (converts each color of RGB and CMYG into 12-bit data and outputs it to the bus line).

次に、制御部(CPU)20は、後述するプログラムメモリ格納されるプログラムに従ってデジタルカメラ1(撮影装置)の全体を制御する。本実施形態において、制御部20は、図2に示すように、揺れ量検出部210と、揺れ補正部220を有する。
揺れ量検出部210は、例えば、後述の画像メモリ31に記憶されている撮影済み動画像データを再生する前の段階で、該動画像データに含まれる各フレームの揺れ量を検出する。揺れ補正部220は、撮像手段により撮像された動画像データに含まれる各フレームの画像内から所定サイズの部分画像を切り取るとともに、この切り取った各部分画像の位置を揺れ量検出部210により検出された揺れ量に応じて調整することにより動画像データの揺れを補正する。制御部20は、揺れ量検出部210により検出された揺れ量に応じて所定サイズを変化させる制御を実行する。
また、揺れ補正部220は、所定サイズで切り取った複数の部分画像のサイズを合わせるように、補正部20の制御による所定サイズの変化に応じて、所定サイズで切り取った各部分画像を拡大または縮小する。
制御部20は、揺れ量検出部210により第1の閾値以上の揺れ量が検出された第1のフレーム区間については、同じ第1のフレーム区間内のフレームに対応して揺れ量検出部210により検出された揺れ量に応じて所定サイズを決定する第1の制御を実行する。また、制御部20は、該第1のフレーム区間に隣接する第2のフレーム区間については、同じ第2のフレーム区間ではなく前記第1のフレーム区間内のフレームに対応して揺れ量検出部210により検出された揺れ量に応じて所定サイズを決定する第1の制御とは異なる第2の制御を実行する。さらに、制御部20は、第1の閾値未満の揺れ量が検出された第3のフレーム区間については、揺れ量検出部210により検出された揺れ量に応じたサイズではなく、予め決められた固定サイズを所定サイズとして決定する第1の制御および第2の制御のいずれとも異なる第3の制御を実行する。
Next, the control unit (CPU) 20 controls the entire digital camera 1 (imaging device) according to a program stored in a program memory described later. In the present embodiment, the control unit 20 includes a shake amount detection unit 210 and a shake correction unit 220 as shown in FIG.
For example, the shake amount detection unit 210 detects the shake amount of each frame included in the moving image data at a stage before reproducing the captured moving image data stored in the image memory 31 described later. The shake correction unit 220 cuts out a partial image of a predetermined size from the image of each frame included in the moving image data picked up by the image pickup means, and the shake amount detection unit 210 detects the position of each cut out partial image. By adjusting according to the amount of shaking, the shaking of the moving image data is corrected. The control unit 20 executes control to change the predetermined size according to the amount of shaking detected by the shaking amount detection unit 210.
Further, the shake correction unit 220 enlarges or reduces each partial image cut out at the predetermined size according to a change in the predetermined size under the control of the correction unit 20 so that the sizes of the plurality of partial images cut out at the predetermined size are matched. To do.
For the first frame section in which the shaking amount equal to or greater than the first threshold is detected by the shaking amount detection unit 210, the control unit 20 uses the shaking amount detection unit 210 corresponding to the frame in the same first frame section. A first control for determining a predetermined size according to the detected amount of shaking is executed. Further, the control unit 20, for the second frame section adjacent to the first frame section, does not correspond to the same second frame section but corresponds to the frame in the first frame section, and the shaking amount detection unit 210. The second control different from the first control for determining the predetermined size according to the amount of shaking detected by the above is executed. Furthermore, the control unit 20 does not use a size corresponding to the amount of shaking detected by the amount of shaking detection unit 210 for the third frame section in which the amount of shaking less than the first threshold is detected, but a predetermined fixed amount. A third control different from both the first control and the second control for determining the size as the predetermined size is executed.

プレビューエンジン22は、録画モード(記録モード、撮影モードともいう)において、画像取得部10、アナログ信号処理部15を介して入力されたデジタルデータ、もしくはシャッタ操作検出直後、イメージバッファ26に格納されたデジタルデータ、および、画像メモリ31に格納されたデジタルデータを表示部25に表示させるために間引き処理を行う。D/Aコンバータ23は、プレビューエンジン22により間引き処理されたデジタルデータを変換し、後段のドライバ24に出力する。   The preview engine 22 is stored in the image buffer 26 immediately after detection of digital data input via the image acquisition unit 10 and the analog signal processing unit 15 in the recording mode (also referred to as recording mode or photographing mode) or shutter operation detection. Thinning processing is performed in order to display the digital data and the digital data stored in the image memory 31 on the display unit 25. The D / A converter 23 converts the digital data thinned out by the preview engine 22 and outputs it to the driver 24 at the subsequent stage.

ドライバ24は、後段の表示部25に表示されるデジタルデータを一時記憶するバッファ領域を備え、キー操作部27、制御部20を介して入力された制御信号に基づいて表示部25を駆動させる。表示部25は、カラーTFT液晶や、STN液晶などからなり、プレビュー画像や、撮影後の画像データ、設定メニューなどを表示する。   The driver 24 includes a buffer area for temporarily storing digital data displayed on the display unit 25 at the subsequent stage, and drives the display unit 25 based on a control signal input via the key operation unit 27 and the control unit 20. The display unit 25 includes a color TFT liquid crystal, an STN liquid crystal, or the like, and displays a preview image, image data after shooting, a setting menu, and the like.

イメージバッファ26は、アナログ信号処理部15、もしくはデジタル信号処理部28を介して入力され、デジタル信号処理部28に渡すまで一時的に撮影直後のデジタルデータを格納する。キー操作部27は、シャッタボタンや、記録/再生モード選択スライドスイッチ、メニューボタン、十字キー(中央押しで決定)などからなる。   The image buffer 26 temporarily stores digital data immediately after photographing until it is input via the analog signal processing unit 15 or the digital signal processing unit 28 and passed to the digital signal processing unit 28. The key operation unit 27 includes a shutter button, a recording / playback mode selection slide switch, a menu button, a cross key (determined by pressing the center), and the like.

デジタル信号処理部28は、アナログ信号処理部15を介して入力されたデジタルデータに対して、ホワイトバランス処理、色処理、階調処理、輸郭強調、RGB形式からYUV形式への変換、YUV形式からJPEG形式への変換を行う。画像圧縮/伸張処理部29は、デジタル信号処理部28を介して入力されたデジタルデータをJPEG方式に圧縮符号化したり、モーションJPEG形式の動画ファイルを生成したり、モーションJPEG形式の動画ファイルをMPEG形式の動画ファイルに変換したり、再生モードにおいては、JPEG形式、モーションJPEG形式、あるいはMPEG形式の動画ファイルを伸張したりする。   The digital signal processing unit 28 performs white balance processing, color processing, gradation processing, contour emphasis, conversion from RGB format to YUV format, YUV format for digital data input via the analog signal processing unit 15. To JPEG format. The image compression / decompression processing unit 29 compresses and encodes the digital data input via the digital signal processing unit 28 into the JPEG format, generates a motion JPEG format movie file, or converts the motion JPEG format movie file to MPEG. It is converted into a moving image file in a format, or in a reproduction mode, a moving image file in JPEG format, motion JPEG format, or MPEG format is expanded.

プログラムメモリ30は、制御部20にロードされる各種プログラムや、ベストショット機能におけるEV値、色補正情報などを格納する。画像メモリ31は、イメージバッファ26に一時的に保持された画像データや、各種ファイル形式に変換されたデジタルデータ、動画データなどを格納する。カードI/F32は、外部記録媒体33とデジタルカメラ本体との間のデータ交換を制御する。   The program memory 30 stores various programs loaded in the control unit 20, EV values in the best shot function, color correction information, and the like. The image memory 31 stores image data temporarily stored in the image buffer 26, digital data converted into various file formats, moving image data, and the like. The card I / F 32 controls data exchange between the external recording medium 33 and the digital camera body.

外部記録媒体33は、コンパクトフラッシュ(登録商標)、メモリースティック、SDカード等からなる着脱可能な記録媒体である。外部接続用I/F34は、USBコネクター用スロットなどからなり、パーソナルコンピュータなどと接続され、撮影した画像データの転送などに用いられる。RAM35は、制御部(CPU)20の制御に必要な各種パラメータや、夜景撮影時の各種パラメータ(ゲイン(ISO感度)、絞り、シャッタスピード、画像合成のための閾値、重みなど)などを記憶する。   The external recording medium 33 is a detachable recording medium composed of a compact flash (registered trademark), a memory stick, an SD card, or the like. The external connection I / F 34 includes a USB connector slot and the like, is connected to a personal computer or the like, and is used for transferring photographed image data. The RAM 35 stores various parameters necessary for control of the control unit (CPU) 20, various parameters at the time of night scene shooting (gain (ISO sensitivity), aperture, shutter speed, threshold for image composition, weight, etc.), and the like. .

(第1実施形態の動作)
以下、図3、図4を参照して図1に示す本実施形態によるデジタルカメラ1の動作について詳細に説明する。まず、図3に示す概念図を参照して本実施形態の動画像揺れ補正の概略について説明する。図3(A)は補正対象となる動画像データに含まれる各フレームの揺れ量を示すタイムチャートを示している。なお、この補正対象の動画像データの揺れ量は、例えば、後述する揺れ量検出部210(図2参照)により検出される。すなわち、揺れ量検出部210は、当該動画像データのあるフレーム区間におけるメインの被写体の移動量、背景にある建物や山等の移動量等を総合的に加味して検出される。図3(B)は、図3(A)に示す動画像データの揺れ補正時の切り出し余白サイズのタイムチャートを示している。図3(A)においては、上記タイムチャートに引き出し線を引いて、当該引き出し線の起点のタイミングにおける切り出し前のフレーム画像G1〜G7を例示している。また、図3(C)は、図3(A)に示す動画像データの揺れ補正時のデジタルズーム倍率のタイムチャートを示している。図3(C)においては、上記タイムチャートに引き出し線を引いて、該引き出し線の起点のタイミングで切り出された画像G21〜G27を例示している。
(Operation of the first embodiment)
The operation of the digital camera 1 according to the present embodiment shown in FIG. 1 will be described in detail below with reference to FIGS. First, an outline of the moving image fluctuation correction of the present embodiment will be described with reference to the conceptual diagram shown in FIG. FIG. 3A shows a time chart showing the amount of shaking of each frame included in the moving image data to be corrected. Note that the shake amount of the correction target moving image data is detected by, for example, a shake amount detection unit 210 (see FIG. 2) described later. That is, the shaking amount detection unit 210 is detected by comprehensively considering the movement amount of the main subject in a certain frame section of the moving image data, the movement amount of a building or a mountain in the background, and the like. FIG. 3B shows a time chart of the cut-out margin size at the time of shake correction of the moving image data shown in FIG. FIG. 3A illustrates frame images G <b> 1 to G <b> 7 before being cut out at the timing of the starting point of the lead line by drawing a lead line on the time chart. FIG. 3C shows a time chart of the digital zoom magnification at the time of shake correction of the moving image data shown in FIG. FIG. 3C illustrates images G <b> 21 to G <b> 27 that are drawn at the timing of the starting point of the lead line by drawing a lead line on the time chart.

図3(A)において、補正対象の動画像データ(例えば、画像メモリ31に記憶されている動画像データ)は、閾値として予め設定された揺れ量である第1閾値、及び第2閾値と比較される。ここで、第1閾値は、例えば、フレーム画像G1のように被写体(この例では、野球の打者)が中央部にある状態から、フレーム画像G4のように被写体がフレームの右端に移動した状態となる揺れであることを特定可能な揺れ量に相当する値(但し、後述する第2閾値より小さい)である。また、第2閾値は、例えば、フレーム画像G1の撮像状態から、フレーム画像G6のように被写体がフレーム外に外れてしまうような揺れを特定可能な揺れ量に相当する値である。   In FIG. 3A, moving image data to be corrected (for example, moving image data stored in the image memory 31) is compared with a first threshold value and a second threshold value, which are shake amounts set in advance as threshold values. Is done. Here, the first threshold is, for example, a state in which the subject (baseball batter in this example) is in the center as in the frame image G1, and the state in which the subject has moved to the right end of the frame as in the frame image G4. Is a value corresponding to the amount of vibration that can be specified to be a certain amount of vibration (however, smaller than a second threshold value described later). Further, the second threshold value is a value corresponding to a shake amount that can specify a shake that causes the subject to move out of the frame as in the frame image G6 from the imaging state of the frame image G1, for example.

上述した第1閾値及び第2閾値が設定されている時に、補正対象の動画像データ中、第1閾値未満の揺れが検出されているフレーム区間(例えば、時間t0より前のフレーム区間)が特定されると、当該フレーム区間(特許請求の範囲に合わせ、便宜的に、第3のフレーム区間という)の揺れ量に拘わらず、各フレームから固定サイズで被写体周辺の画像を切り出し、そのままのサイズで位置調整を行うだけの揺れ補正を行う。一例として、図3では、時間t0より前のフレーム区間において、例えば、揺れが生じていないフレーム画像G1も、右に少し揺れているフレーム画像G2も、ともに、同じサイズの画像G21、G22として切り出され、位置調整を経て揺れ補正されている。なお、この揺れ補正処理は一般的に行われている処理である。   When the first threshold value and the second threshold value described above are set, a frame section (for example, a frame section before the time t0) in which a fluctuation less than the first threshold value is detected in the moving image data to be corrected is specified. Then, regardless of the amount of shaking of the frame section (for convenience, the third frame section in accordance with the claims), the image around the subject is cut out from each frame at a fixed size, and the size is kept as it is. Shake correction is performed only by adjusting the position. As an example, in FIG. 3, in the frame period before time t0, for example, a frame image G1 that does not shake and a frame image G2 that slightly shakes to the right are both cut out as images G21 and G22 of the same size. The vibration is corrected through position adjustment. This shake correction process is a commonly performed process.

また、補正対象の動画像データ(図3(A)参照)中、第1閾値以上で第2の閾値未満の揺れが検出されているフレーム(時間t1とt2の間のフレーム)が特定されると、当該フレーム区間(便宜的に第1のフレーム区間という)の揺れ補正を行うべく、例えば、フレーム画像G4中、右端に揺れてしまった被写体付近の画像が当該第1のフレーム区間(時間t1とt2の区間)の揺れ量に対応するサイズで小さく切り出され(図3(B)参照)、当該切り出された画像が、例えば、切り出したサイズの3倍のサイズに拡大されたうえで(図3(C)参照)、位置調整されて揺れ補正される。また、制御部20は、本実施形態では、第1閾値以上で第2閾値未満の揺れ量が検出されている第1のフレーム区間が特定されると、当該第1のフレーム区間の揺れ量に応じて、当該第1のフレーム区間の前後のフレーム区間(時間t0とt1の間、及び時間t2とt3の間)の長さを変更する処理が行われる。そして、制御部20は、この長さが変更された前後のフレーム区間(便宜的に第2のフレーム区間という)の双方で、例えば、第1のフレーム区間に近づくほどその時のフレームから切り出した画像のサイズ(最大、第1のフレーム区間のサイズ)が徐々に大きくなるように、言い換えれば、第1のフレーム区間から遠ざかるほどサイズ(最少、第3フレーム区間のサイズ)が徐々に小さくなるように所定サイズを変化させる制御を第2の制御として実行する。この処理により、時間t0から時間t1までの第2のフレーム区間では、各フレームから切り出された画像が1倍から3倍まで徐々に大きなサイズに調整され(この例では、フレーム画像G3から切り出された画像が2倍のサイズの画像G23に調整されている)、次いで、制御部20は、時間t1から時間t2までの第1のフレーム区間では、各フレームから切り出した画像を3倍のサイズに維持し、更に、時間t2から時間t2までの第2のフレーム区間では、各フレームから切り出した画像を3倍から2倍まで徐々に小さいサイズに調整する。その結果、時間t0から時間t3までを通して、切り出し画像のサイズが緩やかに変化し、連続性が保たれる。   Further, a frame (a frame between time t1 and t2) in which a fluctuation greater than or equal to the first threshold and less than the second threshold is detected in moving image data to be corrected (see FIG. 3A). In order to perform the shake correction of the frame section (referred to as the first frame section for convenience), for example, an image near the subject that has been swung to the right end in the frame image G4 is the first frame section (time t1). (Section t2) and a size corresponding to the amount of shaking (see FIG. 3B), and the cut-out image is enlarged to, for example, three times the cut-out size (see FIG. 3 (see (C)), the position is adjusted and the shake is corrected. Further, in the present embodiment, when the first frame section in which a swing amount that is greater than or equal to the first threshold and less than the second threshold is identified, the control unit 20 determines the swing amount of the first frame section. In response, a process of changing the length of the frame period before and after the first frame period (between times t0 and t1 and between times t2 and t3) is performed. Then, the control unit 20 includes, for example, an image cut out from the current frame as it approaches the first frame section in both the previous and subsequent frame sections (for convenience, referred to as the second frame section) whose length has been changed. So that the size (maximum, size of the first frame section) gradually increases, in other words, the size (minimum, size of the third frame section) gradually decreases as the distance from the first frame section increases. Control for changing the predetermined size is executed as second control. By this process, in the second frame section from time t0 to time t1, the image cut out from each frame is gradually adjusted to a large size from 1 to 3 times (in this example, cut out from the frame image G3). Then, the control unit 20 adjusts the image cut out from each frame to three times the size in the first frame section from the time t1 to the time t2. Further, in the second frame section from time t2 to time t2, the image cut out from each frame is gradually adjusted to a small size from 3 times to 2 times. As a result, the size of the cut-out image changes gradually from time t0 to time t3, and continuity is maintained.

また、第2閾値以上の揺れ量が検出されているフレーム区間(時間t4とt5の区間)が特定されると、当該フレーム区間(便宜的に第4のフレーム区間という)では、例えば、フレーム画像G6のように被写体がフレーム外となるほどズレ込んでいるため、被写体の領域を切り出してサイズ調整することでの揺れ補正は行えない。この場合には、制御部20は、揺れ補正部220による揺れ補正を行う代わりに、当該第4のフレーム区間内の各フレームを破棄するとともに、前のフレーム区間のフレーム画像G5、あるいは、後ろのフレーム区間のフレーム画像G7から画像を切り出し、該切り出し画像G26を倍率は等倍(1倍)のまま上記切り出したフレーム区間の画像として埋め込んで補間するフレーム補間処理を行う。このフレーム補間処理によれば、被写体が存在しない無駄な画像の再生をなくして、不自然な再生を回避できる。   In addition, when a frame section (a section between times t4 and t5) in which a shaking amount greater than or equal to the second threshold is detected is specified, in the frame section (referred to as a fourth frame section for convenience), for example, a frame image Since the subject is shifted so that it is out of the frame as in G6, the shake correction cannot be performed by cutting out the region of the subject and adjusting the size. In this case, instead of performing the shake correction by the shake correction unit 220, the control unit 20 discards each frame in the fourth frame section, and the frame image G5 of the previous frame section or the rear frame A frame interpolation process is performed in which an image is cut out from the frame image G7 of the frame section, and the cut-out image G26 is embedded and interpolated as the image of the cut out frame section with the same magnification (1 ×). According to this frame interpolation processing, it is possible to avoid useless reproduction of an image without a subject and to avoid unnatural reproduction.

図3に基づく揺れ補正の概略説明を踏まえ、以下、本実施形態による揺れ補正処理動作を詳細に説明する。図4は本実施形態による動画再生時における補正処理動作を示すフローチャートである。デジタルカメラ1(図1参照)のキー操作部27においてユーザが動画再生モードを設定し、再生対象の動画像を選んで再生開始の操作を行うと、制御部20は、当該選択された動画像データを画像メモリ31から読み出して、一旦、イメージバッファ26に記憶させる。その後、制御部20は、図4のステップS112で動画像データを再生するまでの間に、揺れ量検出部210と揺れ補正部220とにより、上記イメージバッファ26に記憶されている再生画像データに対する揺れ補正処理を実行する。なお、この揺れ補正処理を行うに当たり、揺れ量の大きさを判定するための第1閾値と第2の閾値とが予め設定されている。ここで、第1閾値、第2閾値は図3で例示したものである。なお、第1閾値は、各フレームから、固定サイズの画像を切り取り、該切り取った画像の位置を調整するだけの通常の揺れ補正処理(ステップS103参照)では補正しきれない揺れ量に対応する値である。また、第2の閾値は、第1閾値より大きく、例えば、撮影者が被写体を見失って、見つけようとするために一瞬画像が大きく乱れる時の揺れや、意図せずに撮影者の指が触れたり、一連の画像とは無関係な画像が突然撮影される場合の揺れに相当する値である。   Based on the schematic description of the shake correction based on FIG. 3, the shake correction processing operation according to the present embodiment will be described in detail below. FIG. 4 is a flowchart showing the correction processing operation during moving image reproduction according to the present embodiment. When the user sets the moving image playback mode in the key operation unit 27 of the digital camera 1 (see FIG. 1), selects a moving image to be played, and performs a playback start operation, the control unit 20 performs the selected moving image. Data is read from the image memory 31 and temporarily stored in the image buffer 26. Thereafter, the control unit 20 uses the shake amount detection unit 210 and the shake correction unit 220 to process the reproduction image data stored in the image buffer 26 until the moving image data is reproduced in step S112 in FIG. Execute shake correction processing. Note that, when performing the shake correction process, a first threshold value and a second threshold value for determining the magnitude of the shake amount are set in advance. Here, the first threshold value and the second threshold value are illustrated in FIG. Note that the first threshold value is a value corresponding to a shake amount that cannot be corrected by a normal shake correction process (see step S103) in which a fixed-size image is cut out from each frame and the position of the cut-out image is adjusted. It is. The second threshold value is larger than the first threshold value. For example, when the photographer loses sight of the subject and tries to find it, the image is greatly disturbed for a moment, or the photographer's finger touches unintentionally. Or a value corresponding to shaking when an image unrelated to a series of images is suddenly shot.

揺れ補正処理が開始されると、揺れ量検出部210は、イメージバッファ26から再生対象の動画像データを読み出し、揺れ量検出のために着目する着目フレームを順に読み出しながら、当該着目フレームと前後の複数フレームとの画像比較により各着目フレームの揺れ量を算出する(ステップS101)。   When the shake correction process is started, the shake amount detection unit 210 reads moving image data to be reproduced from the image buffer 26 and sequentially reads out the target frame of interest for detecting the shake amount. The amount of shaking of each frame of interest is calculated by image comparison with a plurality of frames (step S101).

揺れ補正部220は、揺れ量検出部210により算出(検出)された揺れ量を監視し、予め設定された第1閾値未満の揺れ量が検出されたフレーム期間がある否かをチェックする(ステップS102)。ここで、制御部20は、第1閾値未満の揺れ量が検出されたフレーム期間がなかった場合(ステップS102でNO)、ステップS104に進む。これに対して、第1閾値未満の揺れ量が検出されたフレーム期間があった場合(ステップS102でYES)、当該フレーム期間内の各フレームについて、予め固定的に決められている切り取り余白サイズで画像を切り取るとともに、他のフレームに合わせて位置を調整する(ステップS103)。この揺れ補正処理は、揺れが小さい動画像に対して通常適用される処理である。   The shake correction unit 220 monitors the shake amount calculated (detected) by the shake amount detection unit 210 and checks whether or not there is a frame period in which a shake amount less than a preset first threshold is detected (step). S102). Here, when there is no frame period in which the amount of fluctuation less than the first threshold is detected (NO in step S102), the control unit 20 proceeds to step S104. On the other hand, when there is a frame period in which the amount of fluctuation less than the first threshold is detected (YES in step S102), each frame within the frame period has a fixed margin size determined in advance. The image is cut out, and the position is adjusted to other frames (step S103). This shake correction process is a process normally applied to a moving image with small shake.

次に、揺れ補正部220は、揺れ量検出部210により検出(算出)された揺れ量が第1閾値以上で第2閾値未満のフレーム期間があるか否かをチェックする(ステップS104)。ここで、第1閾値以上で第2閾値未満の揺れ量が検出されたフレーム期間がなかった場合(ステップS104でNO)、後述するステップS110の処理に進む。これに対し、制御部20は、第1閾値以上で第2閾値未満の揺れ量が検出されたフレーム期間があった場合(ステップS104でYES)、当該フレーム期間内の各フレームの揺れ量に基づいて切り取り余白サイズを決定する(ステップS105)。次に、制御部20は、当該フレーム期間内の各フレームについて、上記ステップS105で揺れ量が第1閾値以上で第2閾値未満であることが検出されフレーム期間の揺れ量に応じて決定した切り取り余白サイズで画像を切り取るとともに、該画像の位置とサイズを他のフレームに合わせて(他のフレームの画像の位置とサイズとのバランスをとって)調整する(ステップS106)。   Next, the shake correction unit 220 checks whether there is a frame period in which the shake amount detected (calculated) by the shake amount detection unit 210 is greater than or equal to the first threshold and less than the second threshold (step S104). Here, when there is no frame period in which the amount of fluctuation greater than or equal to the first threshold and less than the second threshold is detected (NO in step S104), the process proceeds to step S110 described later. On the other hand, when there is a frame period in which a fluctuation amount that is greater than or equal to the first threshold value and less than the second threshold value is detected (YES in step S104), the control unit 20 is based on the fluctuation amount of each frame within the frame period. The cut margin size is determined (step S105). Next, for each frame in the frame period, the control unit 20 detects that the amount of shaking is greater than or equal to the first threshold value and less than the second threshold value in step S105, and determines the clipping determined according to the amount of shaking of the frame period. The image is cut out with the margin size, and the position and size of the image are adjusted to other frames (by balancing the position and size of the images of other frames) (step S106).

更に、制御部20は、当該フレーム期間内の最大揺れ量を検出し、該検出した最大揺れ量に基づいて当該フレーム期間の前後に設ける所定期間の長さを設定する(ステップS107)。制御部20は、該設定された所定期間内において、切り取り余白サイズが徐々に変化するように設定する(ステップS108)。そのうえで、制御部20は、ステップS108で設定された所定期間内の各フレームについて、徐々に変化する切り取り余白サイズで各画像を切り取るとともに、他のフレームに合わせて位置とサイズを調整する(ステップS109)。   Furthermore, the control unit 20 detects the maximum amount of shaking within the frame period, and sets the length of a predetermined period provided before and after the frame period based on the detected maximum amount of shaking (step S107). The control unit 20 sets the cut margin size to gradually change within the set predetermined period (step S108). In addition, the control unit 20 cuts out each image with a gradually changing cutting margin size for each frame within the predetermined period set in step S108, and adjusts the position and size in accordance with other frames (step S109). ).

以上のようにして、第1閾値以上で第2閾値未満の揺れ量が検出されたフレーム期間の揺れ補正(ステップS105〜S109)が行われた後、上記ステップS101において検出された揺れ量が第2閾値以上のフレーム期間があるか否かをチェックする(ステップS110)。ここで、制御部20は、第2閾値以上の揺れ量が検出されているフレーム期間があると判定されると(ステップS110でYES)、当該揺れ量が第2閾値以上のフレーム期間内の各フレームを破棄し、破棄したフレームの画像を、前後のフレームの画像に基づいて補間する処理を行う(ステップS111)。   As described above, after the shake correction (steps S105 to S109) in the frame period in which the shake amount greater than or equal to the first threshold value and less than the second threshold value is performed, the shake amount detected in step S101 is the first shake amount. It is checked whether or not there is a frame period equal to or greater than two thresholds (step S110). Here, if it is determined that there is a frame period in which the amount of shaking greater than or equal to the second threshold is detected (YES in step S110), the controller 20 determines each amount within the frame period in which the amount of shaking is greater than or equal to the second threshold. A process of interpolating the discarded frame image based on the previous and subsequent frame images is performed (step S111).

以上のようにして、第1閾値未満の揺れ量、第1閾値以上第2閾値未満の揺れ量、第2閾値以上の揺れ量の揺れがそれぞれ補正(ステップS103、S105〜S109、S111)されたイメージバッファ26内の揺れ補正画像データは、ドライバ24に送られる。ドライバ24は、送られてきたデータをバッファ領域に一時記憶し、当該バッファ領域から揺れ補正後の動画像データを読み出して表示部25に再生動画像として表示する(ステップS112)。なお、上記ステップS111までの揺れ補正処理により揺れが補正された画像データを画像メモリ31に戻し(記憶し)、その後、当該揺れ補正済の動画像データを画像メモリ31から直接読み出して再生するようにしても良い。   As described above, the shake amount less than the first threshold, the shake amount greater than the first threshold value and less than the second threshold value, and the shake amount greater than the second threshold value have been corrected (steps S103, S105 to S109, S111). The shake correction image data in the image buffer 26 is sent to the driver 24. The driver 24 temporarily stores the sent data in the buffer area, reads out the moving image data after shake correction from the buffer area, and displays it on the display unit 25 as a reproduced moving image (step S112). The image data whose shake has been corrected by the shake correction processing up to step S111 is returned (stored) to the image memory 31, and then the moving image data after the shake correction is directly read from the image memory 31 and reproduced. Anyway.

(第1実施形態の効果)
以上説明したように、本実施形態による動画像撮影装置(デジタルカメラ1)によれば、制御手段(揺れ補正部220)は、図4に示すように(ステップS104〜S109参照)、検出手段(揺れ量検出部210)により第1の閾値以上で第2の閾値未満の揺れ量が検出された第1のフレーム区間を特定し、第1のフレーム区間と該第1のフレーム区間の前後の第2のフレーム区間とを対象に、第1と第2のフレーム区間のフレームから検出手段により前記第1のフレーム区間について検出された揺れ量に対応するサイズに画像を切り取るとともに、該切り取った画像の位置及びサイズを他のフレームに合わせて調整する第1の揺れ補正処理を行う。このように、大きな揺れを検出したフレームだけではなく、その前後のフレームについても揺れ補正を行うことにより、大きな揺れを検出したフレームを小さく切り出した後、大きな倍率で拡大することにより揺れの補正を行う従来装置(第1引用文献参照)において顕著であった、大きな揺れを補正したフレーム区間での、切り取りサイズの変化に応じた拡大率の急激な変化に起因する動画の連続性を損なうという問題を回避できるようになる。
(Effect of 1st Embodiment)
As described above, according to the moving image photographing apparatus (digital camera 1) according to the present embodiment, the control means (swing correction unit 220) is the detection means (see steps S104 to S109) as shown in FIG. The first frame section in which the amount of shaking greater than or equal to the first threshold and less than the second threshold is detected by the shaking amount detection unit 210) is specified, and the first frame section and the first frame section before and after the first frame section are identified. For the two frame sections, the image is cut out from the frames of the first and second frame sections to a size corresponding to the amount of shaking detected for the first frame section by the detecting means, and A first shake correction process for adjusting the position and size in accordance with other frames is performed. In this way, not only the frame that detected a large shake, but also the frames before and after that, the frame that detected the large shake was cut out small, and then the shake was corrected by enlarging it at a large magnification. The problem of losing the continuity of a moving image due to a sudden change in the enlargement ratio according to the change in the cut size in a frame section in which a large shake is corrected, which was remarkable in the conventional apparatus (see the first cited document) to be performed Can be avoided.

本発明によれば、更に以下に列挙する効果が得られる。
(1)一瞬被写体がフレームから消えてしまいその後に被写体が捕捉されるように大きな揺れに対して、当該フレームを被写体が存在する隣接するフレームから切り出した画像で補間することにより、自然な再生画像を見ることができる。
(2)第1のフレーム区間の振れ量に応じて第2のフレーム区間の長さを変更し、緩やかにサイズが変化する自然な再生画像を視聴できる。
(3)撮影済の動画画像の再生時、あるいは、動画像の撮影時のいずれの場合でも本実施形態の揺れ補正を適用できる。撮影時に揺れ補正して画像メモリに蓄えておくことで、再生時に揺れ補正の処理が不要となる。
(4)画像がゆっくりと一方へ移動した後、再び画像が大きくゆっくりと逆方向に移動するような揺れであって、通常撮影時にリアルタイムで揺れ補正できない揺れも補正できる。
According to the present invention, the effects listed below can be obtained.
(1) A natural reproduced image is obtained by interpolating the frame with an image cut out from an adjacent frame where the subject exists, for a large shake so that the subject disappears from the frame for a moment and the subject is captured thereafter. Can see.
(2) The length of the second frame section is changed according to the shake amount of the first frame section, and a natural reproduced image whose size changes gradually can be viewed.
(3) The shake correction according to the present embodiment can be applied when reproducing a captured moving image or when capturing a moving image. By correcting the shake at the time of shooting and storing it in the image memory, the process of correcting the shake at the time of reproduction becomes unnecessary.
(4) It is also possible to correct a shake that causes the image to move slowly in the opposite direction after the image slowly moves to one side, and cannot be corrected in real time during normal shooting.

(第1実施形態の変形例1)
なお、第1実施形態では、第1のフレーム区間において、揺れ量検出部210により検出された当該第1のフレーム区間の揺れ量に基づいて切り取り余白サイズで画像を切り取る例を挙げているが、動画像再生時、ユーザが上記切り取り余白サイズ(縮小レベル:ブレ補正レベル)をユーザが任意に設定できるように構成しても良い。この構成については、例えば、動画生成モードを設定した後、再生開始操作の前(ステップS101に移行する前)に、表示部25に設定画面を表示し、該設定画面を用いて上記設定の指示を受けるようにすることで実現できる。かかる構成によれば、揺れ量が大きい区間の揺れ補正に際してサイズの変動をユーザが任意に設定できる。
(Modification 1 of the first embodiment)
In the first embodiment, in the first frame section, an example is given in which an image is cut out with a trimming margin size based on the swing amount of the first frame section detected by the swing amount detection unit 210. At the time of moving image reproduction, the user may arbitrarily set the cut margin size (reduction level: blur correction level). With regard to this configuration, for example, after setting the moving image generation mode, before the reproduction start operation (before moving to step S101), a setting screen is displayed on the display unit 25, and the setting instruction is made using the setting screen. It can be realized by receiving. According to such a configuration, the user can arbitrarily set the size variation when correcting the shaking in the section where the shaking amount is large.

(第1の実施形態の変形例2)
また、第2の実施形態の変形例1に示した上記設定画面において、大きな揺れ(上記第1閾値に相当する揺れ)の動画像を対象とする揺れ補正を行うか否か、無駄画像(上記第2閾値に対応する揺れを有する画像)を対象とする揺れ補正を行うか否かを設定できるようにしても良い。なお、これらの補正を実行するか否かを設定する処理は、動画像の撮影時に実施する構成とすることもできる。かかる構成によれば、補正対象の揺れの種別をユーザが任意に設定できる。
(Modification 2 of the first embodiment)
In addition, in the setting screen shown in the first modification of the second embodiment, whether or not to perform shake correction on a moving image with a large shake (a shake corresponding to the first threshold value) is used as a waste image (above It may be possible to set whether or not to perform shake correction for an image having a shake corresponding to the second threshold. Note that the processing for setting whether or not to perform these corrections can be configured to be performed when a moving image is captured. According to such a configuration, the user can arbitrarily set the type of shake to be corrected.

(第2の実施形態)
(第2の実施形態の構成)
上述した第1実施形態では、動画像の再生時に揺れ補正処理を行う例について開示したが、第2の実施形態では、動画像の撮影時に揺れ補正処理を行うものである。動画像の撮影時に揺れ補正を行う場合、補正対象が上記実施形態で述べた撮影済動画像データから撮影中の動画像データに変わるだけであり、制御部20の構成は、当該動画像データの揺れ補正処理に図2に示す構成により対応できる。本実施形態によるデジタルカメラ1のその他の構成も図1と同様である。
(Second Embodiment)
(Configuration of Second Embodiment)
In the above-described first embodiment, an example in which the shake correction process is performed when a moving image is reproduced has been disclosed. However, in the second embodiment, the shake correction process is performed when a moving image is captured. When shake correction is performed at the time of capturing a moving image, the correction target is simply changed from the captured moving image data described in the above embodiment to the moving image data being captured, and the configuration of the control unit 20 is the same as that of the moving image data. The shake correction processing can be handled by the configuration shown in FIG. Other configurations of the digital camera 1 according to the present embodiment are the same as those in FIG.

(第2の実施形態の動作)
図5は本実施形態による動画撮影時における揺れ補正処理動作を示すフローチャートである。以下、図5を参照して本実施形態の揺れ補正処理について説明する。動画像を撮影するためには、動画像撮影モードにしたうえで、撮影開始の操作を行う。撮影開始の操作が行われると、撮像センサ16により撮像された動画像の光電変換出力が、サンプリング/信号増幅処理部17によりサンプリング・増幅処理され、更にA/Dコンバータ18によりデジタル変換されてバスラインに出力される。本実施形態において、制御部20は、A/Dコンバータ18から出力されるデジタル信号(動画像データ)を画像メモリ31に格納する前にイメージバッファ26に一時蓄え、該蓄えた動画像データに対して図5に示す揺れ補正処理を行う。なお、この補正処理を行うにあたり、上記第1実施形態と同様、第1閾値、第2閾値が予め設定されているものとする。
(Operation of Second Embodiment)
FIG. 5 is a flowchart showing the shake correction processing operation during moving image shooting according to the present embodiment. Hereinafter, the shake correction processing of the present embodiment will be described with reference to FIG. In order to shoot a moving image, a shooting start operation is performed after the moving image shooting mode is set. When a shooting start operation is performed, the photoelectric conversion output of the moving image captured by the image sensor 16 is sampled and amplified by the sampling / signal amplification processing unit 17 and further digitally converted by the A / D converter 18 to obtain a bus. Output to the line. In the present embodiment, the control unit 20 temporarily stores the digital signal (moving image data) output from the A / D converter 18 in the image buffer 26 before storing it in the image memory 31, and stores the stored moving image data. Then, the shake correction process shown in FIG. 5 is performed. In performing this correction processing, it is assumed that the first threshold value and the second threshold value are set in advance as in the first embodiment.

本実施形態において、揺れ補正処理が開始されると、揺れ量検出部210は、イメージバッファ26からデジタル信号処理部28等を経て画像メモリ31に渡す前の動画像データ(撮影中の動画像データ)を読み出し、揺れ量検出のために着目する着目フレームを順に読み出しながら、当該着目フレームと前後の複数フレームとの画像比較により各着目フレームの揺れ量を算出する(ステップS201)。その後、揺れ補正部220は、揺れ量検出部210により算出(検出)された揺れ量を監視し、予め設定された第1閾値未満の揺れ量が検出されたフレーム期間、第1閾値以上で第2閾値未満の揺れ量が検出されたフレーム期間、第2閾値以上の揺れ量が検出されたフレーム期間をそれぞれ特定し、これら各区間のフレームを対象に、ステップS202〜S211の揺れ補正処理を実施する。ここで、ステップS202〜S211の処理は第1実施形態(図4参照)におけるステップS102〜S111の処理と同様であり、その詳しい説明は割愛する。図5のステップS211において、第2閾値以上の揺れ量が検出されたフレーム期間に対する画像の補間処理が実施された後、当該揺れ補正(サイズ、位置等の調整)後の動画像データに基づきデジタル信号処理部28でのデジタル信号処理等を経て揺れ補正済み動画像データを生成し、該揺れ補正済み動画像データを画像メモリ31に記憶させる(ステップS212)。   In this embodiment, when the shake correction process is started, the shake amount detection unit 210 transmits the moving image data (moving image data being shot) before being transferred from the image buffer 26 to the image memory 31 via the digital signal processing unit 28 and the like. ) And sequentially reading out the target frame of interest for detecting the amount of shaking, and calculating the amount of shaking of each frame of interest by comparing the target frame with the preceding and succeeding frames (step S201). Thereafter, the shake correction unit 220 monitors the shake amount calculated (detected) by the shake amount detection unit 210, and is a frame period in which a shake amount less than a preset first threshold value is detected. The frame period in which the amount of fluctuation less than 2 threshold values is detected and the frame period in which the amount of fluctuation more than the second threshold value is specified are specified, and the shake correction processing in steps S202 to S211 is performed for the frames in these sections. To do. Here, the processing of steps S202 to S211 is the same as the processing of steps S102 to S111 in the first embodiment (see FIG. 4), and detailed description thereof is omitted. In step S211 in FIG. 5, after the image interpolation process is performed for the frame period in which the amount of shaking greater than or equal to the second threshold is detected, digital processing is performed based on the moving image data after the shaking correction (size, position, etc. adjustment). The shake corrected moving image data is generated through digital signal processing in the signal processing unit 28, and the shake corrected moving image data is stored in the image memory 31 (step S212).

(第2実施形態の効果)
以上説明したように、第2実施形態による動画撮影装置(デジタルカメラ1)よれば、動画像の撮影時、撮影された動画像データを画像メモリ31に記憶させる前にバッファリングして揺れ補正を行う。撮影時に大きな揺れのある動画像が撮影されても、該揺れを補正した動画像を画像メモリに記憶でき、当該動画像データの再生時には、揺れ補正処理を行うことなく大きな揺れのない画像を再生できる。
(Effect of 2nd Embodiment)
As described above, according to the moving image capturing apparatus (digital camera 1) according to the second embodiment, when capturing a moving image, the captured moving image data is buffered before being stored in the image memory 31, and shake correction is performed. Do. Even if a moving image with a large shake is shot during shooting, the corrected moving image can be stored in the image memory, and when the moving image data is played back, the image without a large shake is reproduced without performing the shake correction process. it can.

(第3実施形態)
(第3実施形態の構成)
上述した第1実施形態、第2の実施形態では、動画像の再生時、あるいは撮影時に、揺れ補正対象の動画像データから各フレームの揺れ量を検出しているが、第3の実施形態では、装置本体部の揺れ量(振動)を検出する加速度/ジャイロセンサ等の検出器と、撮像手段により撮像された動画像データ内の各フレーム毎に、検出器により検出された揺れ量を関連付けて記憶させる関連付け手段とを具備する。そして、揺れ量の関連付けられている動画像データを再生する際、制御部20の揺れ量検出部210は、該動画像データに関連付けられている各フレームの揺れ量を読み出して当該画像データの各フレームの揺れ量をそれぞれ検出する。そして、その後、揺れ補正部220は読み出された揺れ量に基づいて、例えば、第1閾値未満の揺れ量が検出されたフレーム期間、第1閾値以上で第2閾値未満の揺れ量が検出されたフレーム期間、第2閾値以上の揺れ量が検出されたフレーム期間をそれぞれ特定して揺れ補正処理を行う。
(Third embodiment)
(Configuration of Third Embodiment)
In the first embodiment and the second embodiment described above, the amount of shaking of each frame is detected from the moving image data to be shake-corrected during the playback or shooting of the moving image. In the third embodiment, A detector such as an acceleration / gyro sensor that detects the amount of vibration (vibration) of the main body of the apparatus is associated with the amount of vibration detected by the detector for each frame in the moving image data captured by the imaging means. Association means for storing. Then, when reproducing the moving image data associated with the shaking amount, the shaking amount detection unit 210 of the control unit 20 reads the shaking amount of each frame associated with the moving image data, and each of the image data The amount of shaking of the frame is detected. After that, the shake correction unit 220 detects, based on the read shake amount, for example, a frame period in which a shake amount less than the first threshold is detected, and a shake amount that is greater than or equal to the first threshold and less than the second threshold. The shake correction process is performed by specifying the frame period and the frame period in which the shake amount equal to or greater than the second threshold is detected.

(第3実施形態の効果)
このように、第3実施形態では、撮像手段(撮像センサ16)により撮像された動画像データに、装置(デジタルカメラ1)本体部の揺れ量を検出する検出器により検出された揺れ量を関連付けて記憶させ、検出手段(揺れ量検出部210)は、動画像データに関連付けられた(装置本体の)揺れ量に基づき補正対象の動画像データの揺れ量を検出することを特徴とする。本実施形態の構成によれば、ジャイロセンサ等の揺れ検知センサを用いて大きな揺れを補正した画像の再生が行える。
(Effect of the third embodiment)
Thus, in the third embodiment, the amount of shaking detected by the detector that detects the amount of shaking of the main unit of the apparatus (digital camera 1) is associated with the moving image data captured by the imaging means (imaging sensor 16). The detection means (the shake amount detection unit 210) detects the shake amount of the moving image data to be corrected based on the shake amount (of the apparatus main body) associated with the moving image data. According to the configuration of the present embodiment, it is possible to reproduce an image in which a large shake is corrected using a shake detection sensor such as a gyro sensor.

なお、本実施形態による動画像揺れ補正方法は、例えば、図1に示すデジタルカメラ1に適用される。そして、その動画像揺れ補正方法は、例えば、図4において、デジタルカメラ1の撮像手段(撮像センサ16)により撮像された動画像データの揺れ量を検出する第1のステップ(図4のステップS101)と、第1のステップにより所定の第1の閾値以上で所定の第2の閾値未満の揺れ量が検出された第1のフレーム区間を特定し、第1のフレーム区間と該第1のフレーム区間の前後の第2のフレーム区間とを対象に、第1及び第2のフレーム区間のフレームから第1のステップにより第1のフレーム区間について検出された揺れ量に対応するサイズに画像を切り取るとともに、該切り取った画像の位置及びサイズを他のフレームに合わせて調整する揺れ補正処理を行う第2のステップ(図4のステップS104〜S109)と、を有する。このように、大きな揺れが検出されたフレームだけでなく、その前後のフレームについても揺れ補正を行う。このため、撮影した動画像に大きな揺れが生じている場合にも、補正のために切り出した画像の拡大率が急変することなく、連続性のある動画像の視聴を可能にする動画撮影方法を提供することができる。   Note that the moving image fluctuation correction method according to the present embodiment is applied to, for example, the digital camera 1 shown in FIG. The moving image shake correction method is, for example, the first step (step S101 in FIG. 4) for detecting the shake amount of moving image data picked up by the image pickup means (image pickup sensor 16) of the digital camera 1 in FIG. ) And a first frame section in which a swing amount greater than or equal to a predetermined first threshold and less than a predetermined second threshold is detected in the first step, the first frame section and the first frame are identified For the second frame section before and after the section, the image is cut out from the frames of the first and second frame sections to a size corresponding to the shaking amount detected for the first frame section by the first step. And a second step (steps S104 to S109 in FIG. 4) for performing a shake correction process for adjusting the position and size of the cut image according to other frames.As described above, the shake correction is performed not only on the frame in which the large shake is detected, but also on the frames before and after the frame. For this reason, there is a video recording method that enables continuous video viewing without sudden change in the magnification of the image cut out for correction even when the captured video is greatly shaken. Can be provided.

また、本実施形態による動画像揺れ補正プログラムは、デジタルカメラ1の、例えば、プログラムメモリ30に実装され、コンピュータ(例えば、図1の制御部20)によって実行されるプログラムである。そして、そのプログラムは、コンピュータに、デジタルカメラ1の撮像手段(撮像センサ16)により撮像された動画像データの揺れ量を検出する処理(図4のステップS101)、検出処理により所定の第1の閾値以上で所定の第2の閾値未満の揺れ量が検出された第1のフレーム区間を特定し、第1のフレーム区間と該第1のフレーム区間の前後の第2のフレーム区間とを対象に、前記第1と第2のフレーム区間のフレームから検出処理により第1のフレーム区間について検出された揺れ量に対応するサイズに画像を切り取るとともに、該切り取った画像の位置及びサイズを他のフレームに合わせて調整する揺れ補正処理(図4のステップS104〜S109)とを実行させる。デジタルカメラ1では、制御部10(揺れ量検出210、及び揺れ補正部220)が上記プログラムを読み出して、第1の閾値以上で第2の閾値未満の揺れ量が検出された第1のフレーム区間と前後の第2のフレーム区間とを対象に、各フレームから、第1のフレーム区間について検出された揺れ量に対応するサイズに画像を切り取るとともに、該切り取った画像の位置及びサイズを他のフレームに合わせて調整する揺れ補正処理を実行する。これにより、撮影した動画像に大きな揺れが生じている場合にも、補正のために切り出した画像の拡大率が急変することなく、連続性のある動画像の視聴を可能にする動画撮影プログラムを提供することができる。   In addition, the moving image shake correction program according to the present embodiment is a program that is installed in, for example, the program memory 30 of the digital camera 1 and is executed by a computer (for example, the control unit 20 in FIG. 1). Then, the program causes the computer to detect a shake amount of the moving image data imaged by the imaging means (imaging sensor 16) of the digital camera 1 (step S101 in FIG. 4), and to perform a predetermined first by the detection process. A first frame section in which a fluctuation amount greater than or equal to a threshold value and less than a predetermined second threshold value is identified, and the first frame section and second frame sections before and after the first frame section are targeted. The image is cut out from the frames of the first and second frame sections to a size corresponding to the shaking amount detected for the first frame section by the detection process, and the position and size of the cut out image are changed to other frames. The shake correction process (steps S104 to S109 in FIG. 4) to be adjusted together is executed. In the digital camera 1, the control unit 10 (the shake amount detection 210 and the shake correction unit 220) reads the above program, and the first frame section in which the shake amount that is greater than or equal to the first threshold and less than the second threshold is detected. And the second frame section before and after the image, the image is cut out from each frame to a size corresponding to the amount of shaking detected for the first frame section, and the position and size of the cut-out image are set to other frames. Execute shake correction processing that adjusts to As a result, a video shooting program that enables continuous video viewing without sudden change in the enlargement ratio of the image cut out for correction even when the captured video is greatly shaken. Can be provided.

以上、本発明の好ましい実施形態について詳述したが、本発明の技術的範囲は上記実施形態に記載の範囲には限定されないことは言うまでもない。上記実施形態に、多様な変更または改良を加えることが可能であることが当業者に明らかである。またその様な変更または改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。   As mentioned above, although preferred embodiment of this invention was explained in full detail, it cannot be overemphasized that the technical scope of this invention is not limited to the range as described in the said embodiment. It will be apparent to those skilled in the art that various modifications or improvements can be added to the above-described embodiments. Further, it is apparent from the scope of the claims that the embodiments added with such changes or improvements can be included in the technical scope of the present invention.

以下に、本願出願時の特許請求の範囲を付記する。
[請求項1]
動画像を撮像する撮像手段と、
前記撮像手段により撮像された動画像データに含まれる各フレームの揺れ量を検出する検出手段と、
前記撮像手段により撮像された動画像データに含まれる各フレームの画像内から所定サイズの部分画像を切り取るとともに、この切り取った各部分画像の位置を前記検出手段により検出された揺れ量に応じて調整することにより前記動画像データの揺れを補正する揺れ補正手段と、
前記検出手段により検出された揺れ量に応じて前記所定サイズを変化させる制御を実行する制御手段と、
を具備し、
前記揺れ補正手段は、
前記所定サイズで切り取った複数の部分画像のサイズを合わせるように、前記制御手段の制御による前記所定サイズの変化に応じて、前記所定サイズで切り取った各部分画像を拡大または縮小し、
前記制御手段は、
前記検出手段により第1の閾値以上の揺れ量が検出された第1のフレーム区間については、同じ第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて前記所定サイズを決定する第1の制御を実行し、該第1のフレーム区間に隣接する第2のフレーム区間については、同じ第2のフレーム区間ではなく前記第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて前記所定サイズを決定する前記第1の制御とは異なる第2の制御を実行することを特徴とする動画撮影装置。
[請求項2]
前記制御手段は、
前記第1の閾値未満の揺れ量が検出された第3のフレーム区間については、前記検出手段により検出された揺れ量に応じたサイズではなく、予め決められた固定サイズを前記所定サイズとして決定する前記第1の制御および前記第2の制御のいずれとも異なる第3の制御を実行する
ことを特徴とする請求項1記載の動画撮影装置。
[請求項3]
前記制御手段は、
前記第1のフレーム区間について検出された前記揺れ量に応じて前記第2のフレーム区間の長さを変更することを特徴とする請求項1または2記載の動画撮影装置。
[請求項4]
前記制御手段は、
前記第2のフレーム区間については、前記所定サイズを前記第1のフレーム区間に近づくほど徐々に大きくなり、遠ざかるほど徐々に小さくなるように変化させる制御を前記第2の制御として実行することを特徴とする請求項3記載の動画撮影装置。
[請求項5]
前記検出手段により前記第1の閾値以上で第2の閾値未満の揺れ量が検出されたフレーム区間を前記第1のフレーム区間、前記第2の閾値以上の揺れ量が検出されたフレーム区間を第4のフレーム区間とし、
この第4のフレーム区間内については、前記揺れ補正手段による揺れ補正を行う代わりに、この第4のフレーム区間内の各フレームを破棄し、隣接するフレームの画像で補間するフレーム補間手段を更に備えたことを特徴とする請求項1乃至4のいずれか1つに記載の動画撮影装置。
[請求項6]
装置本体部の揺れ量を検出する検出器と、
前記撮像手段により撮像された動画像データに、前記検出器により検出された揺れ量を関連付けて記憶させる関連付け手段と
を更に具備し、
前記検出手段は、前記関連付け手段により前記動画像データに関連付けられた前記揺れ量に基づき当該動画像データの揺れ量を検出することを特徴とする請求項1乃至5のいずれかに記載の動画撮影装置。
[請求項7]
前記揺れ補正手段は、
記憶部に記憶されている前記動画像データに対して前記揺れ補正処理を行い、
前記制御手段は、
前記記憶部に記憶されている前記動画像データに対して前記揺れ補正手段が前記揺れ補正処理を行う際に前記検出手段により検出された揺れ量に応じて前記所定サイズを変化させる制御を実行することを特徴とする請求項1乃至6のいずれか1つに記載の動画撮影装置。
[請求項8]
前記揺れ補正手段は、
前記記憶部に記憶されている前記動画像データ全体を再生する際に前記揺れ補正処理を行うことを特徴とする請求項7記載の動画撮影装置。
[請求項9]
前記揺れ補正手段は、
前記撮像手段による撮像中に前記記憶部に記憶する前に一時記憶される前記動画像データを対象に前記揺れ補正処理を行うことを特徴とする請求項7記載の動画撮影装置。
[請求項10]
撮像手段により撮像された動画像データの揺れ補正を行う動画像揺れ補正方法であって、
前記撮像手段により撮像された動画像データに含まれる各フレームの揺れ量を検出する第1のステップと、
前記撮像手段により撮像された動画像データに含まれる各フレームの画像内から所定サイズの部分画像を切り取るとともに、この切り取った各部分画像の位置を前記第1ステップにより検出された揺れ量に応じて調整することにより前記動画像データの揺れを補正する第2ステップと、
前記第1ステップにより検出された揺れ量に応じて前記所定サイズを変化させる制御を実行する第3ステップと、
を有し、
前記第2ステップは、
前記所定サイズで切り取った複数の部分画像のサイズを合わせるように、前記第3ステップの制御による前記所定サイズの変化に応じて、前記所定サイズで切り取った各部分画像を拡大または縮小し、
前記第3ステップは、
前記第1ステップにより第1の閾値以上の揺れ量が検出された第1のフレーム区間については、同じ第1のフレーム区間内のフレームに対応して前記第1ステップにより検出された揺れ量に応じて前記所定サイズを決定する第1の制御を実行し、該第1のフレーム区間に隣接する第2のフレーム区間については、同じ第2のフレーム区間ではなく前記第1のフレーム区間内のフレームに対応して前記第1ステップにより検出された揺れ量に応じて前記所定サイズを決定する前記第1の制御とは異なる第2の制御を実行することを特徴とする動画像揺れ補正方法。
[請求項11]
動画像撮影装置のコンピュータによって実行され、撮像手段により撮像された動画像データに含まれる各フレームの揺れ量を検出する検出手段を備えた動画像撮影装置の動画像揺れ補正プログラムであって、
コンピュータに、
前記撮像手段により撮像された動画像データに含まれる各フレームの画像内から所定サイズの部分画像を切り取るとともに、この切り取った各部分画像の位置を前記検出手段により検出された揺れ量に応じて調整することにより前記動画像データの揺れを補正する揺れ補正処理と、
前記検出手段により検出された揺れ量に応じて前記所定サイズを変化させる制御を実行する制御処理と、を実行させ、
前記揺れ補正処理は、
前記所定サイズで切り取った複数の部分画像のサイズを合わせるように、前記制御手段の制御による前記所定サイズの変化に応じて、前記所定サイズで切り取った各部分画像を拡大または縮小し、
前記制御処理は、
前記検出手段により第1の閾値以上の揺れ量が検出された第1のフレーム区間については、同じ第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて前記所定サイズを決定する第1の制御を実行し、該第1のフレーム区間に隣接する第2のフレーム区間については、同じ第2のフレーム区間ではなく前記第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて前記所定サイズを決定する前記第1の制御とは異なる第2の制御を実行することを特徴とする動画像揺れ補正プログラム。
The claims appended at the time of filing this application will be appended below.
[Claim 1]
An imaging means for capturing a moving image;
Detecting means for detecting a shaking amount of each frame included in the moving image data imaged by the imaging means;
A partial image of a predetermined size is cut out from the image of each frame included in the moving image data picked up by the image pickup means, and the position of the cut out partial image is adjusted according to the amount of shaking detected by the detection means. A shake correcting means for correcting the shake of the moving image data by
Control means for executing control to change the predetermined size according to the amount of shaking detected by the detection means;
Comprising
The shake correcting means is
In accordance with the change in the predetermined size under the control of the control means, the partial images cut out at the predetermined size are enlarged or reduced so as to match the sizes of the partial images cut out at the predetermined size,
The control means includes
For the first frame section in which the amount of shaking greater than or equal to the first threshold is detected by the detection means, the first frame section corresponds to the amount of shaking detected by the detection means corresponding to a frame in the same first frame section. A first control for determining a predetermined size is executed, and a second frame section adjacent to the first frame section corresponds to a frame in the first frame section, not the same second frame section. And a second control different from the first control for determining the predetermined size in accordance with the amount of shaking detected by the detecting means.
[Claim 2]
The control means includes
For the third frame section in which the amount of shaking less than the first threshold is detected, a predetermined fixed size is determined as the predetermined size, not the size corresponding to the amount of shaking detected by the detecting means. The moving image capturing apparatus according to claim 1, wherein a third control different from any of the first control and the second control is executed.
[Claim 3]
The control means includes
The moving image photographing apparatus according to claim 1 or 2, wherein a length of the second frame section is changed in accordance with the amount of shaking detected for the first frame section.
[Claim 4]
The control means includes
For the second frame section, control is performed as the second control so that the predetermined size gradually increases as it approaches the first frame section and gradually decreases as it moves away. The moving image photographing apparatus according to claim 3.
[Claim 5]
The frame section in which the amount of fluctuation greater than the first threshold and less than the second threshold is detected by the detection means is the first frame section, and the frame section in which the amount of fluctuation greater than the second threshold is detected. 4 frame intervals,
In the fourth frame section, instead of performing the shake correction by the shake correction means, the frame interpolating means for discarding each frame in the fourth frame section and interpolating with an image of an adjacent frame is further provided. 5. The moving image photographing apparatus according to claim 1, wherein the moving image photographing apparatus is characterized in that:
[Claim 6]
A detector for detecting the amount of shaking of the device body,
Association means for associating and storing the amount of shaking detected by the detector with the moving image data imaged by the imaging means;
6. The moving image shooting according to claim 1, wherein the detecting unit detects a shaking amount of the moving image data based on the shaking amount associated with the moving image data by the associating unit. apparatus.
[Claim 7]
The shake correcting means is
Performing the shake correction process on the moving image data stored in the storage unit;
The control means includes
When the shake correction unit performs the shake correction process on the moving image data stored in the storage unit, control is performed to change the predetermined size according to the shake amount detected by the detection unit. The moving image shooting apparatus according to claim 1, wherein the moving image shooting apparatus is a moving image shooting apparatus.
[Claim 8]
The shake correcting means is
8. The moving image photographing apparatus according to claim 7, wherein the shake correction process is performed when reproducing the entire moving image data stored in the storage unit.
[Claim 9]
The shake correcting means is
8. The moving image shooting apparatus according to claim 7, wherein the shake correction process is performed on the moving image data temporarily stored before being stored in the storage unit during image pickup by the image pickup unit.
[Claim 10]
A moving image shake correction method for performing shake correction of moving image data captured by an imaging means,
A first step of detecting a shaking amount of each frame included in the moving image data imaged by the imaging means;
A partial image of a predetermined size is cut out from the image of each frame included in the moving image data picked up by the image pickup means, and the position of each cut out partial image is determined according to the amount of shaking detected in the first step. A second step of correcting shaking of the moving image data by adjusting;
A third step of executing control to change the predetermined size in accordance with the amount of shaking detected in the first step;
Have
The second step includes
In accordance with the change in the predetermined size by the control of the third step, each partial image cut out at the predetermined size is enlarged or reduced so as to match the sizes of the plurality of partial images cut out at the predetermined size,
The third step includes
For the first frame section in which the swing amount equal to or greater than the first threshold is detected in the first step, the first frame section corresponds to the swing amount detected in the first step corresponding to the frame in the same first frame section. The first control for determining the predetermined size is executed, and the second frame section adjacent to the first frame section is not the same second frame section but a frame in the first frame section. Correspondingly, a second control different from the first control for determining the predetermined size in accordance with the amount of shaking detected in the first step is executed.
[Claim 11]
A moving image shake correction program for a moving image shooting apparatus provided with a detecting unit that is executed by a computer of the moving image shooting device and detects a shake amount of each frame included in moving image data captured by an imaging unit,
On the computer,
A partial image of a predetermined size is cut out from the image of each frame included in the moving image data picked up by the image pickup means, and the position of the cut out partial image is adjusted according to the amount of shaking detected by the detection means. A shake correction process for correcting the shake of the moving image data,
A control process for executing a control for changing the predetermined size in accordance with the amount of shaking detected by the detection means;
The shake correction process includes:
In accordance with the change in the predetermined size under the control of the control means, the partial images cut out at the predetermined size are enlarged or reduced so as to match the sizes of the partial images cut out at the predetermined size,
The control process is
For the first frame section in which the amount of shaking greater than or equal to the first threshold is detected by the detection means, the first frame section corresponds to the amount of shaking detected by the detection means corresponding to a frame in the same first frame section. A first control for determining a predetermined size is executed, and a second frame section adjacent to the first frame section corresponds to a frame in the first frame section, not the same second frame section. And a second control different from the first control for determining the predetermined size in accordance with the amount of shaking detected by the detecting means.

1…デジタルカメラ、10…画像取得部、15…アナログ信号処理部、16…撮像センサ、17…サンプリング/信号増幅処理部、18…A/Dコンバータ、20…制御部、210…揺れ量検出部、220…揺れ補正部、22…プレビューエンジン、23…D/Aコンバータ、24…ドライバ、25…表示部、26…イメージバッファ、27…キー操作部、28…デジタル信号処理部、29…画像圧縮/伸張処理部、30…プログラムメモリ、31…画像メモリ、32…カードI/F、33…外部記録媒体、34…外部接続用I/F、35…RAM   DESCRIPTION OF SYMBOLS 1 ... Digital camera, 10 ... Image acquisition part, 15 ... Analog signal processing part, 16 ... Imaging sensor, 17 ... Sampling / signal amplification processing part, 18 ... A / D converter, 20 ... Control part, 210 ... Swing amount detection part , 220: Shake correction unit, 22: Preview engine, 23: D / A converter, 24 ... Driver, 25 ... Display unit, 26 ... Image buffer, 27 ... Key operation unit, 28 ... Digital signal processing unit, 29 ... Image compression / Decompression processing unit, 30 ... Program memory, 31 ... Image memory, 32 ... Card I / F, 33 ... External recording medium, 34 ... I / F for external connection, 35 ... RAM

上記した課題を解決するため本発明の第1の観点による動画撮像装置は、動画像を撮像する撮像手段と、前記撮像手段により撮像された動画像データに含まれる各フレームの揺れ量を検出する検出手段と、前記撮像手段により撮像された動画像データに含まれる各フレームの画像内から所定サイズの部分画像を切り取るとともに、この切り取られる各部分画像の位置を前記検出手段により検出された揺れ量に応じて調整することにより前記動画像データの揺れを補正する揺れ補正手段と、前記検出手段により検出された揺れ量に応じて前記所定サイズを変化させる制御を実行する制御手段と、を具備し、前記揺れ補正手段は、前記所定サイズで切り取った複数の部分画像のサイズを合わせるように、前記制御手段の制御による前記所定サイズの変化に応じて、前記所定サイズで切り取った各部分画像を拡大または縮小し、前記制御手段は、前記検出手段により第1の閾値以上の揺れ量が検出された第1のフレーム区間については、同じ第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて前記所定サイズを決定する第1の制御を実行し、該第1のフレーム区間に隣接する第2のフレーム区間については、前記第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて所定サイズを決定する第2の制御を実行することを特徴とする。 In order to solve the above problems, a moving image imaging apparatus according to a first aspect of the present invention detects an amount of shaking of each frame included in moving image data picked up by an image pickup unit that picks up a moving image and the moving image data. A partial image of a predetermined size is cut out from the image of each frame included in the moving image data picked up by the image pickup means and the detection means, and the amount of shaking detected by the detection means as to the position of each cut out partial image And a control unit for executing control for changing the predetermined size according to the amount of shaking detected by the detecting unit. The shake correcting means adjusts the predetermined size under the control of the control means so as to match the sizes of the plurality of partial images cut out at the predetermined size. In response to the change, each partial image cut out at the predetermined size is enlarged or reduced, and the control means is the same for the first frame section in which the detection means detects a fluctuation amount equal to or greater than a first threshold. A first control for determining the predetermined size according to the amount of shaking detected by the detection means corresponding to a frame in the first frame section is executed, and a second adjacent to the first frame section is performed. For the frame section, a second control is performed in which a predetermined size is determined in accordance with the amount of shaking detected by the detecting means corresponding to the frame in the first frame section .

本発明の第2の観点による動画像揺れ補正方法は、撮像手段により撮像された動画像データの揺れ補正を行う動画像揺れ補正方法であって、前記撮像手段により撮像された動画像データに含まれる各フレームの揺れ量を検出する第1のステップと、前記撮像手段により撮像された動画像データに含まれる各フレームの画像内から所定サイズの部分画像を切り取るとともに、この切り取られる各部分画像の位置を前記第1ステップにより検出された揺れ量に応じて調整することにより前記動画像データの揺れを補正する第2ステップと、前記第1ステップにより検出された揺れ量に応じて前記所定サイズを変化させる制御を実行する第3ステップと、を有し、前記第2ステップは、前記所定サイズで切り取った複数の部分画像のサイズを合わせるように、前記第3ステップの制御による前記所定サイズの変化に応じて、前記所定サイズで切り取った各部分画像を拡大または縮小し、前記第3ステップは、前記第1ステップにより第1の閾値以上の揺れ量が検出された第1のフレーム区間については、同じ第1のフレーム区間内のフレームに対応して前記第1ステップにより検出された揺れ量に応じて前記所定サイズを決定する第1の制御を実行し、該第1のフレーム区間に隣接する第2のフレーム区間については、前記第1ステップにより検出された揺れ量に応じて前記所定サイズを決定する第2の制御を実行することを特徴とする。 A moving image shake correction method according to a second aspect of the present invention is a moving image shake correction method for performing shake correction of moving image data captured by an imaging unit, and is included in the moving image data captured by the imaging unit. A first step of detecting the amount of shaking of each frame, and cutting out a partial image of a predetermined size from within the image of each frame included in the moving image data captured by the imaging means, and A second step for correcting the shaking of the moving image data by adjusting the position according to the shaking amount detected by the first step, and the predetermined size according to the shaking amount detected by the first step. A third step of executing control to change, wherein the second step matches the sizes of the plurality of partial images cut out at the predetermined size. As described above, each partial image cut out at the predetermined size is enlarged or reduced according to the change in the predetermined size by the control of the third step, and the third step is equal to or more than a first threshold value by the first step. For the first frame section in which the amount of shaking is detected, the first size is determined in accordance with the amount of shaking detected in the first step corresponding to the frame in the same first frame section. Control is executed, and for the second frame section adjacent to the first frame section, the second control is executed to determine the predetermined size according to the amount of shaking detected by the first step. Features.

本発明の第3の観点による動画像揺れ補正プログラムは、動画像撮影装置のコンピュータによって実行され、撮像手段により撮像された動画像データに含まれる各フレームの揺れ量を検出する検出手段を備えた動画像撮影装置の動画像揺れ補正プログラムであって、 コンピュータに、前記撮像手段により撮像された動画像データに含まれる各フレームの画像内から所定サイズの部分画像を切り取るとともに、この切り取られる各部分画像の位置を前記検出手段により検出された揺れ量に応じて調整することにより前記動画像データの揺れを補正する揺れ補正処理と、前記検出手段により検出された揺れ量に応じて前記所定サイズを変化させる制御を実行する制御処理と、を実行させ、前記揺れ補正処理は、前記所定サイズで切り取った複数の部分画像のサイズを合わせるように、前記制御処理の制御による前記所定サイズの変化に応じて、前記所定サイズで切り取った各部分画像を拡大または縮小し、前記制御処理は、前記検出手段により第1の閾値以上の揺れ量が検出された第1のフレーム区間については、同じ第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて前記所定サイズを決定する第1の制御を実行し、該第1のフレーム区間に隣接する第2のフレーム区間については、前記第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて前記所定サイズを決定する第2の制御を実行することを特徴とする。 A moving image shake correction program according to a third aspect of the present invention includes a detecting unit that is executed by a computer of a moving image capturing device and detects a shake amount of each frame included in moving image data captured by an image capturing unit. A moving image shake correction program for a moving image photographing apparatus, wherein a computer cuts out a partial image of a predetermined size from the image of each frame included in the moving image data captured by the imaging unit, and each of the cut out portions A shake correction process for correcting the shake of the moving image data by adjusting the position of the image according to the shake amount detected by the detection means, and the predetermined size according to the shake amount detected by the detection means. A control process for executing a control to be changed, and the shake correction process includes a plurality of pieces cut out at the predetermined size. In order to match the size of the partial image, each partial image cut out at the predetermined size is enlarged or reduced in accordance with the change in the predetermined size by the control of the control process. For the first frame section in which the amount of swing equal to or greater than the threshold value is detected, the predetermined size is determined according to the amount of swing detected by the detecting means corresponding to the frame in the same first frame section. The second frame section adjacent to the first frame section is executed according to the amount of shaking detected by the detecting means corresponding to the frame in the first frame section. The second control for determining the predetermined size is performed.

Claims (11)

動画像を撮像する撮像手段と、
前記撮像手段により撮像された動画像データに含まれる各フレームの揺れ量を検出する検出手段と、
前記撮像手段により撮像された動画像データに含まれる各フレームの画像内から所定サイズの部分画像を切り取るとともに、この切り取られる各部分画像の位置を前記検出手段により検出された揺れ量に応じて調整することにより前記動画像データの揺れを補正する揺れ補正手段と、
前記検出手段により検出された揺れ量に応じて前記所定サイズを変化させる制御を実行する制御手段と、
を具備し、
前記揺れ補正手段は、
前記所定サイズで切り取った複数の部分画像のサイズを合わせるように、前記制御手段の制御による前記所定サイズの変化に応じて、前記所定サイズで切り取った各部分画像を拡大または縮小し、
前記制御手段は、
前記検出手段により第1の閾値以上の揺れ量が検出された第1のフレーム区間については、同じ第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて前記所定サイズを決定する第1の制御を実行し、該第1のフレーム区間に隣接する第2のフレーム区間については、同じ第2のフレーム区間ではなく前記第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて前記所定サイズを決定する前記第1の制御とは異なる第2の制御を実行することを特徴とする動画撮影装置。
An imaging means for capturing a moving image;
Detecting means for detecting a shaking amount of each frame included in the moving image data imaged by the imaging means;
A partial image of a predetermined size is cut out from the image of each frame included in the moving image data picked up by the image pickup means, and the position of each cut-out partial image is adjusted according to the amount of shaking detected by the detection means. A shake correcting means for correcting the shake of the moving image data by
Control means for executing control to change the predetermined size according to the amount of shaking detected by the detection means;
Comprising
The shake correcting means is
In accordance with the change in the predetermined size under the control of the control means, the partial images cut out at the predetermined size are enlarged or reduced so as to match the sizes of the partial images cut out at the predetermined size,
The control means includes
For the first frame section in which the amount of shaking greater than or equal to the first threshold is detected by the detection means, the first frame section corresponds to the amount of shaking detected by the detection means corresponding to a frame in the same first frame section. A first control for determining a predetermined size is executed, and a second frame section adjacent to the first frame section corresponds to a frame in the first frame section, not the same second frame section. And a second control different from the first control for determining the predetermined size in accordance with the amount of shaking detected by the detecting means.
前記制御手段は、
前記第1の閾値未満の揺れ量が検出された第3のフレーム区間については、前記検出手段により検出された揺れ量に応じたサイズではなく、予め決められた固定サイズを前記所定サイズとして決定する前記第1の制御および前記第2の制御のいずれとも異なる第3の制御を実行する
ことを特徴とする請求項1記載の動画撮影装置。
The control means includes
For the third frame section in which the amount of shaking less than the first threshold is detected, a predetermined fixed size is determined as the predetermined size, not the size corresponding to the amount of shaking detected by the detecting means. The moving image capturing apparatus according to claim 1, wherein a third control different from any of the first control and the second control is executed.
前記制御手段は、
前記第1のフレーム区間について検出された前記揺れ量に応じて前記第2のフレーム区間の長さを変更することを特徴とする請求項1または2記載の動画撮影装置。
The control means includes
The moving image photographing apparatus according to claim 1 or 2, wherein a length of the second frame section is changed in accordance with the amount of shaking detected for the first frame section.
前記制御手段は、
前記第2のフレーム区間については、前記所定サイズを前記第1のフレーム区間に近づくほど徐々に大きくなり、遠ざかるほど徐々に小さくなるように変化させる制御を前記第2の制御として実行することを特徴とする請求項3記載の動画撮影装置。
The control means includes
For the second frame section, control is performed as the second control so that the predetermined size gradually increases as it approaches the first frame section and gradually decreases as it moves away. The moving image photographing apparatus according to claim 3.
前記検出手段により前記第1の閾値以上で第2の閾値未満の揺れ量が検出されたフレーム区間を前記第1のフレーム区間、前記第2の閾値以上の揺れ量が検出されたフレーム区間を第4のフレーム区間とし、
この第4のフレーム区間内については、前記揺れ補正手段による揺れ補正を行う代わりに、この第4のフレーム区間内の各フレームを破棄し、隣接するフレームの画像で補間するフレーム補間手段を更に備えたことを特徴とする請求項1乃至4のいずれか1つに記載の動画撮影装置。
The frame section in which the amount of fluctuation greater than the first threshold and less than the second threshold is detected by the detection means is the first frame section, and the frame section in which the amount of fluctuation greater than the second threshold is detected. 4 frame intervals,
In the fourth frame section, instead of performing the shake correction by the shake correction means, the frame interpolating means for discarding each frame in the fourth frame section and interpolating with an image of an adjacent frame is further provided. 5. The moving image photographing apparatus according to claim 1, wherein the moving image photographing apparatus is characterized in that:
装置本体部の揺れ量を検出する検出器と、
前記撮像手段により撮像された動画像データに、前記検出器により検出された揺れ量を関連付けて記憶させる関連付け手段と
を更に具備し、
前記検出手段は、前記関連付け手段により前記動画像データに関連付けられた前記揺れ量に基づき当該動画像データの揺れ量を検出することを特徴とする請求項1乃至5のいずれかに記載の動画撮影装置。
A detector for detecting the amount of shaking of the device body,
Association means for associating and storing the amount of shaking detected by the detector with the moving image data imaged by the imaging means;
6. The moving image shooting according to claim 1, wherein the detecting unit detects a shaking amount of the moving image data based on the shaking amount associated with the moving image data by the associating unit. apparatus.
前記揺れ補正手段は、
記憶部に記憶されている前記動画像データに対して前記揺れ補正処理を行い、
前記制御手段は、
前記記憶部に記憶されている前記動画像データに対して前記揺れ補正手段が前記揺れ補正処理を行う際に前記検出手段により検出された揺れ量に応じて前記所定サイズを変化させる制御を実行することを特徴とする請求項1乃至6のいずれか1つに記載の動画撮影装置。
The shake correcting means is
Performing the shake correction process on the moving image data stored in the storage unit;
The control means includes
When the shake correction unit performs the shake correction process on the moving image data stored in the storage unit, control is performed to change the predetermined size according to the shake amount detected by the detection unit. The moving image shooting apparatus according to claim 1, wherein the moving image shooting apparatus is a moving image shooting apparatus.
前記揺れ補正手段は、
前記記憶部に記憶されている前記動画像データ全体を再生する際に前記揺れ補正処理を行うことを特徴とする請求項7記載の動画撮影装置。
The shake correcting means is
8. The moving image photographing apparatus according to claim 7, wherein the shake correction process is performed when reproducing the entire moving image data stored in the storage unit.
前記揺れ補正手段は、
前記撮像手段による撮像中に前記記憶部に記憶する前に一時記憶される前記動画像データを対象に前記揺れ補正処理を行うことを特徴とする請求項7記載の動画撮影装置。
The shake correcting means is
8. The moving image shooting apparatus according to claim 7, wherein the shake correction process is performed on the moving image data temporarily stored before being stored in the storage unit during image pickup by the image pickup unit.
撮像手段により撮像された動画像データの揺れ補正を行う動画像揺れ補正方法であって、
前記撮像手段により撮像された動画像データに含まれる各フレームの揺れ量を検出する第1のステップと、
前記撮像手段により撮像された動画像データに含まれる各フレームの画像内から所定サイズの部分画像を切り取るとともに、この切り取られる各部分画像の位置を前記第1ステップにより検出された揺れ量に応じて調整することにより前記動画像データの揺れを補正する第2ステップと、
前記第1ステップにより検出された揺れ量に応じて前記所定サイズを変化させる制御を実行する第3ステップと、
を有し、
前記第2ステップは、
前記所定サイズで切り取った複数の部分画像のサイズを合わせるように、前記第3ステップの制御による前記所定サイズの変化に応じて、前記所定サイズで切り取った各部分画像を拡大または縮小し、
前記第3ステップは、
前記第1ステップにより第1の閾値以上の揺れ量が検出された第1のフレーム区間については、同じ第1のフレーム区間内のフレームに対応して前記第1ステップにより検出された揺れ量に応じて前記所定サイズを決定する第1の制御を実行し、該第1のフレーム区間に隣接する第2のフレーム区間については、同じ第2のフレーム区間ではなく前記第1のフレーム区間内のフレームに対応して前記第1ステップにより検出された揺れ量に応じて前記所定サイズを決定する前記第1の制御とは異なる第2の制御を実行することを特徴とする動画像揺れ補正方法。
A moving image shake correction method for performing shake correction of moving image data captured by an imaging means,
A first step of detecting a shaking amount of each frame included in the moving image data imaged by the imaging means;
A partial image of a predetermined size is cut out from the image of each frame included in the moving image data picked up by the image pickup means, and the position of each cut out partial image is determined according to the amount of shaking detected in the first step. A second step of correcting shaking of the moving image data by adjusting;
A third step of executing control to change the predetermined size in accordance with the amount of shaking detected in the first step;
Have
The second step includes
In accordance with the change in the predetermined size by the control of the third step, each partial image cut out at the predetermined size is enlarged or reduced so as to match the sizes of the plurality of partial images cut out at the predetermined size,
The third step includes
For the first frame section in which the swing amount equal to or greater than the first threshold is detected in the first step, the first frame section corresponds to the swing amount detected in the first step corresponding to the frame in the same first frame section. The first control for determining the predetermined size is executed, and the second frame section adjacent to the first frame section is not the same second frame section but a frame in the first frame section. Correspondingly, a second control different from the first control for determining the predetermined size in accordance with the amount of shaking detected in the first step is executed.
動画像撮影装置のコンピュータによって実行され、撮像手段により撮像された動画像データに含まれる各フレームの揺れ量を検出する検出手段を備えた動画像撮影装置の動画像揺れ補正プログラムであって、
コンピュータに、
前記撮像手段により撮像された動画像データに含まれる各フレームの画像内から所定サイズの部分画像を切り取るとともに、この切り取られる各部分画像の位置を前記検出手段により検出された揺れ量に応じて調整することにより前記動画像データの揺れを補正する揺れ補正処理と、
前記検出手段により検出された揺れ量に応じて前記所定サイズを変化させる制御を実行する制御処理と、を実行させ、
前記揺れ補正処理は、
前記所定サイズで切り取った複数の部分画像のサイズを合わせるように、前記制御処理の制御による前記所定サイズの変化に応じて、前記所定サイズで切り取った各部分画像を拡大または縮小し、
前記制御処理は、
前記検出手段により第1の閾値以上の揺れ量が検出された第1のフレーム区間については、同じ第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて前記所定サイズを決定する第1の制御を実行し、該第1のフレーム区間に隣接する第2のフレーム区間については、同じ第2のフレーム区間ではなく前記第1のフレーム区間内のフレームに対応して前記検出手段により検出された揺れ量に応じて前記所定サイズを決定する前記第1の制御とは異なる第2の制御を実行することを特徴とする動画像揺れ補正プログラム。
A moving image shake correction program for a moving image shooting apparatus provided with a detecting unit that is executed by a computer of the moving image shooting device and detects a shake amount of each frame included in moving image data captured by an imaging unit,
On the computer,
A partial image of a predetermined size is cut out from the image of each frame included in the moving image data picked up by the image pickup means, and the position of each cut-out partial image is adjusted according to the amount of shaking detected by the detection means. A shake correction process for correcting the shake of the moving image data,
A control process for executing a control for changing the predetermined size in accordance with the amount of shaking detected by the detection means;
The shake correction process includes:
Enlarging or reducing each partial image cut at the predetermined size according to the change in the predetermined size by the control of the control process so as to match the size of the plurality of partial images cut at the predetermined size,
The control process is
For the first frame section in which the amount of shaking greater than or equal to the first threshold is detected by the detection means, the first frame section corresponds to the amount of shaking detected by the detection means corresponding to a frame in the same first frame section. A first control for determining a predetermined size is executed, and a second frame section adjacent to the first frame section corresponds to a frame in the first frame section, not the same second frame section. And a second control different from the first control for determining the predetermined size in accordance with the amount of shaking detected by the detecting means.
JP2016061059A 2016-03-25 2016-03-25 Movie shooting apparatus, moving image shake correction method, and program Active JP6090494B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016061059A JP6090494B2 (en) 2016-03-25 2016-03-25 Movie shooting apparatus, moving image shake correction method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016061059A JP6090494B2 (en) 2016-03-25 2016-03-25 Movie shooting apparatus, moving image shake correction method, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2013082562A Division JP5910565B2 (en) 2013-03-22 2013-04-11 Movie shooting apparatus, moving image shake correction method, and program

Publications (2)

Publication Number Publication Date
JP2016119724A true JP2016119724A (en) 2016-06-30
JP6090494B2 JP6090494B2 (en) 2017-03-08

Family

ID=56244519

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016061059A Active JP6090494B2 (en) 2016-03-25 2016-03-25 Movie shooting apparatus, moving image shake correction method, and program

Country Status (1)

Country Link
JP (1) JP6090494B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111641835A (en) * 2020-05-19 2020-09-08 Oppo广东移动通信有限公司 Video processing method, video processing device and electronic equipment
WO2023043132A1 (en) * 2021-09-14 2023-03-23 삼성전자 주식회사 Electronic device for applying bokeh effect to image and operation method of same

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20230015179A (en) * 2021-07-22 2023-01-31 삼성전자주식회사 Electronic device for capturing image and method of operating the same

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010124065A (en) * 2008-11-17 2010-06-03 Victor Co Of Japan Ltd Device for correcting image blur
JP2012044418A (en) * 2010-08-18 2012-03-01 Canon Inc Picture reproducing device and control method therefor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010124065A (en) * 2008-11-17 2010-06-03 Victor Co Of Japan Ltd Device for correcting image blur
JP2012044418A (en) * 2010-08-18 2012-03-01 Canon Inc Picture reproducing device and control method therefor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111641835A (en) * 2020-05-19 2020-09-08 Oppo广东移动通信有限公司 Video processing method, video processing device and electronic equipment
CN111641835B (en) * 2020-05-19 2023-06-02 Oppo广东移动通信有限公司 Video processing method, video processing device and electronic equipment
WO2023043132A1 (en) * 2021-09-14 2023-03-23 삼성전자 주식회사 Electronic device for applying bokeh effect to image and operation method of same

Also Published As

Publication number Publication date
JP6090494B2 (en) 2017-03-08

Similar Documents

Publication Publication Date Title
KR101578600B1 (en) Image processing device, image processing method, and computer readable storage medium
JP4766320B2 (en) Imaging apparatus and program thereof
KR101342477B1 (en) Imaging apparatus and imaging method for taking moving image
US8488019B2 (en) Image-capturing device, image-capturing method and storage medium storing image-capturing program for generating a wide dynamic range image
JP4872797B2 (en) Imaging apparatus, imaging method, and imaging program
EP1856909B1 (en) Moving image playback device with camera-shake correction function
JP4783252B2 (en) Image pickup apparatus with image stabilization function, image stabilization method, pre-processing program for image stabilization processing, and stored image determination program
JP4952891B2 (en) Movie shooting device and movie shooting program
JP2008182485A (en) Photographing device and photographing method
JP6090494B2 (en) Movie shooting apparatus, moving image shake correction method, and program
JP4761048B2 (en) Imaging apparatus and program thereof
JP5910565B2 (en) Movie shooting apparatus, moving image shake correction method, and program
JP6569263B2 (en) Image processing apparatus, image processing method, and program
JP2007318292A (en) Motion vector detector and its program
JP4844220B2 (en) Exposure compensation device, photographing device, exposure value setting device, exposure compensation value calculation method, and control program
JP5067475B2 (en) Imaging apparatus and program thereof
JP2004328606A (en) Imaging device
JP4793639B2 (en) Movie shooting device and movie shooting program
JP5179859B2 (en) Imaging apparatus and imaging method
JP4888829B2 (en) Movie processing device, movie shooting device, and movie shooting program
JP5157528B2 (en) Imaging device
JP5332668B2 (en) Imaging apparatus and subject detection program
JP2020123863A (en) Imaging apparatus
JP5206421B2 (en) Digital camera, photographing recording method, and photographing control program
JP6090485B2 (en) Imaging apparatus, imaging control method, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160404

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160404

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161130

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170123

R150 Certificate of patent or registration of utility model

Ref document number: 6090494

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150