JP2018195864A - Control device, imaging device, control method, program, and storage medium - Google Patents

Control device, imaging device, control method, program, and storage medium Download PDF

Info

Publication number
JP2018195864A
JP2018195864A JP2017095247A JP2017095247A JP2018195864A JP 2018195864 A JP2018195864 A JP 2018195864A JP 2017095247 A JP2017095247 A JP 2017095247A JP 2017095247 A JP2017095247 A JP 2017095247A JP 2018195864 A JP2018195864 A JP 2018195864A
Authority
JP
Japan
Prior art keywords
amount
shake
video
shaking
effect
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
JP2017095247A
Other languages
Japanese (ja)
Other versions
JP6866226B2 (en
Inventor
昇 大森
Noboru Omori
昇 大森
智裕 関口
Tomohiro Sekiguchi
智裕 関口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2017095247A priority Critical patent/JP6866226B2/en
Publication of JP2018195864A publication Critical patent/JP2018195864A/en
Application granted granted Critical
Publication of JP6866226B2 publication Critical patent/JP6866226B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

To provide a control device capable of performing correct shake correction when reproducing a video to which an intentional longitudinal vibration is added.SOLUTION: A control device (100) includes; shake amount calculation means (123, 124) for calculating shake amounts in a first direction and a second direction when capturing an image; recording control means (110, 125, 126) for performing recording control relating to the shake amount calculated by the shake amount calculating means; and shaking effect means (105) for adding a shaking effect in the first direction to the video. In accordance with whether the shaking effect means adds a shaking effect to the video or not, recording control on the shake amount in the first direction is changed by the recording control means.SELECTED DRAWING: Figure 1

Description

本発明は、意図的な縦揺れを加えた映像を記録および再生する撮像装置に関する。   The present invention relates to an imaging apparatus that records and reproduces video with intentional pitching added.

ビデオカメラ等の映像記録装置を用いて映像を記録する際、手振れなどによる装置の振れが原因で記録映像が振れる場合がある。このような振れを映像の再生時に補正するため、特許文献1には、映像の振れを表す動きベクトル量を取得し、動きベクトル量に応じて映像の部分領域を選択して拡大する技術が開示されている。特許文献2には、映像の記録時に装置の振れを角速度センサで検出し、角速度に基づく振れ情報を映像と共に記録し、映像の再生時に当該振れ情報を利用して振れを補正する技術が開示されている。特許文献3には、映像表現の一つとして、意図的に縦揺れを加えた映像を記録する技術が開示されている。   When video is recorded using a video recording device such as a video camera, the recorded video may be shaken due to shaking of the device due to camera shake or the like. In order to correct such shake at the time of video playback, Patent Document 1 discloses a technique for acquiring a motion vector amount representing video shake and selecting and enlarging a video partial region according to the motion vector amount. Has been. Japanese Patent Application Laid-Open No. 2004-151561 discloses a technique for detecting shake of the apparatus with an angular velocity sensor during video recording, recording shake information based on the angular velocity together with the video, and correcting the shake using the shake information during video playback. ing. Patent Document 3 discloses a technique for recording a video that is intentionally pitched as one of video expressions.

特開平7−143380号公報JP-A-7-143380 特開平10−42233号公報Japanese Patent Laid-Open No. 10-42233 特開2013−145519号公報JP 2013-145519 A

しかしながら、従来技術の撮像装置では、意図的な縦揺れを加えた映像に対して正しい振れ補正量を決定できない場合がある。撮像装置は、例えば意図的に加えた縦揺れを手振れであると誤って認識し、本来補正すべきではない振れを補正してしまう可能性がある。その結果、不自然な画角変動が起きてしまう。   However, there are cases where the image pickup apparatus of the prior art cannot determine a correct shake correction amount for an image with intentional pitching added. For example, there is a possibility that the image pickup apparatus erroneously recognizes the intentionally added pitching as a hand shake and corrects the shake that should not be corrected. As a result, unnatural field angle fluctuations occur.

そこで本発明は、意図的な縦揺れを加えた映像を再生する際に正しい振れ補正を行うことが可能な制御装置、撮像装置、制御方法、プログラム、および、記憶媒体を提供することを目的とする。   Therefore, an object of the present invention is to provide a control device, an imaging device, a control method, a program, and a storage medium capable of performing correct shake correction when reproducing an image with intentional pitching. To do.

本発明の一側面としての制御装置は、映像を撮像する際の第一方向および第二方向のそれぞれの振れ量を算出する振れ量算出手段と、前記振れ量算出手段により算出された前記振れ量に関する記録制御を行う記録制御手段と、前記映像に前記第一方向の揺れ効果を付加する揺れ効果手段とを有し、前記記録制御手段は、前記揺れ効果手段が前記映像に前記揺れ効果を付加しているか否かに応じて、前記第一方向の前記振れ量に関する記録制御を変更する。   The control device according to one aspect of the present invention includes a shake amount calculation unit that calculates a shake amount in each of the first direction and the second direction when capturing an image, and the shake amount calculated by the shake amount calculation unit. Recording control means for performing recording control on the video, and shaking effect means for adding the shaking effect in the first direction to the video, wherein the shaking control means adds the shaking effect to the video. Depending on whether or not, the recording control relating to the shake amount in the first direction is changed.

本発明の他の側面としての制御装置は、映像に第一方向の揺れ効果を付加する揺れ効果手段と、前記映像に前記揺れ効果が付加されている期間を取得する揺れ期間取得手段と、前記期間に関するメタデータを設定するメタデータ設定手段と、前記映像および前記メタデータを記録媒体に記録する記録制御手段とを有する。   A control device according to another aspect of the present invention includes a shaking effect unit that adds a shaking effect in a first direction to a video, a shaking period acquisition unit that acquires a period during which the shaking effect is added to the video, Metadata setting means for setting metadata relating to a period, and recording control means for recording the video and the metadata on a recording medium.

本発明の他の側面としての制御装置は、映像を撮像する際の第一方向および第二方向のそれぞれの振れ量を算出する振れ量算出手段と、前記振れ量算出手段により算出された前記振れ量に関する記録制御を行う記録制御手段と、前記映像に前記第一方向の揺れ効果を付加する揺れ効果手段と、前記揺れ効果手段により前記映像に付加された前記揺れ効果の揺れ量を算出する揺れ量算出手段とを有し、前記記録制御手段は、前記揺れ効果手段が前記映像に前記揺れ効果を付加しているか否かに応じて、前記揺れ量に関する記録制御を変更する。   The control device according to another aspect of the present invention includes a shake amount calculation unit that calculates a shake amount in each of the first direction and the second direction when capturing an image, and the shake calculated by the shake amount calculation unit. Recording control means for performing recording control on the amount, shaking effect means for adding the shaking effect in the first direction to the video, and shaking for calculating the shaking amount of the shaking effect added to the video by the shaking effect means Amount recording means, and the recording control means changes recording control relating to the amount of shaking depending on whether or not the shaking effect means adds the shaking effect to the video.

本発明の他の側面としての撮像装置は、撮像光学系を介して形成された光学像を光電変換する撮像素子と前記制御装置とを有する。   An imaging device as another aspect of the present invention includes an imaging device that photoelectrically converts an optical image formed through an imaging optical system and the control device.

本発明の他の側面としての制御方法は、映像を撮像する際の第一方向および第二方向のそれぞれの振れ量を算出するステップと、算出された前記振れ量に関する記録制御を行うステップと、前記映像に前記第一方向の揺れ効果を付加するステップと、を有し、前記記録制御を行うステップにおいて、前記映像に前記揺れ効果を付加しているか否かに応じて前記第一方向の前記振れ量に関する記録制御を変更する。   A control method according to another aspect of the present invention includes a step of calculating a shake amount in each of the first direction and the second direction when capturing an image, a step of performing recording control relating to the calculated shake amount, Adding a shaking effect in the first direction to the video, and performing the recording control in the step of performing the recording control, depending on whether or not the shaking effect is added to the video. Change the recording control related to the shake amount.

本発明の他の側面としてのプログラムは、前記制御方法をコンピュータに実行させる。   A program according to another aspect of the present invention causes a computer to execute the control method.

本発明の他の側面としての記憶媒体は、前記プログラムを記憶している。   A storage medium according to another aspect of the present invention stores the program.

本発明の他の目的及び特徴は、以下の実施形態において説明される。   Other objects and features of the invention are described in the following embodiments.

本発明によれば、意図的な縦揺れを加えた映像を再生する際に正しい振れ補正を行うことが可能な制御装置、撮像装置、制御方法、プログラム、および、記憶媒体を提供することができる。   According to the present invention, it is possible to provide a control device, an imaging device, a control method, a program, and a storage medium capable of performing correct shake correction when reproducing an image with intentional pitching. .

第1の実施形態における撮像装置のブロック図である。It is a block diagram of the imaging device in a 1st embodiment. 第1の実施形態における映像記録処理のフローチャートである。It is a flowchart of the video recording process in 1st Embodiment. 第1の実施形態における映像記録処理の概念図である。It is a conceptual diagram of the video recording process in 1st Embodiment. 第2の実施形態における撮像装置のブロック図である。It is a block diagram of the imaging device in 2nd Embodiment. 第2の実施形態における映像記録処理のフローチャートである。It is a flowchart of the video recording process in 2nd Embodiment. 第2の実施形態における映像記録処理の概念図である。It is a conceptual diagram of the video recording process in 2nd Embodiment. 第2の実施形態における映像記録処理の説明図である。It is explanatory drawing of the video recording process in 2nd Embodiment. 第3および第4の実施形態における撮像装置のブロック図である。It is a block diagram of the imaging device in 3rd and 4th embodiment. 第3の実施形態における映像記録処理のフローチャートである。It is a flowchart of the video recording process in 3rd Embodiment. 第3の実施形態における映像記録処理の概念図である。It is a conceptual diagram of the video recording process in 3rd Embodiment. 第3および第4の実施形態における撮像装置のブロック図である。It is a block diagram of the imaging device in 3rd and 4th embodiment. 第3の実施形態における映像再生処理のフローチャートである。It is a flowchart of the video reproduction process in 3rd Embodiment. 第4の実施形態における映像再生処理のフローチャートである。It is a flowchart of the video reproduction process in 4th Embodiment. 第5および第6の実施形態における撮像装置のブロック図である。It is a block diagram of the imaging device in 5th and 6th embodiment. 第5および第6の実施形態における映像記録処理のフローチャートである。It is a flowchart of the video recording process in 5th and 6th embodiment. 第5および第6の実施形態における映像記録処理の概念図である。It is a conceptual diagram of the video recording process in 5th and 6th embodiment. 第5および第6の実施形態における撮像装置のブロック図である。It is a block diagram of the imaging device in 5th and 6th embodiment. 第5の実施形態における映像再生処理のフローチャートである。It is a flowchart of the video reproduction process in 5th Embodiment. 第6の実施形態における映像再生処理のフローチャートである。It is a flowchart of the image | video reproduction | regeneration processing in 6th Embodiment.

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

<第1の実施形態>
まず、図1を参照して、本発明の第1の実施形態における撮像装置の構成について説明する。図1は、本実施形態における撮像装置100(ビデオカメラなどの映像記録装置)のブロック図である。
<First Embodiment>
First, the configuration of the imaging apparatus according to the first embodiment of the present invention will be described with reference to FIG. FIG. 1 is a block diagram of an imaging apparatus 100 (video recording apparatus such as a video camera) in the present embodiment.

レンズユニット101(撮像光学系)は、撮像素子102に被写体像を形成(結像)する。撮像素子102は、CCDセンサやCMOSセンサなどを備え、レンズユニット101を介して形成された被写体像(光学像)を光電変換して撮像信号を出力する。アナログ信号処理部103は、撮像素子102から出力された撮像信号に所定の処理を施してアナログ撮像信号を生成する。アナログ信号処理部103は、例えば、CDS(Co−related Double Sampling:相関二重サンプリング)回路、および、AGC(Automatic Gain Control)回路などを含む。カメラ信号処理部104は、A/D変換器を備え、アナログ信号処理部103により生成されたアナログ撮像信号からデジタルビデオ信号を生成する。   The lens unit 101 (imaging optical system) forms (images) a subject image on the image sensor 102. The image sensor 102 includes a CCD sensor, a CMOS sensor, and the like, photoelectrically converts a subject image (optical image) formed via the lens unit 101, and outputs an imaging signal. The analog signal processing unit 103 performs a predetermined process on the imaging signal output from the imaging element 102 to generate an analog imaging signal. The analog signal processing unit 103 includes, for example, a CDS (Co-related Double Sampling) circuit, an AGC (Automatic Gain Control) circuit, and the like. The camera signal processing unit 104 includes an A / D converter, and generates a digital video signal from the analog imaging signal generated by the analog signal processing unit 103.

縦揺れ効果生成部105は、カメラ信号処理部104により生成されたデジタルビデオ信号に対して、予め定められた縦揺れの効果(縦揺れ量)を生成する。符号化部106は、デジタルビデオ信号をMPEG2形式やH.264形式の映像データに符号化し、メモリ107へ出力する。メモリ107は、映像データを格納する揮発性の記録媒体であり、各ブロックが作業用に使用可能となっている。スイッチ操作部108は、ユーザが操作する複数のスイッチを備えている。またスイッチ操作部108は、映像の記録開始/終了を指示するスイッチを含み、当該指示を受け付けてマイコン120に入力する。映像の記録開始/終了の指示に伴い、マイコン120は、後述の図2に示される動作に従って、映像およびメタデータを記録メディア111に出力する。角速度センサ109は、撮像装置100に加わる振れの角速度を検出する。   The pitch effect generating unit 105 generates a predetermined pitch effect (pitch amount) for the digital video signal generated by the camera signal processing unit 104. The encoding unit 106 converts the digital video signal into MPEG2 format or H.264 format. It is encoded into video data in the H.264 format and output to the memory 107. The memory 107 is a volatile recording medium for storing video data, and each block can be used for work. The switch operation unit 108 includes a plurality of switches operated by the user. The switch operation unit 108 includes a switch for instructing start / end of video recording, and receives the instruction and inputs it to the microcomputer 120. In accordance with the instruction to start / end video recording, the microcomputer 120 outputs video and metadata to the recording medium 111 in accordance with the operation shown in FIG. The angular velocity sensor 109 detects the angular velocity of shake applied to the imaging device 100.

記録制御部110は、縦揺れ効果生成部105と、符号化部106と、メモリ107と、記録メディア111と、マイコン120とのインターフェースを有し、データの受け渡しを制御する。記録メディア111は、映像データやメタデータの記録媒体であり、ハードディスク、SSD、もしくはeMMCなどの内蔵メモリ、または、SDカード、CFカード、もしくはCFastカードなどの着脱可能な外部メモリを含む。   The recording control unit 110 has interfaces with a pitching effect generation unit 105, an encoding unit 106, a memory 107, a recording medium 111, and a microcomputer 120, and controls data transfer. The recording medium 111 is a recording medium for video data and metadata, and includes a built-in memory such as a hard disk, SSD, or eMMC, or a removable external memory such as an SD card, CF card, or CFast card.

角速度振れ量取得部122は、角速度センサ109の出力に基づいて、撮像装置100の振れ量である角速度振れ量(角速度情報)を算出する。そして角速度振れ量取得部122は、縦方向および横方向の角速度情報(縦方向と横方向とに分離した振れ情報)を、縦振れ量算出部123および横振れ量算出部124にそれぞれ出力する。動きベクトル量取得部121は、メモリ107に記憶された映像から動きベクトル量を取得する。そして動きベクトル量取得部121は、縦方向および横方向の動きベクトル量(縦方向と横方向とに分離した動きベクトルに関する情報)を、縦振れ量算出部123および横振れ量算出部124にそれぞれ出力する。   Based on the output of the angular velocity sensor 109, the angular velocity shake amount acquisition unit 122 calculates an angular velocity shake amount (angular velocity information) that is a shake amount of the imaging device 100. Then, the angular velocity shake amount acquisition unit 122 outputs the vertical and horizontal angular velocity information (vibration information separated into the vertical direction and the horizontal direction) to the vertical shake amount calculation unit 123 and the horizontal shake amount calculation unit 124, respectively. The motion vector amount acquisition unit 121 acquires a motion vector amount from the video stored in the memory 107. Then, the motion vector amount acquisition unit 121 sends the vertical and horizontal motion vector amounts (information on the motion vectors separated into the vertical direction and the horizontal direction) to the vertical shake amount calculation unit 123 and the horizontal shake amount calculation unit 124, respectively. Output.

縦振れ量算出部123は、角速度振れ量取得部122から出力された縦方向の角速度振れ量(角速度情報)と動きベクトル量取得部121から出力された縦方向の動きベクトル量とに基づいて縦振れ量を算出する。縦振れ量記録部125は、縦振れ量算出部123により算出された縦振れ量を記録する。横振れ量算出部124は、角速度振れ量取得部122から出力された横方向の角速度振れ量(角速度情報)と動きベクトル量取得部121から出力された横方向の動きベクトル量とに基づいて横振れ量を算出する。横振れ量記録部126は、横振れ量算出部123により算出された横振れ量を記録する。縦振れ量記録部125は、縦振れ量算出部123により設定されたデータからなるメタデータを、記録制御部110を介してメモリ107に出力する。横振れ量記録部126は、横振れ量算出部124により設定されたデータからなるメタデータを、記録制御部110を介してメモリ107に出力する。   The vertical shake amount calculation unit 123 performs vertical motion based on the vertical angular velocity shake amount (angular velocity information) output from the angular velocity shake amount acquisition unit 122 and the vertical motion vector amount output from the motion vector amount acquisition unit 121. Calculate the shake amount. The vertical shake amount recording unit 125 records the vertical shake amount calculated by the vertical shake amount calculation unit 123. The lateral shake amount calculation unit 124 generates a lateral motion based on the lateral angular velocity shake amount (angular velocity information) output from the angular velocity shake amount acquisition unit 122 and the horizontal motion vector amount output from the motion vector amount acquisition unit 121. Calculate the shake amount. The lateral shake amount recording unit 126 records the lateral shake amount calculated by the lateral shake amount calculating unit 123. The vertical shake amount recording unit 125 outputs metadata including the data set by the vertical shake amount calculation unit 123 to the memory 107 via the recording control unit 110. The lateral shake amount recording unit 126 outputs metadata including the data set by the lateral shake amount calculation unit 124 to the memory 107 via the recording control unit 110.

次に、図2を参照して、本実施形態における撮像装置100の動作(映像記録処理)を説明する。図2は、本実施形態における映像記録処理のフローチャートである。図2の各ステップは、主に、マイコン120および記録制御部110により実行される。   Next, the operation (video recording process) of the imaging apparatus 100 according to the present embodiment will be described with reference to FIG. FIG. 2 is a flowchart of the video recording process in the present embodiment. Each step in FIG. 2 is mainly executed by the microcomputer 120 and the recording control unit 110.

まずステップS201において、縦振れ量算出部123および横振れ量算出部124は、角速度振れ量(角速度情報)と動きベクトル量とに基づいて、縦振れ量および横振れ量をそれぞれ算出する。続いてステップS202において、記録制御部110は、縦揺れ効果生成部105により縦揺れ効果が生成されているか否か、すなわち縦揺れ量があるか否かを判定する。縦揺れ効果が生成されている場合、ステップS203へ進む。一方、縦揺れ効果が生成されていない場合、ステップS204へ進む。ステップS203において、記録制御部110(またはマイコン120)は、縦振れ量を0に設定する。ステップS204において、記録制御部110は、映像、および、縦振れ量と横振れ量とから構成されるメタデータを、記録メディア111に出力する。   First, in step S201, the vertical shake amount calculation unit 123 and the horizontal shake amount calculation unit 124 calculate the vertical shake amount and the horizontal shake amount based on the angular velocity shake amount (angular velocity information) and the motion vector amount, respectively. Subsequently, in step S202, the recording control unit 110 determines whether a pitching effect is generated by the pitching effect generation unit 105, that is, whether there is a pitching amount. If the pitching effect has been generated, the process proceeds to step S203. On the other hand, if the pitching effect is not generated, the process proceeds to step S204. In step S203, the recording control unit 110 (or the microcomputer 120) sets the vertical shake amount to zero. In step S <b> 204, the recording control unit 110 outputs the video and metadata including the vertical shake amount and the horizontal shake amount to the recording medium 111.

続いてステップS205において、記録制御部110は、マイコン120から映像の記録終了の指示を受けたか否かを判定する。映像の記録終了が指示されていない場合、ステップS201へ戻る。一方、映像の記録終了が指示された場合、ステップS206へ進む。ステップS206において、記録制御部110は、記録メディア111に出力された映像およびメタデータを一つの映像データとしてクローズする。   Subsequently, in step S <b> 205, the recording control unit 110 determines whether or not a video recording end instruction has been received from the microcomputer 120. If the end of video recording has not been instructed, the process returns to step S201. On the other hand, when the end of video recording is instructed, the process proceeds to step S206. In step S206, the recording control unit 110 closes the video and metadata output to the recording medium 111 as one video data.

次に、図3を参照して、本実施形態における映像記録処理の概念について説明する。図3は、映像記録処理の概念図である。図3において、301は、記録メディア111に出力された映像データ(映像およびメタデータ)である。まず、区間T302においては、縦揺れが生成されていないため、図2のステップS201にて設定された縦振れ量がメタデータとして記録される。続いて、区間T303においては、縦揺れが生成されているため、図2のステップS203にて設定された縦振れ量(すなわち、0の縦振れ量)がメタデータとして記録される。続いて、区間T304においては、区間T302と同様に、縦揺れが生成されていないため、図2のステップS201にて設定された縦振れ量がメタデータとして記録される。最後に、記録メディア111に出力された映像およびメタデータを一つの映像データとしてクローズする。   Next, the concept of the video recording process in this embodiment will be described with reference to FIG. FIG. 3 is a conceptual diagram of the video recording process. In FIG. 3, reference numeral 301 denotes video data (video and metadata) output to the recording medium 111. First, in the section T302, since no vertical shake is generated, the vertical shake amount set in step S201 in FIG. 2 is recorded as metadata. Subsequently, since vertical pitch is generated in the section T303, the vertical shake amount set in step S203 in FIG. 2 (that is, zero vertical shake amount) is recorded as metadata. Subsequently, in the section T304, as in the section T302, since no pitch is generated, the amount of vertical shake set in step S201 in FIG. 2 is recorded as metadata. Finally, the video and metadata output to the recording medium 111 are closed as one video data.

このように本実施形態において、制御装置は、振れ量算出手段(縦振れ量算出部123、横振れ量算出部124)、記録制御手段(縦振れ量記録部125、横振れ量記録部126、記録制御部110)、および、揺れ効果手段(縦揺れ効果生成部105)を有する。振れ量算出手段は、映像を撮像する際の第一方向(縦方向)および第二方向(横方向)のそれぞれの振れ量を算出する。記録制御手段は、振れ量算出手段により算出された振れ量に関する記録制御を行う。揺れ効果手段は、映像に第一方向の揺れ効果を付加する。記録制御手段は、揺れ効果手段が映像に揺れ効果を付加しているか否かに応じて、第一方向の振れ量に関する記録制御を変更する。   As described above, in the present embodiment, the control device includes a shake amount calculation unit (vertical shake amount calculation unit 123, horizontal shake amount calculation unit 124), a recording control unit (vertical shake amount recording unit 125, lateral shake amount recording unit 126, A recording control unit 110) and a shaking effect means (pitch effect generating unit 105). The shake amount calculation means calculates the shake amount in each of the first direction (vertical direction) and the second direction (horizontal direction) when capturing an image. The recording control unit performs recording control related to the shake amount calculated by the shake amount calculation unit. The shaking effect means adds a shaking effect in the first direction to the video. The recording control means changes the recording control related to the shake amount in the first direction depending on whether the shaking effect means adds a shaking effect to the video.

好ましくは、記録制御手段は、揺れ効果手段が映像に揺れ効果を付加していない場合、振れ量算出手段により算出された第一方向の振れ量を記録媒体(メモリ107)に記録する。一方、揺れ効果手段が映像に揺れ効果を付加している場合、振れ量算出手段により算出された第一方向の振れ量を低減して記録媒体に記録する。より好ましくは、記録制御手段は、揺れ効果手段が映像に揺れ効果を付加している場合、振れ量算出手段により算出された第一方向の振れ量を0として記録媒体に記録する。   Preferably, the recording control means records the shake amount in the first direction calculated by the shake amount calculation means on the recording medium (memory 107) when the shake effect means does not add a shake effect to the video. On the other hand, when the shake effect means adds a shake effect to the video, the shake amount in the first direction calculated by the shake amount calculation means is reduced and recorded on the recording medium. More preferably, the recording control means records the amount of shake in the first direction calculated by the shake amount calculation means as 0 when the shake effect means adds a shake effect to the video.

本実施形態によれば、生成された縦揺れ効果を考慮した振れ情報(縦揺れ量)を記録することにより、映像を再生する際に正しい振れ補正を行うことができる。   According to the present embodiment, by recording shake information (pitch amount) considering the generated pitch effect, correct shake correction can be performed when playing back an image.

<第2の実施形態>
次に、図4を参照して、本発明の第2の実施形態における撮像装置の構成について説明する。図4は、本実施形態における撮像装置400(映像記録装置)のブロック図である。撮像装置400は、マイコン120に代えて、縦揺れ量取得部401を有するマイコン420を備えている点で、第1の実施形態における撮像装置100と異なる。撮像装置400の他の構成は、撮像装置100と同様であるため、それらの説明を省略する。
<Second Embodiment>
Next, with reference to FIG. 4, the configuration of the imaging apparatus according to the second embodiment of the present invention will be described. FIG. 4 is a block diagram of the imaging apparatus 400 (video recording apparatus) in the present embodiment. The imaging apparatus 400 is different from the imaging apparatus 100 in the first embodiment in that the imaging apparatus 400 includes a microcomputer 420 having a pitching amount acquisition unit 401 instead of the microcomputer 120. Since the other configuration of the imaging apparatus 400 is the same as that of the imaging apparatus 100, description thereof is omitted.

縦揺れ効果生成部105は、デジタルビデオ信号に対して予め定められた縦揺れの効果(縦揺れ量)を生成し、生成した縦揺れ量を縦揺れ量取得部401へ出力する。縦揺れ量取得部401は、縦揺れ効果生成部105から取得した縦揺れ量を縦振れ量算出部123へ出力する。縦振れ量算出部123は、角速度振れ量取得部122から出力された縦方向の角速度振れ量と動きベクトル量取得部121から出力された縦方向の動きベクトル量と縦揺れ量取得部401から出力された縦揺れ量(縦揺れの効果)とに基づいて縦振れ量を算出する。縦振れ量記録部125は、縦振れ量算出部123により算出された縦振れ量を記録する。   The pitch effect generation unit 105 generates a predetermined pitch effect (pitch amount) for the digital video signal, and outputs the generated pitch amount to the pitch amount acquisition unit 401. The pitching amount acquisition unit 401 outputs the pitching amount acquired from the pitching effect generation unit 105 to the pitching amount calculation unit 123. The vertical shake amount calculation unit 123 outputs the vertical angular velocity shake amount output from the angular velocity shake amount acquisition unit 122 and the vertical motion vector amount output from the motion vector amount acquisition unit 121 and the vertical shake amount acquisition unit 401. The vertical shake amount is calculated based on the vertical pitch amount (effect of the vertical shake). The vertical shake amount recording unit 125 records the vertical shake amount calculated by the vertical shake amount calculation unit 123.

次に、図5を参照して、本実施形態における撮像装置400の動作(映像記録処理)を説明する。図5は、本実施形態における映像記録処理のフローチャートである。図5の各ステップは、主に、マイコン420および記録制御部110により実行される。   Next, with reference to FIG. 5, the operation (video recording process) of the imaging apparatus 400 in the present embodiment will be described. FIG. 5 is a flowchart of the video recording process in the present embodiment. Each step in FIG. 5 is mainly executed by the microcomputer 420 and the recording control unit 110.

まずステップS501において、縦振れ量算出部123および横振れ量算出部124は、角速度振れ量(角速度情報)と動きベクトル量とに基づいて、縦振れ量および横振れ量をそれぞれ算出する。続いてステップS502において、記録制御部110は、縦揺れ効果生成部105により縦揺れ効果が生成されているか否か、すなわち縦揺れ量があるか否かを判定する。縦揺れ効果が生成されている場合、ステップS503へ進む。一方、縦揺れ効果が生成されていない場合、ステップS504へ進む。ステップS503において、縦振れ量算出部123は、ステップS501にて算出した縦振れ量から縦揺れ量取得部401により取得された縦揺れ量を引いて得られた量を縦振れ量として設定する。ステップS504において、記録制御部110は、記録開始指示後の映像、および、縦振れ量と横振れ量とから構成されるメタデータを、記録メディア111に出力する。   First, in step S501, the vertical shake amount calculation unit 123 and the horizontal shake amount calculation unit 124 calculate the vertical shake amount and the horizontal shake amount based on the angular velocity shake amount (angular velocity information) and the motion vector amount, respectively. Subsequently, in step S502, the recording control unit 110 determines whether a pitching effect is generated by the pitching effect generation unit 105, that is, whether there is a pitching amount. If the pitching effect has been generated, the process proceeds to step S503. On the other hand, when the pitching effect is not generated, the process proceeds to step S504. In step S503, the vertical shake amount calculation unit 123 sets the amount obtained by subtracting the vertical shake amount acquired by the vertical shake amount acquisition unit 401 from the vertical shake amount calculated in step S501 as the vertical shake amount. In step S <b> 504, the recording control unit 110 outputs, to the recording medium 111, the video that has been instructed to start recording and metadata that includes the vertical shake amount and the horizontal shake amount.

続いてステップS505において、記録制御部110は、マイコン420から映像の記録終了の指示を受けたか否かを判定する。映像の記録終了が指示されていない場合、ステップS501へ戻る。一方、映像の記録終了が指示された場合、ステップS506へ進む。ステップS506において、記録制御部110は、記録メディア111に出力された映像およびメタデータを一つの映像データとしてクローズする。   Subsequently, in step S <b> 505, the recording control unit 110 determines whether or not a video recording end instruction has been received from the microcomputer 420. If the end of video recording has not been instructed, the process returns to step S501. On the other hand, if the end of video recording is instructed, the process proceeds to step S506. In step S506, the recording control unit 110 closes the video and metadata output to the recording medium 111 as one video data.

次に、図6を参照して、本実施形態における映像記録処理の概念について説明する。図6は、映像記録処理の概念図である。図6において、601は、記録メディア111に出力された映像データ(映像およびメタデータ)である。まず、区間T602においては、縦揺れが生成されていないため、図5のステップS501にて設定された縦振れ量がメタデータとして記録される。続いて、区間T603においては、縦揺れが生成されているため、図5のステップS503にて縦振れ量から縦揺れ量を引いて算出された値(縦振れ量)がメタデータとして記録される。続いて、区間T604においては、区間T602と同様に、縦揺れが生成されていないため、図5のステップS501にて設定された縦振れ量がメタデータとして記録される。最後に、記録メディア111に出力された映像およびメタデータを一つの映像データとしてクローズする。   Next, the concept of the video recording process in this embodiment will be described with reference to FIG. FIG. 6 is a conceptual diagram of the video recording process. In FIG. 6, reference numeral 601 denotes video data (video and metadata) output to the recording medium 111. First, in the section T602, since no vertical shake is generated, the vertical shake amount set in step S501 in FIG. 5 is recorded as metadata. Subsequently, since pitch is generated in the section T603, the value (vertical shake amount) calculated by subtracting the pitch amount from the vertical shake amount in step S503 in FIG. 5 is recorded as metadata. . Subsequently, in the section T604, as in the section T602, since the vertical shake is not generated, the vertical shake amount set in step S501 in FIG. 5 is recorded as metadata. Finally, the video and metadata output to the recording medium 111 are closed as one video data.

次に、図7を参照して、本実施形態における映像記録処理(図5のステップS503)について説明する。図7は、映像記録処理の説明図である。縦振れ量および縦揺れ量はそれぞれ、現フレームの画素が前フレームから何画素分縦方向に移動しているかを示す量である。算出した縦振れ量から縦揺れ量を引くことにより、メタデータとして記録する縦振れ量を算出することができる。   Next, the video recording process (step S503 in FIG. 5) in the present embodiment will be described with reference to FIG. FIG. 7 is an explanatory diagram of the video recording process. Each of the vertical shake amount and the vertical shake amount is an amount indicating how many pixels the pixels of the current frame have moved in the vertical direction from the previous frame. By subtracting the vertical shake amount from the calculated vertical shake amount, the vertical shake amount recorded as metadata can be calculated.

本実施形態において、メタデータとして記録する縦振れ量は、以下のように算出することができる。   In the present embodiment, the amount of vertical shake recorded as metadata can be calculated as follows.

縦振れ量−縦揺れ量=メタデータとして記録する縦振れ量
図7中のC701の例では、算出した縦振れ量がマイナス8画素、縦揺れ量がマイナス5画素の場合に、−8−(−5)=−3であるため、記録する縦揺れ量はマイナス3画素となる。この場合、映像は縦方向にマイナス8画素移動している。このため、マイナス3画素分だけ再生防振を行うと、映像はマイナス5画素分だけ移動することとなり、意図した縦揺れ量を得ることができる。
Vertical shake amount−Vertical shake amount = Vertical shake amount recorded as metadata In the example of C701 in FIG. 7, when the calculated vertical shake amount is −8 pixels and the vertical shake amount is −5 pixels, −8− ( Since −5) = − 3, the pitch amount to be recorded is minus 3 pixels. In this case, the image has moved minus 8 pixels in the vertical direction. For this reason, if reproduction anti-vibration is performed for minus 3 pixels, the video moves by minus 5 pixels, and the intended amount of pitching can be obtained.

同様に、C702の例では、算出した縦振れ量がマイナス5画素、縦揺れ量がマイナス8画素の場合、−5−(−8)=3であるため、記録する縦揺れ量はプラス3画素となる。C703の例では、算出した縦振れ量がプラス8画素、縦揺れ量がプラス5画素の場合、8−5=3であるため、記録する縦揺れ量はプラス3画素となる。C704の例では、算出した縦振れ量がプラス5画素、縦揺れ量がプラス8画素の場合、5−8=−3であるため、記録する縦揺れ量はマイナス3画素となる。C705の例では、算出した縦振れ量がマイナス8画素、縦揺れ量がプラス5画素の場合、−8−5=−13であるため、記録する縦揺れ量はマイナス13画素となる。C706の例では、算出した縦振れ量がマイナス5画素、縦揺れ量がプラス8画素の場合、−5−8=−13であるため、記録する縦揺れ量はマイナス13画素となる。C707の例では、算出した縦振れ量がプラス8画素、縦揺れ量がマイナス5画素の場合、8−(−5)=13であるため、記録する縦揺れ量はプラス13画素となる。C708の例では、算出した縦振れ量がプラス5画素、縦揺れ量がマイナス8画素の場合、5−(−8)=13であるため、記録する縦揺れ量はプラス13画素となる。   Similarly, in the example of C702, when the calculated vertical shake amount is −5 pixels and the vertical shake amount is −8 pixels, −5 − (− 8) = 3, so the vertical shake amount to be recorded is +3 pixels. It becomes. In the example of C703, when the calculated vertical shake amount is plus 8 pixels and the pitch amount is plus 5 pixels, 8−5 = 3, and thus the pitch amount to be recorded is plus 3 pixels. In the example of C704, when the calculated vertical shake amount is plus 5 pixels and the pitch amount is plus 8 pixels, since 5-8 = −3, the recorded pitch shake amount is minus 3 pixels. In the example of C705, when the calculated vertical shake amount is minus 8 pixels and the vertical shake amount is plus 5 pixels, −8−5 = −13, so the vertical shake amount to be recorded is minus 13 pixels. In the example of C706, when the calculated vertical shake amount is minus 5 pixels and the pitch amount is plus 8 pixels, −5−8 = −13, and thus the pitch amount to be recorded is minus 13 pixels. In the example of C707, when the calculated vertical shake amount is plus 8 pixels and the pitch shake amount is minus 5 pixels, since 8-(− 5) = 13, the pitch shake amount to be recorded is plus 13 pixels. In the example of C708, when the calculated vertical shake amount is plus 5 pixels and the pitch amount is minus 8 pixels, since 5-(− 8) = 13, the pitch amount to be recorded is plus 13 pixels.

このように本実施形態において、制御装置は、第1の実施形態の制御装置に加えて、揺れ効果手段により映像に付加された揺れ効果の揺れ量を取得する揺れ量取得手段(縦揺れ量取得部401)を有する。記録制御手段は、揺れ効果手段が映像に揺れ効果を付加している場合、振れ量算出手段により算出された第一方向の振れ量から揺れ量を減算して得られた量を記録媒体に記録する。   Thus, in this embodiment, in addition to the control device of the first embodiment, the control device acquires a shake amount acquisition unit (pitch amount acquisition) that acquires a shake amount of the shake effect added to the video by the shake effect unit. Part 401). The recording control means records the amount obtained by subtracting the shake amount from the shake amount in the first direction calculated by the shake amount calculation means on the recording medium when the shake effect means adds a shake effect to the video. To do.

本実施形態によれば、生成された縦揺れ効果を考慮した振れ情報(縦揺れ量)を記録することにより、映像を再生する際に正しい振れ補正を行うことができる。   According to the present embodiment, by recording shake information (pitch amount) considering the generated pitch effect, correct shake correction can be performed when playing back an image.

<第3の実施形態>
次に、図8を参照して、本発明の第3の実施形態における撮像装置の構成について説明する。図8は、本実施形態における撮像装置800(映像記録装置)のブロック図である。撮像装置800は、角速度センサ109が設けられていない点、および、マイコン120に代えてマイコン820を備えている点で、第1の実施形態における撮像装置100と異なる。撮像装置800の他の構成は、撮像装置100と同様であるため、それらの説明を省略する。
<Third Embodiment>
Next, with reference to FIG. 8, the structure of the imaging device in the 3rd Embodiment of this invention is demonstrated. FIG. 8 is a block diagram of the imaging apparatus 800 (video recording apparatus) in the present embodiment. The imaging apparatus 800 is different from the imaging apparatus 100 in the first embodiment in that the angular velocity sensor 109 is not provided and that the microcomputer 820 is provided instead of the microcomputer 120. Since the other configuration of the imaging apparatus 800 is the same as that of the imaging apparatus 100, description thereof is omitted.

マイコン820は、縦揺れ期間取得部821およびメタデータ設定部822を有する。縦揺れ効果生成部105は、デジタルビデオ信号に対して予め定められた縦揺れの効果(縦揺れ量)を生成する。縦揺れ期間取得部821は、縦揺れ効果生成部105から、縦揺れの効果(縦揺れ量)を生成している期間(縦揺れ期間)を取得する。   The microcomputer 820 includes a pitch period acquisition unit 821 and a metadata setting unit 822. The pitch effect generating unit 105 generates a predetermined pitch effect (pitch amount) for the digital video signal. The pitching period acquisition unit 821 acquires a period (pitch period) during which a pitching effect (pitch amount) is generated from the pitching effect generation unit 105.

記録制御部110は、縦揺れ効果生成部105と、符号化部106と、メモリ107と、メタデータ設定部822と、記録メディア111とのインターフェースを有し、マイコン820の制御によりデータの受け渡しを制御する。メモリ107は、符号化部106により符号化された映像を、数秒分保持するバッファとして機能する。またメモリ107は、後述のメタデータ設定部822から出力されるメタデータを保持するバッファとしても機能する。スイッチ操作部108は、ユーザが操作する複数のスイッチを備える操作部であり、映像の記録開始/終了を指示するスイッチを含み、当該指示を受け付けてマイコン112に入力する。映像の記録開始/終了の指示に伴い、マイコン820は後述する図9のフローチャートに従って映像およびメタデータを記録メディア111に出力する。   The recording control unit 110 has interfaces with a pitching effect generation unit 105, an encoding unit 106, a memory 107, a metadata setting unit 822, and a recording medium 111, and exchanges data under the control of the microcomputer 820. Control. The memory 107 functions as a buffer that holds the video encoded by the encoding unit 106 for several seconds. The memory 107 also functions as a buffer that holds metadata output from a metadata setting unit 822 described later. The switch operation unit 108 is an operation unit including a plurality of switches operated by a user, includes a switch for instructing start / end of video recording, receives the instruction, and inputs the instruction to the microcomputer 112. In response to the instruction to start / end video recording, the microcomputer 820 outputs video and metadata to the recording medium 111 in accordance with a flowchart of FIG.

縦揺れ期間取得部821は、縦揺れ効果生成部105からデジタルビデオ信号に対して縦揺れ効果を付与した期間を取得し、その期間をメタデータ設定部822に出力(設定)する。メタデータ設定部822は、設定されたデータから成るメタデータを、記録制御部110を介してメモリ107に出力する。   The pitch period acquisition unit 821 acquires a period in which the pitch effect is applied to the digital video signal from the pitch effect generation unit 105 and outputs (sets) the period to the metadata setting unit 822. The metadata setting unit 822 outputs metadata including the set data to the memory 107 via the recording control unit 110.

次に、図9を参照して、本実施形態における撮像装置800の動作(映像記録処理)を説明する。図9は、本実施形態における映像記録処理のフローチャートである。図9の各ステップは、主に、マイコン820および記録制御部110により実行される。   Next, with reference to FIG. 9, the operation (video recording process) of the imaging apparatus 800 in the present embodiment will be described. FIG. 9 is a flowchart of the video recording process in the present embodiment. Each step in FIG. 9 is mainly executed by the microcomputer 820 and the recording control unit 110.

まずステップS901において、マイコン820(縦揺れ期間取得部821、メタデータ設定部822)は、縦揺れ効果生成部105により意図的に縦揺れが加えられているか否かを判定する。意図的な揺れが加えられている場合、ステップS902へ進む。ステップS902において、マイコン820は、縦揺れ付与期間としてメタデータに記録する変数Flagを「1」に設定する。一方、ステップS901にて意図的な揺れが加えられていない場合、ステップS903へ進む。ステップS903において、マイコン820は、縦揺れ付与期間としてメタデータに記録する変数Flagを「0」に設定する。   First, in step S <b> 901, the microcomputer 820 (pitch period acquisition unit 821 and metadata setting unit 822) determines whether or not pitching is intentionally applied by the pitching effect generation unit 105. If intentional shaking is applied, the process proceeds to step S902. In step S902, the microcomputer 820 sets the variable Flag to be recorded in the metadata as the pitch application period to “1”. On the other hand, if no intentional shaking is applied in step S901, the process proceeds to step S903. In step S903, the microcomputer 820 sets the variable Flag recorded in the metadata as the pitching imparting period to “0”.

続いてステップS904において、記録制御部110は、映像、および縦揺れ付与期間を示すメタデータとして変数Flagの値を記録メディア111に出力する。   Subsequently, in step S <b> 904, the recording control unit 110 outputs the value of the variable Flag to the recording medium 111 as metadata indicating the video and the pitch application period.

続いてステップS905において、記録制御部110は、マイコン820から映像の記録終了の指示を受けたか否かを判定する。映像の記録終了が指示されていない場合、ステップS901へ戻る。一方、映像の記録終了が指示された場合、ステップS906へ進む。ステップS906において、記録制御部110は、記録メディア111に出力された映像およびメタデータを一つの映像データとしてクローズする。   Subsequently, in step S <b> 905, the recording control unit 110 determines whether an instruction to end video recording has been received from the microcomputer 820. If the end of video recording has not been instructed, the process returns to step S901. On the other hand, if the end of video recording is instructed, the process proceeds to step S906. In step S906, the recording control unit 110 closes the video and metadata output to the recording medium 111 as one video data.

次に、図10を参照して、本実施形態における映像記録処理の概念について説明する。図10は、映像記録処理の概念図である。図10において、1001は、記録メディア111に出力された映像データ(映像およびメタデータ)である。まず、区間T1002においては、意図的な縦揺れがないため、図9のステップS903にて設定された値0がメタデータとして記録される。続いて、区間T1003においては、意図的な縦揺れがあるため、図9のステップS902にて設定された値1がメタデータとして記録される。続いて、区間T1004においては、区間T1002と同様に、意図的な縦揺れがないため、図9のステップS903にて設定された値0がメタデータとして記録される。最後に、記録メディア111に出力された映像およびメタデータを一つの映像データとしてクローズする。   Next, the concept of the video recording process in this embodiment will be described with reference to FIG. FIG. 10 is a conceptual diagram of the video recording process. In FIG. 10, reference numeral 1001 denotes video data (video and metadata) output to the recording medium 111. First, in section T1002, since there is no intentional pitching, the value 0 set in step S903 in FIG. 9 is recorded as metadata. Subsequently, in section T1003, since there is intentional pitching, the value 1 set in step S902 in FIG. 9 is recorded as metadata. Subsequently, in the section T1004, as in the section T1002, since there is no intentional pitching, the value 0 set in step S903 in FIG. 9 is recorded as metadata. Finally, the video and metadata output to the recording medium 111 are closed as one video data.

次に、図11を参照して、本実施形態における映像再生装置の構成について説明する。図11は、本実施形態における撮像装置1100(映像再生装置)のブロック図である。記録メディア111には、図8を参照して説明したメタデータが付加された映像データが記録されている。ただし、メタデータおよび映像データの記録形式はこれに限定されるものではなく、例えばメタデータは映像データと別に記録されていても構わない。   Next, with reference to FIG. 11, the configuration of the video playback apparatus in the present embodiment will be described. FIG. 11 is a block diagram of the imaging apparatus 1100 (video playback apparatus) in the present embodiment. Video data to which the metadata described with reference to FIG. 8 is added is recorded on the recording medium 111. However, the recording format of the metadata and the video data is not limited to this. For example, the metadata may be recorded separately from the video data.

再生制御部1110は、記録メディア111から、映像およびメタデータを取得する。復号部1101は、再生制御部1110により取得された映像データ(本実施例では、H.264ストリームとする)を復号化し、復号化されたデジタルビデオ信号のメタデータと共にメモリ107へ出力する。メモリ107は、復号化されたデジタルビデオ信号を数秒分記憶する。メモリ107に数秒分のデジタルビデオ信号を記憶させることにより、表示部1103に出力されている再生画像(再生中の画像)に対して時間的に先となる情報を得ることが可能となる。   The playback control unit 1110 acquires video and metadata from the recording medium 111. The decoding unit 1101 decodes the video data (in this embodiment, an H.264 stream) acquired by the reproduction control unit 1110, and outputs the decoded data to the memory 107 together with the decoded digital video signal metadata. The memory 107 stores the decoded digital video signal for several seconds. By storing a digital video signal for several seconds in the memory 107, it becomes possible to obtain information that is temporally ahead of the reproduced image (image being reproduced) output to the display unit 1103.

画像処理部1102は、後述するマイコン1120の処理により決定される切り出し位置および切り出しサイズに従って、映像データを再生する。具体的には、画像処理部1102は、映像データが表示映像を構成する複数の単位画像(フィールド画像またはフレーム画像)のそれぞれについて、単位画像の所定の切り出し位置から所定画像に対して電子ズームを施し、表示部1103へ出力する。表示部1103は、出力された画像を順次表示することにより、映像を表示する。   The image processing unit 1102 reproduces the video data according to the cutout position and cutout size determined by the processing of the microcomputer 1120 described later. Specifically, the image processing unit 1102 performs electronic zoom on a predetermined image from a predetermined cutout position of the unit image for each of a plurality of unit images (field image or frame image) whose video data constitutes a display video. And output to the display unit 1103. The display unit 1103 displays video by sequentially displaying the output images.

ジョイスティック1104、再生/一時停止ボタン1105、および、停止ボタン1106はそれぞれ操作部であり、ユーザの操作を受け付け、マイコン1120に対して制御指示を通知する役割を担っている。ジョイスティック1104は、画面内で項目を選択するためのカーソルを上下左右に移動する指示を行う。またジョイスティック1104は、垂直方向に押下可能であり、画面内でカーソルの当たっている項目を選択し、また、各種の設定操作を確定するための指示を行う。再生/一時停止ボタン1105は、映像を再生する場合に押下することにより、再生を開始または一時停止することができる。停止ボタン1106は、映像の再生を終了するために用いられる。   The joystick 1104, the play / pause button 1105, and the stop button 1106 are operation units, respectively, that receive a user operation and play a role of notifying the microcomputer 1120 of a control instruction. The joystick 1104 gives an instruction to move a cursor for selecting an item in the screen up, down, left, and right. The joystick 1104 can be pressed in the vertical direction, selects an item on which the cursor is placed on the screen, and gives instructions for confirming various setting operations. The playback / pause button 1105 can be started or paused by being pressed when playing back video. A stop button 1106 is used to end the video reproduction.

マイコン1120は、動きベクトル量取得部121、メタデータ読み出し部1122、振れ補正量決定部1123、および、縦揺れ量設定部1124を有し、後述する図12のフローチャートに示される処理の制御を行う。動きベクトル量取得部121は、メモリ107に記憶されたデジタル画像から動きベクトル量を取得する。動きベクトル量は、映像の振れの指標としての役割を果たす。メタデータ読み出し部1122は、メモリ107から縦揺れ付与期間を示すメタデータを読み出す。縦揺れ量設定部1124は、縦揺れ付与期間を示すメタデータに基づいて、Flag=1の場合に縦揺れ量を設定する。振れ補正量決定部1123は、動きベクトル量取得部121により取得された動きベクトル量、および、縦揺れ量設定部1124により設定された縦揺れ量に基づいて、映像の振れを補正するように切り出し位置およびサイズを決定する。そして振れ補正量決定部1123は、決定した切り出しおよびサイズを画像処理部1102に出力(設定)する。   The microcomputer 1120 includes a motion vector amount acquisition unit 121, a metadata reading unit 1122, a shake correction amount determination unit 1123, and a pitch amount setting unit 1124, and controls the processing shown in the flowchart of FIG. . The motion vector amount acquisition unit 121 acquires a motion vector amount from the digital image stored in the memory 107. The amount of motion vector serves as an index of image shake. The metadata reading unit 1122 reads metadata indicating the pitch application period from the memory 107. The pitch amount setting unit 1124 sets the pitch amount when Flag = 1 based on the metadata indicating the pitch grant period. Based on the motion vector amount acquired by the motion vector amount acquisition unit 121 and the vertical shake amount set by the vertical shake amount setting unit 1124, the shake correction amount determination unit 1123 cuts out to correct the video shake. Determine position and size. Then, the shake correction amount determination unit 1123 outputs (sets) the determined cutout and size to the image processing unit 1102.

次に、図12を参照して、本実施形態の映像再生処理について説明する。図12は、映像再生処理のフローチャートである。図12の各ステップは、主に、マイコン1120および画像処理部1102により実行される。   Next, with reference to FIG. 12, the video reproduction process of the present embodiment will be described. FIG. 12 is a flowchart of the video reproduction process. Each step in FIG. 12 is mainly executed by the microcomputer 1120 and the image processing unit 1102.

まずステップS1201において、マイコン1120は、表示部1103に対して、映像の再生処理のためのユーザインターフェース(UI)を表示させる。続いてステップS1202において、マイコン1120は、映像の再生開始の指示を受け付けた否かを判定する。映像の再生開始が指示された場合、記録メディア111に記録されている符号化映像を復号化して表示部1103に映像を表示し、ステップS1203へ進む。一方、映像の再生開始が指示されていない場合、ステップS1201へ戻る。   First, in step S1201, the microcomputer 1120 causes the display unit 1103 to display a user interface (UI) for video playback processing. Subsequently, in step S1202, the microcomputer 1120 determines whether or not an instruction to start video playback has been received. If an instruction to start video playback is given, the encoded video recorded on the recording medium 111 is decoded and displayed on the display unit 1103, and the process advances to step S1203. On the other hand, if the start of video reproduction is not instructed, the process returns to step S1201.

ステップS1203において、マイコン1120は、メタデータ読み出し部1122から読み出された縦揺れ付与期間に関する情報に基づいて、縦揺れ付与期間であるか否かを判定する。縦揺れ付与期間でない(Flag=0)場合、ステップS1204へ進む。一方、縦揺れ付与期間である(Flag=1)場合、ステップS1205へ進む。   In step S1203, the microcomputer 1120 determines whether or not it is a pitching grant period based on the information regarding the pitching grant period read from the metadata reading unit 1122. If it is not the pitching period (Flag = 0), the process proceeds to step S1204. On the other hand, if it is the pitching period (Flag = 1), the process proceeds to step S1205.

ステップS1204において、振れ補正量決定部1123は、動きベクトル量取得部121により取得された動きベクトル量に基づいて振れ補正量を決定する。ステップS505において、振れ補正量決定部1123は、動きベクトル量取得部121により取得された動きベクトル量と、縦揺れ量設定部1124により設定された縦揺れ量とに基づいて、振れ補正量を決定する。   In step S <b> 1204, the shake correction amount determination unit 1123 determines the shake correction amount based on the motion vector amount acquired by the motion vector amount acquisition unit 121. In step S505, the shake correction amount determination unit 1123 determines the shake correction amount based on the motion vector amount acquired by the motion vector amount acquisition unit 121 and the pitch amount set by the pitch amount setting unit 1124. To do.

続いてステップS1206において、振れ補正量決定部1123は、揺れ補正量に基づいて、映像からの切り出し位置および切り出しサイズを決定する。続いてステップS1207において、ステップS1206にて決定された映像における再生フレームの切り出し位置および切り出しサイズを画像処理部1102に設定し、その切り出し位置から所定画像に対して電子ズームを施した映像を表示部1103に表示する。   Subsequently, in step S1206, the shake correction amount determination unit 1123 determines the cutout position and cutout size from the video based on the shake correction amount. Subsequently, in step S1207, the cut-out position and cut-out size of the playback frame in the video determined in step S1206 are set in the image processing unit 1102, and a video obtained by performing electronic zoom on the predetermined image from the cut-out position is displayed on the display unit. 1103.

このように本実施形態において、制御装置は、揺れ効果手段(縦揺れ効果生成部105)、揺れ期間取得手段(縦揺れ期間取得部821)、メタデータ設定手段(メタデータ設定部822)、および、記録制御手段(記録制御部110)を有する。揺れ効果手段は、映像に第一方向の揺れ効果を付加する。揺れ期間取得手段は、映像に揺れ効果が付加されている期間(縦揺れ期間)を取得する。メタデータ設定手段は、縦揺れ期間に関するメタデータを設定する。記録制御手段(記録制御部110)は、映像およびメタデータを記録媒体(メモリ107)に記録する。   As described above, in the present embodiment, the control device includes a shaking effect unit (pitch effect generation unit 105), a shaking period acquisition unit (pitch period acquisition unit 821), a metadata setting unit (metadata setting unit 822), and And a recording control means (recording control unit 110). The shaking effect means adds a shaking effect in the first direction to the video. The shaking period acquisition unit acquires a period (pitch period) in which a shaking effect is added to the video. The metadata setting means sets metadata relating to the pitching period. The recording control means (recording control unit 110) records video and metadata on a recording medium (memory 107).

好ましくは、制御装置は、更に、動きベクトル取得手段(動きベクトル量取得部121)、揺れ量設定手段(縦揺れ量設定部1124)、決定手段(振れ補正量決定部1123)、および、画像処理手段(画像処理部1102)を有する。動きベクトル取得手段は、映像から動きベクトル量を取得する。揺れ量設定手段は、メタデータに基づいて映像に揺れ効果の揺れ量を設定する。決定手段は、動きベクトル量に基づいて映像の振れ補正量を決定する。画像処理手段は、振れ補正量に基づいて映像から一部の映像を切り出す(映像データから映像を切り出す)。決定手段は、映像に揺れ効果が付加されている期間において、動きベクトル量と揺れ量設定手段により設定された揺れ量とに基づいて振れ補正量を決定する(S1205)。   Preferably, the control device further includes a motion vector acquisition unit (motion vector amount acquisition unit 121), a shake amount setting unit (pitch amount setting unit 1124), a determination unit (shake correction amount determination unit 1123), and image processing. Means (image processing unit 1102). The motion vector acquisition means acquires a motion vector amount from the video. The shaking amount setting means sets the shaking amount of the shaking effect on the video based on the metadata. The determining means determines a shake correction amount of the video based on the motion vector amount. The image processing means cuts out a part of the video from the video based on the shake correction amount (cuts out the video from the video data). The determining means determines the shake correction amount based on the motion vector amount and the shake amount set by the shake amount setting means during the period in which the shake effect is added to the video (S1205).

本実施形態によれば、メタデータに記録した縦揺れ期間に関する情報に基づいて、振れ補正処理において縦揺れ量を加味することにより、再生時に正しい揺れ補正を行うことができる。   According to the present embodiment, correct shake correction can be performed at the time of reproduction by adding the pitch amount in the shake correction process based on the information about the pitch period recorded in the metadata.

<第4の実施形態>
次に、図13を参照して、本発明の第4の実施形態における映像再生処理について説明する。なお、本実施形態の撮像装置の基本構成や動作は、第3の実施形態の撮像装置と同様である。図13は、本実施形態における映像再生処理のフローチャートである。図13の各ステップは、主に、マイコン820および画像処理部1102により実行される。なお、図13のステップS1301〜S1303、S1309、S1310、S1312、S1313は、図12のステップS1201〜S1207とそれぞれ同様である。
<Fourth Embodiment>
Next, with reference to FIG. 13, a video reproduction process according to the fourth embodiment of the present invention will be described. Note that the basic configuration and operation of the imaging apparatus of the present embodiment are the same as those of the imaging apparatus of the third embodiment. FIG. 13 is a flowchart of video playback processing in the present embodiment. Each step of FIG. 13 is mainly executed by the microcomputer 820 and the image processing unit 1102. Note that steps S1301 to S1303, S1309, S1310, S1312, and S1313 in FIG. 13 are the same as steps S1201 to S1207 in FIG.

ステップS1303にてメタデータ読み出し部1122から読み出された縦揺れ付与期間に関する情報に基づいて、マイコン1120が縦揺れ付与期間(Flag=1)であると判定した場合、ステップS1304へ進む。ステップS1304において、マイコン1120は、後述するステップS1311にてメモリ107に保持している一つ前のフレーム画像の揺れ補正量により切り出された所定画像が、フレーム画像の上端または下端を含むか否かを判定する。所定画像がフレーム画像の上端または下端を含む場合、ステップS1306へ進む。一方、所定画像がフレーム画像の上端および下端のいずれも含まない場合、ステップS1305へ進む。   If the microcomputer 1120 determines that it is the pitch application period (Flag = 1) based on the information about the pitch application period read from the metadata reading unit 1122 in step S1303, the process proceeds to step S1304. In step S1304, the microcomputer 1120 determines whether or not the predetermined image cut out based on the shake correction amount of the previous frame image held in the memory 107 in step S1311 described later includes the upper end or the lower end of the frame image. Determine. When the predetermined image includes the upper end or the lower end of the frame image, the process proceeds to step S1306. On the other hand, if the predetermined image does not include either the upper end or the lower end of the frame image, the process proceeds to step S1305.

ステップ1305において、マイコン1120は、縦揺れ量として通常の値(縦揺れ量:中(第一揺れ量))を設定する。ステップS1306において、マイコン1120は、動きベクトル量取得部121により取得された動きベクトル量の縦方向成分と、縦揺れ量設定部1124により付与(加算)される縦揺れの方向とが互いに一致している場合、ステップS1307へ進む。一方、これらの方向が互いに一致しない場合、ステップS1308へ進む。   In step 1305, the microcomputer 1120 sets a normal value (pitch amount: medium (first shake amount)) as the pitch amount. In step S <b> 1306, the microcomputer 1120 matches the longitudinal component of the motion vector amount acquired by the motion vector amount acquisition unit 121 with the pitch direction applied (added) by the pitch amount setting unit 1124. If yes, the process proceeds to step S1307. On the other hand, if these directions do not match each other, the process proceeds to step S1308.

続いてステップS1307において、マイコン1120は、通常の縦揺れ量よりも大きい値(縦揺れ量:大(第二揺れ量))を設定する。一方、ステップS1308において、マイコン1120は、通常の縦揺れ量よりも小さい値(縦揺れ量:小(第三揺れ量))を設定する。ステップS1310において、上記のように得られた縦揺れ量と、動きベクトル量取得部121により取得された動きベクトル量とに基づいて振れ補正量を決定する。続いてステップS1311において、決定した揺れ補正量をメモリ107に保持させる。   Subsequently, in step S1307, the microcomputer 1120 sets a value larger than the normal pitch amount (pitch amount: large (second swing amount)). On the other hand, in step S1308, the microcomputer 1120 sets a value smaller than the normal pitch amount (pitch amount: small (third swing amount)). In step S1310, a shake correction amount is determined based on the pitch amount obtained as described above and the motion vector amount obtained by the motion vector amount obtaining unit 121. Subsequently, in step S1311, the determined shake correction amount is held in the memory 107.

このように本実施形態において、揺れ量設定手段は、第一揺れ量と、第一揺れ量よりも大きい第二揺れ量と、第一揺れ量よりも小さい第三揺れ量とを選択的に設定することが可能である。例えば、揺れ量設定手段は、画像処理手段により切り出された映像が切り出される前の映像の上端または下端を含む場合、揺れ量として第一揺れ量(縦揺れ量:中)を設定する(S1305)。また、揺れ量設定手段は、動きベクトル量の方向と揺れ量の方向とが互いに一致する場合、揺れ量として第二揺れ量(縦揺れ量:大)を設定する(S1307)。また、揺れ量設定手段は、動きベクトル量の方向と揺れ量の方向とが互いに一致しない場合、揺れ量として第三揺れ量(縦揺れ量:小)を設定する(S1308)。   As described above, in this embodiment, the swing amount setting means selectively sets the first swing amount, the second swing amount larger than the first swing amount, and the third swing amount smaller than the first swing amount. Is possible. For example, the shaking amount setting means sets the first shaking amount (pitch amount: medium) as the shaking amount when the image cut out by the image processing means includes the upper end or the lower end of the image before being cut out (S1305). . In addition, when the direction of the motion vector amount and the direction of the amount of shake coincide with each other, the shake amount setting means sets the second shake amount (pitch amount: large) as the shake amount (S1307). Further, when the direction of the motion vector amount and the direction of the swing amount do not match each other, the swing amount setting means sets a third swing amount (pitch amount: small) as the swing amount (S1308).

本実施形態によれば、メタデータに記録した縦揺れ期間に関する情報に基づいて、振れ補正処理において縦揺れ量を加味することにより、再生時に正しい揺れ補正を行うことができる。   According to the present embodiment, correct shake correction can be performed at the time of reproduction by adding the pitch amount in the shake correction process based on the information about the pitch period recorded in the metadata.

<第5の実施形態>
次に、図14を参照して、本発明の第5の実施形態における撮像装置の構成について説明する。図14は、本実施形態における撮像装置1400(映像記録装置)のブロック図である。撮像装置1400は、マイコン120に代えて、縦揺れ量算出部1421および縦揺れ量記録部1422を有するマイコン1420を備えている点で、第1の実施形態における撮像装置100と異なる。撮像装置1400の他の構成は、撮像装置100と同様であるため、それらの説明を省略する。
<Fifth Embodiment>
Next, with reference to FIG. 14, the structure of the imaging device in the 5th Embodiment of this invention is demonstrated. FIG. 14 is a block diagram of an imaging apparatus 1400 (video recording apparatus) in the present embodiment. The imaging apparatus 1400 is different from the imaging apparatus 100 in the first embodiment in that the imaging apparatus 1400 includes a microcomputer 1420 having a pitching amount calculation unit 1421 and a pitching amount recording unit 1422 instead of the microcomputer 120. Since other configurations of the imaging device 1400 are the same as those of the imaging device 100, descriptions thereof are omitted.

縦揺れ量算出部1421は、縦揺れ効果生成部105から出力された情報に基づいて、縦揺れ量を算出する。縦揺れ量記録部1422は、縦揺れ量算出部1421により設定されたデータからなるメタデータを、記録制御部110を介してメモリ107に出力する。マイコン1420は、後述する図15のフローチャートに示される処理の制御を行う。   The pitching amount calculation unit 1421 calculates the pitching amount based on the information output from the pitching effect generation unit 105. The pitch amount recording unit 1422 outputs metadata including data set by the pitch amount calculation unit 1421 to the memory 107 via the recording control unit 110. The microcomputer 1420 controls processing shown in a flowchart of FIG.

次に、図15を参照して、本実施形態における撮像装置1400の動作(映像記録処理)を説明する。図15は、本実施形態における映像記録処理のフローチャートである。図15の各ステップは、主に、マイコン1420および記録制御部110により実行される。   Next, with reference to FIG. 15, the operation (video recording process) of the imaging apparatus 1400 in the present embodiment will be described. FIG. 15 is a flowchart of video recording processing in the present embodiment. Each step in FIG. 15 is mainly executed by the microcomputer 1420 and the recording control unit 110.

まずステップS1501において、縦振れ量算出部123および横振れ量算出部124は、角速度振れ量(角速度情報)と動きベクトル量とに基づいて、縦振れ量および横振れ量をそれぞれ算出する。続いてステップS1502において、記録制御部110は、縦揺れ効果生成部105により縦揺れ効果が生成されているか否か、すなわち縦揺れ量があるか否かを判定する。縦揺れ効果が生成されている場合、ステップS1503へ進む。一方、縦揺れ効果が生成されていない場合、ステップS1504へ進む。ステップS1503において、記録制御部110(またはマイコン1420)は、映像、および、縦振れ量と横振れ量と縦揺れ量とから構成されるメタデータを、記録メディア111に出力する。ステップS1504において、記録制御部110(またはマイコン1420)は、映像、および、縦振れ量と横振れ量とから構成されるメタデータを、記録メディア111に出力する。   First, in step S1501, the vertical shake amount calculation unit 123 and the horizontal shake amount calculation unit 124 calculate the vertical shake amount and the horizontal shake amount based on the angular velocity shake amount (angular velocity information) and the motion vector amount, respectively. In step S1502, the recording control unit 110 determines whether a pitching effect is generated by the pitching effect generation unit 105, that is, whether there is a pitching amount. If the pitching effect has been generated, the process proceeds to step S1503. On the other hand, if the pitching effect has not been generated, the process proceeds to step S1504. In step S <b> 1503, the recording control unit 110 (or the microcomputer 1420) outputs video and metadata including the vertical shake amount, the horizontal shake amount, and the vertical shake amount to the recording medium 111. In step S <b> 1504, the recording control unit 110 (or the microcomputer 1420) outputs the video and metadata including the vertical shake amount and the horizontal shake amount to the recording medium 111.

続いてステップS1505において、記録制御部110は、マイコン1420から映像の記録終了の指示を受けたか否かを判定する。映像の記録終了が指示されていない場合、ステップS1501へ戻る。一方、映像の記録終了が指示された場合、ステップS1506へ進む。ステップS1506において、記録制御部110は、記録メディア111に出力された映像およびメタデータを一つの映像データとしてクローズする。   In step S <b> 1505, the recording control unit 110 determines whether a video recording end instruction has been received from the microcomputer 1420. If the end of video recording has not been instructed, the process returns to step S1501. On the other hand, if the end of video recording is instructed, the process advances to step S1506. In step S1506, the recording control unit 110 closes the video and metadata output to the recording medium 111 as one video data.

次に、図16を参照して、本実施形態における映像記録処理の概念について説明する。図16は、映像記録処理の概念図である。図16において、1601は、記録メディア111に出力された映像データ(映像およびメタデータ)である。まず、区間T1602においては、縦揺れが生成されていないため、図15のステップS1504にて設定された映像および縦振れ量と横振れ量とがメタデータとして記録される。続いて、区間T1603においては、縦揺れが生成されているため、図15のステップS1503にて設定された映像および縦振れ量と横振れ量と縦揺れ量とがメタデータとして記録される。続いて、区間T1604においては、区間T1602と同様に、縦揺れが生成されていないため、図2のステップS1504にて設定された映像および縦振れ量と横振れ量とがメタデータとして記録される。最後に、記録メディア111に出力された映像およびメタデータを一つの映像データとしてクローズする。   Next, the concept of the video recording process in this embodiment will be described with reference to FIG. FIG. 16 is a conceptual diagram of video recording processing. In FIG. 16, reference numeral 1601 denotes video data (video and metadata) output to the recording medium 111. First, in the section T1602, since no vertical shake is generated, the video image and the vertical shake amount and the horizontal shake amount set in step S1504 in FIG. 15 are recorded as metadata. Subsequently, since pitch is generated in the section T1603, the video, the vertical shake amount, the horizontal shake amount, and the vertical shake amount set in step S1503 in FIG. 15 are recorded as metadata. Subsequently, in the section T1604, as in the section T1602, no vertical shaking is generated, so the video, the vertical shake amount, and the horizontal shake amount set in step S1504 in FIG. 2 are recorded as metadata. . Finally, the video and metadata output to the recording medium 111 are closed as one video data.

次に、図17を参照して、本実施形態における映像再生装置の構成について説明する。図17は、本実施形態における撮像装置1700(映像再生装置)のブロック図である。記録メディア111には、図14を参照して説明したメタデータが付加された映像データが記録されている。ただし、メタデータおよび映像データの記録形式はこれに限定されるものではなく、例えばメタデータは映像データと別に記録されていても構わない。   Next, with reference to FIG. 17, the configuration of the video reproduction device in the present embodiment will be described. FIG. 17 is a block diagram of an imaging apparatus 1700 (video playback apparatus) according to this embodiment. Video data with the metadata described with reference to FIG. 14 is recorded on the recording medium 111. However, the recording format of the metadata and the video data is not limited to this. For example, the metadata may be recorded separately from the video data.

復号部1101は、再生制御部1110が取得した映像データ(本実施例では、H.264ストリームとする)を復号化し、復号化されたデジタルビデオ信号のメタデータと共にメモリ107へ出力する。画像処理部1102は、後述するマイコン1720の処理により決定された切り出し位置および切り出しサイズに従って、映像データを再生する。具体的には、画像処理部1102は、映像データが表示映像を構成する複数の単位画像(フィールド画像またはフレーム画像)のそれぞれについて、単位画像の所定の切り出し位置から所定画像に対して電子ズームを施し、表示部1103へ出力する。表示部1103は、画像処理部1102から出力された画像を順次表示することにより、映像を表示する。   The decoding unit 1101 decodes the video data acquired by the reproduction control unit 1110 (in this embodiment, an H.264 stream), and outputs the decoded data to the memory 107 together with the metadata of the decoded digital video signal. The image processing unit 1102 reproduces video data according to the cutout position and cutout size determined by the processing of the microcomputer 1720 described later. Specifically, the image processing unit 1102 performs electronic zoom on a predetermined image from a predetermined cutout position of the unit image for each of a plurality of unit images (field image or frame image) whose video data constitutes a display video. And output to the display unit 1103. The display unit 1103 displays video by sequentially displaying the images output from the image processing unit 1102.

再生制御部1110は、記録メディア111と、復号化部1101と、画像処理部1102と、表示部1103と、メモリ107と、マイコン1720とのインターフェースを有し、データの受け渡しを制御する。メモリ107は、復号化されたデジタルビデオ信号を数秒分記憶する。メモリ107に数秒分のデジタルビデオ信号を記憶することにより、表示部1103に出力されている再生画像(再生中の画像)に対して時間的に先となる情報を得ることが可能となる。スイッチ操作部108は、ユーザが操作する複数のスイッチを備える操作部であり、映像の再生開始/終了を指示するスイッチを含み、当該指示を受け付けてマイコン1720に入力する。映像の再生開始/終了の指示に伴い、マイコン1720は、後述する図18の動作に従って、映像およびメタデータを再生する。
マイコン1720は、動きベクトル量取得部121、振れ補正量決定部1123、縦振れ量取得部1721、横振れ量取得部1722、および、縦揺れ量取得部1723を有し、後述する図18のフローチャートに示す処理の制御を行う。動きベクトル量取得部121は、メモリ107に記憶されたデジタル画像から動きベクトル量を取得する。動きベクトル量は、映像の振れの指標としての役割を果たす。縦振れ量取得部1721は、メモリ107から縦振れ量を示すメタデータを読み出す。横振れ量取得部1722は、メモリ107から横振れ量を示すメタデータを読み出す。縦揺れ量取得部1723は、メモリ107から縦揺れ量を示すメタデータを読み出す。
The reproduction control unit 1110 has interfaces with the recording medium 111, the decoding unit 1101, the image processing unit 1102, the display unit 1103, the memory 107, and the microcomputer 1720, and controls data transfer. The memory 107 stores the decoded digital video signal for several seconds. By storing a digital video signal for several seconds in the memory 107, it becomes possible to obtain information that is temporally ahead of the reproduced image (image being reproduced) output to the display unit 1103. The switch operation unit 108 is an operation unit including a plurality of switches operated by the user, includes a switch for instructing start / end of video reproduction, receives the instruction, and inputs the instruction to the microcomputer 1720. In accordance with the instruction to start / end video playback, the microcomputer 1720 plays back video and metadata in accordance with the operation of FIG.
The microcomputer 1720 includes a motion vector amount acquisition unit 121, a shake correction amount determination unit 1123, a vertical shake amount acquisition unit 1721, a lateral shake amount acquisition unit 1722, and a vertical shake amount acquisition unit 1723. The flowchart of FIG. The process shown in FIG. The motion vector amount acquisition unit 121 acquires a motion vector amount from the digital image stored in the memory 107. The amount of motion vector serves as an index of image shake. The vertical shake amount acquisition unit 1721 reads metadata indicating the vertical shake amount from the memory 107. The lateral shake amount acquisition unit 1722 reads metadata indicating the lateral shake amount from the memory 107. The pitch amount acquisition unit 1723 reads metadata indicating the pitch amount from the memory 107.

振れ補正量決定部1123には、動きベクトル量取得部121が取得した動きベクトル量、および縦振れ量取得部1721が取得した縦振れ量、横振れ量取得部1722が取得した横振れ量、縦揺れ量取得部1723が取得した縦揺れ量が出力される。そして振れ補正量決定部1123は、動きベクトル量と縦振れ量と横振れ量と縦揺れ量とに基づいて、映像の振れを補正するように切り出し位置およびサイズを決定し、これらを画像処理部1102に出力(設定)する。   The shake correction amount determination unit 1123 includes the motion vector amount acquired by the motion vector amount acquisition unit 121, the vertical shake amount acquired by the vertical shake amount acquisition unit 1721, the horizontal shake amount acquired by the horizontal shake amount acquisition unit 1722, and the vertical shake amount. The pitching amount acquired by the shaking amount acquisition unit 1723 is output. The shake correction amount determination unit 1123 determines the cutout position and size so as to correct the shake of the video based on the motion vector amount, the vertical shake amount, the horizontal shake amount, and the vertical shake amount, and these are determined as the image processing unit. Output (set) to 1102.

次に、図18を参照して、本実施形態の映像再生処理について説明する。図18は、映像再生処理のフローチャートである。図18の各ステップは、主に、マイコン1720、再生制御部1110、および、画像処理部1102により実行される。   Next, with reference to FIG. 18, the video reproduction process of the present embodiment will be described. FIG. 18 is a flowchart of the video reproduction process. Each step of FIG. 18 is mainly executed by the microcomputer 1720, the reproduction control unit 1110, and the image processing unit 1102.

まずステップS1801において、再生制御部1110は、記録メディア111に記録されている符号化映像を、復号化部1101により復号化する。また動きベクトル量取得部121は、動きベクトル量を取得する。続いてステップS1802において、マイコン1720は、縦揺れ量取得部1723により取得された縦揺れ量に基づいて、縦揺れが記録されているか否かを判定する。縦揺れが記録されていると判定した場合、ステップS1803に進む。一方、縦揺れが記録されていないと判定した場合、ステップS1804に進む。   First, in step S1801, the playback control unit 1110 uses the decoding unit 1101 to decode the encoded video recorded on the recording medium 111. The motion vector amount acquisition unit 121 acquires a motion vector amount. Subsequently, in step S1802, the microcomputer 1720 determines whether or not pitching is recorded based on the pitching amount acquired by the pitching amount acquisition unit 1723. If it is determined that the pitch is recorded, the process advances to step S1803. On the other hand, if it is determined that no pitch is recorded, the process advances to step S1804.

ステップS1803において、振れ補正量決定部1123は、横振れ量取得部1722により取得された横振れ量に基づいて、振れ補正量を決定する。ステップS1804において、振れ補正量決定部1123は、縦振れ量取得部1721により取得された縦振れ量と、横振れ量取得部1722により取得された横振れ量とに基づいて、振れ補正量を決定する。   In step S1803, the shake correction amount determination unit 1123 determines the shake correction amount based on the horizontal shake amount acquired by the horizontal shake amount acquisition unit 1722. In step S1804, the shake correction amount determination unit 1123 determines the shake correction amount based on the vertical shake amount acquired by the vertical shake amount acquisition unit 1721 and the horizontal shake amount acquired by the horizontal shake amount acquisition unit 1722. To do.

続いてステップS1805において、振れ補正量決定部1123は、ステップS1801にて取得された動きベクトル量と、ステップS1803またはステップS1804にて決定された振れ補正量とに基づいて、映像から切り出し位置およびサイズを決定する。決定した切り出し位置およびサイズは画像処理部1102に出力され設定される。続いてステップS1806において、画像処理部1102は、ステップS1805にて決定された映像における再生フレームの切り出し位置および切り出しサイズに基づき所定画像に対して電子ズームを施した映像を表示部1103に表示する。続いてステップS1807において、マイコン1720は、映像の再生終了の指示の判定を行う。映像の再生終了が指示された場合、本フローの処理を終了する。   Subsequently, in step S1805, the shake correction amount determination unit 1123 determines the cut-out position and size from the video based on the motion vector amount acquired in step S1801 and the shake correction amount determined in step S1803 or step S1804. To decide. The determined cutout position and size are output to the image processing unit 1102 and set. In step S1806, the image processing unit 1102 displays on the display unit 1103 a video obtained by electronically zooming a predetermined image based on the cutout position and cutout size of the playback frame in the video determined in step S1805. In step S1807, the microcomputer 1720 determines an instruction to end the reproduction of the video. When an instruction to end video playback is given, the processing of this flow ends.

このように本実施形態において、制御装置は、振れ量算出手段(縦振れ量算出部123、横振れ量算出部124)、および、記録制御手段(縦振れ量記録部125、横振れ量記録部126、記録制御部110)を有する。また制御装置は、揺れ効果手段(縦揺れ効果生成部105)、および、揺れ量算出手段(縦揺れ量算出部1421)を有する。振れ量算出手段は、映像を撮像する際の第一方向(縦方向)および第二方向(横方向)のそれぞれの振れ量を算出する。記録制御手段は、振れ量算出手段により算出された振れ量に関する記録制御を行う。揺れ効果手段は、映像に第一方向の揺れ効果を付加する。揺れ量算出手段は、揺れ効果手段により映像に付加された揺れ効果の揺れ量を算出する。記録制御手段は、揺れ効果手段が映像に揺れ効果を付加しているか否かに応じて、揺れ量に関する記録制御を変更する。   As described above, in the present embodiment, the control device includes a shake amount calculation unit (vertical shake amount calculation unit 123, lateral shake amount calculation unit 124), and a recording control unit (vertical shake amount recording unit 125, lateral shake amount recording unit). 126, a recording control unit 110). In addition, the control device includes a shaking effect unit (pitch effect generation unit 105) and a shaking amount calculation unit (pitch amount calculation unit 1421). The shake amount calculation means calculates the shake amount in each of the first direction (vertical direction) and the second direction (horizontal direction) when capturing an image. The recording control unit performs recording control related to the shake amount calculated by the shake amount calculation unit. The shaking effect means adds a shaking effect in the first direction to the video. The shaking amount calculating means calculates the shaking amount of the shaking effect added to the video by the shaking effect means. The recording control means changes the recording control related to the shaking amount depending on whether or not the shaking effect means adds a shaking effect to the video.

好ましくは、記録制御手段は、揺れ効果手段が映像に揺れ効果を付加していない場合、揺れ量を記録媒体(メモリ107)に記録しない。一方、記録制御手段は、揺れ効果手段が映像に揺れ効果を付加している場合、揺れ量を記録媒体に記録する。より好ましくは、記録制御手段は、揺れ効果手段が映像に揺れ効果を付加していない場合、映像と、第一方向および第二方向のそれぞれの振れ量とを記録媒体に記録する。一方、記録制御手段は、揺れ効果手段が映像に揺れ効果を付加している場合、映像と、第一方向および第二方向のそれぞれの振れ量と、揺れ量とを記録媒体に記録する。   Preferably, the recording control means does not record the shaking amount on the recording medium (memory 107) when the shaking effect means does not add a shaking effect to the video. On the other hand, the recording control means records the amount of shaking on the recording medium when the shaking effect means adds a shaking effect to the video. More preferably, the recording control means records the video and the respective shake amounts in the first direction and the second direction on the recording medium when the shaking effect means does not add the shaking effect to the video. On the other hand, when the shaking effect means adds a shaking effect to the video, the recording control means records the video, the shake amounts in the first direction and the second direction, and the shaking amount on the recording medium.

好ましくは、制御装置は、動きベクトル取得手段(動きベクトル量取得部121)および振れ量取得手段(縦振れ量取得部1721、横振れ量取得部1722)を有する。また制御装置は、揺れ量取得手段(縦揺れ量取得部1723)、決定手段(振れ補正量決定部1123)、および、画像処理手段(画像処理部1102)を有する。動きベクトル取得手段は、映像から動きベクトル量を取得する。振れ量取得手段は、記録媒体から第一方向および第二方向のそれぞれの振れ量を取得する。揺れ量取得手段は、記録媒体から揺れ量を取得する。決定手段は、動きベクトル量と、第一方向および第二方向のそれぞれの振れ量と、揺れ量とに基づいて、映像の振れを補正する振れ補正量を決定する。画像処理手段は、振れ補正量に基づいて、映像から一部の映像を切り出す。決定手段は、揺れ量取得手段が揺れ量を取得したか否かに応じて、振れ補正量の決定方法を変更する。より好ましくは、決定手段は、揺れ量取得手段が揺れ量を取得していない場合、動きベクトル量と第一方向および第二方向のそれぞれの振れ量とに基づいて振れ補正量を決定する(S1803)。一方、決定手段は、揺れ量取得手段が揺れ量を取得した場合、動きベクトル量と第二方向の振れ量とに基づいて振れ補正量を決定する(S1804)。   Preferably, the control device includes a motion vector acquisition unit (motion vector amount acquisition unit 121) and a shake amount acquisition unit (vertical shake amount acquisition unit 1721, lateral shake amount acquisition unit 1722). The control device also includes a shake amount acquisition unit (pitch amount acquisition unit 1723), a determination unit (shake correction amount determination unit 1123), and an image processing unit (image processing unit 1102). The motion vector acquisition means acquires a motion vector amount from the video. The shake amount acquisition unit acquires the shake amounts in the first direction and the second direction from the recording medium. The shaking amount acquisition means acquires the shaking amount from the recording medium. The determining means determines a shake correction amount for correcting the shake of the video based on the motion vector amount, the shake amounts in the first direction and the second direction, and the shake amount. The image processing means cuts out a part of the video from the video based on the shake correction amount. The determining means changes the shake correction amount determining method according to whether or not the shake amount acquiring means has acquired the shake amount. More preferably, the determination unit determines the shake correction amount based on the motion vector amount and each shake amount in the first direction and the second direction when the shake amount acquisition unit does not acquire the shake amount (S1803). ). On the other hand, when the shake amount acquisition unit acquires the shake amount, the determination unit determines the shake correction amount based on the motion vector amount and the shake amount in the second direction (S1804).

本実施形態によれば、メタデータに記録した縦揺れ量に基づいて振れ補正量を算出することにより、再生時において正しい揺れ補正を行うことができる。   According to the present embodiment, by calculating the shake correction amount based on the vertical shake amount recorded in the metadata, correct shake correction can be performed during reproduction.

<第6の実施形態>
次に、図19を参照して、本発明の第6の実施形態における映像再生処理について説明する。なお、本実施形態の撮像装置の基本構成や動作は、第5の実施形態の撮像装置と同様である。図19は、本実施形態における映像再生処理のフローチャートである。図19の各ステップは、主に、マイコン1720、再生制御部1110、および、画像処理部1102により実行される。なお、図13のステップS1901、S1902、S1904〜S1907は、図18のステップS1801、S1802、S1804〜S1807とそれぞれ同様である。
<Sixth Embodiment>
Next, with reference to FIG. 19, a video reproduction process according to the sixth embodiment of the present invention will be described. Note that the basic configuration and operation of the imaging apparatus of the present embodiment are the same as those of the imaging apparatus of the fifth embodiment. FIG. 19 is a flowchart of video playback processing in the present embodiment. Each step of FIG. 19 is mainly executed by the microcomputer 1720, the reproduction control unit 1110, and the image processing unit 1102. Note that steps S1901, S1902, and S1904 to S1907 in FIG. 13 are the same as steps S1801, S1802, and S1804 to S1807 in FIG.

ステップS1903において、振れ補正量決定部1123は、縦振れ量取得部422にて取得された縦振れ量と、横振れ量取得部423にて取得された横振れ量と、縦揺れ量取得部424にて取得された縦揺れ量に基づいて、振れ補正量を決定する。ここで、縦振れ量と縦揺れ量とが互いに同一方向の場合、それぞれの量を加算する。一方、縦振れ量と縦揺れ量とが互いに逆方向の場合、一方の量から他方の量を減算した値を縦方向の振れ補正量とする。   In step S1903, the shake correction amount determination unit 1123 determines the vertical shake amount acquired by the vertical shake amount acquisition unit 422, the horizontal shake amount acquired by the horizontal shake amount acquisition unit 423, and the vertical shake amount acquisition unit 424. The shake correction amount is determined on the basis of the pitch amount acquired in step (1). Here, when the vertical shake amount and the vertical shake amount are in the same direction, the respective amounts are added. On the other hand, when the vertical shake amount and the vertical shake amount are opposite to each other, a value obtained by subtracting the other amount from one amount is set as the vertical shake correction amount.

このように本実施形態において、決定手段(振れ補正量決定部1123)は、揺れ量取得手段が揺れ量を取得していない場合、動きベクトル量と第一方向(縦方向)および第二方向(横方向)のそれぞれの振れ量とに基づいて振れ補正量を決定する(S1904)。一方、決定手段は、揺れ量取得手段が揺れ量を取得した場合、動きベクトル量と、第一方向および第二方向のそれぞれの振れ量と、揺れ量とに基づいて振れ補正量を決定する(S1903)。   As described above, in the present embodiment, the determination unit (the shake correction amount determination unit 1123) determines the motion vector amount, the first direction (vertical direction), and the second direction (when the shake amount acquisition unit does not acquire the shake amount). A shake correction amount is determined based on each shake amount in the horizontal direction (S1904). On the other hand, when the shake amount acquisition means acquires the shake amount, the determination means determines the shake correction amount based on the motion vector amount, the shake amounts in the first direction and the second direction, and the shake amount ( S1903).

本実施形態によれば、メタデータに記録した縦揺れ量に基づいて振れ補正量を算出することにより、再生時において正しい揺れ補正を行うことができる。   According to the present embodiment, by calculating the shake correction amount based on the vertical shake amount recorded in the metadata, correct shake correction can be performed during reproduction.

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

各実施形態によれば、意図的な縦揺れを加えた映像を再生する際に正しい振れ補正を行うことが可能な制御装置、撮像装置、制御方法、プログラム、および、記憶媒体を提供することができる。   According to each embodiment, it is possible to provide a control device, an imaging device, a control method, a program, and a storage medium capable of performing correct shake correction when playing a video with intentional pitching. it can.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。   As mentioned above, although preferable embodiment of this invention was described, this invention is not limited to these embodiment, A various deformation | transformation and change are possible within the range of the summary.

105 縦揺れ効果生成部(揺れ効果手段)
110 記録制御部(記録制御手段)
120 マイコン(制御装置)
123 縦振れ量算出部(振れ量算出手段)
124 横振れ量算出部(振れ量算出手段)
125 縦振れ量記録部(記録制御手段)
126 横振れ量記録部(記録制御手段)
105 Pitch effect generator (swing effect means)
110 Recording control unit (recording control means)
120 Microcomputer (control device)
123 Longitudinal shake amount calculation unit (runout amount calculation means)
124 Lateral shake amount calculation unit (shake amount calculation means)
125 Vertical shake amount recording unit (recording control means)
126 Lateral shake amount recording unit (recording control means)

Claims (19)

映像を撮像する際の第一方向および第二方向のそれぞれの振れ量を算出する振れ量算出手段と、
前記振れ量算出手段により算出された前記振れ量に関する記録制御を行う記録制御手段と、
前記映像に前記第一方向の揺れ効果を付加する揺れ効果手段と、を有し、
前記記録制御手段は、前記揺れ効果手段が前記映像に前記揺れ効果を付加しているか否かに応じて、前記第一方向の前記振れ量に関する記録制御を変更することを特徴とする制御装置。
A shake amount calculating means for calculating a shake amount in each of the first direction and the second direction when capturing an image;
Recording control means for performing recording control relating to the shake amount calculated by the shake amount calculation means;
Shaking effect means for adding a shaking effect in the first direction to the video,
The control apparatus according to claim 1, wherein the recording control unit changes recording control related to the shake amount in the first direction according to whether or not the shaking effect unit adds the shaking effect to the video.
前記記録制御手段は、
前記揺れ効果手段が前記映像に前記揺れ効果を付加していない場合、前記振れ量算出手段により算出された前記第一方向の前記振れ量を記録媒体に記録し、
前記揺れ効果手段が前記映像に前記揺れ効果を付加している場合、前記振れ量算出手段により算出された前記第一方向の前記振れ量を低減して前記記録媒体に記録する、ことを特徴とする請求項1に記載の制御装置。
The recording control means includes
When the shaking effect means does not add the shaking effect to the video, the shaking amount in the first direction calculated by the shaking amount calculation means is recorded on a recording medium,
When the shake effect means adds the shake effect to the video, the shake amount in the first direction calculated by the shake amount calculation means is reduced and recorded on the recording medium. The control device according to claim 1.
前記記録制御手段は、前記揺れ効果手段が前記映像に前記揺れ効果を付加している場合、前記振れ量算出手段により算出された前記第一方向の前記振れ量を0として前記記録媒体に記録することを特徴とする請求項2に記載の制御装置。   The recording control means records the shake amount in the first direction calculated by the shake amount calculation means as 0 when the shake effect means adds the shake effect to the video on the recording medium. The control device according to claim 2. 前記揺れ効果手段により前記映像に付加された前記揺れ効果の揺れ量を取得する揺れ量取得手段を更に有し、
前記記録制御手段は、前記揺れ効果手段が前記映像に前記揺れ効果を付加している場合、前記振れ量算出手段により算出された前記第一方向の前記振れ量から前記揺れ量を減算して得られた量を前記記録媒体に記録することを特徴とする請求項2に記載の制御装置。
Further comprising a shake amount obtaining means for obtaining a shake amount of the shake effect added to the video by the shake effect means;
The recording control means is obtained by subtracting the shake amount from the shake amount in the first direction calculated by the shake amount calculation means when the shake effect means adds the shake effect to the video. The control device according to claim 2, wherein the recorded amount is recorded on the recording medium.
映像に第一方向の揺れ効果を付加する揺れ効果手段と、
前記映像に前記揺れ効果が付加されている期間を取得する揺れ期間取得手段と、
前記期間に関するメタデータを設定するメタデータ設定手段と、
前記映像および前記メタデータを記録媒体に記録する記録制御手段と、を有することを特徴とする制御装置。
A shaking effect means for adding a shaking effect in the first direction to the image;
A shaking period acquisition means for acquiring a period in which the shaking effect is added to the video;
Metadata setting means for setting metadata relating to the period;
And a recording control means for recording the video and the metadata on a recording medium.
前記映像から動きベクトル量を取得する動きベクトル取得手段と、
前記メタデータに基づいて前記映像に前記揺れ効果の揺れ量を設定する揺れ量設定手段と、
前記動きベクトル量に基づいて前記映像の振れ補正量を決定する決定手段と、
前記振れ補正量に基づいて前記映像から一部の映像を切り出す画像処理手段と、を更に有し、
前記決定手段は、前記映像に前記揺れ効果が付加されている前記期間において、前記動きベクトル量と前記揺れ量設定手段により設定された前記揺れ量とに基づいて前記振れ補正量を決定することを特徴とする請求項5に記載の制御装置。
Motion vector acquisition means for acquiring a motion vector amount from the video;
A shaking amount setting means for setting a shaking amount of the shaking effect on the video based on the metadata;
Determining means for determining a shake correction amount of the video based on the motion vector amount;
Image processing means for cutting out a part of the video from the video based on the shake correction amount;
The determining means determines the shake correction amount based on the motion vector amount and the shake amount set by the shake amount setting means in the period when the shake effect is added to the video. The control device according to claim 5, characterized in that:
前記揺れ量設定手段は、第一揺れ量と、該第一揺れ量よりも大きい第二揺れ量と、該第一揺れ量よりも小さい第三揺れ量とを選択的に設定することが可能であることを特徴とする請求項6に記載の制御装置。   The shaking amount setting means can selectively set a first shaking amount, a second shaking amount larger than the first shaking amount, and a third shaking amount smaller than the first shaking amount. The control apparatus according to claim 6, wherein the control apparatus is provided. 前記揺れ量設定手段は、
前記画像処理手段により切り出された前記映像が切り出される前の前記映像の上端または下端を含む場合、前記揺れ量として前記第一揺れ量を設定し、
前記動きベクトル量の方向と前記揺れ量の方向とが互いに一致する場合、前記揺れ量として前記第二揺れ量を設定し、
前記動きベクトル量の方向と前記揺れ量の方向とが互いに一致しない場合、前記揺れ量として前記第三揺れ量を設定することを特徴とする請求項7に記載の制御装置。
The shaking amount setting means includes:
When including the upper end or the lower end of the video before being cut out by the image processing means, the first shake amount is set as the shake amount,
When the direction of the motion vector amount and the direction of the amount of shaking coincide with each other, the second amount of shaking is set as the amount of shaking,
The control device according to claim 7, wherein when the direction of the motion vector amount and the direction of the amount of swing do not match each other, the third amount of swing is set as the amount of swing.
映像を撮像する際の第一方向および第二方向のそれぞれの振れ量を算出する振れ量算出手段と、
前記振れ量算出手段により算出された前記振れ量に関する記録制御を行う記録制御手段と、
前記映像に前記第一方向の揺れ効果を付加する揺れ効果手段と、
前記揺れ効果手段により前記映像に付加された前記揺れ効果の揺れ量を算出する揺れ量算出手段と、を有し、
前記記録制御手段は、前記揺れ効果手段が前記映像に前記揺れ効果を付加しているか否かに応じて、前記揺れ量に関する記録制御を変更することを特徴とする制御装置。
A shake amount calculating means for calculating a shake amount in each of the first direction and the second direction when capturing an image;
Recording control means for performing recording control relating to the shake amount calculated by the shake amount calculation means;
A shaking effect means for adding a shaking effect in the first direction to the video;
A shaking amount calculating means for calculating a shaking amount of the shaking effect added to the video by the shaking effect means,
The control apparatus according to claim 1, wherein the recording control unit changes recording control related to the amount of shaking depending on whether or not the shaking effect unit adds the shaking effect to the video.
前記記録制御手段は、
前記揺れ効果手段が前記映像に前記揺れ効果を付加していない場合、前記揺れ量を記録媒体に記録せず、
前記揺れ効果手段が前記映像に前記揺れ効果を付加している場合、前記揺れ量を前記記録媒体に記録することを特徴とする請求項9に記載の制御装置。
The recording control means includes
When the shaking effect means does not add the shaking effect to the video, the amount of shaking is not recorded on a recording medium,
The control apparatus according to claim 9, wherein when the shaking effect unit adds the shaking effect to the video, the shaking amount is recorded on the recording medium.
前記記録制御手段は、
前記揺れ効果手段が前記映像に前記揺れ効果を付加していない場合、該映像と、前記第一方向および前記第二方向のそれぞれの前記振れ量とを記録媒体に記録し、
前記揺れ効果手段が前記映像に前記揺れ効果を付加している場合、前記映像と、前記第一方向および前記第二方向のそれぞれの前記振れ量と、前記揺れ量とを前記記録媒体に記録することを特徴とする請求項10に記載の制御装置。
The recording control means includes
When the shaking effect means does not add the shaking effect to the video, the video and the shake amounts of the first direction and the second direction are recorded on a recording medium,
When the shaking effect means adds the shaking effect to the video, the video, the shaking amount in the first direction and the second direction, and the shaking amount are recorded on the recording medium. The control device according to claim 10.
前記映像から動きベクトル量を取得する動きベクトル取得手段と、
記録媒体から前記第一方向および前記第二方向のそれぞれの前記振れ量を取得する振れ量取得手段と、
前記記録媒体から前記揺れ量を取得する揺れ量取得手段と、
前記動きベクトル量と、前記第一方向および前記第二方向のそれぞれの前記振れ量と、前記揺れ量とに基づいて、前記映像の振れを処理する振れ補正量を決定する決定手段と、
前記振れ補正量に基づいて、前記映像から一部の映像を切り出す画像処理手段と、を更に有し、
前記決定手段は、前記揺れ量取得手段が前記揺れ量を取得したか否かに応じて、前記振れ補正量の決定方法を変更することを特徴とする請求項9乃至11のいずれか1項に記載の制御装置。
Motion vector acquisition means for acquiring a motion vector amount from the video;
A shake amount acquisition means for acquiring the shake amounts of the first direction and the second direction from a recording medium;
A shaking amount obtaining means for obtaining the shaking amount from the recording medium;
Determining means for determining a shake correction amount for processing a shake of the video based on the motion vector amount, the shake amount in each of the first direction and the second direction, and the shake amount;
Image processing means for cutting out a part of the video from the video based on the shake correction amount;
12. The method according to claim 9, wherein the determination unit changes a determination method of the shake correction amount according to whether or not the shake amount acquisition unit has acquired the shake amount. 13. The control device described.
前記決定手段は、
前記揺れ量取得手段が前記揺れ量を取得していない場合、前記動きベクトル量と前記第一方向および前記第二方向のそれぞれの前記振れ量とに基づいて前記振れ補正量を決定し、
前記揺れ量取得手段が前記揺れ量を取得した場合、前記動きベクトル量と前記第二方向の前記振れ量とに基づいて前記振れ補正量を決定することを特徴する請求項12に記載の制御装置。
The determining means includes
When the shake amount acquisition means does not acquire the shake amount, the shake correction amount is determined based on the motion vector amount and the shake amounts of the first direction and the second direction,
13. The control apparatus according to claim 12, wherein when the shake amount acquisition unit acquires the shake amount, the shake correction amount is determined based on the motion vector amount and the shake amount in the second direction. .
前記決定手段は、
前記揺れ量取得手段が前記揺れ量を取得していない場合、前記動きベクトル量と前記第一方向および前記第二方向のそれぞれの前記振れ量とに基づいて前記振れ補正量を決定し、
前記揺れ量取得手段が前記揺れ量を取得した場合、前記動きベクトル量と、前記第一方向および前記第二方向のそれぞれの前記振れ量と、前記揺れ量とに基づいて前記振れ補正量を決定することを特徴する請求項12に記載の制御装置。
The determining means includes
When the shake amount acquisition means does not acquire the shake amount, the shake correction amount is determined based on the motion vector amount and the shake amounts of the first direction and the second direction,
When the shake amount acquisition means acquires the shake amount, the shake correction amount is determined based on the motion vector amount, the shake amounts in the first direction and the second direction, and the shake amount. The control device according to claim 12, wherein:
第一方向は縦方向であり、第二方向は横方向であることを特徴とする請求項1乃至14のいずれか1項に記載の制御装置。   The control device according to claim 1, wherein the first direction is a vertical direction and the second direction is a horizontal direction. 撮像光学系を介して形成された光学像を光電変換する撮像素子と、
請求項1乃至15のいずれか1項に記載の制御装置と、を有することを特徴とする撮像装置。
An image sensor that photoelectrically converts an optical image formed via the imaging optical system;
An imaging device comprising: the control device according to claim 1.
映像を撮像する際の第一方向および第二方向のそれぞれの振れ量を算出するステップと、
算出された前記振れ量に関する記録制御を行うステップと、
前記映像に前記第一方向の揺れ効果を付加するステップと、を有し、
前記記録制御を行うステップにおいて、前記映像に前記揺れ効果を付加しているか否かに応じて前記第一方向の前記振れ量に関する記録制御を変更することを特徴とする制御方法。
Calculating each shake amount in the first direction and the second direction when capturing an image;
Performing recording control relating to the calculated shake amount;
Adding a shaking effect in the first direction to the video,
The control method characterized in that in the step of performing the recording control, the recording control related to the shake amount in the first direction is changed according to whether or not the shaking effect is added to the video.
映像を撮像する際の第一方向および第二方向のそれぞれの振れ量を算出するステップと、
算出された前記振れ量に関する記録制御を行うステップと、
前記映像に前記第一方向の揺れ効果を付加するステップと、をコンピュータに実行させるプログラムであって、
前記記録制御を行うステップにおいて、前記映像に前記揺れ効果を付加しているか否かに応じて前記第一方向の前記振れ量に関する記録制御を変更することを特徴とするプログラム。
Calculating each shake amount in the first direction and the second direction when capturing an image;
Performing recording control relating to the calculated shake amount;
Adding a shaking effect in the first direction to the video, and causing a computer to execute the program,
In the step of performing the recording control, the recording control related to the shake amount in the first direction is changed according to whether or not the shaking effect is added to the video.
請求項18に記載のプログラムを記憶していることを特徴とする記憶媒体。   A storage medium storing the program according to claim 18.
JP2017095247A 2017-05-12 2017-05-12 Control device, image pickup device, control method, program, and storage medium Active JP6866226B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017095247A JP6866226B2 (en) 2017-05-12 2017-05-12 Control device, image pickup device, control method, program, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017095247A JP6866226B2 (en) 2017-05-12 2017-05-12 Control device, image pickup device, control method, program, and storage medium

Publications (2)

Publication Number Publication Date
JP2018195864A true JP2018195864A (en) 2018-12-06
JP6866226B2 JP6866226B2 (en) 2021-04-28

Family

ID=64569102

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017095247A Active JP6866226B2 (en) 2017-05-12 2017-05-12 Control device, image pickup device, control method, program, and storage medium

Country Status (1)

Country Link
JP (1) JP6866226B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020195232A1 (en) * 2019-03-28 2020-10-01 ソニー株式会社 Image processing device, image processing method, and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020195232A1 (en) * 2019-03-28 2020-10-01 ソニー株式会社 Image processing device, image processing method, and program
CN113574856A (en) * 2019-03-28 2021-10-29 索尼集团公司 Image processing apparatus, image processing method, and program
EP3952276A4 (en) * 2019-03-28 2022-05-11 Sony Group Corporation Image processing device, image processing method, and program
US11716537B2 (en) 2019-03-28 2023-08-01 Sony Group Corporation Image processing device, image processing method, and program
JP7444162B2 (en) 2019-03-28 2024-03-06 ソニーグループ株式会社 Image processing device, image processing method, program

Also Published As

Publication number Publication date
JP6866226B2 (en) 2021-04-28

Similar Documents

Publication Publication Date Title
JP4525558B2 (en) Information processing apparatus, imaging apparatus, information processing method, and computer program
JP5528008B2 (en) Playback apparatus and playback method
JP5516662B2 (en) Imaging device
US9851894B2 (en) Display control device, display control method, and program
JP4874425B1 (en) Reproducing apparatus and imaging apparatus
JP5597061B2 (en) Video playback apparatus and control method thereof
KR20100043139A (en) Image processing device, dynamic image reproduction device, and processing method and program in them
JP5701017B2 (en) Movie playback apparatus, movie playback method, computer program, and storage medium
JP2010153947A (en) Image generating apparatus, image generating program and image display method
US20120002076A1 (en) Camera and image processing apparatus
JP4697221B2 (en) Image processing apparatus, moving image reproduction apparatus, processing method and program therefor
JP5764005B2 (en) Playback apparatus and playback method
JP2008131617A (en) Video processing apparatus
JP6866226B2 (en) Control device, image pickup device, control method, program, and storage medium
JP5125294B2 (en) Program, image processing apparatus, imaging apparatus, and image processing method
JP2012191544A (en) Reproduction apparatus, imaging apparatus, and moving image reproduction program
JP2010147509A (en) Video processor and video distribution system
JP5424300B2 (en) Playback apparatus and program
JP5217709B2 (en) Image processing apparatus and imaging apparatus
JP2018074337A (en) Moving image processing device, moving image processing method, and program
JP5522972B2 (en) Reproducing apparatus and control method thereof
JP2017112455A (en) Information processing unit
JP2021129216A (en) Image processing apparatus and image processing method
JP5211530B2 (en) Information providing system, information providing apparatus, and program
JP6248314B2 (en) Imaging apparatus, captured image processing method, and imaging system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200401

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200909

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200915

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201030

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210407

R151 Written notification of patent or utility model registration

Ref document number: 6866226

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151