JP2017212550A - Image reproducer, control method thereof, program, and storage medium - Google Patents
Image reproducer, control method thereof, program, and storage medium Download PDFInfo
- Publication number
- JP2017212550A JP2017212550A JP2016103617A JP2016103617A JP2017212550A JP 2017212550 A JP2017212550 A JP 2017212550A JP 2016103617 A JP2016103617 A JP 2016103617A JP 2016103617 A JP2016103617 A JP 2016103617A JP 2017212550 A JP2017212550 A JP 2017212550A
- Authority
- JP
- Japan
- Prior art keywords
- shake
- image
- graph
- size
- cutout
- 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.)
- Pending
Links
Images
Landscapes
- Television Signal Processing For Recording (AREA)
- Studio Devices (AREA)
Abstract
Description
本発明は、動画像を再生する場合に画像の振れを補正する機能を備えた画像再生装置に関するものである。 The present invention relates to an image reproducing apparatus having a function of correcting image shake when reproducing a moving image.
ビデオカメラ等の撮像装置で動画像を記録する場合、手振れ等による撮像装置本体の振れに起因して記録画像が振れる場合がある。このような振れを動画像の再生時に補正するために、画像の振れを表す動きベクトル量を取得し、動きベクトル量に応じて画像の切り出し位置と切り出しサイズを決定し、切り出して表示する技術が知られている。また、動画像の記録時に、撮像装置の振れを角速度センサで検出し、角速度に基づく振れ量を画像と共に記録し、動画像の再生時に、当該振れ量に応じて画像の切り出し位置と切り出しサイズを決定し、切り出して表示する技術が知られている。 When a moving image is recorded by an imaging device such as a video camera, the recorded image may be shaken due to a shake of the imaging device main body due to camera shake or the like. In order to correct such shake during playback of a moving image, a technique for acquiring a motion vector amount representing the shake of the image, determining a cutout position and cutout size of the image according to the motion vector amount, and cutting out and displaying the image is displayed. Are known. In addition, when recording a moving image, the shake of the imaging device is detected by an angular velocity sensor, and the amount of shake based on the angular velocity is recorded together with the image, and when the moving image is played back, the cutout position and cutout size of the image are determined according to the shake amount. A technique for determining, cutting out and displaying is known.
こうした動画像の再生時に振れを補正する技術では、補正のために切り出した画像をモニタに拡大して表示する。このとき、切り出しサイズが大きい、すなわち画像の拡大率が小さいと、大きな振れを補正しきれず、切り出しサイズが小さい、すなわち画像の拡大率が大きいと画像の画質が低下してしまう。そのため、画像の振れに応じて切り出しサイズを適切に決定する必要がある。 In such a technique for correcting shake during reproduction of a moving image, an image cut out for correction is enlarged and displayed on a monitor. At this time, if the cutout size is large, that is, if the enlargement ratio of the image is small, large shake cannot be corrected, and if the cutout size is small, that is, if the enlargement ratio of the image is large, the image quality of the image is degraded. Therefore, it is necessary to appropriately determine the cutout size according to the shake of the image.
例えば特許文献1においては、振れが閾値より大きいか否かに応じて切り出しサイズの大きさを2種類から決定し、再生時に切り出しサイズ変わる場合にはユーザーに違和感を与えないように滑らかに変化させる方法が提案されている。また、特許文献2においては、画像の構図の変化を検出し、同一構図区間ごとに画像の振れに応じた切り出しサイズを決定することで、それぞれの区間に適した振れの補正を行う方法が提案されている。
For example, in
しかしながら、上記の従来の技術では、画像再生装置が画像の振れ量に応じて画像の切り出し位置や切り出しサイズを自動的に決定するため、切り出した画像がユーザーの意図に合っていない場合があるという問題があった。例えば、振れが大きいシーンでは、画像再生時の振れの補正により画像の切り出しサイズが小さくなり、解像度の低下がユーザーの許容範囲を超えてしまう場合がある。また、画像の切り出し位置が不適切になり、映っていてほしい被写体が映っていないという場合もある。 However, in the above-described conventional technology, the image playback apparatus automatically determines the cutout position and cutout size of the image according to the shake amount of the image, so that the cutout image may not match the user's intention. There was a problem. For example, in a scene with a large shake, the cutout size of the image may be reduced due to the shake correction during image reproduction, and the reduction in resolution may exceed the allowable range of the user. In some cases, the cutout position of the image becomes inappropriate, and the subject that is desired to appear is not shown.
本発明は上述した課題に鑑みてなされたものであり、その目的は、画像の再生時に画像の振れを補正するための画像切り出し及び拡大表示を行う場合に、画像の切り出し範囲がユーザーの意図に反したものになることを抑制することである。 The present invention has been made in view of the above-described problems, and the purpose of the present invention is to make the image cutout range the user's intention when performing image cutout and enlarged display for correcting image shake during image reproduction. It is to suppress becoming contrary.
本発明に係わる画像再生装置は、動画像の撮影時に記録された撮像装置の振れを表す振れデータを取得する取得手段と、前記振れデータの時間変化を表す振れグラフを生成する生成手段と、前記振れグラフを表示するグラフ表示手段と、前記振れデータを用いて、前記動画像を振れ補正を行いながら再生する場合の、前記動画像を構成する各フレーム画像の切り出しサイズを算出するサイズ算出手段と、前記切り出しサイズ、及び検出手段により動画像から検出された被写体の動きベクトル量を用いて、前記各フレーム画像の切り出し位置を算出する位置算出手段と、前記切り出しサイズと前記切り出し位置に基づいて、前記各フレーム画像を切り出して表示する画像表示手段と、前記切り出しサイズと前記切り出し位置に基づいて各フレーム画像を切り出して前記動画像の再生を開始する前に、前記振れグラフを前記グラフ表示手段に表示させるように制御する制御手段と、を備えることを特徴とする。 An image reproduction apparatus according to the present invention includes an acquisition unit that acquires shake data representing a shake of an imaging device recorded at the time of capturing a moving image, a generation unit that generates a shake graph that represents a time change of the shake data, Graph display means for displaying a shake graph; and size calculation means for calculating a cutout size of each frame image constituting the moving image when the moving image is reproduced while performing shake correction using the shake data. Based on the cutout size and the cutout position of the frame image using the motion vector amount of the subject detected from the moving image by the detection unit, the cutout size and the cutout position, Image display means for cutting out and displaying each frame image, and each frame based on the cut size and the cut position. Before cutting out an image starts reproduction of the moving image, characterized in that it comprises a control means for controlling so as to display the deflection graph to the graph display means.
本発明によれば、画像の再生時に画像の振れを補正するための画像切り出し及び拡大表示を行う場合に、画像の切り出し範囲がユーザーの意図に反したものになることを抑制することが可能となる。 According to the present invention, it is possible to suppress the image cutout range from being contrary to the user's intention when performing image cutout and enlarged display for correcting image shake during image reproduction. Become.
以下、本発明の実施形態について、添付図面を参照して詳細に説明する。なお、以下の実施形態では画像再生装置をデジタルビデオカメラに適用した場合について説明するが、本発明はこれに限定されるものではなく、画像再生装置単体でもよいし、一眼レフカメラやレンズ一体型カメラ、カメラ機能付き携帯電話に適用してもよい。 Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the following embodiment, the case where the image reproducing apparatus is applied to a digital video camera will be described. However, the present invention is not limited to this, and the image reproducing apparatus may be a single unit, a single-lens reflex camera or a lens-integrated type. You may apply to a camera and a mobile phone with a camera function.
<第1の実施形態>
図1は、本発明の撮像装置の第1の実施形態であるデジタルビデオカメラ100の構成を示すブロック図である。なお、各機能ブロックの1つ以上は、ASICやプログラマブルロジックアレイ(PLA)等のハードウェアにより実現されてもよいし、CPUやMPU等のプログラマブルプロセッサがソフトウェアを実行することによって実現されてもよい。もしくは、ハードウェアとソフトウェアが組み合わされて実現されてもよい。したがって、以下の説明において異なる機能ブロックが動作の主体として記載されている場合であっても、同じハードウェアが主体として実現される場合がある。
<First Embodiment>
FIG. 1 is a block diagram showing a configuration of a
図1において、撮影レンズ101は複数のレンズ群からなる撮影レンズであり、便宜上1枚のレンズで表わされているが、実際にはズームレンズ、フォーカスレンズ、シフトレンズなどを備えている。シャッター102は絞り機能を備えるシャッターであり、撮像素子103に光を受光させる時間を調節する。撮像素子103は光電変換素子を有する画素が複数、二次元状に配列された構成を有する。撮像素子103は撮影レンズ101により結像された被写体光学像を各画素で電気信号に変換する。
In FIG. 1, a photographing
A/D変換器104は、アナログ信号をデジタル信号に変換する。A/D変換器104は撮像素子103から出力されるアナログの画像信号をデジタルの画像信号に変換し、画素単位の画像データを出力する。画像処理部105は、A/D変換器104から出力された画像データに対して所定の画素補完処理、拡縮といったリサイズ処理、AWB処理(オートホワイトバランス処理)といった色変換処理を行う。
The A /
A/D変換器104から出力された画像データは、画像処理部105及びメモリ制御部106を介して、もしくは、メモリ制御部106を介してメモリ111に書き込まれる。メモリ111は、A/D変換器104によりデジタル信号に変換された画像データや、表示部(画像表示部)110に表示するための画像データを格納する。そのためメモリ111は、所定枚数の静止画像や所定時間の動画像及び音声を格納するのに十分な記憶容量を備えている。
The image data output from the A /
GPU107はデジタルビデオカメラ100の各種情報表示やメニュー画面をVRAMに描画するレンダリングエンジンである。文字列や図形の描画機能のほか、拡縮描画機能、回転描画機能、レイヤ合成機能を備えている。表示用I/F部108は、メモリ制御部106を介して送られる画像処理部105からの画像データ及びGPU107で描画したVRAM内のデータに対して重畳合成及びリサイズ処理を行い、D/A変換器109へ出力する。D/A変換器109は表示用I/F部108から出力された画像データをアナログ信号に変換して表示部110へ出力する。表示部110はD/A変換器109から出力されたアナログ信号を表示するモニタやファインダなどからなる。
The GPU 107 is a rendering engine that draws various information displays and menu screens of the
不揮発性メモリ113は電気的に消去・記録可能なメモリであり、例えばEEPROMが用いられる。不揮発性メモリ113には、システム制御部112の動作用の定数やプログラムなどが記録される。システム制御部112はデジタルビデオカメラ100全体を制御する。不揮発性メモリ113に記録されたプログラムを実行することで本実施形態の各処理を実行する。また、メモリ111、表示用I/F部108、D/A変換器109、表示部110を制御することにより表示制御を行う。
The
操作部114はユーザー操作を受け付け、システム制御部112に各種動作指示を入力する。操作部114は、物理的なボタンの他に表示部110に対する接触を検知可能なタッチパネルを有する。タッチパネルと表示部110とは一体的に構成することができ、タッチパネルにおける入力座標と表示部110上の表示座標を対応付けることで、あたかもユーザーが表示部110に表示された画面を直接操作可能であるかのようなGUIを構成することができる。
The
電源制御部115は電池検出回路、DC−DCコンバータ、通電するブロックを切り替えるスイッチ回路などで構成され、電池の装着の有無、電池の種類、電池の残量の検出を行う。また、電源制御部115は、その検出の結果及びシステム制御部112の指示に基づいてDC−DCコンバータを制御し、必要な電圧を必要な期間デジタルビデオカメラ100の各部へ提供する。電源部116はアルカリ電池やリチウム電池等の一次電池、NiCd電池やNiMH電池、Li電池等の二次電池、ACアダプターからなる。
The
角速度センサ117はデジタルビデオカメラ100に加わる振れの角速度を検出する。振れ補正部118は角速度センサ117により検出された角速度及び画像処理部105から出力された画像データについて算出した動きベクトル量から撮像装置の振れを算出する。そして、算出した振れを相殺するように撮影レンズ101内部のシフトレンズを制御する光学式像振れ補正処理、もしくは画像データの一部を切り出す電子像振れ補正処理を行う。算出した振れはメタデータとして画像と関連させて記録することにより、画像再生時に参照可能とする。
The
システムタイマー119は各種制御に用いる時間や、内蔵された時計の時間を計測する。システムメモリ120はシステム制御部112の動作用の定数、変数、不揮発性メモリ113から読み出したプログラムを展開するためのメモリであり、RAMが用いられる。
The
記録媒体I/F121は記録媒体122とデジタルビデオカメラ100とを接続するインターフェースである。記録媒体122は撮影された画像及びメタデータを記録するためのメモリーカードやハードディスク、USBメモリ等の記録媒体であり、半導体メモリや磁気ディスク等から構成される。
The recording medium I /
図2は、本実施形態のデジタルビデオカメラ100の画像再生装置としての構成を示すブロック図である。図2において、記録媒体122には、デジタルビデオカメラ100の撮影時の振れ量を含むメタデータが付加された画像が記録されている。ただし、メタデータおよび画像データの記録形式は、メタデータ及び画像データを取得可能である限りどのような形式であってもよく、例えばメタデータと画像データは別に記録されていてもよい。
FIG. 2 is a block diagram illustrating a configuration of the
記録媒体I/F121は、記録媒体122から画像データ及びメタデータを取得し、メモリ111へ出力する。メモリ111は、記録媒体I/F121から出力された画像データ及びメタデータを数秒分記憶しておく。メタデータ読み出し部201は、メモリ111に記憶されたメタデータを読み出し、振れデータ取得部202に出力する。振れデータ取得部202は、メタデータ読み出し部201から出力されたメタデータから、デジタルビデオカメラ100の振れデータを取得する。
The recording medium I /
補正強度設定部203は、操作部114からの入力に応じて振れ補正強度を設定する。切り出しサイズ設定部204は、取得した振れデータ及び振れ補正強度に基づいて画像の切り出しサイズを決定し、画像処理部105に出力する。動きベクトル検出部205は、メモリに記憶された画像から動きベクトル量を検出し、切り出し位置設定部206に出力する。切り出し位置設定部206は、取得した動きベクトル量及び画像の切り出しサイズに基づいて画像の切り出し位置を決定して画像処理部105に出力する。なお、前述の振れ補正部118はメタデータ読み出し部201、振れデータ取得部202、補正強度設定部203、切り出しサイズ設定部204、動きベクトル検出部205、及び切り出し位置設定部206の機能を実装する。
The correction
振れグラフ生成部207は、取得した振れデータに基づいて振れの時間遷移を表した振れグラフを生成する。生成した振れグラフは表示用I/F部108で画像に重畳される。前述のGPU107は振れグラフ生成部207の機能を実装する。
The shake
メモリ111に記憶された画像は、画像処理部105で必要に応じて切り出し処理が施された後、表示用I/F部108、D/A変換器109を通じて表示部110に表示される。
The image stored in the
図3(a)、図3(b)は本実施形態における画像の振れ補正の概要を示す模式図である。図3を用いて、画像再生時の振れ補正について説明する。メモリ111に展開された動画ストリームの画像データ(フレーム画像)301に対して、切り出しサイズ設定部204で切り出し枠302のサイズを決定し、切り出し位置設定部206で切り出し枠302の位置を決定する。そして、切り出し枠302内の画像を画像データ301と同じサイズになるように画像処理部105で拡大処理する。拡大された切り出し枠302内の画像である拡大画像303は、表示用I/F部108、D/A変換器109を通じて表示部110に表示される。
FIG. 3A and FIG. 3B are schematic views showing an outline of image blur correction in the present embodiment. The shake correction at the time of image reproduction will be described with reference to FIG. With respect to the image data (frame image) 301 of the moving image stream developed in the
また、画像データ301の次フレームの画像データを画像データ304とする。ここで、画像データ304内の領域305は切り出し枠302と撮像面上で同じ領域であるとする。しかしながら、画像データ301と画像データ304の撮影の間に生じた撮影者の手振れなどが原因となって、切り出し枠302内の画像と領域305内の画像とは互いに異なる。そのため、切り出し枠302と画像の類似度が最大になるような切り出し枠306を検出する。切り出し枠306の位置は画像データ301と画像データ304で一致する特徴点を抽出したりブロックマッチング方式などを利用して画像データ301に対する画像データ304の動きベクトル量を検出することで決定できる。そして、切り出し枠306内の画像は、切り出し枠302内の画像と同様に画像処理部105で拡大されて拡大画像307となり、表示部110に表示される。
Further, the image data of the next frame of the
図4は、動画像の再生前における振れ補正動作に関するフローチャートである。ステップS401において、メタデータ読み出し部201は再生する画像に記録されているメタデータを読み出す。なお、メタデータは再生する画像の全フレームから読み出すものとする。
FIG. 4 is a flowchart regarding a shake correction operation before reproduction of a moving image. In step S401, the
ステップS402において、振れデータ取得部202はメタデータから振れデータを取得する。ステップ403において、振れグラフ生成部207は、取得した振れデータから、動画像撮影時のデジタルビデオカメラ100の振れ(角度)を縦軸、時間を横軸として、振れの時間変化を表した振れグラフを生成する。
In step S402, the shake
ステップS404において、表示用I/F部108は表示部110に振れグラフを表示させる(グラフ表示)。図5は振れグラフを示す模式図であり、曲線501はある時間範囲における振れの大きさを表している。
In step S404, the display I /
ステップS405において、補正強度設定部203は、振れ補正強度の変更要求があるか否かを判断する。振れ補正強度とは画像の振れを補正する強さのことであり、値が大きいほど補正できる振れの大きさが大きくなる。その一方で、画像データから切り出す切り出しサイズが小さくなり、それを拡大して画面全体に表示するので、表示した際の解像度が劣化する。図5における振れ補正強度502〜504は振れの大きさに対して補正可能かどうかを表す指標であり、それぞれの振れ補正強度に対して曲線501の示す値が小さければ補正可能であり、大きければ振れ残りが発生することを示す。ユーザーは振れ補正強度の初期値(図5では太線で示されている振れ補正強度503)に対して変更する必要があれば操作部114を操作し、振れ補正強度を502、もしくは504に変更する。操作部114の操作方法としては、例えばタッチパネルで振れ補正強度を表すアイコンをタッチすることが考えられる。振れ補正強度の変更要求がない場合はステップS406に進み、振れ補正強度の変更要求がある場合はステップS407に進む。
In step S405, the correction
ステップS406においては、切り出しサイズ設定部204は画像の切り出しサイズを所定のサイズに設定する。ステップS407において、切り出しサイズ設定部204は振れ補正強度の変更に応じて画像の切り出しサイズを変更する(切り出しサイズ算出)。そして、ステップS408において、切り出し位置設定部206は画像の初期フレームに対する切り出し位置を設定する(切り出し位置算出)。ステップS408において、システム制御部112は画像の再生を開始する。
In step S406, the cutout
図6は、動画像の再生中における振れ補正動作に関するフローチャートである。ステップS601において、補正強度設定部203は振れ補正強度の変更要求があるか否かを判断する。振れ補正強度の変更要求がある場合はステップS602に進み、なければステップS603に進む。
FIG. 6 is a flowchart relating to a shake correction operation during reproduction of a moving image. In step S601, the correction
ステップS602においては、切り出しサイズ設定部204は補正強度変更の要求がなかったことから、前フレームの画像の切り出しサイズを現在のフレームの切り出しサイズとして設定する。ステップS603においては、切り出しサイズ設定部204は振れ補正強度の変更に基づいて画像の切り出しサイズを変更する。
In step S602, the cutout
ステップS604において、動きベクトル検出部205は現在のフレームと前のフレームから動きベクトル量を検出する。ステップS605において、切り出し位置設定部206は前のフレームの画像の切り出し位置、ステップS604で検出した動きベクトル量及び画像の切り出しサイズから現在のフレームの画像の切り出し位置を決定する。
In step S604, the motion
ステップS606において、画像処理部105は設定された切り出しサイズ、切り出し位置に基づいて画像を切り出す。ステップS607において、画像処理部105は切り出した画像を元の画像のサイズと同じ大きさになるように拡大処理する。ステップS608において、振れグラフ生成部207は画像に重畳して表示するための振れグラフを生成する。このとき、振れグラフの表示範囲は画像を妨げないように限られた領域が設定される。そのため、ステップ403で生成したグラフと異なり、グラフの横軸で表す期間は画像全体の長さではなくある一定の期間とする。
In step S606, the
ステップS609において、表示用I/F部108は画像に振れグラフを重畳して表示する。図7は、画像に重畳して表示される振れグラフの模式図である。振れグラフ701は、再生時間を基準として、例えば15秒後までの振れの変化を表している。補正強度702は現在の補正強度で補正可能な振れの大きさを表している。なお、図7において振れグラフの表示範囲を15秒としたが、この時間は一例である。
In step S609, the display I /
ステップS610において、システム制御部112は画像ストリームが終了したか否かを判定し、終了した場合はステップS610に進み、終了していない場合はステップS601に戻って、処理を次のフレームに進める。
In step S610, the
ステップS611において、システム制御部112は再生中に変更された振れ補正強度の遷移を再生した画像に関連付けて記録する。これにより、画像の2回目の再生時にはユーザーが操作しなくても1回目に設定した振れ補正強度を用いて画像を再生することが可能となる。
In step S611, the
以上説明したように、本実施形態では、デジタルビデオカメラ100は画像再生時に、画像のメタデータに記録された振れデータから振れグラフを生成し表示する。そして、ユーザーは振れグラフを見て振れ補正強度の変更が必要か否かを判断し、必要であれば振れ補正強度を変更する。これによって、ユーザーの好み(画像の画質、画像の切り出し範囲等)に合った振れ補正の強さで再生することが可能となる。
As described above, in the present embodiment, the
<第2の実施形態>
上述した第1の実施形態においては、振れデータに基づく撮像装置の振れの時間変化を振れグラフに示していた。本実施形態では振れデータの変化から撮像装置の振れの傾向が変化する時刻を検出し(傾向変化検出)、その時刻を振れグラフに表示する。また、画像再生中に振れの傾向が変化する時刻が近づいたら振れグラフに表示する時間範囲を長くする。これにより、ユーザーは振れ補正強度を変更する方がよい可能性があるタイミングを分かりやすく知ることが可能となる。加えて変更する際の入力の準備を余裕をもって行うことが可能となる。
<Second Embodiment>
In the first embodiment described above, the shake graph shows the time variation of the shake of the imaging apparatus based on the shake data. In the present embodiment, a time at which the shake tendency of the imaging apparatus changes is detected from a change in shake data (tendency change detection), and the time is displayed on a shake graph. Further, the time range displayed on the shake graph is lengthened when the time when the tendency of shake changes during image reproduction approaches. As a result, the user can easily understand the timing at which the shake correction strength may be better changed. In addition, it is possible to prepare for input when making changes.
本発明の第2の実施形態におけるビデオカメラ100の構成は第1の実施形態の構成とほぼ同様であるため、構成の詳細な説明は省略する。以下、第1の実施形態との相違点について説明する。
Since the configuration of the
図8は、第2の実施形態のデジタルビデオカメラ100の画像再生装置としての構成を示すブロック図である。第1の実施形態との相違点として、振れ補正部118について説明する。振れデータ取得部202で取得した振れデータを振れグラフ生成部207に出力する前に、振れ変化検出部801を経由する。振れ変化検出部801は振れデータを解析して、振れの大小やパンニング、チルティング等による振れの傾向が変化する時刻である振れ傾向変化時刻を検出し、振れデータと合わせて振れ傾向変化時刻を振れグラフ生成部207に出力する。
FIG. 8 is a block diagram illustrating a configuration of the
振れグラフ生成部207は振れグラフに振れの時間変化だけでなく振れの傾向が変化する時刻を表示する。図9は第2の実施形態における動画像の再生前に表示するグラフの模式図である。この図において例えば縦線901のように振れ傾向変化時刻を表示することで、ユーザーに動画中の振れの傾向が変化する時刻を分かりやすく示す。
The shake
図10は、第2の実施形態における動画像再生中の振れ補正動作に関するフローチャートにおいて、第1の実施形態のフローチャートとの相違点であるステップS608を示した図である。 FIG. 10 is a diagram showing step S608, which is a difference from the flowchart of the first embodiment, in the flowchart regarding the shake correction operation during moving image reproduction in the second embodiment.
ステップS608の処理におけるステップS1001において、振れ変化検出部801は所定時間後に振れの傾向が変化するか否かを検出する。所定時間後に振れの傾向が変化しない場合はステップS1002に進み、振れの傾向が変化する場合はS1003に進む。
In step S1001 in the process of step S608, the shake
ステップS1002においては、振れグラフ生成部207は振れグラフに表示する範囲を所定の時間範囲に設定する。ステップS1003においては、振れグラフ生成部207は振れグラフに表示する時間範囲を所定の時間範囲から拡大する。すなわち、所定時間後に振れの傾向が変化しない場合は、図9の表示枠902に示した時間範囲の振れの変化を再生画面に重畳して表示する。これに対し、所定時間後に振れの傾向が変化する場合は、図9の表示枠903のように、表示枠902より長い時間範囲の振れの変化を再生画面に重畳して表示する。
In step S1002, the shake
ステップS1004において、振れグラフを作成した後、ステップS1005において振れグラフに振れ傾向変化時刻を含むか否かを判断する。振れグラフの表示範囲に振れ傾向変化時刻を含む場合はステップS1006に進む。 In step S1004, after a shake graph is created, it is determined in step S1005 whether or not the shake graph includes a shake tendency change time. When the shake trend change time is included in the display range of the shake graph, the process proceeds to step S1006.
ステップS1006においては、振れグラフに振れ傾向変化時刻を表示する。図11は第2の実施形態における動画像の再生中に画像に重畳して表示するグラフを示す模式図である。振れグラフ1101は再生時間を基準として30秒後までの振れの変化を表しており、所定の時間範囲を表示範囲とする振れグラフ701(図7)より長い時間範囲を表示している。縦線1102は振れ傾向変化時刻を示している。これにより、ユーザーは現在の再生時刻に対していつ振れ傾向が変化するかを容易に判断することができる。
In step S1006, the shake tendency change time is displayed on the shake graph. FIG. 11 is a schematic diagram illustrating a graph that is displayed superimposed on an image during playback of a moving image according to the second embodiment. The
<第3の実施形態>
上述した第1の実施形態及び第2の実施形態においては、振れデータから動画像の撮影時の撮像装置の振れ(角度)を算出し、切り出しサイズの設定に用いるとともに、振れグラフの縦軸として用いた。本実施形態では撮像装置の振れではなく、画像の振れ(画面上の被写体の振れ)を算出し(画面振れ量算出)、切り出しサイズの設定に用いるとともに、振れグラフの縦軸として用いる。これにより、振れ補正や画像の見え方に合ったより正確な振れグラフの生成が可能となる。
<Third Embodiment>
In the first embodiment and the second embodiment described above, the shake (angle) of the imaging device at the time of capturing a moving image is calculated from the shake data, and is used for setting the cutout size, and as the vertical axis of the shake graph. Using. In the present embodiment, not the shake of the image pickup apparatus but the shake of the image (the shake of the subject on the screen) is calculated (screen shake amount calculation) and used for setting the cutout size and used as the vertical axis of the shake graph. This makes it possible to generate shake graphs that are more accurate in accordance with shake correction and image appearance.
第3の実施形態におけるデジタルビデオカメラ100の構成は第1の実施形態の構成とほぼ同様であるため、構成の詳細な説明は省略する。以下、第1の実施形態との相違点について説明する。
Since the configuration of the
図1のデジタルビデオカメラ100の構成を表すブロック図において、第3の実施形態では、システム制御部112は記録中に撮影レンズ101の焦点距離を取得する。取得した焦点距離はメタデータとして画像と関連させて記録することによって、画像再生時に参照可能とする。
In the block diagram showing the configuration of the
図12は、第3の実施形態におけるデジタルビデオカメラ100の画像再生装置としての構成を示すブロック図である。第1の実施形態との相違点として、振れ補正部118及びGPU107について説明する。
FIG. 12 is a block diagram illustrating a configuration of the
メタデータ読み出し部201はメモリ111に記憶されたメタデータを読み出し、振れデータ取得部202及び焦点距離取得部1201に出力する。焦点距離取得部1201はメタデータ読み出し部201から出力されたメタデータから、記録時のレンズの焦点距離を取得し、画面振れ算出部1202に出力する。
The
画面振れ算出部1202は振れデータ及び焦点距離から画面の振れ量を算出する。撮像装置の振れを表す振れデータは必ずしも記録された画像の振れ具合とは一致しない。すなわち、焦点距離がワイド側である場合は撮像装置の振れは記録される画像にあまり影響しない。しかしながら、焦点距離がテレ側である場合は撮像装置の振れは記録される画像に大きく影響する。そのため、振れデータ及び焦点距離から画面の振れに則した振れ量を算出し、振れ補正処理に用いる。これにより、撮像装置の振れデータのみを用いる場合と比べてより正確な像振れ補正が可能となる。
A screen
GPU107内の 画面振れグラフ生成部1203は、取得した画面の振れ量(距離)を縦軸、時間を横軸としてグラフを生成する。画面の振れ量をグラフ化することにより、ユーザーは画像の振れ具合に合った振れの時間変化を確認することができる。
The screen shake
図13は、第3の実施形態における画像再生中の振れ補正動作に関するフローチャートを示す図である。ステップS1301、S1302は第1の実施形態のステップS401、S402と同様である。ステップS1303において、焦点距離取得部1201はメタデータから焦点距離を取得する。
FIG. 13 is a flowchart illustrating a shake correction operation during image reproduction according to the third embodiment. Steps S1301 and S1302 are the same as steps S401 and S402 of the first embodiment. In step S1303, the focal
ステップS1304において、メタデータに焦点距離が記録されているか否かを判断する。記録されていればステップS1305に進み、記録されていなければステップS1307に進む。ステップS1305においては、画面振れ算出部1202は振れデータと焦点距離から画面振れ量を算出する。ステップS1306においては、画面振れグラフ生成部1203は画面振れ量を縦軸、時間を横軸として、画面振れ量の時間変化を表した振れグラフを生成する。
In step S1304, it is determined whether the focal length is recorded in the metadata. If it is recorded, the process proceeds to step S1305. If it is not recorded, the process proceeds to step S1307. In step S1305, the screen
ステップS1307〜ステップS1313は、第1の実施形態のステップS403〜ステップS409と同様である。 Steps S1307 to S1313 are the same as steps S403 to S409 in the first embodiment.
以上説明したように、第1乃至第3の実施形態によれば、ユーザーが画像再生前に振れグラフを見て画像の再生時の振れ補正強度を決定することで、ユーザーの好みに応じた振れ補正強度を選択することが可能となる。また、画像再生中に画像再生前に選択した振れ補正強度が再生中の場面において不適切であった場合でも、再生時の画像と振れグラフを判断基準として必要に応じて振れ補正強度を変更することが可能となる。 As described above, according to the first to third embodiments, the shake according to the user's preference can be obtained by determining the shake correction strength at the time of playing the image by the user viewing the shake graph before playing the image. It is possible to select the correction strength. Also, even if the shake correction strength selected before image playback during image playback is inappropriate in the scene being played back, the shake correction strength is changed as necessary using the image and shake graph during playback as a criterion. It becomes possible.
以上、本発明をその好適な実施形態に基づいて詳述してきたが、本発明はこれら特定の実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。さらに、上述した各実施形態は本発明の一実施形態を示すものにすぎず、各実施形態の一部を適宜組み合わせてもよい。 Although the present invention has been described in detail based on preferred embodiments thereof, the present invention is not limited to these specific embodiments, and various forms within the scope of the present invention are also included in the present invention. included. Furthermore, each embodiment mentioned above shows only one embodiment of this invention, and you may combine a part of each embodiment suitably.
(その他の実施形態)
本発明は、上述の実施形態の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 a 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.
100:デジタルビデオカメラ、101:撮影レンズ、102:シャッター、103:撮像素子、105:画像処理部、107:GPU、110:表示部、112:システム制御部、117:角速度センサ、118:振れ補正部 DESCRIPTION OF SYMBOLS 100: Digital video camera, 101: Shooting lens, 102: Shutter, 103: Image sensor, 105: Image processing part, 107: GPU, 110: Display part, 112: System control part, 117: Angular velocity sensor, 118: Shake correction Part
Claims (13)
前記振れデータの時間変化を表す振れグラフを生成する生成手段と、
前記振れグラフを表示するグラフ表示手段と、
前記振れデータを用いて、前記動画像を振れ補正を行いながら再生する場合の、前記動画像を構成する各フレーム画像の切り出しサイズを算出するサイズ算出手段と、
前記切り出しサイズ、及び検出手段により動画像から検出された被写体の動きベクトル量を用いて、前記各フレーム画像の切り出し位置を算出する位置算出手段と、
前記切り出しサイズと前記切り出し位置に基づいて、前記各フレーム画像を切り出して表示する画像表示手段と、
前記切り出しサイズと前記切り出し位置に基づいて各フレーム画像を切り出して前記動画像の再生を開始する前に、前記振れグラフを前記グラフ表示手段に表示させるように制御する制御手段と、
を備えることを特徴とする画像再生装置。 Acquisition means for acquiring shake data representing shake of the imaging device recorded at the time of capturing a moving image;
Generating means for generating a shake graph representing a time change of the shake data;
Graph display means for displaying the shake graph;
Size calculation means for calculating a cut-out size of each frame image constituting the moving image when the moving image is reproduced while performing shake correction using the shake data;
Position calculation means for calculating the cutout position of each frame image using the cutout size and the motion vector amount of the subject detected from the moving image by the detection means;
Image display means for cutting out and displaying each frame image based on the cutout size and the cutout position;
Control means for controlling to display the shake graph on the graph display means before cutting out each frame image based on the cut-out size and the cut-out position and starting playback of the moving image;
An image reproducing apparatus comprising:
前記振れデータの時間変化を表す振れグラフを生成する生成工程と、
前記振れグラフをグラフ表示手段に表示するグラフ表示工程と、
前記振れデータを用いて、前記動画像を振れ補正を行いながら再生する場合の、前記動画像を構成する各フレーム画像の切り出しサイズを算出するサイズ算出工程と、
前記切り出しサイズ、及び動画像から検出された被写体の動きベクトル量を用いて、前記各フレーム画像の切り出し位置を算出する位置算出工程と、
前記切り出しサイズと前記切り出し位置に基づいて、前記各フレーム画像を切り出して画像表示手段に表示する画像表示工程と、
前記切り出しサイズと前記切り出し位置に基づいて各フレーム画像を切り出して前記動画像の再生を開始する前に、前記振れグラフを前記グラフ表示手段に表示させるように制御する制御工程と、
を有することを特徴とする画像再生方法。 An acquisition step of acquiring shake data representing the shake of the imaging device recorded at the time of capturing a moving image;
A generation step of generating a shake graph representing a time change of the shake data;
A graph display step of displaying the shake graph on a graph display means;
A size calculation step of calculating a cutout size of each frame image constituting the moving image when the moving image is reproduced while performing shake correction using the shake data;
A position calculating step of calculating a cutout position of each frame image using the cutout size and a motion vector amount of the subject detected from the moving image;
An image display step of cutting out each frame image based on the cutout size and the cutout position and displaying the image on an image display unit;
A control step for controlling to display the shake graph on the graph display means before cutting out each frame image based on the cut-out size and the cut-out position and starting playback of the moving image;
An image reproduction method comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016103617A JP2017212550A (en) | 2016-05-24 | 2016-05-24 | Image reproducer, control method thereof, program, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016103617A JP2017212550A (en) | 2016-05-24 | 2016-05-24 | Image reproducer, control method thereof, program, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2017212550A true JP2017212550A (en) | 2017-11-30 |
Family
ID=60475617
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016103617A Pending JP2017212550A (en) | 2016-05-24 | 2016-05-24 | Image reproducer, control method thereof, program, and storage medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2017212550A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112561915A (en) * | 2020-11-30 | 2021-03-26 | 成都市喜爱科技有限公司 | Image processing method and device, image acquisition device and storage medium |
CN113938607A (en) * | 2018-08-29 | 2022-01-14 | 深圳市大疆创新科技有限公司 | Control method of electronic device, and storage medium |
CN116320752A (en) * | 2022-09-09 | 2023-06-23 | 广东职业技术学院 | Image shooting processing method and shooting processing equipment for coping with jitter |
-
2016
- 2016-05-24 JP JP2016103617A patent/JP2017212550A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113938607A (en) * | 2018-08-29 | 2022-01-14 | 深圳市大疆创新科技有限公司 | Control method of electronic device, and storage medium |
CN112561915A (en) * | 2020-11-30 | 2021-03-26 | 成都市喜爱科技有限公司 | Image processing method and device, image acquisition device and storage medium |
CN112561915B (en) * | 2020-11-30 | 2024-06-21 | 成都市喜爱科技有限公司 | Image processing method, device, image acquisition device and storage medium |
CN116320752A (en) * | 2022-09-09 | 2023-06-23 | 广东职业技术学院 | Image shooting processing method and shooting processing equipment for coping with jitter |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6663193B2 (en) | Imaging device and control method thereof | |
US8837864B2 (en) | Image synthesis and rotation processing apparatus and image synthesis processing method | |
JP6518452B2 (en) | Imaging apparatus and imaging method | |
JP6261205B2 (en) | Image processing device | |
US9979899B2 (en) | Image effect processing support apparatus, image effect processing support method, and medium for recording image effect processing support program | |
JP2017212550A (en) | Image reproducer, control method thereof, program, and storage medium | |
JP2020136823A (en) | Image processing device, imaging device, image processing method, control method for imaging device, and program | |
JP2019057794A (en) | Imaging apparatus, control method of the same, program, and recording medium | |
JP6883971B2 (en) | Image processing equipment and image processing methods, programs, and storage media | |
US20220191401A1 (en) | Image processing device, image processing method, program, and imaging device | |
JP6370146B2 (en) | Image processing apparatus and control method thereof | |
JP6765919B2 (en) | Image processing device, its control method, program | |
JP2012060299A (en) | Image pickup device, control method thereof, program, and recording medium | |
JP2015233211A (en) | Imaging apparatus, control method thereof, and program | |
US11985420B2 (en) | Image processing device, image processing method, program, and imaging device | |
JP2017163339A (en) | Video processing apparatus, video processing method and program | |
JP5424827B2 (en) | Image processing device | |
JP5289354B2 (en) | Imaging device | |
JP2017005373A (en) | Imaging device and control method therefor | |
JP2019062369A (en) | Imaging apparatus and control method thereof, electronic device and control method thereof, and program | |
JP6039410B2 (en) | Image processing apparatus and image processing method | |
US20230260150A1 (en) | Image capture apparatus and control method thereof | |
JP6742862B2 (en) | Imaging device, image processing device, control method of imaging device, and program | |
JP6611478B2 (en) | Imaging apparatus, recording control method, and program | |
JP6929133B2 (en) | Imaging device, control method and program of imaging device |