JP2006319541A - Imaging device, moving picture processing method, and program - Google Patents

Imaging device, moving picture processing method, and program Download PDF

Info

Publication number
JP2006319541A
JP2006319541A JP2005138633A JP2005138633A JP2006319541A JP 2006319541 A JP2006319541 A JP 2006319541A JP 2005138633 A JP2005138633 A JP 2005138633A JP 2005138633 A JP2005138633 A JP 2005138633A JP 2006319541 A JP2006319541 A JP 2006319541A
Authority
JP
Japan
Prior art keywords
camera shake
moving image
image data
correction
shake correction
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
JP2005138633A
Other languages
Japanese (ja)
Other versions
JP4525459B2 (en
Inventor
Akira Miyata
陽 宮田
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 JP2005138633A priority Critical patent/JP4525459B2/en
Publication of JP2006319541A publication Critical patent/JP2006319541A/en
Application granted granted Critical
Publication of JP4525459B2 publication Critical patent/JP4525459B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To obtain moving picture data wherein the view angle is given priority and moving picture data wherein hand-shape correction is given priority selectively and optionally. <P>SOLUTION: An imaging device equipped with a hand-shake correcting function files and records moving picture data obtained without pixel absence during photography of a moving picture, (i.e. moving picture data in which hand shake is not corrected) in a memory. Here, hand-shake information is extracted from the moving picture data recorded during the photography, filed, and recorded in the memory while related to the moving picture file. When a user designates hand-shake correction, hand-shake correction processing is carried out by using the hand-shake correction corresponding to the moving picture data and moving picture data having been corrected are re-recorded in the memory. Consequently, the moving picture data wherein the view angle is given priority and the moving picture data wherein the hand-shake correction is given priority can be obtained selectively and optionally. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、例えば動画撮影可能なデジタルカメラ等の撮像装置に係り、特に動画撮影時の手ぶれを電子的に補正するための電子式手ぶれ補正機能を備えた撮像装置と、この撮像装置に用いられる動画処理方法及びプログラムに関する。   The present invention relates to an image pickup apparatus such as a digital camera capable of shooting a moving image, and more particularly to an image pickup apparatus having an electronic camera shake correction function for electronically correcting camera shake during moving image shooting, and the image pickup apparatus. The present invention relates to a moving image processing method and a program.

通常、動画撮影可能な撮像装置では、ユーザがカメラ本体を手で持って撮影するときに生じるぶれを補正するための機能を備えている。これを「手ぶれ補正機能」と呼び、光学式と電子式がある。光学式手ぶれ補正機能は、センサにより手ぶれ量を感知してレンズユニットそのものを動かすことで手ぶれを補正する。   In general, an imaging apparatus capable of shooting a moving image has a function for correcting a shake that occurs when a user shoots with the camera body held by hand. This is called “camera shake correction function”, and there are optical type and electronic type. The optical camera shake correction function corrects camera shake by sensing the amount of camera shake using a sensor and moving the lens unit itself.

これに対し、電子式手ぶれ補正機能では、撮像素子から得られる動画データを画像処理することで、その動画データの手ぶれを補正する。一般的な手法としては、動画データを構成する各フレーム画像から手ぶれ部分に相当する周囲画素領域以外の部分を切り出すことで、その切り出した画像を手ぶれ補正後の画像として得ている。ただし、このときに画像の一部の画素が欠落してしまうため、画角が狭くなってしまう欠点がある。   On the other hand, the electronic camera shake correction function corrects the camera shake of the moving image data by performing image processing on the moving image data obtained from the image sensor. As a general technique, a portion other than the surrounding pixel region corresponding to the camera shake portion is cut out from each frame image constituting the moving image data, and the cut image is obtained as an image after camera shake correction. However, at this time, some pixels of the image are lost, so there is a drawback that the angle of view becomes narrow.

特許文献1では、このような手ぶれ補正による画素欠落部分を他のフレーム画像から補間することで、所定の画角を確保することが開示されている。また、この特許文献1では、動画撮影時に手ぶれ補正せずに動画データの記録を行い、再生時にその動画データに対して手ぶれ補正を行うことが開示されている。
特開平11−187303号公報
Patent Document 1 discloses that a predetermined field angle is ensured by interpolating a pixel missing portion due to such camera shake correction from another frame image. Japanese Patent Application Laid-Open No. H10-228867 discloses that moving image data is recorded without correcting camera shake during moving image shooting, and that camera shake correction is performed on the moving image data during reproduction.
JP 11-187303 A

前記特許文献1では、動画撮影時に手ぶれ補正せずに記録した動画データに対し、再生時に手ぶれ補正を行う構成としているが、最終的には手ぶれ補正した動画データでしか得ることができない。しかしながら、ユーザによっては、手ぶれ補正された動画データよりも、画角を優先とした補正前の動画データを必要としたり、あるいは、その両方の動画データを必要とするなど、様々な要求がある。   In Patent Document 1, the moving image data recorded without moving image stabilization at the time of moving image shooting is configured to perform camera shake correction at the time of reproduction. However, it can be finally obtained only with moving image data subjected to camera shake correction. However, depending on the user, there are various demands such as requiring moving image data before correction giving priority to the angle of view over moving image data subjected to camera shake correction, or requiring both moving image data.

そこで、本発明の目的は、画角を優先とした動画データと手ぶれ補正を優先とした動画データを任意選択的に得ることのできる撮像装置、動画処理方法及びプログラムを提供することにある。   Therefore, an object of the present invention is to provide an imaging apparatus, a moving image processing method, and a program capable of optionally obtaining moving image data with priority on the angle of view and moving image data with priority on camera shake correction.

本発明の請求項1に係る撮像装置は、撮像素子から連続的に出力される各フレームの画像データを動画データとして手ぶれ補正に伴う画素欠落のない状態で取得する動画撮影手段と、この動画撮影手段によって得られた動画データに対する手ぶれ情報を生成する手ぶれ情報生成手段と、手ぶれ補正するか否かを指定する補正指定手段と、この補正指定手段による手ぶれ補正の指定に応じて、前記手ぶれ情報生成手段で生成された手ぶれ情報に基づいて前記動画撮影手段によって取得された動画データの手ぶれ補正処理を行い、その手ぶれ補正後の動画データを再生表示または再記録する動画処理手段とを具備したことを特徴とする。   An image pickup apparatus according to claim 1 of the present invention includes a moving image shooting unit that acquires image data of each frame continuously output from the image sensor as moving image data in a state in which there is no missing pixel due to camera shake correction, and the moving image shooting Camera shake information generation means for generating camera shake information for the moving image data obtained by the means, correction designation means for designating whether or not to perform camera shake correction, and generation of the camera shake information according to the designation of camera shake correction by the correction designation means Moving image processing means for performing the camera shake correction processing of the moving image data acquired by the moving image photographing means based on the camera shake information generated by the means, and reproducing and displaying or re-recording the moving image data after the camera shake correction. Features.

このような構成によれば、撮影時に画素欠落のない状態で記録された動画データに対し、その動画データの手ぶれを示す情報が生成される。そして、ユーザからの手ぶれ補正指示に応じて、前記手ぶれ情報に基づいて当該動画データが手ぶれ補正されて再生表示あるいは記録保存される。   According to such a configuration, information indicating camera shake of the moving image data is generated for the moving image data recorded in a state in which no pixel is missing at the time of shooting. Then, in accordance with a camera shake correction instruction from the user, the moving image data is subjected to camera shake correction based on the camera shake information, and is reproduced and displayed or recorded and saved.

また、本発明の請求項2は、前記請求項1記載の撮像装置において、前記動画撮影手段により取得された動画データを、少なくとも記録状態の変更が指示されるまでの間、手ぶれ補正に伴う画素欠落のない状態で記録保存する記録手段を備え、前記補正指定手段は、前記動画撮影手段による動画データの取得後の任意のタイミングで当該動画データを手ぶれ補正するか否かをユーザに指定させ、前記動画処理手段は、前記補正指定手段により手ぶれ補正することが指定された場合に、前記記録手段に手ぶれ補正に伴う画素欠落のない状態で記録保存されている動画データに対して手ぶれ補正処理を行うことを特徴とする。   According to a second aspect of the present invention, in the image pickup apparatus according to the first aspect, the moving image data acquired by the moving image photographing unit is a pixel associated with camera shake correction at least until an instruction to change the recording state is given. Comprising a recording means for recording and storing in a state without omission, the correction specifying means allows the user to specify whether or not to correct the moving image data at any timing after the moving image data acquisition by the moving image capturing means, The moving image processing means performs a camera shake correction process on the moving image data recorded and stored in the recording means in a state in which no pixels are lost due to the camera shake correction when the camera shake correction is specified by the correction specifying means. It is characterized by performing.

このような構成によれば、ユーザが任意のタイミングで手ぶれ補正を指示することにより、撮影時に手ぶれ補正に伴う画素欠落のない状態で記録保存されている動画データを手ぶれ補正することができる。   According to such a configuration, when a user instructs camera shake correction at an arbitrary timing, it is possible to perform camera shake correction on moving image data recorded and stored in a state where there is no pixel omission associated with camera shake correction at the time of shooting.

また、本発明の請求項3は、前記請求項1記載の撮像装置において、前記手ぶれ情報生成手段によって生成された手ぶれ情報を前記動画撮影手段により取得された動画データと関連付けて記録保存する記録手段を備え、前記補正指定手段は、前記記録手段に記録保存されている任意の動画データに対して手ぶれ補正するか否かを指定し、前記動画処理手段は、前記補正指定手段により手ぶれ補正すると指定された動画データに対して、該動画データに対応して前記記録手段に記録保存されている手ぶれ情報に基づいて手ぶれ補正処理を行うことを特徴とする。   According to a third aspect of the present invention, in the imaging apparatus according to the first aspect, a recording unit that records and stores the camera shake information generated by the camera shake information generating unit in association with the moving image data acquired by the moving image shooting unit. The correction designation means designates whether or not to correct camera shake for any moving picture data recorded and stored in the recording means, and the moving picture processing means designates that the camera shake correction is performed by the correction designation means. The moving image data is subjected to camera shake correction processing based on camera shake information recorded and stored in the recording unit corresponding to the moving image data.

このような構成によれば、撮影時に取得された動画データと関連付けられて手ぶれ情報が記録保存される。これにより、撮影後に任意の動画データに対して手ぶれ補正を指定した場合に、その動画データに対応した手ぶれ情報を用いて手ぶれ補正処理を行うことができる。   According to such a configuration, camera shake information is recorded and stored in association with moving image data acquired at the time of shooting. As a result, when camera shake correction is specified for any video data after shooting, camera shake correction processing can be performed using camera shake information corresponding to the video data.

また、本発明の請求項4は、前記請求項1乃至3のいずれか1つに記載の撮像装置において、前記補正指定手段は、手ぶれ補正の度合いを指定することを含み、前記動画処理手段は、前記補正指定手段によって指定された手ぶれ補正の度合いに応じて前記動画データの補正後の手ぶれ状態が変化するように前記手ぶれ補正処理を制御することを特徴とする。   According to a fourth aspect of the present invention, in the imaging apparatus according to any one of the first to third aspects, the correction specifying unit specifies a degree of camera shake correction, and the moving image processing unit includes: The camera shake correction process is controlled such that the camera shake state after the correction of the moving image data changes according to the degree of camera shake correction specified by the correction specifying means.

このような構成によれば、撮影後にユーザが手ぶれ補正の度合いを任意に指定して、動画データの手ぶれを補正処理することができる。   According to such a configuration, it is possible for the user to arbitrarily specify the degree of camera shake correction after shooting, and to perform camera shake correction processing of the moving image data.

また、本発明の請求項5は、前記請求項2または3記載の撮像装置において、再記録時における動画データの保存方法を指定する保存方法指定手段を備え、前記動画処理手段は、前記保存方法指定手段によって指定された保存方法に従って、前記補正後の動画データを前記記録手段に再記録することを特徴とする。   According to a fifth aspect of the present invention, in the imaging apparatus according to the second or third aspect, the image processing apparatus further comprises a storage method designating unit that designates a video data storage method at the time of re-recording. The corrected moving image data is re-recorded in the recording means in accordance with a storage method designated by the designation means.

このような構成によれば、手ぶれ補正された動画データの保存方法をユーザが任意に指示して再記録することができる。   According to such a configuration, the user can arbitrarily instruct and re-record the method for storing the moving image data that has been subjected to camera shake correction.

また、本発明の請求項6は、前記請求項5記載の撮像装置において、前記保存方法には、上書き保存と新規保存が含まれ、前記動画処理手段は、前記保存方法指定手段によって前記上書き保存が指定された場合には前記補正後の動画データを前記記録手段に元の動画データに代わって再記録し、前記新規保存が指定された場合には前記補正後の動画データを前記記録手段の元の動画データとは別の領域に再記録することを特徴とする。   According to a sixth aspect of the present invention, in the imaging apparatus according to the fifth aspect, the storage method includes overwrite storage and new storage, and the moving image processing unit is configured to store the overwrite by the storage method designating unit. Is specified, the corrected moving image data is re-recorded on the recording means in place of the original moving image data, and when the new storage is specified, the corrected moving image data is stored in the recording means. It is characterized by re-recording in a different area from the original moving image data.

このような構成によれば、補正後の動画データの保存方法として、上書き保存または新規保存を指定することができる。この場合、上書き保存では、撮影時に得られた補正前の動画データを消して、補正後の動画データのみを再記録することができる。新規保存では、撮影時に得られた補正前の動画データをそのまま残して、補正後の動画データを再記録することができる。   According to such a configuration, overwriting or new saving can be designated as a method for saving the corrected moving image data. In this case, in the overwrite storage, it is possible to erase the moving image data before correction obtained at the time of shooting and re-record only the corrected moving image data. In the new saving, the corrected moving image data can be re-recorded while leaving the uncorrected moving image data obtained at the time of shooting.

また、本発明の請求項7は、前記請求項1記載の撮像装置において、動きの異なる複数の被写体が撮影された動画データ上において、手ぶれを判定するための基準となる基準被写体を特定する特定手段を備え、前記手ぶれ情報生成手段は、前記特定手段によって特定された基準被写体の動きに着目した手ぶれ情報を生成することを特徴とする。   According to a seventh aspect of the present invention, in the imaging apparatus according to the first aspect, the specification for specifying a reference subject serving as a reference for determining camera shake on moving image data in which a plurality of subjects having different movements are photographed. And the camera shake information generating means generates camera shake information focusing on the movement of the reference subject specified by the specifying means.

このような構成によれば、動きの異なる複数の被写体を動画撮影した場合に、その中で基準被写体の動きに着目して手ぶれ補正することができる。   According to such a configuration, when a plurality of subjects having different motions are shot as a moving image, camera shake correction can be performed by paying attention to the motion of the reference subject among them.

また、本発明の請求項8は、前記請求項7記載の撮像装置において、被写体判定のための画素割合を指定する画素割合指定手段を備え、前記特定手段は、前記画素割合指定手段によって指定された画素割合に基づいて前記基準被写体を特定することを特徴とする。   According to an eighth aspect of the present invention, there is provided the imaging apparatus according to the seventh aspect, further comprising a pixel ratio specifying unit that specifies a pixel ratio for subject determination, wherein the specifying unit is specified by the pixel ratio specifying unit. The reference subject is specified based on the pixel ratio.

このような構成によれば、被写体判定のための画素割合をユーザが任意に指定することにより、その指定された画素割合に応じて基準被写体を変えて手ぶれ補正することができる。   According to such a configuration, when the user arbitrarily designates the pixel ratio for subject determination, it is possible to perform camera shake correction by changing the reference subject according to the designated pixel ratio.

本発明の請求項9に係る動画処理方法は、撮像素子から連続的に出力される各フレームの画像データを動画データとして手ぶれ補正に伴う画素欠落のない状態で取得するステップと、前記動画データの手ぶれの動きを示す手ぶれ情報を生成するステップと、手ぶれ補正するか否かを指定するステップと、手ぶれ補正が指定された場合に、前記手ぶれ情報に基づいて前記動画データの手ぶれ補正処理を行い、その手ぶれ補正後の動画データを再生表示または再記録するステップとを含むことを特徴とする。   According to a ninth aspect of the present invention, there is provided a moving image processing method in which image data of each frame continuously output from an image sensor is acquired as moving image data in a state where there is no pixel loss associated with camera shake correction; A step of generating camera shake information indicating a movement of camera shake, a step of specifying whether or not to perform camera shake correction, and when camera shake correction is specified, performs a camera shake correction process of the moving image data based on the camera shake information; Reproducing and displaying or re-recording the moving image data after the camera shake correction.

このような動画処理方法によれば、前記各ステップに従った処理を実行することにより、前記請求項1記載の発明と同様の作用効果が奏せられる。   According to such a moving image processing method, the same effect as that of the first aspect of the invention can be achieved by executing the processing according to each step.

本発明の請求項10に係るプログラムは、動画撮影機能を備えた撮像装置に搭載されたコンピュータによって実行されるプログラムであって、前記コンピュータに、撮像素子から連続的に出力される各フレームの画像データを動画データとして手ぶれ補正に伴う画素欠落のない状態で取得する機能と、前記動画データの手ぶれの動きを示す手ぶれ情報を生成する機能と、手ぶれ補正するか否かを指定する機能と、手ぶれ補正が指定された場合に、前記手ぶれ情報に基づいて前記動画データの手ぶれ補正処理を行い、その手ぶれ補正後の動画データを再生表示または再記録する機能とを実現させることを特徴とする。   A program according to claim 10 of the present invention is a program executed by a computer installed in an imaging apparatus having a moving image shooting function, and each frame image continuously output from the imaging device to the computer. A function for acquiring data as moving image data in a state where there is no pixel loss associated with camera shake correction, a function for generating camera shake information indicating the movement of camera shake in the video data, a function for specifying whether or not to perform camera shake correction, and a camera shake When the correction is designated, the moving image data is subjected to camera shake correction processing based on the camera shake information, and a function of reproducing and displaying or re-recording the moving image data after the camera shake correction is realized.

したがって、コンピュータが前記各機能を実現するためのプログラムを実行することにより、前記請求項1記載の発明と同様の作用効果が奏せられる。   Therefore, when the computer executes the program for realizing each function, the same effects as those of the first aspect of the invention can be achieved.

本発明の請求項11に係る動画処理方法は、撮像素子から連続的に出力される各フレームの画像データを動画データとして手ぶれ補正に伴う画素欠落のない状態で取得するステップと、前記動画データの手ぶれの動きを示す手ぶれ情報を生成するステップと、この生成された手ぶれ情報を動画データと関連付けて所定のメモリに記録するステップと、手ぶれ補正するか否かを指定するステップと、手ぶれ補正が指定された場合に、前記メモリに記録された動画データに対応した手ぶれ情報に基づいて当該動画データの手ぶれ補正処理を行い、その手ぶれ補正後の動画データを再生表示または再記録するステップとを含むことを特徴とする。   According to an eleventh aspect of the present invention, there is provided a moving image processing method in which image data of each frame continuously output from an image sensor is acquired as moving image data in a state where there is no pixel loss associated with camera shake correction; The step of generating camera shake information indicating the movement of the camera shake, the step of recording the generated camera shake information in association with the moving image data in a predetermined memory, the step of specifying whether or not to perform the camera shake correction, and the camera shake correction are specified. And performing a camera shake correction process on the moving image data based on the camera shake information corresponding to the moving image data recorded in the memory, and reproducing and displaying or rerecording the moving image data after the camera shake correction. It is characterized by.

このような動画処理方法によれば、前記各ステップに従った処理を実行することにより、前記請求項3記載の発明と同様の作用効果が奏せられる。   According to such a moving image processing method, the same effects as the invention of the third aspect can be achieved by executing the processing according to each step.

本発明の請求項12に係るプログラムは、動画撮影機能を備えた撮像装置に搭載されたコンピュータによって実行されるプログラムであって、前記コンピュータに、撮像素子から連続的に出力される各フレームの画像データを動画データとして手ぶれ補正に伴う画素欠落のない状態で取得する機能と、前記動画データの手ぶれの動きを示す手ぶれ情報を生成する機能と、この生成された手ぶれ情報を動画データと関連付けて所定のメモリに記録する機能と、手ぶれ補正するか否かを指定する機能と、手ぶれ補正が指定された場合に、前記メモリに記録された動画データに対応した手ぶれ情報に基づいて当該動画データの手ぶれ補正処理を行い、その手ぶれ補正後の動画データを再生表示または再記録する機能とを実現させることを特徴とする。   A program according to a twelfth aspect of the present invention is a program executed by a computer mounted on an imaging device having a moving image shooting function, and each frame image continuously output from the imaging device to the computer. A function for acquiring data as moving image data in a state where there is no pixel loss associated with camera shake correction, a function for generating camera shake information indicating the movement of camera shake in the moving image data, and the generated camera shake information in association with the video data When the camera shake correction is specified, the function for recording in the memory of the video data, the function for specifying whether or not to perform the camera shake correction, and the camera shake of the video data based on the camera shake information corresponding to the video data recorded in the memory are specified. A function of performing correction processing and reproducing and displaying or re-recording moving image data after the camera shake correction is characterized.

したがって、コンピュータが前記各機能を実現するためのプログラムを実行することにより、前記請求項3記載の発明と同様の作用効果が奏せられる。   Therefore, when the computer executes the program for realizing each function, the same effect as that of the third aspect of the invention can be achieved.

本発明によれば、手ぶれ補正機能を備えた撮像装置において、撮影後にユーザの要求に応じて動画データを手ぶれ補正することができ、画角を優先とした動画データと手ぶれ補正を優先とした動画データを任意選択的に得ることができる。   According to the present invention, in an imaging apparatus having a camera shake correction function, it is possible to perform camera shake correction on moving image data according to a user's request after shooting, and movie data giving priority to angle of view and moving image giving priority to camera shake correction. Data can optionally be obtained.

以下、図面を参照して本発明の実施形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(第1の実施形態)
図1は本発明の第1の実施形態に係る撮像装置として動画撮影可能なデジタルカメラを例にした場合の外観構成を示す図であり、図1(a)は主に前面の構成、同図(b)は主に背面の構成を示す斜視図である。
(First embodiment)
FIG. 1 is a diagram showing an external configuration when a digital camera capable of shooting a moving image is taken as an example of the imaging apparatus according to the first embodiment of the present invention. FIG. (B) is a perspective view which mainly shows the structure of a back surface.

このデジタルカメラ1は、略矩形の薄板状ボディ2の前面に、撮影レンズ3、セルフタイマランプ4、光学ファインダ窓5、ストロボ発光部6、マイクロホン部7などを有し、上面の(ユーザにとって)右端側には電源キー8及びシャッタキー9などが設けられている。   The digital camera 1 has a photographing lens 3, a self-timer lamp 4, an optical finder window 5, a strobe light emitting unit 6, a microphone unit 7 and the like on the front surface of a substantially rectangular thin plate-like body 2 on the upper surface (for the user). On the right end side, a power key 8 and a shutter key 9 are provided.

電源キー8は、電源のオン/オフ毎に操作するキーであり、シャッタキー9は、撮影時に撮影タイミングを指示するキーである。   The power key 8 is a key operated every time the power is turned on / off, and the shutter key 9 is a key for instructing a photographing timing at the time of photographing.

また、デジタルカメラ1の背面には、撮影モード(R)キー10、再生モード(P)キー11、光学ファインダ12、スピーカ部13、マクロキー14、ストロボキー15、メニュー(MENU)キー16、リングキー17、セット(SET)キー18、表示部19などが設けられている。   Also, on the back of the digital camera 1, a shooting mode (R) key 10, a playback mode (P) key 11, an optical viewfinder 12, a speaker unit 13, a macro key 14, a strobe key 15, a menu (MENU) key 16, a ring A key 17, a set (SET) key 18, a display unit 19, and the like are provided.

撮影モードキー10は、電源オフの状態から操作することで自動的に電源オンとして静止画の撮影モードに移行する一方で、電源オンの状態から繰返し操作することで、静止画モード、動画モードを循環的に設定する。静止画モードは、静止画を撮影するためのモードである。また、動画モードは、動画を撮影するためのモードである。   The shooting mode key 10 is operated automatically from the power-off state to automatically turn on the power and shift to the still image shooting mode. On the other hand, by repeatedly operating from the power-on state, the still image mode and the moving image mode are switched. Set cyclically. The still image mode is a mode for photographing a still image. The moving image mode is a mode for shooting a moving image.

前記シャッタキー9は、これらの撮影モードに共通に使用される。すなわち、静止画モードでは、シャッタキー9が押下されたときのタイミングで静止画の撮影が行われる。動画モードでは、シャッタキー9が押下されたときのタイミングで動画の撮影が開始され、シャッタキー9が再度押下されたときにその動画の撮影が終了する。   The shutter key 9 is commonly used for these photographing modes. That is, in the still image mode, a still image is taken at the timing when the shutter key 9 is pressed. In the moving image mode, shooting of a moving image is started at a timing when the shutter key 9 is pressed, and shooting of the moving image is ended when the shutter key 9 is pressed again.

再生モードキー11は、電源オフの状態から操作することで自動的に電源オンとして再生モードに移行する。   When the playback mode key 11 is operated from the power-off state, the playback mode key 11 is automatically turned on to enter the playback mode.

マクロキー14は、静止画の撮影モードで通常撮影とマクロ撮影とを切換える際に操作する。ストロボキー15は、ストロボ発光部6の発光モードを切換える際に操作する。メニューキー16は、手ぶれ補正の有無を含む各種メニュー項目等を選択する際に操作する。リングキー17は、上下左右各方向への項目選択用のキーが一体に形成されたものであり、このリングキー17の中央に位置するセットキー18は、その時点で選択されている項目を設定する際に操作する。   The macro key 14 is operated when switching between normal shooting and macro shooting in the still image shooting mode. The strobe key 15 is operated when switching the light emission mode of the strobe light emitting unit 6. The menu key 16 is operated when selecting various menu items including presence / absence of camera shake correction. The ring key 17 is integrally formed with item selection keys in the up, down, left, and right directions, and the set key 18 located in the center of the ring key 17 sets the item selected at that time. To operate.

表示部19は、バックライト付きのカラー液晶パネルで構成されるもので、撮影モード時には電子ファインダとしてスルー画像のモニタ表示を行う一方で、再生モード時には選択した画像等を再生表示する。   The display unit 19 is composed of a color liquid crystal panel with a backlight, and displays a through image on the monitor as an electronic viewfinder in the photographing mode, and reproduces and displays the selected image and the like in the reproduction mode.

また、このデジタルカメラ1には、光学ズーム機能が備えられており、ズームキー20a,20bの操作により焦点距離を物理的に変化させて画像の拡大率を変更することができる。ズームキー20a,20bのうち、一方のズームキー20aはテレ端用であり、望遠側へズーム倍率を変更する場合に用いられる。他方のズームキー20bはワイド端用であり、広角側へズーム倍率を変更する場合に用いられる。   Further, the digital camera 1 is provided with an optical zoom function, and the enlargement ratio of the image can be changed by physically changing the focal length by operating the zoom keys 20a and 20b. Of the zoom keys 20a and 20b, one zoom key 20a is for the telephoto end and is used when the zoom magnification is changed to the telephoto side. The other zoom key 20b is for the wide end and is used when the zoom magnification is changed to the wide angle side.

なお、図示はしないがデジタルカメラ1の底面には、記録媒体として用いられるメモリカードを着脱するためのメモリカードスロットや、外部のパーソナルコンピュータ等と接続するためのシリアルインタフェースコネクタとして、例えばUSB(Universal Serial Bus)コネクタ等が設けられている。   Although not shown, the digital camera 1 has a memory card slot for attaching / detaching a memory card used as a recording medium, a serial interface connector for connecting to an external personal computer, etc., for example, USB (Universal). Serial Bus) connector and the like are provided.

図2はデジタルカメラ1の電子回路構成を示すブロック図である。   FIG. 2 is a block diagram showing an electronic circuit configuration of the digital camera 1.

このデジタルカメラ1には、前記撮影レンズ3を構成する図示せぬフォーカスレンズおよびズームレンズを含むレンズ光学系22がモータ21の駆動により光軸方向に所定の範囲内で移動可能に設けられている。このレンズ光学系22の光軸後方に撮像素子であるCCD(charge coupled device)23が配設されている。このCCD23は、撮影レンズ3を通して入力される被写体の各部位からの光を受光し、その光の強度に応じた電気信号を出力する。   In the digital camera 1, a lens optical system 22 including a focus lens and a zoom lens (not shown) constituting the photographing lens 3 is provided so as to be movable within a predetermined range in the optical axis direction by driving a motor 21. . A CCD (charge coupled device) 23 that is an image sensor is disposed behind the optical axis of the lens optical system 22. The CCD 23 receives light from each part of the subject input through the photographing lens 3 and outputs an electrical signal corresponding to the intensity of the light.

基本モードである記録モード時において、CCD23がタイミング発生器(TG)24、ドライバ25によって走査駆動され、一定周期毎に結像した光像に対応する光電変換出力を1画面分出力する。このCCD23の光電変換出力は、アナログ値の信号の状態でRGBの各原色成分毎に適宜ゲイン調整された後に、サンプルホールド回路26でサンプルホールドされ、A/D変換器27でデジタルデータに変換される。   In the recording mode, which is the basic mode, the CCD 23 is scanned and driven by a timing generator (TG) 24 and a driver 25, and outputs a photoelectric conversion output corresponding to a light image formed at regular intervals for one screen. The photoelectric conversion output of the CCD 23 is appropriately gain-adjusted for each primary color component of RGB in the state of an analog value signal, sampled and held by the sample hold circuit 26, and converted into digital data by the A / D converter 27. The

そして、画像処理回路28において、画素補間処理及びγ補正処理を含む画像処理が行われて、デジタル値の輝度信号Y及び色差信号U,V(Cb,Cr)が生成され、DMA(Direct Memory Access)コントローラ29に出力される。   Then, the image processing circuit 28 performs image processing including pixel interpolation processing and γ correction processing to generate a digital luminance signal Y and color difference signals U and V (Cb, Cr), and DMA (Direct Memory Access). ) Output to the controller 29.

DMAコントローラ29は、画像処理回路28の出力する輝度信号Y及び色差信号U,Vを、同じく画像処理回路28からの複合同期信号、メモリ書込みイネーブル信号、及びクロック信号を用いて一度DMAコントローラ29内部のバッファに書き込み、DRAMインタフェース(I/F)30を介してバッファメモリとして使用されるDRAM31にDMA転送を行う。   The DMA controller 29 once uses the luminance signal Y and the color difference signals U and V output from the image processing circuit 28 by using the composite synchronization signal, the memory write enable signal, and the clock signal from the image processing circuit 28 once. And the DMA transfer to the DRAM 31 used as the buffer memory via the DRAM interface (I / F) 30.

制御部32は、デジタルカメラ1全体の制御を行うものであり、CPUと、このCPUで実行される動作プログラムを記憶したROM、及びワークメモリとして使用されるRAMなどを含むマイクロコンピュータにより構成される。また、本実施形態において、この制御部32には、動画データの手ぶれ補正に関する各種設定情報を記憶するための設定記憶部32aが設けられている。   The control unit 32 controls the entire digital camera 1 and is constituted by a microcomputer including a CPU, a ROM storing an operation program executed by the CPU, a RAM used as a work memory, and the like. . In the present embodiment, the control unit 32 is provided with a setting storage unit 32a for storing various setting information related to camera shake correction of moving image data.

輝度及び色差信号のDRAM31へのDMA転送終了後、この制御部32は、この輝度及び色差信号をDRAMインタフェース30を介してDRAM31より読み出し、VRAMコントローラ33を介してVRAM34に書き込む。   After the DMA transfer of the luminance and color difference signals to the DRAM 31, the control unit 32 reads the luminance and color difference signals from the DRAM 31 via the DRAM interface 30 and writes them to the VRAM 34 via the VRAM controller 33.

デジタルビデオエンコーダ35は、前記輝度及び色差信号をVRAMコントローラ33を介してVRAM34より定期的に読み出し、これらのデータを元にビデオ信号を発生して表示部19に出力する。   The digital video encoder 35 periodically reads the luminance and color difference signals from the VRAM 34 via the VRAM controller 33, generates a video signal based on these data, and outputs the video signal to the display unit 19.

この表示部19は、上述した如く撮影時にはモニタ表示部(電子ファインダ)として機能するもので、デジタルビデオエンコーダ35からのビデオ信号に基づいた表示を行うことで、その時点でVRAMコントローラ33から取込んでいる画像情報に基づく画像をリアルタイムに表示することとなる。   As described above, the display unit 19 functions as a monitor display unit (electronic finder) at the time of shooting. By performing display based on the video signal from the digital video encoder 35, the display unit 19 captures from the VRAM controller 33 at that time. An image based on the image information is displayed in real time.

このように、表示部19にその時点での画像がモニタ画像としてリアルタイムに表示されている状態で、例えば静止画撮影を行いたいタイミングでシャッタキー9を押下操作すると、トリガ信号が発生する。   As described above, when the image at that time is displayed in real time as the monitor image on the display unit 19, for example, when the shutter key 9 is pressed at a timing at which still image shooting is desired, a trigger signal is generated.

制御部32は、このトリガ信号に応じて、その時点でCCD23から取込んでいる1画面分の輝度及び色差信号のDRAM31へのDMA転送の終了後、直ちにCCD23からのDRAM31への経路を停止し、記録保存の状態に遷移する。   In response to the trigger signal, the control unit 32 immediately stops the path from the CCD 23 to the DRAM 31 immediately after the DMA transfer of the luminance and color difference signals for one screen captured from the CCD 23 to the DRAM 31 is completed. , Transition to the record storage state.

この記録保存の状態では、制御部32がDRAM31に書き込まれている1フレーム分の輝度及び色差信号をDRAMインタフェース30を介してY,Cb,Crの各コンポーネント毎に縦8画素×横8画素の基本ブロックと呼称される単位で読み出して、JPEG(Joint Photograph coding Experts Group)回路37に書き込み、このJPEG回路37でADCT(Adaptive Discrete Cosine Transform:適応離散コサイン変換)、エントロピ符号化方式であるハフマン符号化等の処理によりデータ圧縮する。   In this recording and storage state, the control unit 32 outputs the luminance and color difference signals for one frame written in the DRAM 31 to 8 pixels × 8 pixels for each of Y, Cb, and Cr components via the DRAM interface 30. The data is read out in units called basic blocks and written in a JPEG (Joint Photographic Coding Experts Group) circuit 37. The JPEG circuit 37 uses an ADCT (Adaptive Discrete Cosine Transform) and an entropy coding system. Data compression is performed by processing such as conversion.

そして得た符号データを1画像のデータファイルとして該JPEG回路37から読み出して記録用のメモリ38に書き込む。このメモリ38としては、予め本体に内蔵されたフラッシュメモリ等の内部メモリの他に、記録媒体として着脱自在に装着されるメモリカードなどを含む。1フレーム分の輝度及び色差信号の圧縮処理及びメモリ38への全圧縮データの書込み終了に伴って、制御部32はCCD23からDRAM31への経路を再び起動する。   The obtained code data is read out from the JPEG circuit 37 as a data file of one image and written in the recording memory 38. The memory 38 includes a memory card that is detachably mounted as a recording medium in addition to an internal memory such as a flash memory built in the main body in advance. With the compression processing of the luminance and color difference signals for one frame and the completion of writing all the compressed data to the memory 38, the control unit 32 activates the path from the CCD 23 to the DRAM 31 again.

制御部32には、さらに音声処理部39、USBインタフェース(I/F)40、ストロボ駆動部41が接続される。   The control unit 32 is further connected with an audio processing unit 39, a USB interface (I / F) 40, and a strobe driving unit 41.

音声処理部39は、PCM音源等の音源回路を備え、音声の録音時には前記マイクロホン部(MIC)7より入力された音声信号をデジタル化し、所定のデータファイル形式、例えばMP3(MPEG−1 audio layer 3)規格に従ってデータ圧縮して音声データファイルを作成してメモリ38へ送出する一方、音声の再生時にはメモリ38から読み出された音声データファイルの圧縮を解いてアナログ化し、上述したデジタルカメラ1の背面側に設けられるスピーカ部(SP)13を通じて出力する。   The sound processing unit 39 includes a sound source circuit such as a PCM sound source, digitizes a sound signal input from the microphone unit (MIC) 7 during sound recording, and performs a predetermined data file format such as MP3 (MPEG-1 audio layer). 3) Data compression is performed in accordance with the standard to create an audio data file and send it to the memory 38. On the other hand, when reproducing the audio, the audio data file read from the memory 38 is uncompressed and converted into an analog signal. The sound is output through a speaker unit (SP) 13 provided on the back side.

USBインタフェース40は、USBコネクタを介して有線接続されるパーソナルコンピュータ等の他の情報端末装置との間で画像データ、その他の送受を行う場合の通信制御を行う。ストロボ駆動部41は、撮影時に図示せぬストロボ用の大容量コンデンサを充電した上で、制御部32からの制御に基づいてストロボ発光部6を閃光駆動する。   The USB interface 40 performs communication control when image data and other information are transmitted / received to / from another information terminal device such as a personal computer connected by wire via a USB connector. The strobe drive unit 41 charges a strobe capacitor (not shown) at the time of shooting, and then drives the strobe light emitting unit 6 to flash based on control from the control unit 32.

なお、前記キー入力部36は、上述したシャッタキー9の他に、電源キー8、撮影モードキー10、再生モードキー11、マクロキー14、ストロボキー15、メニューキー16、リングキー17、セットキー18、ズームキー20a,20bなどから構成され、それらのキー操作に伴う信号は直接制御部32へ送出される。   In addition to the shutter key 9 described above, the key input unit 36 includes a power key 8, a shooting mode key 10, a playback mode key 11, a macro key 14, a strobe key 15, a menu key 16, a ring key 17, and a set key. 18, zoom keys 20 a and 20 b and the like, and signals accompanying these key operations are sent directly to the control unit 32.

また、静止画像ではなく動画像の撮影時においては、シャッタキー9が押下操作されたときに、上述したJPEG回路37によりmotion−JPEG(Joint Photographic Experts Group)などの手法により撮影動画をデータ圧縮してメモリ38へ記録する。再度シャッタキー9が操作されると、動画データの記録を終了する。   Further, when shooting a moving image instead of a still image, when the shutter key 9 is pressed, the above-described JPEG circuit 37 compresses the captured moving image using a technique such as motion-JPEG (Joint Photographic Experts Group). To the memory 38. When the shutter key 9 is operated again, the recording of the moving image data is finished.

一方、基本モードである再生モード時には、制御部32がメモリ38に記録されている画像データを選択的に読み出し、JPEG回路37で記録モード時にデータ圧縮した手順と全く逆の手順で、圧縮されている画像データを伸長する。そして、この伸長した画像データをDRAMインタフェース30を介してDRAM31に保持させた上で、このDRAM31の保持内容をVRAMコントローラ33を介してVRAM34に記憶させ、このVRAM34より定期的に画像データを読み出してビデオ信号を発生し、表示部19で再生出力させる。   On the other hand, in the playback mode which is the basic mode, the control unit 32 selectively reads out the image data recorded in the memory 38 and is compressed by a procedure completely opposite to the procedure of data compression in the recording mode by the JPEG circuit 37. Decompress image data. The decompressed image data is held in the DRAM 31 via the DRAM interface 30, and then the content held in the DRAM 31 is stored in the VRAM 34 via the VRAM controller 33. The image data is periodically read out from the VRAM 34. A video signal is generated and reproduced and output by the display unit 19.

選択した画像データが静止画像ではなく動画像であった場合には、その動画データを構成する複数フレームの静止画データを時系列の順で順次再生して表示し、すべての静止画データの再生を終了した時点で、例えば、次に再生の指示がなされるまで先頭に位置する静止画データを表示するなどを行う。   If the selected image data is not a still image but a moving image, the multiple frames of still image data that make up the moving image data are played back and displayed sequentially in chronological order, and all the still image data is played back. For example, the top still image data is displayed until the next playback instruction is given.

次に、このデジタルカメラ1による動画撮影時の動作について説明する。   Next, the operation at the time of moving image shooting by the digital camera 1 will be described.

図3はデジタルカメラ1の動画ファイルと手ぶれ情報ファイルとの関係を示す図である。   FIG. 3 is a diagram showing the relationship between the moving image file of the digital camera 1 and the camera shake information file.

撮影モードキー10の押下により動画モードを設定した状態で、シャッタキー9を押下すると、動画撮影が開始される。これにより、撮像素子であるCCD23から順次出力される各フレームの画像データが動画データとして取り込まれ、手ぶれ補正に伴う画素欠落のない状態でファイル化されてメモリ38に記録される。前記手ぶれ補正に伴う画素欠落のない状態とは、手ぶれ補正によってフレーム毎に異なる周辺画素部分の情報が失われることなしに取り込まれた状態のことであり、例えばCCDの持つ最大解像度より低い解像度で動画を取り込む場合の画素間引きや、オプティカルブラック検出用領域の画素欠落など、各フレームで同じ部分の画素欠落はあってもかまわない。再度シャッタキー9を押下すると、動画データの記録が終了する。   When the shutter key 9 is pressed while the moving image mode is set by pressing the shooting mode key 10, moving image shooting is started. As a result, the image data of each frame sequentially output from the CCD 23 serving as the image pickup device is captured as moving image data, and is filed and recorded in the memory 38 in a state where there is no missing pixel due to camera shake correction. The state of no pixel loss due to the camera shake correction is a state in which information on peripheral pixel portions that differ from frame to frame is captured without being lost by camera shake correction, for example, at a resolution lower than the maximum resolution of the CCD. There may be pixel missing in the same part in each frame, such as pixel thinning when capturing a moving image or pixel missing in the optical black detection area. When the shutter key 9 is pressed again, the recording of the moving image data ends.

ここで、ユーザ(撮影者)が三脚などを用いずに、カメラ本体を手で支えながら動画撮影する場合には、所謂「手ぶれ」と呼ばれる画像のぶれ現象が生じる。特に、移動体を被写体として、カメラ本体を動かしながら撮影する場合には、手ぶれが大きく生じることになる。   Here, when a user (photographer) shoots a moving image while supporting the camera body with his / her hand without using a tripod or the like, a so-called “shake” image blurring phenomenon occurs. In particular, when taking a moving body as a subject and moving while moving the camera body, a large amount of camera shake occurs.

本実施形態では、このような動画撮影時に生じる手ぶれの情報(ぶれの方向や量)を撮影後に動画データから抽出し、その手ぶれ情報をファイル化して動画ファイルと関連付けて記録しておく構成としている。図3の例では、動画ファイル1に対して手ぶれ情報ファイル1、動画ファイル2に対して手ぶれ情報ファイル2が関連付けられている。これらの手ぶれ情報ファイル1,2は、撮影後にそれぞれに対応した動画ファイル1,2を手ぶれ補正する際に使用される。   In the present embodiment, information on camera shake (direction and amount of camera shake) that occurs during movie shooting is extracted from movie data after shooting, and the camera shake information is filed and recorded in association with a movie file. . In the example of FIG. 3, the camera shake information file 1 is associated with the moving image file 1, and the camera shake information file 2 is associated with the moving image file 2. These camera shake information files 1 and 2 are used when camera shake correction is performed on the corresponding moving image files 1 and 2 after shooting.

図4は動画データの再生表示時に手ぶれ補正の有無を指定するための補正指定画面の一例を示す図、図5は動画データの再記録時に保存方法を指定するための保存方法指定画面の一例を示す図である。   FIG. 4 is a diagram showing an example of a correction designation screen for designating whether or not camera shake correction is performed during playback display of moving image data, and FIG. 5 is an example of a storage method designation screen for designating a storage method when re-recording moving image data. FIG.

動画撮影によって得られた動画データは、手ぶれ補正なしに画素欠落のない状態でメモリ38に記録されている。ここで、撮影後に、動画データを手ぶれ補正した状態で再生表示したい場合には、例えばメニューキー16の操作により、図4に示すような補正指定画面51を表示する。この補正指定画面51には、手ぶれ補正の有無を指定するための項目52,53が設けられている。この例では、項目52をカーソル等により選択すると、「手ぶれ補正する」ことが設定され、項目53をカーソル等により選択すると、「手ぶれ補正しない」ことが設定される。   The moving image data obtained by moving image shooting is recorded in the memory 38 without pixel blurring and without camera shake correction. Here, when it is desired to reproduce and display the moving image data in a state in which camera shake correction is performed after shooting, for example, by operating the menu key 16, a correction designation screen 51 as shown in FIG. 4 is displayed. The correction designation screen 51 is provided with items 52 and 53 for designating the presence or absence of camera shake correction. In this example, when the item 52 is selected with a cursor or the like, “camera shake correction” is set, and when the item 53 is selected with a cursor or the like, “no camera shake correction” is set.

また、動画データを手ぶれ補正した状態で恒久保存したい場合には、例えばメニューキー16の操作などにより再記録モードを設定する。これにより、動画データが手ぶれ補正されてメモリ38に再記録される。その際、図5に示すような保存方法指定画面61にて保存方法を指定することができる。この保存方法指定画面61には、保存方法として「上書き保存」または「新規保存」を指定するための項目62,63が設けられている。この例では、項目62をカーソル等により選択すると、「上書き保存」が設定され、項目63をカーソル等により選択すると、「新規保存」が設定される。このときの設定情報は、図2に示す制御部32内の設定記憶部32aに記憶される。   Further, when it is desired to permanently save the moving image data in a state in which camera shake is corrected, for example, the re-recording mode is set by operating the menu key 16 or the like. As a result, the moving image data is corrected for camera shake and re-recorded in the memory 38. At that time, a storage method can be specified on a storage method specification screen 61 as shown in FIG. The storage method designation screen 61 includes items 62 and 63 for designating “overwrite saving” or “new saving” as a saving method. In this example, when the item 62 is selected with a cursor or the like, “overwrite save” is set, and when the item 63 is selected with a cursor or the like, “new save” is set. The setting information at this time is stored in the setting storage unit 32a in the control unit 32 shown in FIG.

以下に、このデジタルカメラ1による動画データの処理について詳しく説明する。なお、以下の各フローチャートで示される処理は、マイクロコンピュータである制御部32がROMやRAM等の記録媒体に記録された所定のプログラムを読み込むことにより実行される。   Hereinafter, the processing of moving image data by the digital camera 1 will be described in detail. Note that the processes shown in the following flowcharts are executed when the control unit 32, which is a microcomputer, reads a predetermined program recorded in a recording medium such as a ROM or a RAM.

(a)手ぶれ情報付加処理
まず、動画データに手ぶれ情報を付加するための手ぶれ情報付加処理について説明する。
(A) Camera shake information addition processing First, camera shake information addition processing for adding camera shake information to moving image data will be described.

図6はデジタルカメラ1による手ぶれ情報付加処理の動作を示すフローチャートである。この手ぶれ情報付加処理は、動画撮影後に自動的あるいはユーザの指示に従って実行される。   FIG. 6 is a flowchart showing the operation of camera shake information addition processing by the digital camera 1. This camera shake information addition processing is executed automatically after shooting a moving image or according to a user instruction.

まず、メモリ38の中で手ぶれ情報を付加する動画ファイルが特定される(ステップA11)。これは、例えばユーザが所定の操作により手ぶれ情報を付加する動画ファイルを明示的に指示することで行なわれる。手ぶれ情報を付加する動画ファイルが特定されると、その動画ファイル(動画データ)を構成する各フレーム画像を順次処理するためのフレーム位置(ポインタ)が初期化された後(ステップA12)、以下のような手順で手ぶれ情報ファイルが作成される。   First, a moving image file to which camera shake information is added is specified in the memory 38 (step A11). This is performed, for example, when the user explicitly indicates a moving image file to which camera shake information is added by a predetermined operation. When a moving image file to which camera shake information is added is specified, a frame position (pointer) for sequentially processing each frame image constituting the moving image file (moving image data) is initialized (step A12). The camera shake information file is created in such a procedure.

すなわち、現フレーム位置より前にある複数のフレーム画像が比較されて、各画素毎に動きベクトル(移動方向および移動量)が検出される(ステップA13)。続いて、この検出された各画素の動きベクトルに基づいて、同じ動きベクトルを持つ画素同士がグループ化される(ステップA14)。   That is, a plurality of frame images before the current frame position are compared, and a motion vector (movement direction and movement amount) is detected for each pixel (step A13). Subsequently, pixels having the same motion vector are grouped based on the detected motion vector of each pixel (step A14).

ここで、所定数以上の画素数で構成されるグループの中で最も移動量の少ないグループが基準被写体、その他のグループが移動被写体として特定される(ステップA15)。   Here, the group with the smallest moving amount among the groups composed of the predetermined number of pixels or more is specified as the reference subject, and the other groups are specified as the moving subjects (step A15).

図9に具体例を示す。今、フレーム1,フレーム2…の各フレーム画像からなる動画データを想定する。図中のPa,Pb,Pcは同じ動きベクトルを持つ画素のグループの大まかな位置を示す枠であり、各画素のグループの画素領域を厳密に示すものではない。これらの移動量が下記のようであったとすると、PaとPbが基準被写体、Pcが移動被写体として特定されることになる。   A specific example is shown in FIG. Assume that moving image data is composed of frame images of frame 1, frame 2,. Pa, Pb, and Pc in the figure are frames indicating rough positions of groups of pixels having the same motion vector, and do not strictly indicate pixel areas of groups of pixels. If these movement amounts are as follows, Pa and Pb are specified as the reference subject and Pc as the moving subject.

Paの移動量:上方向へ10ピクセル、右方向へ15ピクセル
Pbの移動量:上方向へ10ピクセル、右方向へ15ピクセル
Pcの移動量:上方向へ10ピクセル、右方向へ300ピクセル。
Pa movement amount: 10 pixels upward, 15 pixels right
Movement amount of Pb: 10 pixels upward, 15 pixels right
Movement amount of Pc: 10 pixels upward and 300 pixels right.

このようにして基準被写体が特定されると、その基準被写体の動きベクトルが現フレームの撮影時におけるカメラのパーンまたは手ぶれによって生じたカメラの移動ベクトルとして、図示せぬワークメモリなどに一時記憶される(ステップA16)。   When the reference subject is specified in this way, the motion vector of the reference subject is temporarily stored in a work memory (not shown) or the like as a camera movement vector caused by camera panning or camera shake at the time of shooting the current frame. (Step A16).

図9の例では、上方向へ10ピクセル、右方向へ15ピクセルがカメラの移動ベクトルとして記憶される。この移動ベクトルには、ユーザが意図的に動かしたカメラのパーンによる動きが含まれている可能性がある。そこで、まず、現フレーム位置より前の所定数分のフレーム画像に対応して得られたカメラ移動ベクトルの平均値からカメラのパーンベクトルが求められる(ステップA17)。そして、前記ステップA16で得られた現フレーム位置におけるカメラの移動ベクトルと、前記ステップA17で得られたカメラのパーンベクトルとの差分から現フレーム位置における手ぶれベクトルが求められる(ステップA18)。   In the example of FIG. 9, 10 pixels upward and 15 pixels right are stored as camera motion vectors. There is a possibility that the movement vector includes a movement of the camera panned intentionally by the user. In view of this, first, the Pann vector of the camera is obtained from the average value of the camera movement vectors obtained corresponding to a predetermined number of frame images before the current frame position (step A17). Then, the camera shake vector at the current frame position is obtained from the difference between the camera movement vector at the current frame position obtained at step A16 and the camera Pann vector obtained at step A17 (step A18).

この例とは異なり、例えば、撮影者がPcで示される被写体をフレームの中央に収めるべくカメラをパーンさせていた場合には、画像データ上でのPcの移動量が最も少なくなるため、Pcが基準被写体として特定されることになり、パーンベクトルと手ぶれベクトルもこの基準被写体の動きに着目した異なるものとなる。   Unlike this example, for example, when the photographer has panned the camera so that the subject indicated by Pc is placed in the center of the frame, the amount of movement of Pc on the image data is the smallest, so Pc is It is specified as the reference subject, and the Pann vector and the hand movement vector are also different from each other focusing on the movement of the reference subject.

このようにして求められた手ぶれベクトルは、当該フレームに付加された番号と対応付けられて、手ぶれ情報ファイルに追加記憶される(ステップA19)。   The camera shake vector obtained in this way is associated with the number added to the frame and is additionally stored in the camera shake information file (step A19).

以後同様にして、次の処理対象となるフレーム位置が順次更新されて(ステップA20,A21)、そのフレーム位置における手ぶれベクトルが手ぶれ情報ファイルに追加記憶される(ステップA13〜A19)。そして、すべてのフレームに対する処理が終了した時点で(ステップA20のNo)、手ぶれ情報ファイルが当該動画ファイルに関連付けられてメモリ38に記録されて(ステップA22)、ここでの手ぶれ情報付加処理が終了する。   Thereafter, similarly, the frame position to be processed next is sequentially updated (steps A20 and A21), and the camera shake vector at the frame position is additionally stored in the camera shake information file (steps A13 to A19). Then, when the processing for all the frames is completed (No in Step A20), the camera shake information file is recorded in the memory 38 in association with the moving image file (Step A22), and the camera shake information addition process is completed here. To do.

(b)再生表示処理
次に、動画データの再生表示処理について説明する。
(B) Reproduction display processing Next, the reproduction display processing of moving image data will be described.

図7はデジタルカメラ1による動画データの再生表示処理の動作を示すフローチャートである。この再生表示処理は、動画撮影後にユーザが所定の操作により再生表示を指示することで実行される。その際、図4に示したような補正指定画面51を通じて手ぶれ補正の有無をユーザが任意のタイミングで指定することができる。以下では、前記補正指定画面51において、「手ぶれ補正する」が指定されたものとして説明する。   FIG. 7 is a flowchart showing the operation of the reproduction / display processing of moving image data by the digital camera 1. This reproduction display processing is executed by the user instructing reproduction display by a predetermined operation after moving image shooting. At that time, the user can designate whether or not to correct the camera shake at an arbitrary timing through the correction designation screen 51 as shown in FIG. In the following description, it is assumed that “camera shake correction” is designated on the correction designation screen 51.

まず、メモリ38の中で再生表示する動画ファイルが特定される(ステップB11)。これは、例えばユーザが所定の操作により再生表示する動画ファイルを明示的に指示することで行なわれる。続いて、この動画ファイルに対応した手ぶれ情報ファイルが特定される(ステップB12)。再生表示する動画ファイルとそれに対応した手ぶれ情報ファイルが特定されると、処理対象となるフレーム位置(ポインタ)が初期化された後(ステップB13)、以下のような手順で動画データが再生表示される。   First, a moving image file to be reproduced and displayed in the memory 38 is specified (step B11). This is performed, for example, when the user explicitly indicates a moving image file to be reproduced and displayed by a predetermined operation. Subsequently, a camera shake information file corresponding to the moving image file is specified (step B12). When the moving image file to be reproduced and the camera shake information file corresponding thereto are specified, the frame position (pointer) to be processed is initialized (step B13), and then the moving image data is reproduced and displayed in the following procedure. The

すなわち、動画ファイルから現フレーム位置における画像データ、手ぶれ情報ファイルから現フレーム位置における手ぶれベクトルがそれぞれ抽出される(ステップB14,B15)。   That is, image data at the current frame position is extracted from the moving image file, and a camera shake vector at the current frame position is extracted from the camera shake information file (steps B14 and B15).

ここで、表示方法として、「拡大/縮小表示」と「補間表示」の2通りがある(ステップB16)。「拡大/縮小表示」では、画像データから手ぶれベクトルに対応した周囲領域以外の部分を切り出すことで、その切り出した画像データを手ぶれ補正した画像として生成する(ステップB17)。   Here, there are two display methods, “enlarged / reduced display” and “interpolated display” (step B16). In “enlarged / reduced display”, a portion other than the surrounding region corresponding to the camera shake vector is cut out from the image data, and the cut out image data is generated as a camera shake corrected image (step B17).

図10に具体例を示す。図中の斜線で示す周囲領域が手ぶれにより画面からはみ出す部分であり、それ以外の領域が手ぶれのない部分として切り出される。この場合、切り出しにより画角が狭くなるため、図11の例に示すように、前記切り出した画像データを表示デバイスの解像度に合わせて拡大あるいは縮小処理してから表示するものとする(ステップB18)。   A specific example is shown in FIG. In the figure, the surrounding area indicated by the oblique lines is a part that protrudes from the screen due to camera shake, and the other area is cut out as a part without camera shake. In this case, since the angle of view is narrowed by clipping, as shown in the example of FIG. 11, the clipped image data is displayed after being enlarged or reduced in accordance with the resolution of the display device (step B18). .

一方、「補間表示」では、手ぶれベクトルに従って画像データの表示位置を調整することで、手ぶれ補正した画像を生成する(ステップB19)。この場合、表示位置によっては所定の画面領域からはみ出す部分が生じるので、そのはみ出し部分については削除し、欠落する部分については他のフレーム画像の対応する部分を利用して補間処理してから表示するものとする(ステップB20)。   On the other hand, in the “interpolation display”, the image data display position is adjusted according to the camera shake vector, thereby generating an image subjected to camera shake correction (step B19). In this case, depending on the display position, a portion that protrudes from a predetermined screen area occurs. Therefore, the protruding portion is deleted, and the missing portion is displayed after interpolation processing using the corresponding portion of another frame image. Suppose (step B20).

なお、「拡大/縮小表示」または「補間表示」とするのかは、例えば図4に示した補正指定画面51で手ぶれ補正を指定したときにユーザが任意に指定できるものとする。   It should be noted that “enlarged / reduced display” or “interpolated display” can be arbitrarily specified by the user when camera shake correction is specified on the correction specification screen 51 shown in FIG. 4, for example.

以後同様にして、次の処理対象となるフレーム位置が順次更新されて(ステップB21,B22)、更新後のフレーム位置における画像データと手ぶれベクトルが読み出され、その画像データが手ぶれ補正された状態で所定のフレームレートに従って表示される(ステップB14〜B20)。そして、すべてのフレームに対する処理が終了すると(ステップB21のNo)、ここでの再生表示処理が終了する。   Thereafter, in the same manner, the frame position to be processed next is sequentially updated (steps B21 and B22), the image data and the camera shake vector at the updated frame position are read, and the image data is subjected to camera shake correction. Are displayed according to a predetermined frame rate (steps B14 to B20). Then, when the processing for all the frames is completed (No in step B21), the reproduction display processing here ends.

(c)再記録処理
次に、動画データの再記録処理について説明する。
(C) Re-recording process Next, the moving-image data re-recording process will be described.

図8はデジタルカメラ1による動画データの再記録処理の動作を示すフローチャートである。この再記録処理は、動画撮影後にユーザが所定の操作により再記録モードを指示することで実行される。その際に、図5に示したような保存方法指定画面61を通じて「上書き保存」とするのか、「新規保存」とするのかをユーザが任意に指定することができる。   FIG. 8 is a flowchart showing the operation of the re-recording process of moving image data by the digital camera 1. This re-recording process is executed by the user instructing a re-recording mode by a predetermined operation after moving image shooting. At that time, the user can arbitrarily designate whether to perform “overwrite save” or “new save” through the save method designation screen 61 as shown in FIG.

まず、メモリ38の中で再記録する動画ファイルが特定される(ステップC11)。これは、例えばユーザが所定の操作により再記録する動画ファイルを明示的に指示することで行なわれる。続いて、この動画ファイルに対応した手ぶれ情報ファイルが特定される(ステップC12)。再記録する動画ファイルとそれに対応した手ぶれ情報ファイルが特定されると、処理対象となるフレーム位置(ポインタ)が初期化された後(ステップC13)、以下のような手順で動画データが再生表示される。   First, a moving image file to be re-recorded is specified in the memory 38 (step C11). This is performed, for example, when the user explicitly indicates a moving image file to be re-recorded by a predetermined operation. Subsequently, a camera shake information file corresponding to the moving image file is specified (step C12). When the moving image file to be re-recorded and the camera shake information file corresponding thereto are specified, the frame position (pointer) to be processed is initialized (step C13), and the moving image data is reproduced and displayed in the following procedure. The

すなわち、動画ファイルから現フレーム位置における画像データ、手ぶれ情報ファイルから現フレーム位置における手ぶれベクトルがそれぞれ抽出される(ステップC14,C15)。   That is, image data at the current frame position is extracted from the moving image file, and a camera shake vector at the current frame position is extracted from the camera shake information file (steps C14 and C15).

ここで、画像データから手ぶれベクトルに対応した周囲領域を除いた部分が取り出され、その切り出された画像データが手ぶれ補正後の画像データとして生成される(ステップC16)。この手ぶれ補正後の画像データを再記録する際に、前記図5の保存方法指定画面61で指定された保存方法が確認される(ステップC17)。   Here, a portion excluding the peripheral region corresponding to the camera shake vector is extracted from the image data, and the cut-out image data is generated as image data after camera shake correction (step C16). When the image data after the camera shake correction is re-recorded, the saving method designated on the saving method designation screen 61 in FIG. 5 is confirmed (step C17).

その結果、保存方法として「上書き保存」が指定されていれば、前記切り出された画像データつまり手ぶれ補正後の画像が元の解像度に合わせて拡大処理された後、当該フレーム部分の画像データに代わってメモリ38に記録される(ステップC18)。一方、「新規保存」が指定されていれば、前記切り出された画像データつまり手ぶれ補正後の画像が予め指定された解像度に合わせて拡大あるいは縮小処理された後、新たな動画ファイルとしてメモリ38に追加記録される(ステップC19)。   As a result, if “overwrite saving” is designated as the saving method, the clipped image data, that is, the image after camera shake correction is enlarged to the original resolution, and then replaced with the image data of the frame portion. Is recorded in the memory 38 (step C18). On the other hand, if “new saving” is designated, the extracted image data, that is, the image after camera shake correction is enlarged or reduced in accordance with the resolution designated in advance, and then stored in the memory 38 as a new moving image file. Additional recording is performed (step C19).

以後同様にして、次の処理対象となるフレーム位置が順次更新されて(ステップC20,C21)、更新後のフレーム位置における画像データと手ぶれベクトルが読み出され、その画像データが手ぶれ補正された状態で再記録される(ステップC14〜C19)。そして、すべてのフレームに対する処理が終了すると(ステップC20のNo)、ここでの再記録処理が終了する。   Thereafter, in the same manner, the frame position to be processed next is sequentially updated (steps C20 and C21), the image data and the camera shake vector at the updated frame position are read, and the image data is subjected to camera shake correction. (Steps C14 to C19). Then, when the processing for all the frames is completed (No in Step C20), the re-recording process here ends.

なお、前記再記録処理では、必要に応じて、元の画像データの解凍処理や、補正後の画像データの再圧縮処理が行われるものとする。   In the re-recording process, the original image data is decompressed and the corrected image data is re-compressed as necessary.

以上のように、動画撮影によって得られた動画データと、その動画データから検出された手ぶれ情報とを関連付けてメモリ38に記録しておくことで、後に必要に応じて、そのメモリ38に記録された動画データを当該動画データに対応した手ぶれ情報を用いて補正処理することができる。   As described above, moving image data obtained by moving image shooting and camera shake information detected from the moving image data are recorded in the memory 38 in association with each other, and later recorded in the memory 38 as necessary. The moving image data can be corrected using camera shake information corresponding to the moving image data.

この場合、動画撮影時には動画データが画素欠落のない状態でメモリ38に記録されているため、そのまま画角優先とした動画データを得ることができ、また、再生表示時に手ぶれ補正を指定すれば、手ぶれ補正した画像データを得ることもできる。   In this case, since moving image data is recorded in the memory 38 in a state where no pixels are missing at the time of moving image shooting, it is possible to obtain moving image data with priority on the angle of view, and if camera shake correction is specified during playback display, Image data corrected for camera shake can also be obtained.

さらに、手ぶれ補正後の動画データを保存することもできる。その際、上書き保存とするか、あるいは、新規保存とするのかをユーザが任意に指定することができる。この場合、例えばメモリ38の容量が少ないときには上書き保存にし、元データつまり画角優先とした撮影時の動画データを残しておきたいときに新規保存にするといったように、メモリ38の使用状況などに応じて保存方法を使い分けることができる。   Furthermore, the moving image data after the camera shake correction can be saved. At this time, the user can arbitrarily specify whether to perform overwriting or new storage. In this case, for example, when the capacity of the memory 38 is small, it is overwritten and saved, and when the original data, that is, the moving image data at the time of shooting with priority on the angle of view is to be saved, it is newly saved. You can use different storage methods accordingly.

なお、前記実施形態では、動画データに関する各種処理、すなわち、動画撮影処理、手ぶれ情報付加処理、再記録処理、再生表示処理をそれぞれ個別に実行するものとしたが、これらの処理を並行して行うことでも良い。   In the embodiment, various processes relating to moving image data, that is, moving image shooting processing, camera shake information addition processing, re-recording processing, and playback / display processing are individually executed. However, these processes are performed in parallel. That's fine.

図12はデジタルカメラ1による動画撮影処理、手ぶれ情報付加処理、再記録処理、再生表示処理を並行処理する場合を示している。   FIG. 12 shows a case in which a moving image shooting process, a camera shake information addition process, a re-recording process, and a reproduction display process are performed in parallel by the digital camera 1.

手ぶれ情報付加処理は、通常は動画撮影処理が完了した後にそのときに得られた動画ファイルに対して行われるが、処理速度に余裕があれば、動画撮影処理と同時あるいは所定フレーム数分のタイムラグをおいて動画撮影処理と並行に行うことでも良い。   The camera shake information addition processing is normally performed on the movie file obtained at the time after the movie shooting processing is completed. However, if the processing speed is sufficient, a time lag corresponding to a predetermined number of frames or at the same time as the movie shooting processing is performed. It may be performed in parallel with the video shooting process.

また、再記録処理は、通常は手ぶれ情報付加処理が完了した後にそのときに得られた手ぶれ情報ファイルを利用して行われるが、処理速度に余裕があれば、手ぶれ情報付加処理と同時あるいは所定フレーム数分のタイムラグをおいて手ぶれ情報付加処理と並行に行うことでも良い。   The re-recording process is normally performed using the camera shake information file obtained at the time after the camera shake information adding process is completed. If there is a sufficient processing speed, the re-recording process may be performed simultaneously with the camera shake information adding process or at a predetermined time. It may be performed in parallel with the camera shake information addition process with a time lag corresponding to the number of frames.

また、再生表示処理は、通常は手ぶれ情報付加処理が完了した後にそのときに得られた手ぶれ情報ファイルを利用して行われるが、処理速度に余裕があれば、手ぶれ情報付加処理と同時あるいは所定フレーム数分のタイムラグをおいて手ぶれ情報付加処理と並行に行うことでも良い。さらに、この再生表示処理を再記録処理と同時あるいは並行に行うことでも良い。   In addition, the playback display process is normally performed using the camera shake information file obtained at the time after the camera shake information adding process is completed. It may be performed in parallel with the camera shake information addition process with a time lag corresponding to the number of frames. Further, this reproduction display process may be performed simultaneously or in parallel with the re-recording process.

(第2の実施形態)
次に、本発明の第2の実施形態について説明する。
(Second Embodiment)
Next, a second embodiment of the present invention will be described.

第2の実施形態では、前記第1の実施形態で説明した手ぶれ補正の有無や保存方法に加え、さらに、手ぶれの動きに対する追従性の度合いや、被写体を判定するための画素割合をユーザが任意に指定可能としたものである。   In the second embodiment, in addition to the presence / absence of image stabilization and the storage method described in the first embodiment, the user can arbitrarily specify the degree of followability to the movement of camera shake and the pixel ratio for determining the subject. Can be specified.

図13は本発明の第2の実施形態におけるデジタルカメラ1による設定処理を示すフローチャートである。この設定処理は、例えば図4の補正指定画面51で「手ぶれ補正する」の項目52を選択したときに実行される。   FIG. 13 is a flowchart showing a setting process by the digital camera 1 in the second embodiment of the present invention. This setting process is executed, for example, when the “camera shake correction” item 52 is selected on the correction designation screen 51 of FIG.

すなわち、ユーザが前記補正指定画面51でで「手ぶれ補正する」ことを指定した場合において、図14に示すような設定画面71が表示部19に表示される(ステップD11)。この設定画面71には、手ぶれの動きに対する追従性の度合いを指定するための項目72,73と、判定用画素の割合を指定するための項目74,75,76が設けられている。   That is, when the user designates “camera shake correction” on the correction designation screen 51, a setting screen 71 as shown in FIG. 14 is displayed on the display unit 19 (step D11). The setting screen 71 is provided with items 72 and 73 for designating the degree of follow-up to the movement of camera shake, and items 74, 75 and 76 for designating the ratio of determination pixels.

手ぶれ追従性の度合いを設定する場合において、前記設定画面71上の項目72または項目73をカーソル等により選択すると(ステップD12のYes)、その選択項目に対応した追従性の度合いが設定情報として図2に示す制御部32の設定記憶部32aに記憶される(ステップD13)。この例では、前記項目72の選択により追従性「低い」が設定され、前記項目73の選択により追従性「高い」が設定される。なお、ユーザにより追従性の度合いが指定されなかった場合には、例えばデフォルトとして追従性「低い」が設定されるものとする。   When setting the degree of camera shake followability, if the item 72 or the item 73 on the setting screen 71 is selected with a cursor or the like (Yes in step D12), the degree of followability corresponding to the selected item is displayed as setting information. 2 is stored in the setting storage unit 32a of the control unit 32 (step D13). In this example, the item 72 is selected to set “following” “low”, and the item 73 is selected to set “following” “high”. When the degree of followability is not specified by the user, for example, “low” followability is set as a default.

ここで、図15を参照して、このデジタルカメラ1による手ぶれの動きに対する追従性について説明する。   Here, with reference to FIG. 15, the followability to the movement of the camera shake by the digital camera 1 will be described.

今、動画撮影時における画像の動き量が図15(a)のような状態であったとする。この動き量には、ユーザの意図しない手ぶれによる動きの他に、ユーザがカメラを意図的にパーンしたときの動きが含まれている。また、ユーザによる意図的なパーンであっても、実際に再生して見ると動きが激し過ぎて見苦しい場合があり、このような画像の動きについても、手ぶれと同じように除去することが望ましい。ここでは、手ぶれや過度のパーンなどを含めた好ましくない画像の動き成分のことを手ぶれ成分(手ぶれベクトル)と呼び、それ以外の適正なパーンによる好ましい画像の動き成分のことをパーン成分(パーンベクトル)と呼ぶこととする。また、画像の動きの中から手ぶれ成分を除去する処理のことを手ぶれ補正処理と呼ぶこととする。   Assume that the amount of movement of an image at the time of moving image shooting is in a state as shown in FIG. The amount of movement includes movement when the user intentionally pans the camera, in addition to movement due to camera shake not intended by the user. In addition, even intentional panning by the user may be unsightly due to excessive movement when actually played back, and it is desirable to remove such image movement as well as camera shake. . Here, an unfavorable image motion component including camera shake and excessive panning is referred to as a hand shake component (camera shake vector), and a preferable image motion component due to other appropriate panning is a pan component (pan vector). ). In addition, processing for removing a camera shake component from image motion is referred to as camera shake correction processing.

しかしながら、除去すべき手ぶれ成分とそれ以外のパーン成分とを実際に動画を再生して見る前に切り分けることは難しい。ここでの追従性とは、どこまでが手ぶれ成分で、どこからがパーン成分かを動的に切り分けるための指針であり、この追従性に応じて手ぶれ補正処理を行う際の手ぶれ補正の度合いを変化させる。   However, it is difficult to separate the camera shake component to be removed and the other pan component before actually reproducing and viewing the moving image. Here, the tracking ability is a guideline for dynamically identifying where the shake component is from and where the panning component is, and changes the degree of camera shake correction when performing the shake correction processing according to this tracking ability. .

図15(b)および図15(c)は、図15(a)の状態から、手ぶれ成分を除去してパーン成分だけとなった状態を表したものである。   FIG. 15B and FIG. 15C show a state in which the camera shake component is removed from the state of FIG.

図15(b)は追従性を低く設定した場合の画像の動き量を表している。追従性を低く設定した場合には、各フレームの画像データに対する手ぶれ補正の度合いが低くなり(画像全体の動きの中で、手ぶれとみなされる動き成分の割合がより少なくなり)、手ぶれによる小さな動きによって各フレーム毎に画面からはみ出してしまう部分が補正されることになる。これに対し、図15(c)は追従性を高く設定した場合の画像の動き量を表している。追従性を高く設定した場合には、各フレームの画像データに対する手ぶれ補正の度合いが高くなり(画像全体の動きの中で、手ぶれとみなされる動き成分の割合がより多くなり)、手ぶれの他にカメラのパーンによる大きな動きも含めて、各フレーム毎に画面からはみ出してしまう部分が補正されることになる。   FIG. 15B shows the amount of motion of the image when the followability is set low. When the tracking capability is set low, the degree of camera shake correction for the image data of each frame is low (the proportion of motion components that are regarded as camera shake is less in the overall motion of the image), and small motion due to camera shake As a result, a portion that protrudes from the screen is corrected for each frame. On the other hand, FIG. 15C shows the amount of motion of the image when the followability is set high. When the tracking capability is set high, the degree of camera shake correction for the image data of each frame increases (the proportion of motion components that are considered to be camera shake in the overall motion of the image increases). A part that protrudes from the screen is corrected every frame including a large movement caused by camera panning.

また、上述した第1の実施形態において、撮影者が図9のPcで示される被写体をフレームの中央に収めるべくカメラをパーンさせていた場合には、Pcが基準被写体として特定される場合もあることを説明したが、このPcで示される被写体が非常に小さいものであったり、撮影者が意図する被写体ではなかった場合には、該被写体を基準被写体とするのは好ましくない。そこで、各被写体部分が基準被写体として特定されるための条件を画像データ全体に占める各被写体部分の画素割合によって指定できるようにする。   In the first embodiment described above, if the photographer has panned the camera so that the subject indicated by Pc in FIG. 9 is placed in the center of the frame, Pc may be specified as the reference subject. However, when the subject indicated by Pc is very small or is not the subject intended by the photographer, it is not preferable to use the subject as a reference subject. Therefore, a condition for specifying each subject portion as a reference subject can be designated by the pixel ratio of each subject portion in the entire image data.

図13のフローチャートに戻って、被写体を判定するための画素割合を設定する場合において、前記設定画面71上の項目74〜76のいずれか1つをカーソル等により選択すると(ステップD14のYes)、その選択項目に対応した画素割合が設定情報として図2に示す制御部32の設定記憶部32aに記憶される(ステップD15)。ここでは、前記項目74の選択により「割合A」が設定され、前記項目75の選択により「割合B」が設定され、前記項目76の選択により「割合C」が設定される。なお、「割合A」、「割合B」、「割合C」の順で割合が大きくなるものとする。また、ユーザにより判定用画素の割合が指定されなかった場合には、例えばデフォルトとして「割合A」が設定されるものとする。   Returning to the flowchart of FIG. 13, when setting the pixel ratio for determining the subject, if any one of the items 74 to 76 on the setting screen 71 is selected with a cursor or the like (Yes in step D14), The pixel ratio corresponding to the selected item is stored as setting information in the setting storage unit 32a of the control unit 32 shown in FIG. 2 (step D15). Here, “ratio A” is set by selecting the item 74, “ratio B” is set by selecting the item 75, and “ratio C” is set by selecting the item 76. It is assumed that the ratio increases in the order of “Ratio A”, “Ratio B”, and “Ratio C”. Further, when the ratio of the pixel for determination is not designated by the user, for example, “ratio A” is set as a default.

次に、第2の実施形態における手ぶれ情報付加処理について説明する。   Next, camera shake information addition processing in the second embodiment will be described.

図16は第2の実施形態における手ぶれ情報付加処理の動作を示すフローチャートである。なお、基本的な処理の流れは図6と同じであり、異なる点は手ぶれ補正の追従性と判定用画素の割合の設定情報を加味して処理が行われることである。   FIG. 16 is a flowchart showing the operation of camera shake information addition processing in the second embodiment. Note that the basic processing flow is the same as that in FIG. 6, and the difference is that the processing is performed in consideration of the followability of camera shake correction and the setting information of the ratio of determination pixels.

まず、メモリ38の中で手ぶれ情報を付加する動画ファイルが特定される(ステップE11)。これは、例えばユーザが所定の操作により手ぶれ情報を付加する動画ファイルを明示的に指示することで行なわれる。手ぶれ情報を付加する動画ファイルが特定されると、その動画ファイル(動画データ)を構成する各フレーム画像を順次処理するためのフレーム位置(ポインタ)が初期化された後(ステップE12)、以下のような手順で手ぶれ情報ファイルが作成される。   First, a moving image file to which camera shake information is added is specified in the memory 38 (step E11). This is performed, for example, when the user explicitly indicates a moving image file to which camera shake information is added by a predetermined operation. When a moving image file to which camera shake information is added is specified, a frame position (pointer) for sequentially processing each frame image constituting the moving image file (moving image data) is initialized (step E12). The camera shake information file is created in such a procedure.

すなわち、現フレーム位置より前にある複数のフレーム画像が比較されて、各画素毎に動きベクトル(移動方向および移動量)が検出される(ステップE13)。続いて、この検出された各画素の動きベクトルに基づいて、同じ動きベクトルを持つ画素同士がグループ化される(ステップE14)。   That is, a plurality of frame images before the current frame position are compared, and a motion vector (movement direction and movement amount) is detected for each pixel (step E13). Subsequently, pixels having the same motion vector are grouped based on the detected motion vector of each pixel (step E14).

ここで、前記設定画面71で設定された判定用画素割合以上の画素数で構成されるグループの中で最も移動量の少ないグループが基準被写体、その他のグループが移動被写体として特定される(ステップE15)。この場合、判定用画素の割合が小さいほど、例えば小さな虫なども含めて被写体の判定がなされることになる。   Here, among the groups configured with the number of pixels equal to or greater than the pixel ratio for determination set on the setting screen 71, the group with the smallest moving amount is specified as the reference subject and the other groups are specified as the moving subjects (step E15). ). In this case, the smaller the ratio of the determination pixels, the more the subject is determined including, for example, small insects.

このようにして基準被写体が特定されると、その基準被写体の動きベクトルが現フレームの撮影時におけるカメラのパーンまたは手ぶれによって生じたカメラの移動ベクトルとして、図示せぬワークメモリなどに一時記憶される(ステップE16)。   When the reference subject is specified in this way, the motion vector of the reference subject is temporarily stored in a work memory (not shown) or the like as a camera movement vector caused by camera panning or camera shake at the time of shooting the current frame. (Step E16).

続いて、前記設定記憶部32aに設定されている手ぶれ追従性の度合いに応じて、平均化フレーム数が決定される(ステップE17)。図14で説明したように、この手ぶれ追従性の度合いは事前にユーザが任意に指定可能であり、追従性が高いほど、平均化フレーム数が多くなり、結果的に手ぶれ補正の度合いが高くなる。   Subsequently, the number of averaged frames is determined in accordance with the degree of camera shake followability set in the setting storage unit 32a (step E17). As described with reference to FIG. 14, the degree of camera shake followability can be arbitrarily specified in advance by the user. The higher the followability, the greater the number of average frames, and the higher the result of camera shake correction. .

平均化フレーム数が決定されると、現フレーム位置より前の平均化フレーム数分のフレーム画像に対応して得られたカメラ移動ベクトルの平均値からカメラのパーンベクトルが求められる(ステップE18)。そして、前記ステップE16で得られた現フレーム位置におけるカメラの移動ベクトルと、前記ステップE18で得られたカメラのパーンベクトルとの差分から現フレーム位置における手ぶれベクトルが求められる(ステップE19)。   When the number of averaged frames is determined, a camera Pann vector is obtained from the average value of the camera movement vectors obtained corresponding to the frame images for the number of averaged frames before the current frame position (step E18). Then, the camera shake vector at the current frame position is obtained from the difference between the camera movement vector at the current frame position obtained at step E16 and the camera pan vector obtained at step E18 (step E19).

このようにして求められた手ぶれベクトルは、当該フレームに付加された番号と対応付けられて、手ぶれ情報ファイルに追加記憶される(ステップE20)。   The camera shake vector obtained in this way is associated with the number added to the frame and is additionally stored in the camera shake information file (step E20).

以後同様にして、次の処理対象となるフレーム位置が順次更新されて(ステップE21,E22)、そのフレーム位置における手ぶれベクトルが手ぶれ情報ファイルに追加記憶される(ステップE13〜E20)。そして、すべてのフレームに対する処理が終了した時点で(ステップE21のNo)、手ぶれ情報ファイルが当該動画ファイルに関連付けられてメモリ38に記録されて(ステップE23)、ここでの手ぶれ情報付加処理が終了する。   Thereafter, similarly, the frame position to be processed next is sequentially updated (steps E21 and E22), and the camera shake vector at the frame position is additionally stored in the camera shake information file (steps E13 to E20). Then, when the processing for all the frames is completed (No in Step E21), the camera shake information file is recorded in the memory 38 in association with the moving image file (Step E23), and the camera shake information addition process is completed here. To do.

以上のように、手ぶれ追従性の度合いや判定用画素の割合が任意に設定された手ぶれ情報ファイルが作成される。この手ぶれ情報ファイルは、上述したように再生表示時に動画ファイルを手ぶれ補正するときに利用される。この場合、例えば手ぶれ追従性が高めに設定された手ぶれ情報ファイルであれば、図15で説明したように、手ぶれだけでなく、カメラの過度のパーンを含めた動きが補正されることになる。   As described above, a camera shake information file in which the degree of camera shake tracking and the ratio of pixels for determination is arbitrarily set is created. As described above, the camera shake information file is used for camera shake correction of a moving image file during reproduction and display. In this case, for example, if the camera shake information file is set to have a high camera shake tracking capability, as described with reference to FIG. 15, not only camera shake but also movement including excessive panning of the camera is corrected.

また、図17に示すように、1つの動画ファイルに対して、複数の手ぶれ情報ファイルを付加しておくことでも可能である。この場合、再生表示時や再記録時にユーザが所望の手ぶれ情報ファイルを指定することにより、その指定された手ぶれ情報ファイルに基づいて当該動画ファイルに対する手ぶれ補正処理が行われることになる。   As shown in FIG. 17, it is also possible to add a plurality of camera shake information files to one moving image file. In this case, when the user designates a desired camera shake information file at the time of reproduction display or re-recording, camera shake correction processing for the moving image file is performed based on the designated camera shake information file.

図17の例では、動画ファイル1に対して、手ぶれ追従性が高めに設定された手ぶれ情報ファイル1−aと、手ぶれ追従性が低めに設定された手ぶれ情報ファイル1−bとが関連付けられている。   In the example of FIG. 17, with respect to the moving image file 1, a camera shake information file 1-a set with a high camera shake tracking capability and a camera shake information file 1-b set with a low camera tracking capability are associated. Yes.

また、別の動画ファイル2には、手ぶれ追従性が高めに設定された手ぶれ情報ファイル2−aと、手ぶれ追従性が低めに設定された手ぶれ情報ファイル2−bと、さらに、手ぶれ情報ファイル2−cとが関連付けられている。この手ぶれ情報ファイル2−cは、図2に示すジャイロセンサ42によって検出した手ぶれ情報をファイル化したものである。デジタルカメラ1にジャイロセンサ42が搭載されている場合には、動画撮影時にカメラの動きから手ぶれ情報を検出することができる。   Further, another moving image file 2 includes a camera shake information file 2-a in which the camera shake followability is set high, a camera shake information file 2-b in which the camera shake followability is set low, and a camera shake information file 2 -C is associated. This camera shake information file 2-c is a file of camera shake information detected by the gyro sensor 42 shown in FIG. When the gyro sensor 42 is mounted on the digital camera 1, camera shake information can be detected from the movement of the camera during moving image shooting.

なお、前記第2の実施形態では、ユーザが手ぶれ追従性の度合い(低い/高い)を指定し、その指定された手ぶれ追従性の度合いに応じて平均化フレーム数を決定することで、結果的に手ぶれ補正の度合いを変更するものとしたが、他の方法により手ぶれ補正の度合いを変更することでも良い。   In the second embodiment, the user designates the degree of camera shake followability (low / high) and determines the average number of frames according to the designated degree of camera shake followability. However, the degree of camera shake correction may be changed by another method.

また、前記各実施形態では、デジタルカメラを例にして説明したが、本発明はこれに限る者ではなく、例えばデジタルムービカメラの他、同様の動画撮像機能を備えた携帯電話やPDA(Personal Digital Assistant)などにも適用可能である。   In each of the above embodiments, a digital camera has been described as an example. However, the present invention is not limited to this. For example, in addition to a digital movie camera, a mobile phone or a PDA (Personal Digital Assistant).

要するに、本発明は前記各実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、前記各実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。   In short, the present invention is not limited to the above-described embodiments as they are, and can be embodied by modifying constituent elements without departing from the scope of the invention in the implementation stage. Various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the respective embodiments. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, constituent elements over different embodiments may be appropriately combined.

図1は本発明の第1の実施形態に係る撮像装置として動画撮影可能なデジタルカメラを例にした場合の外観構成を示す図である。FIG. 1 is a diagram showing an external configuration when a digital camera capable of shooting a moving image is taken as an example of the imaging apparatus according to the first embodiment of the present invention. 図2は同実施形態におけるデジタルカメラの電子回路構成を示すブロック図である。FIG. 2 is a block diagram showing an electronic circuit configuration of the digital camera in the embodiment. 図3は同実施形態におけるデジタルカメラの動画ファイルと手ぶれ情報ファイルとの関係を示す図である。FIG. 3 is a diagram showing a relationship between a moving image file and a camera shake information file of the digital camera in the embodiment. 図4は同実施形態における動画データの再生表示時に手ぶれ補正の有無を指定するための補正指定画面の一例を示す図である。FIG. 4 is a diagram showing an example of a correction designation screen for designating the presence / absence of camera shake correction when reproducing and displaying moving image data in the embodiment. 図5は同実施形態における動画データの再記録時に保存方法を指定するための保存方法指定画面の一例を示す図である。FIG. 5 is a diagram showing an example of a storage method designation screen for designating a storage method when re-recording moving image data in the embodiment. 図6は同実施形態におけるデジタルカメラによる手ぶれ情報付加処理の動作を示すフローチャートである。FIG. 6 is a flowchart showing the operation of camera shake information addition processing by the digital camera in the embodiment. 図7は同実施形態におけるデジタルカメラによる動画データの再生表示処理の動作を示すフローチャートである。FIG. 7 is a flowchart showing the operation of the reproduction / display processing of moving image data by the digital camera in the embodiment. 図8は同実施形態におけるデジタルカメラによる動画データの再記録処理の動作を示すフローチャートである。FIG. 8 is a flowchart showing the operation of re-recording processing of moving image data by the digital camera in the embodiment. 図9は動画撮影時に得られる動画データの各フレーム画像の一例を示す図である。FIG. 9 is a diagram illustrating an example of each frame image of moving image data obtained during moving image shooting. 図10は前記動画データの各フレーム画像から手ぶれ領域以外の部分を切り出す場合の一例を示す図である。FIG. 10 is a diagram showing an example in the case where a portion other than the camera shake region is cut out from each frame image of the moving image data. 図11は前記切り出した画像データを表示デバイスの解像度に合わせて表示する場合の一例を示す図である。FIG. 11 is a diagram illustrating an example of displaying the cut-out image data in accordance with the resolution of the display device. 図12は前記デジタルカメラによる動画撮影処理、手ぶれ情報付加処理、再記録処理、再生表示処理を並行処理する場を示す図である。FIG. 12 is a diagram showing a place where the digital camera performs moving image shooting processing, camera shake information addition processing, re-recording processing, and playback display processing in parallel. 図13は本発明の第2の実施形態におけるデジタルカメラによる設定処理を示すフローチャートである。FIG. 13 is a flowchart showing setting processing by the digital camera in the second embodiment of the present invention. 図14は同実施形態における手ぶれ追従性の度合いと判定用画素の割合の設定画面の一例を示す図である。FIG. 14 is a diagram showing an example of a setting screen for the degree of camera-shake tracking and the ratio of determination pixels in the embodiment. 図15は同実施形態におけるデジタルカメラによる手ぶれ追従性を説明するための図である。FIG. 15 is a diagram for explaining camera shake followability by the digital camera in the embodiment. 図16は同実施形態におけるデジタルカメラによる手ぶれ情報付加処理の動作を示すフローチャートである。FIG. 16 is a flowchart showing the operation of camera shake information addition processing by the digital camera in the embodiment. 図17は同実施形態におけるデジタルカメラの動画ファイルと手ぶれ情報ファイルとの関係を示す図である。FIG. 17 is a diagram showing a relationship between a moving image file and a camera shake information file of the digital camera in the embodiment.

符号の説明Explanation of symbols

1…デジタルカメラ、2…ボディ、3…撮影レンズ、4…セルフタイマランプ、5…光学ファインダ窓、6…ストロボ発光部、7…マイクロホン部、8…電源キー、9…シャッタキー、10…撮影モードキー、11…再生モードキー、12…光学ファインダ、13…スピーカ部、14…マクロキー、15…ストロボキー、16…メニュー(MENU)キー、17…リングキー、18…セット(SET)キー、19…表示部、20a,20b…ズームキー、21…モータ、22…レンズ光学系、23…CCD、24…タイミング発生器(TG)、25…ドライバ、26…サンプルホールド回路(S/H)、27…A/D変換器、28…画像処理回路、29…DMAコントローラ、30…DRAMインタフェース(I/F)、31…DRAM、32…制御部、32a…設定記憶部、33…VRAMコントローラ、34…VRAM、35…デジタルビデオエンコーダ、36…キー入力部、37…JPEG回路、38…メモリ、39…音声処理部、40…USBインタフェース(I/F)、41…ストロボ駆動部、51…補正指定画面、61…保存方法指定画面、71…手ぶれ追従性と判定用画素割合の設定画面。   DESCRIPTION OF SYMBOLS 1 ... Digital camera, 2 ... Body, 3 ... Shooting lens, 4 ... Self-timer lamp, 5 ... Optical finder window, 6 ... Strobe light emission part, 7 ... Microphone part, 8 ... Power key, 9 ... Shutter key, 10 ... Photographing Mode key, 11 ... Playback mode key, 12 ... Optical viewfinder, 13 ... Speaker unit, 14 ... Macro key, 15 ... Strobe key, 16 ... Menu (MENU) key, 17 ... Ring key, 18 ... Set key, DESCRIPTION OF SYMBOLS 19 ... Display part, 20a, 20b ... Zoom key, 21 ... Motor, 22 ... Lens optical system, 23 ... CCD, 24 ... Timing generator (TG), 25 ... Driver, 26 ... Sample hold circuit (S / H), 27 A / D converter, 28 Image processing circuit, 29 DMA controller, 30 DRAM interface (I / F), 31 DRAM, 3 Control unit 32a Setting storage unit 33 VRAM controller 34 VRAM 35 Digital video encoder 36 Key input unit 37 JPEG circuit 38 Memory 39 Audio processing unit 40 USB interface (I / F), 41... Strobe drive unit, 51... Correction designation screen, 61... Storage method designation screen, 71.

Claims (12)

撮像素子から連続的に出力される各フレームの画像データを動画データとして手ぶれ補正に伴う画素欠落のない状態で取得する動画撮影手段と、
この動画撮影手段によって得られた動画データに対する手ぶれ情報を生成する手ぶれ情報生成手段と、
手ぶれ補正するか否かを指定する補正指定手段と、
この補正指定手段による手ぶれ補正の指定に応じて、前記手ぶれ情報生成手段で生成された手ぶれ情報に基づいて前記動画撮影手段により取得された動画データの手ぶれ補正処理を行い、その手ぶれ補正後の動画データを再生表示または再記録する動画処理手段と
を具備したことを特徴とする撮像装置。
Moving image capturing means for acquiring image data of each frame continuously output from the image sensor as moving image data in a state in which there is no pixel loss associated with camera shake correction;
Camera shake information generating means for generating camera shake information for the video data obtained by the video shooting means;
Correction designation means for designating whether or not to correct camera shake;
In accordance with the camera shake correction designation by the correction designating means, the camera shake correction processing is performed on the moving image data acquired by the moving image photographing means based on the camera shake information generated by the camera shake information generating means, and the moving image after the camera shake correction is performed. An imaging apparatus comprising: moving image processing means for reproducing and displaying or re-recording data.
前記動画撮影手段により取得された動画データを、少なくとも記録状態の変更が指示されるまでの間、手ぶれ補正に伴う画素欠落のない状態で記録保存する記録手段を備え、
前記補正指定手段は、前記動画撮影手段による動画データの取得後の任意のタイミングで当該動画データを手ぶれ補正するか否かをユーザに指定させ、
前記動画処理手段は、前記補正指定手段により手ぶれ補正することが指定された場合に、前記記録手段に手ぶれ補正に伴う画素欠落のない状態で記録保存されている動画データに対して手ぶれ補正処理を行うことを特徴とする請求項1記載の撮像装置。
Recording means for recording and storing the moving image data acquired by the moving image photographing unit at least until a change of the recording state is instructed, in a state in which there is no pixel loss associated with camera shake correction,
The correction designating unit causes the user to designate whether or not to correct the moving image data at any timing after the moving image data is acquired by the moving image shooting unit,
The moving image processing means performs a camera shake correction process on the moving image data recorded and stored in the recording means in a state in which no pixels are lost due to the camera shake correction when the camera shake correction is specified by the correction specifying means. The imaging device according to claim 1, wherein the imaging device is performed.
前記手ぶれ情報生成手段によって生成された手ぶれ情報を前記動画撮影手段により取得された動画データと関連付けて記録保存する記録手段を備え、
前記補正指定手段は、前記記録手段に記録保存されている任意の動画データに対して手ぶれ補正するか否かを指定し、
前記動画処理手段は、前記補正指定手段により手ぶれ補正すると指定された動画データに対して、該動画データに対応して前記記録手段に記録保存されている手ぶれ情報に基づいて手ぶれ補正処理を行うことを特徴とする請求項1記載の撮像装置。
A recording unit that records and stores the camera shake information generated by the camera shake information generating unit in association with the moving image data acquired by the moving image capturing unit;
The correction designating unit designates whether or not to correct camera shake for any moving image data recorded and stored in the recording unit;
The moving image processing unit performs a camera shake correction process on the moving image data designated to be corrected by the correction designating unit based on camera shake information recorded and stored in the recording unit corresponding to the moving image data. The imaging apparatus according to claim 1.
前記補正指定手段は、手ぶれ補正の度合いを指定することを含み、
前記動画処理手段は、前記補正指定手段によって指定された手ぶれ補正の度合いに応じて前記動画データの補正後の手ぶれ状態が変化するように前記手ぶれ補正処理を制御することを特徴とする請求項1乃至3のいずれか1つに記載の撮像装置。
The correction designating means includes designating a degree of camera shake correction;
The image processing unit controls the camera shake correction processing so that a camera shake state after the correction of the moving image data changes according to a degree of camera shake correction specified by the correction specifying unit. The imaging device according to any one of 1 to 3.
再記録時における動画データの保存方法を指定する保存方法指定手段を備え、
前記動画処理手段は、前記保存方法指定手段によって指定された保存方法に従って、前記補正後の動画データを前記記録手段に再記録することを特徴とする請求項2または3記載の撮像装置。
A storage method specifying means for specifying a storage method of moving image data at the time of re-recording is provided.
4. The imaging apparatus according to claim 2, wherein the moving image processing unit re-records the corrected moving image data in the recording unit in accordance with a storing method designated by the saving method designating unit.
前記保存方法には、上書き保存と新規保存が含まれ、
前記動画処理手段は、前記保存方法指定手段によって前記上書き保存が指定された場合には前記補正後の動画データを前記記録手段に元の動画データに代わって再記録し、前記新規保存が指定された場合には前記補正後の動画データを前記記録手段の元の動画データとは別の領域に再記録することを特徴とする請求項5記載の撮像装置。
The saving method includes overwrite saving and new saving,
The moving image processing unit re-records the corrected moving image data in the recording unit in place of the original moving image data when the overwrite method is designated by the saving method designating unit, and the new saving is designated. 6. The imaging apparatus according to claim 5, wherein the corrected moving image data is re-recorded in a region different from the original moving image data of the recording means.
動きの異なる複数の被写体が撮影された動画データ上において、手ぶれを判定するための基準となる基準被写体を特定する特定手段を備え、
前記手ぶれ情報生成手段は、前記特定手段によって特定された基準被写体の動きに着目した手ぶれ情報を生成することを特徴とする請求項1記載の撮像装置。
On the video data in which a plurality of subjects having different movements are photographed, a specifying unit for specifying a reference subject serving as a reference for determining camera shake is provided.
The imaging apparatus according to claim 1, wherein the camera shake information generating unit generates camera shake information focusing on a movement of a reference subject specified by the specifying unit.
被写体判定のための画素割合を指定する画素割合指定手段を備え、
前記特定手段は、前記画素割合指定手段によって指定された画素割合に基づいて前記基準被写体を特定することを特徴とする請求項7記載の撮像装置。
A pixel ratio specifying means for specifying a pixel ratio for subject determination;
8. The imaging apparatus according to claim 7, wherein the specifying unit specifies the reference subject based on the pixel ratio specified by the pixel ratio specifying unit.
撮像素子から連続的に出力される各フレームの画像データを動画データとして手ぶれ補正に伴う画素欠落のない状態で取得するステップと、
前記動画データの手ぶれの動きを示す手ぶれ情報を生成するステップと、
手ぶれ補正するか否かを指定するステップと、
手ぶれ補正が指定された場合に、前記手ぶれ情報に基づいて前記動画データの手ぶれ補正処理を行い、その手ぶれ補正後の動画データを再生表示または再記録するステップと
を含むことを特徴とする動画処理方法。
Acquiring image data of each frame continuously output from the image sensor as moving image data in a state where there is no pixel loss associated with camera shake correction;
Generating camera shake information indicating the movement of the video data camera shake;
A step for specifying whether or not to correct camera shake;
Moving image processing based on the camera shake information when the camera shake correction is designated, and reproducing and displaying or re-recording the moving image data after the camera shake correction. Method.
動画撮影機能を備えた撮像装置に搭載されたコンピュータによって実行されるプログラムであって、
前記コンピュータに、
撮像素子から連続的に出力される各フレームの画像データを動画データとして手ぶれ補正に伴う画素欠落のない状態で取得する機能と、
前記動画データの手ぶれの動きを示す手ぶれ情報を生成する機能と、
手ぶれ補正するか否かを指定する機能と、
手ぶれ補正が指定された場合に、前記手ぶれ情報に基づいて前記動画データの手ぶれ補正処理を行い、その手ぶれ補正後の動画データを再生表示または再記録する機能と
を実現させることを特徴とするプログラム。
A program executed by a computer mounted on an imaging device having a video shooting function,
In the computer,
A function of acquiring image data of each frame continuously output from the image sensor as moving image data in a state where there is no pixel loss accompanying camera shake correction,
A function of generating camera shake information indicating movement of camera shake of the video data;
A function to specify whether or not to correct camera shake,
A program for performing a camera shake correction process on the moving image data based on the camera shake information and reproducing and displaying or re-recording the moving image data after the camera shake correction when camera shake correction is designated. .
撮像素子から連続的に出力される各フレームの画像データを動画データとして手ぶれ補正に伴う画素欠落のない状態で取得するステップと、
前記動画データの手ぶれの動きを示す手ぶれ情報を生成するステップと、
この生成された手ぶれ情報を動画データと関連付けて所定のメモリに記録するステップと、
手ぶれ補正するか否かを指定するステップと、
手ぶれ補正が指定された場合に、前記メモリに記録された動画データに対応した手ぶれ情報に基づいて当該動画データの手ぶれ補正処理を行い、その手ぶれ補正後の動画データを再生表示または再記録するステップと
を含むことを特徴とする動画処理方法。
Acquiring image data of each frame continuously output from the image sensor as moving image data in a state where there is no pixel loss associated with camera shake correction;
Generating camera shake information indicating the movement of the video data camera shake;
Recording the generated camera shake information in a predetermined memory in association with the video data;
A step for specifying whether or not to correct camera shake;
A step of performing camera shake correction processing of the moving image data based on camera shake information corresponding to the moving image data recorded in the memory, and reproducing and displaying or rerecording the moving image data after the camera shake correction when camera shake correction is designated A moving image processing method comprising: and.
動画撮影機能を備えた撮像装置に搭載されたコンピュータによって実行されるプログラムであって、
前記コンピュータに、
撮像素子から連続的に出力される各フレームの画像データを動画データとして手ぶれ補正に伴う画素欠落のない状態で取得する機能と、
前記動画データの手ぶれの動きを示す手ぶれ情報を生成する機能と、
この生成された手ぶれ情報を動画データと関連付けて所定のメモリに記録する機能と、
手ぶれ補正するか否かを指定する機能と、
手ぶれ補正が指定された場合に、前記メモリに記録された動画データに対応した手ぶれ情報に基づいて当該動画データの手ぶれ補正処理を行い、その手ぶれ補正後の動画データを再生表示または再記録する機能と
を実現させることを特徴とするプログラム。
A program executed by a computer mounted on an imaging device having a video shooting function,
In the computer,
A function of acquiring image data of each frame continuously output from the image sensor as moving image data in a state where there is no pixel loss accompanying camera shake correction,
A function of generating camera shake information indicating movement of camera shake of the video data;
A function of recording the generated camera shake information in a predetermined memory in association with the video data;
A function to specify whether or not to correct camera shake,
A function for performing camera shake correction processing of the moving image data based on the camera shake information corresponding to the moving image data recorded in the memory, and reproducing and displaying or rerecording the moving image data after the camera shake correction when camera shake correction is designated. A program characterized by realizing and.
JP2005138633A 2005-05-11 2005-05-11 Movie processing apparatus, movie processing method and program Expired - Fee Related JP4525459B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005138633A JP4525459B2 (en) 2005-05-11 2005-05-11 Movie processing apparatus, movie processing method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005138633A JP4525459B2 (en) 2005-05-11 2005-05-11 Movie processing apparatus, movie processing method and program

Publications (2)

Publication Number Publication Date
JP2006319541A true JP2006319541A (en) 2006-11-24
JP4525459B2 JP4525459B2 (en) 2010-08-18

Family

ID=37539826

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005138633A Expired - Fee Related JP4525459B2 (en) 2005-05-11 2005-05-11 Movie processing apparatus, movie processing method and program

Country Status (1)

Country Link
JP (1) JP4525459B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009152672A (en) * 2007-12-18 2009-07-09 Samsung Techwin Co Ltd Recording apparatus, reproducing apparatus, recording method, reproducing method, and program
JP2012142908A (en) * 2011-01-04 2012-07-26 Aptos Technology Inc Video playback device and method
WO2016002322A1 (en) * 2014-07-02 2016-01-07 ソニー株式会社 Video-processing device, video processing method, and program
JP2016058876A (en) * 2014-09-09 2016-04-21 キヤノン株式会社 Imaging apparatus, control method thereof, and imaging system
JPWO2018150711A1 (en) * 2017-02-15 2019-11-07 シャープ株式会社 Display control device, display control device control method, and control program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06189176A (en) * 1992-12-22 1994-07-08 Fuji Photo Film Co Ltd System for camera shake correction
JPH0795535A (en) * 1993-09-27 1995-04-07 Hitachi Ltd Image pickup recording and reproducing device
JPH099050A (en) * 1995-06-19 1997-01-10 Olympus Optical Co Ltd Picture processor
JPH11187303A (en) * 1997-12-22 1999-07-09 Canon Inc Device for processing image, its method and record medium
JP2002359768A (en) * 2001-05-30 2002-12-13 Matsushita Electric Ind Co Ltd Device and method for correcting motion of image
JP2004013461A (en) * 2002-06-06 2004-01-15 Fuji Photo Film Co Ltd Image processing system and digital imaging apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06189176A (en) * 1992-12-22 1994-07-08 Fuji Photo Film Co Ltd System for camera shake correction
JPH0795535A (en) * 1993-09-27 1995-04-07 Hitachi Ltd Image pickup recording and reproducing device
JPH099050A (en) * 1995-06-19 1997-01-10 Olympus Optical Co Ltd Picture processor
JPH11187303A (en) * 1997-12-22 1999-07-09 Canon Inc Device for processing image, its method and record medium
JP2002359768A (en) * 2001-05-30 2002-12-13 Matsushita Electric Ind Co Ltd Device and method for correcting motion of image
JP2004013461A (en) * 2002-06-06 2004-01-15 Fuji Photo Film Co Ltd Image processing system and digital imaging apparatus

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009152672A (en) * 2007-12-18 2009-07-09 Samsung Techwin Co Ltd Recording apparatus, reproducing apparatus, recording method, reproducing method, and program
US8379093B2 (en) 2007-12-18 2013-02-19 Samsung Electronics Co., Ltd. Recording and reproduction apparatus and methods, and a recording medium storing a computer program for executing the methods
JP2012142908A (en) * 2011-01-04 2012-07-26 Aptos Technology Inc Video playback device and method
US10148894B2 (en) 2014-07-02 2018-12-04 Sony Corporation Image processing device, image processing method, and program
JPWO2016002322A1 (en) * 2014-07-02 2017-04-27 ソニー株式会社 Image processing apparatus, image processing method, and program
WO2016002322A1 (en) * 2014-07-02 2016-01-07 ソニー株式会社 Video-processing device, video processing method, and program
CN110418045A (en) * 2014-07-02 2019-11-05 索尼公司 Image processing apparatus, image processing method and computer-readable medium
JP2020108175A (en) * 2014-07-02 2020-07-09 ソニー株式会社 Image processing device, image processing method, and program
US11044419B2 (en) 2014-07-02 2021-06-22 Sony Corporation Image processing device, imaging processing method, and program
CN110418045B (en) * 2014-07-02 2021-06-29 索尼公司 Image processing apparatus, image processing method, and computer readable medium
JP7143359B2 (en) 2014-07-02 2022-09-28 ソニーグループ株式会社 Image processing device, image processing method, and program
JP2016058876A (en) * 2014-09-09 2016-04-21 キヤノン株式会社 Imaging apparatus, control method thereof, and imaging system
JPWO2018150711A1 (en) * 2017-02-15 2019-11-07 シャープ株式会社 Display control device, display control device control method, and control program

Also Published As

Publication number Publication date
JP4525459B2 (en) 2010-08-18

Similar Documents

Publication Publication Date Title
JP4569389B2 (en) Imaging apparatus, image processing method, and program
US7728886B2 (en) Image recording apparatus and method
JP4035543B2 (en) Imaging device
JP4639965B2 (en) Imaging apparatus, image processing method, and program
JP2007208849A (en) Moving picture reproducing device and its program
JP4556195B2 (en) Imaging device, moving image playback device, and program
JP2008022306A (en) Imaging device and program thereof
JP2009159559A (en) Image capturing device and program thereof
JP4525459B2 (en) Movie processing apparatus, movie processing method and program
JP2004222236A (en) Image pickup device, image editing method and program
JP4324728B2 (en) Imaging apparatus, captured image processing method and program used in the imaging apparatus
JP4349288B2 (en) Imaging apparatus, image processing method, and program
JP4259339B2 (en) Imaging apparatus, imaging condition setting method and program
JP2010021710A (en) Imaging device, image processor, and program
JP4742296B2 (en) Imaging apparatus, composite image creation method, and program
JP4345515B2 (en) Imaging apparatus and program
JP4535089B2 (en) Imaging apparatus, image processing method, and program
JP4360395B2 (en) Information processing device
JP2006186930A (en) Imaging device, image processing method and program
JP4807446B2 (en) Imaging apparatus, recording control method, and program
JP2006094200A (en) Imaging apparatus, focusing display method, and program
JP2003061103A (en) Image pickup device, adjustment method of white balance, and its operation processing program
JP2005347885A (en) Imaging unit, photographing range adjustment method, and program
US8605191B2 (en) Imaging device
JP6090485B2 (en) Imaging apparatus, imaging control method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080417

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100216

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100409

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100524

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

Free format text: PAYMENT UNTIL: 20130611

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4525459

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees