JP7118585B2 - Image processing device, imaging device and control method - Google Patents
Image processing device, imaging device and control method Download PDFInfo
- Publication number
- JP7118585B2 JP7118585B2 JP2016221340A JP2016221340A JP7118585B2 JP 7118585 B2 JP7118585 B2 JP 7118585B2 JP 2016221340 A JP2016221340 A JP 2016221340A JP 2016221340 A JP2016221340 A JP 2016221340A JP 7118585 B2 JP7118585 B2 JP 7118585B2
- Authority
- JP
- Japan
- Prior art keywords
- tilt
- image processing
- respect
- angle
- captured image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Adjustment Of Camera Lenses (AREA)
- Television Signal Processing For Recording (AREA)
- Studio Devices (AREA)
Description
本発明は、画像処理装置、撮像装置および制御方法に関する。 The present invention relates to an image processing device, an imaging device, and a control method.
被写体(動体)のスピード感を表現する撮影技術として、流し撮りが提案されている。流し撮りは、撮影者が被写体の動きに合わせてカメラを動かすことにより、移動している被写体像を静止させて背景像を流すことを目的とする。 Panning has been proposed as a photographing technique for expressing a sense of speed of a subject (moving body). The purpose of the panning is to freeze the moving subject image and make the background image flow by moving the camera according to the movement of the subject.
流し撮りの際に、被写体の移動速度とカメラを動かす速度の間に差が発生してしまうと、被写体がブレた画像になってしまうという問題がある。特許文献1は、被写体の移動速度とカメラを動かす速度との差をシフトレンズの移動により吸収し、ユーザが被写体を追尾し易くする撮像装置を開示する。また、特許文献2は、加速度センサと角速度センサの出力を用いて高精度に傾き補正を行う撮像装置を開示している。
During panning, if there is a difference between the moving speed of the subject and the speed of moving the camera, there is a problem that the image of the subject is blurred.
流し撮りの際は、カメラを動かしながら撮影するので、カメラを水平に保つことが難しくなり、傾いた画像になってしまう。したがって、画像の傾き補正を行うことが必要となる。しかし、特許文献1が開示する撮像装置は、カメラの傾きに応じて画像を補正する機能を有していない。
Since panning is performed while moving the camera, it becomes difficult to keep the camera horizontal, resulting in a tilted image. Therefore, it is necessary to correct the tilt of the image. However, the imaging apparatus disclosed in
また、撮影者がカメラを水平に保って被写体を追いかけることが出来た場合、図3の(A-1)に示すように、図中に破線で示した画角も水平となるので、撮影画像は、(A-2)に示すようになる。しかし、カメラが水平から少し傾いてしまった場合、(B-1)に示すように、図中に破線で示した画角も水平から少し傾いてしまうので、撮影画像は、(B-2)のように傾いてしまう。このような画像に対し、カメラを水平に保てていた時相当になるように傾きを補正することで、(B-3)のような補正画像を取得することが考えられる。 In addition, when the photographer keeps the camera horizontal and follows the subject, as shown in (A-1) of FIG. becomes as shown in (A-2). However, when the camera is slightly tilted from the horizontal, as shown in (B-1), the angle of view indicated by the dashed line in the figure is also slightly tilted from the horizontal, so the photographed image becomes (B-2). It tilts like It is conceivable to obtain a corrected image such as (B-3) by correcting the tilt of such an image so as to correspond to when the camera is kept horizontal.
しかし、流し撮りにおいては、必ずしもカメラを水平に保って追いかけることが撮影者の意図であるとは限らない。例えば、図3の(C-1)、(D-1)に示すように、被写体が水平に対して斜めに動いている場合を想定する。この場合、(C-1)に示すように、撮影者が、カメラを水平に保って被写体を追いかけると、(C-2)に示すように、水平に対する被写体の移動方向の傾きを表現した画像が得られる。一方、(D-1)に示すように、撮影者が、カメラを被写体の傾きと同程度に傾けて被写体を追いかけた場合には、(D-2)のように、背景を画像に対して真横に流すことが可能となる。しかし、このような場合に特許文献2の技術を適用すると、(D-3)に示すように、撮影者が本来意図しない画像となる補正が行われてしまう。本発明は、流し撮りの際に、撮影者の意図を反映した画像の傾き補正を行う画像処理装置の提供を目的とする。
However, in panning, it is not necessarily the photographer's intention to keep the camera horizontal and chase. For example, as shown in (C-1) and (D-1) of FIG. 3, it is assumed that the subject is moving diagonally with respect to the horizontal. In this case, as shown in (C-1), when the photographer keeps the camera horizontal and follows the subject, as shown in (C-2), an image expressing the inclination of the moving direction of the subject with respect to the horizontal is obtained. On the other hand, as shown in (D-1), when the photographer follows the subject by tilting the camera to the same extent as the inclination of the subject, the background is placed against the image as shown in (D-2). It is possible to flow sideways. However, if the technique disclosed in
本発明の一実施形態の画像処理装置は、流し撮りによって得られる撮像画像中の背景の流れる方向を算出する算出手段と、加速度を検出する検出手段と、前記算出された背景の流れる方向及び前記検出された加速度に応じて算出した補正角に基づいて、前記撮像画像の傾きを補正する制御手段とを備える画像処理装置であって、前記制御手段は、前記算出された背景の流れる方向の第1の方向に対する角度が第2の閾値より小さい場合に前記撮像画像の傾きを補正し、前記算出された背景の流れる方向の前記第1の方向に対する角度が前記第2の閾値以上であり、前記検出された加速度に応じた前記画像処理装置の水平に対する傾きが第1の閾値未満である場合に前記撮像画像の傾きを補正し前記第1の閾値以上である場合に前記撮像画像の傾きを補正しないことを特徴とする。 An image processing apparatus according to an embodiment of the present invention includes calculation means for calculating a flowing direction of a background in a captured image obtained by panning; detection means for detecting acceleration; and a control means for correcting the tilt of the captured image based on a correction angle calculated according to the detected acceleration, wherein the control means corrects the calculated background flowing direction. correcting the inclination of the captured image when the angle with respect to one direction is smaller than a second threshold, and the angle of the calculated background flowing direction with respect to the first direction is greater than or equal to the second threshold; Correcting the tilt of the captured image when the tilt of the image processing device with respect to the horizontal according to the detected acceleration is less than a first threshold, and correcting the tilt of the captured image when the tilt is greater than or equal to the first threshold. characterized by not
本発明の画像処理装置によれば、流し撮りの際に、撮影者の意図を反映した画像の傾き補正を行うことができる。 According to the image processing apparatus of the present invention, it is possible to correct the tilt of an image reflecting the intention of the photographer during panning.
(実施例1)
図1は、本実施形態の画像処理装置を適用した撮像装置の基本構成を示すブロック図である。
撮像装置100は、例えば、デジタルカメラ、デジタルビデオカメラなどのカメラの他、カメラ機能付き携帯電話、カメラ付きコンピュータなど、カメラ機能を備える電子機器である。光学系101は、レンズ群、シャッタ、絞りなどを備える結像光学系である。レンズ群は、手振れ等の補正を行う補正レンズやフォーカスレンズなどを含む。
(Example 1)
FIG. 1 is a block diagram showing the basic configuration of an imaging device to which the image processing device of this embodiment is applied.
The
光学系101は、CPU103の制御信号にしたがって、被写体光を撮像素子102に結像させる。撮像素子102は、CCD(電荷結合素子)イメージセンサ、CMOS(相補型金属酸化膜半導体)イメージセンサなどの撮像デバイスであり、光学系101を通して結像した光を光電変換により画像信号に変換する。
The
CPU103は、メモリに予め記憶されたプログラムを実行することにより、入力信号などに従って撮像装置100を構成する各部を制御する。一次記憶装置104は、例えばRAM(Random Access Memory)などの揮発性装置であり、一時的なデータを記憶し、CPU103のワークメモリとして使用される。一次記憶装置104に記憶されている情報は、画像処理部105が使用し、また記録媒体106へ記録される場合もある。二次記憶装置107は、例えば、EEPROM(Electrically Erasable Programmable Read-Only Memory )などの不揮発性記憶装置である。二次記憶装置107には、撮像装置100を制御するためのプログラム(ファームウェア)や各種の設定情報が記憶されており、CPU103によって利用される。
The
記録媒体106は、一次記憶装置104に記憶されている撮影画像データなどを記録する。また、記録媒体106は、例えば半導体メモリカードのように撮像装置100から取り外し可能である。記録媒体106に記録されたデータは、PC(パーソナルコンピュータ)などの外部機器に装着して読み出すことが可能である。つまり、撮像装置100は、記録媒体106の着脱機構および読み書き機能を有する。表示部108は、撮影時のビューファインダ画像の表示、撮影した画像の表示、対話的な操作のためのGUI(Graphical User Interface)画像などの表示を行う。操作部109は、ユーザ操作を受け付けて、CPU103へ入力情報を伝達する入力デバイス群であり、例えばボタン、レバー、タッチパネルなどを備える。また音声や視線などを用いた入力機器を操作に使用することもできる。
A
撮像装置100は、画像処理部105が撮像画像に適用する画像処理のパターンを複数有しており、このパターンを撮像モードとして操作部109により設定可能である。画像処理部105は、いわゆる現像処理と呼ばれる画像処理をはじめとして、撮影モードに応じた色調の調整などの各種処理を行う。なお、画像処理部105の機能の少なくとも一部は、CPU103がソフトウェア処理によって実現してもよい。
The
図2は、流し撮り画像の傾き補正処理の例を説明するフローチャートである。
まず、ステップS200において、CPU103が、フレームの取得を行う。具体的には、CPU103は、流し撮りの本撮影の前の画像の取得を行う。なお、ステップS200は、複数回実行されるので、複数のフレームが存在している。
FIG. 2 is a flowchart illustrating an example of tilt correction processing for a panning image.
First, in step S200, the
次に、ステップS201において、CPU103が、ステップS200で得られたフレーム画像に基づいて、背景の移動角度の算出を行う。すなわち、CPU103は、流し撮りによって得られる撮像画像中の背景の移動角度を算出する算出手段として機能する。なお、背景の移動角度の検出に関しては、特許文献1に開示されている技術や、フレーム画像群から移動ベクトルを算出する手法など様々な提案を用いることが可能であるので、説明を省略する。
Next, in step S201, the
次に、ステップS202において、CPU103が、流し撮りの本撮影の露光動作を行うかどうかを判定する。具体的には、CPU103は、操作部109に含まれるシャッターボタンの全押し(以降「S2」と表記)がなされたかどうかを判定する。S2が行われていない場合、CPU103は、ステップS200からステップS201の動作を繰り返す。S2が行われていた場合は、処理がステップS203に進む。
Next, in step S202, the
ステップS203において、CPU103が、流し撮りの露光動作を開始する。具体的には、CPU103は、光学系101に含まれるシャッタの制御を行う。続いて、ステップS204において、CPU103が、露光時間として予め定めた露光時間が経過したかを判定する。露光時間が経過していない場合は、処理がステップS204に戻る。露光時間が経過した場合は、処理がステップS205に進む。ステップS205において、CPU103が、流し撮りの露光動作を終了させる。
In step S203, the
次に、ステップS206において、CPU103が、S201で算出された背景の移動角度に応じて、撮像画像の補正角を算出し、補正角に基づいて、撮像画像の傾きを補正する制御手段として機能する。この例では、CPU103は、撮影画像の真横方向(第1の方向)に対する、背景が流れる方向の傾きに基づいて、補正角の計算を行う。
Next, in step S206, the
図3は、撮影状況に応じた傾き補正の例を説明する図である。
(B-3)、(D-3)、(E-3)、(F-3)は、特許文献2が開示する、カメラが水平に保たれていた時相当の傾き補正をした場合の傾き補正画像を示す。(B-4)、(C-4)、(E-4)、(F-4)は、本実施形態において、カメラと被写体の移動方向とを合わせるように傾き補正をした場合の傾き補正画像を示す。
FIG. 3 is a diagram illustrating an example of tilt correction according to shooting conditions.
(B-3), (D-3), (E-3), and (F-3) are the inclinations when the inclination correction corresponding to when the camera is kept horizontal, which is disclosed in
例えば、(A-1)に示すように、カメラが水平に保たれており、被写体移動方向も水平である場合を想定する。この場合は、撮影画像の真横方向と、背景が流れる方向は(A-2)に示すように、同じ方向になるので、傾き補正は不要となる。一方、(B-1)に示すように、カメラが水平から傾いている場合を想定する。この場合は、(B-2)に示すように、撮影画像の真横方向に対し、背景が流れる方向が傾く。CPU103は、例えば、補正角度θを、画像の真横方向に対する背景の流れる方向の傾きΔを打ち消す角度(θ=-Δ)とする。これにより、(B-2)に示す撮影画像に対して、(B-4)に示すように、カメラと移動方向とが合うようにする傾き補正をすることができる。
For example, as shown in (A-1), it is assumed that the camera is kept horizontal and the moving direction of the subject is also horizontal. In this case, the horizontal direction of the photographed image and the direction in which the background flows are the same as shown in (A-2), so tilt correction is unnecessary. On the other hand, as shown in (B-1), it is assumed that the camera is tilted from the horizontal. In this case, as shown in (B-2), the direction in which the background flows is tilted with respect to the lateral direction of the captured image. For example, the
また、例えば(D-1)に示すように、ユーザが意図的にカメラを被写体の移動方向と同じ角度に傾けて撮影したような場合は、撮影画像((D-2))の真横方向と背景が流れる方向が等しくなるので、傾き補正が不要(Δ=0)となる。したがって、ユーザの意図と反する補正((D-3)に示す傾き補正)を行わずに済む。 Also, for example, as shown in (D-1), when the user intentionally tilts the camera at the same angle as the moving direction of the subject and takes a picture, the photographed image ((D-2)) is taken in the horizontal direction. Since the direction in which the background flows is the same, tilt correction is unnecessary (Δ=0). Therefore, it is not necessary to perform the correction contrary to the user's intention (tilt correction shown in (D-3)).
また、(E-1)に示すように、画像を傾け過ぎてしまったような場合においては、撮影画像((Eー2))に対して、(E-4)に示すような、ユーザの意図に合った補正をすることが可能となる。 In addition, as shown in (E-1), in the case where the image is tilted too much, the photographed image ((E-2)) may be changed by the user as shown in (E-4). It is possible to make a correction that matches the intention.
実施例1の画像処理装置によれば、流し撮りにおいて、ユーザが意図的にカメラを被写体の移動方向と同じ角度に傾けて撮影した際に、背景の移動方向が画像に対して真横方向となるように補正を行うことが可能となる。 According to the image processing apparatus of the first embodiment, when the user intentionally tilts the camera at the same angle as the moving direction of the subject in panning, the moving direction of the background becomes the horizontal direction with respect to the image. It is possible to make corrections as follows.
(実施例2)
実施例1の画像処理装置は、撮影画像の真横方向に対する、背景の流れる方向の傾きを用いて傾き補正を行う。実施例2の画像処理装置は、さらに、加速度を検出する水準器等から得られる情報も用いて傾き補正を行う。これにより、水平から少し傾いたような画像を補正することができる。
(Example 2)
The image processing apparatus according to the first embodiment performs tilt correction using the tilt in the direction in which the background flows with respect to the horizontal direction of the captured image. The image processing apparatus according to the second embodiment also performs tilt correction using information obtained from a spirit level that detects acceleration. This makes it possible to correct an image that is slightly tilted from the horizontal.
図3の(B-1)に示すように、ユーザが、カメラを水平に保持しているつもりであっても、意図せず傾いてしまう場合がある。この場合に、被写体の移動方向が水平であれば、実施例1の手法によって、(B-4)に示すような傾き補正を行うことが可能となる。しかし、(C-1)に示すように、被写体の移動方向が水平ではない場合は、カメラの傾きを補正することができなくなる。そこで、実施例2では、CPU103は、画像の真横方向に対する背景の流れる方向の傾きと、水準器等の加速度センサが検出した加速度に応じて決まるカメラの水平に対する傾きφとに基づいて、傾き補正を行う。
As shown in (B-1) of FIG. 3, even when the user intends to hold the camera horizontally, the camera may be tilted unintentionally. In this case, if the moving direction of the object is horizontal, the tilt correction as shown in (B-4) can be performed by the method of the first embodiment. However, as shown in (C-1), if the moving direction of the object is not horizontal, the tilt of the camera cannot be corrected. Therefore, in the second embodiment, the
実施例2では、図2のS206において、CPU103は補正角度θを例えば以下の式で決定する。
θ=-MIN(|φ|、|Δ|)
|x|はxの絶対値を示し、MIN(x,y)はxとyのうち小さいほうを選択することを示す。つまり、CPU103は、加速度に応じて決まるカメラの水平に対する傾きの絶対値と、撮影画像中の背景の流れる方向の、撮像画像の真横方向に対する角度の絶対値のうち、小さいほうの角度を用いて、補正角を算出する。
In the second embodiment, in S206 of FIG. 2, the
θ=−MIN(|φ|,|Δ|)
|x| indicates the absolute value of x, and MIN(x, y) indicates to select the smaller of x and y. In other words, the
図4は、被写体の移動方向の水平に対する傾きと、カメラの水平に対する傾きとに応じた傾き補正を説明する図である。
実施例1では、CPU103は、図4の(B)のように、被写体の移動方向の水平に対する傾きとカメラの水平に対する傾きが異なってしまった場合に、図4の(A)のように、カメラの傾きを移動方向の傾きに合わせるように傾き補正を行う。実施例2では、CPU103は、さらに、水準器等の加速度センサの情報から得られたカメラの水平に対する傾きに基づいて、(C)のような傾き補正を行う。すなわち、CPU103は、カメラが水平に対してわずかに傾いてしまったものに関しては、カメラが水平になっている時相当になるように補正を行う。このようにして、水準器等の加速度センサを用いることにより、水平から傾いた被写体に関しても補正をしつつ、かつ、ユーザが意図的に被写体の移動方向と同じ方向に傾けたことに応じた補正を行うことが可能となる。
FIG. 4 is a diagram for explaining tilt correction according to the tilt of the moving direction of the subject with respect to the horizontal and the tilt of the camera with respect to the horizontal.
In the first embodiment, when the inclination of the moving direction of the object with respect to the horizontal is different from the inclination of the camera with respect to the horizontal as shown in FIG. 4B, the
(実施例3)
実施例3では、ユーザが、画像の真横方向に対する背景の流れる方向を意図的に傾けたことに応じた傾き補正を行う。図3の(F-1)は、ユーザが、カメラの傾きを被写体の移動方向よりもさらに傾けた場合の撮影状況を示す。この場合に、ユーザの狙いは、(F-2)に示すように、画像の真横方向に対する背景の流れる方向が斜め方向(例えば画像の長手方向)になるように流し撮りを行うことで、画像の動感を出すという点にある。したがって、所定の条件下では傾き補正を行わないことが望ましい。
(Example 3)
In the third embodiment, tilt correction is performed in response to the user intentionally tilting the flowing direction of the background with respect to the lateral direction of the image. (F-1) in FIG. 3 shows a photographing situation when the user tilts the camera more than the moving direction of the subject. In this case, as shown in (F-2), the user's aim is to take a panning shot so that the direction of the background flowing with respect to the horizontal direction of the image is an oblique direction (for example, the longitudinal direction of the image). The point is that it gives a sense of dynamism. Therefore, it is desirable not to perform tilt correction under certain conditions.
実施例3では、補正に関する閾値Th1、Th2を設ける。Th1は、カメラを水平に保持しようとした際に意図せず傾いてしまう角度を示す。Th1として、例えば、一定の角度を指定したりすることも可能である。また、CPU103が、Th1を、背景の移動速度、被写体距離、焦点距離のうち、少なくともいずれか1つに基づいて決めることも可能である。例えば、背景の移動速度が速い場合はカメラを振る速度が速いので、カメラが傾きやすいことが想像される。したがって、この場合には、Th1を大きくする。また、被写体距離や焦点距離が遠い場合は、カメラを振る速度が遅いことが多いので、Th1を小さくしてもよい。
In the third embodiment, thresholds Th1 and Th2 regarding correction are provided. Th1 indicates the angle at which the camera is unintentionally tilted when trying to hold it horizontally. As Th1, for example, it is also possible to designate a certain angle. It is also possible for the
Th2は、カメラの傾きを被写体の移動方向の傾きに合わせようとする場合に、移動方向の傾きに足りない角度、または傾け過ぎてしまう角度を示す。Th2に関しても、一定の角度を指定したり、またはTh1と同様にカメラを振る速度が速いほど角度を合わせにくくなるので、大きい閾値を指定するといったことも可能である。このようにしてTh1、Th2を設けることにより、図4の(D)のように、被写体の移動方向の水平に対する傾きとカメラの水平に対する傾きの差が大きい場合は、傾き補正を行わないといったことが可能となる。CPU103は、この時の補正角度θを、例えば、以下の式にしたがって求める。
θ=-MIN(|φ|、|Δ|) (|φ|<Th1 & |Δ|<Th2)
θ=-φ (|φ|<Th1 & |Δ|≧Th2)
θ=-Δ (|φ|≧Th1 & |Δ|<Th2)
θ=0 (|φ|≧Th1 & |Δ|≧Th2)
このように、実施例3では、CPU103は、補正に関する閾値を設定する。例えば、CPU103は、カメラの水平に対する傾きを示す角度φが閾値より小さい場合に、角度φを打ち消すように補正角を算出する。また、例えば、CPU103は、撮像画像中の背景の流れる方向の、撮像画像の真横方向に対する角度Δが閾値より小さい場合に、角度Δを打ち消すように補正角を算出する。実施例3の画像処理装置によれば、画像の動感を出すためにユーザが意図的に流し方向を傾けた場合においても、適合する補正を行うことが可能となる。
Th2 indicates an angle that is insufficient or excessively tilted in the movement direction when attempting to match the tilt of the camera with the tilt in the movement direction of the subject. As for Th2, it is also possible to specify a constant angle or, like Th1, specify a large threshold because the faster the camera is shaken, the more difficult it is to adjust the angle. By providing Th1 and Th2 in this way, as shown in FIG. 4D, when there is a large difference between the tilt of the moving direction of the subject with respect to the horizontal and the tilt of the camera with respect to the horizontal, tilt correction is not performed. becomes possible. The
θ=−MIN(|φ|, |Δ|) (|φ|<Th1 &|Δ|<Th2)
θ=−φ (|φ|<Th1 & |Δ|≧Th2)
θ=−Δ (|φ|≧Th1 &|Δ|<Th2)
θ=0 (|φ|≧Th1 & |Δ|≧Th2)
As described above, in the third embodiment, the
(実施例4)
実施例3では、補正角度が閾値を超えた場合は補正を行わない(θ=0)とする例を説明した。実施例4の画像処理装置は、さらに、ユーザが意図的にカメラを傾けた場合の傾け量を安定させる。
(Example 4)
In the third embodiment, an example has been described in which correction is not performed (θ=0) when the correction angle exceeds the threshold. The image processing apparatus of Example 4 further stabilizes the amount of tilt when the user intentionally tilts the camera.
図3の(F-1)には、ユーザが意図的にカメラを傾けた撮影状況を示すが、同じ角度で何回も撮影を行いたい場合、常に同じ角度で撮影することは難しいので、撮影毎にわずかに背景の流れる角度がばらついた画像が得られてしまう。そこで、実施例4の画像処理装置は、このような場合にユーザが背景の流れる角度を安定させる。 (F-1) in FIG. 3 shows a photographing situation in which the user intentionally tilts the camera. An image is obtained in which the angle at which the background flows slightly varies each time. Therefore, in the image processing apparatus of the fourth embodiment, the user stabilizes the angle at which the background flows in such a case.
図5は、実施例4の画像処理装置の処理を説明する図である。
例えば、図5の(A)のように、ユーザが意図的に傾けて撮影し、(B)の位置にプロットされた場合を想定する。(A)に示す撮影状況と同じような背景の流れ方向となるためには、以降の撮影は、(C)の範囲にプロットされる必要がある。そこで、CPU103は、例えば(D)、(E)の位置にプロットされる撮影が行われた場合には、傾き補正として、(C)のライン上に乗るように補正をする。これにより、(A)の撮影の時と似た背景の流れる角度で撮影を行うことが可能となる。つまり、(A)の撮影における画像の真横方向に対する背景の流れる方向の傾きをΔ1とし、(D)の撮影における同傾きをΔ2とした時、補正角度θは、以下のようになる。
θ=-|Δ1-Δ2|
すなわち、CPU103は、第1の撮影に関する傾きΔ1と、第2の撮影に関する傾きΔ2との差を打ち消すように補正角を算出する。
FIG. 5 is a diagram for explaining processing of the image processing apparatus according to the fourth embodiment.
For example, as shown in (A) of FIG. 5, it is assumed that the user intentionally tilts and shoots, and the image is plotted at the position of (B). In order to achieve the same background flow direction as in the photographing situation shown in (A), subsequent photographing must be plotted in the range of (C). Therefore, for example, when photographing plotted at positions (D) and (E) is performed, the
θ=−|Δ1−Δ2|
That is, the
なお、別シーンで撮影を行う場合には、補正角度θによる補正を一度リセットする必要があるので、例えば、一定時間経過や、θがある閾値以上となった場合に補正をリセットする。本実施例によれば、背景の流れる角度を安定させるように補正することにより、ユーザが同一のシーンを連続で撮影した際に背景の流れる角度が安定した画像を提供することが可能となる。 It should be noted that, when photographing another scene, it is necessary to reset the correction based on the correction angle θ once. For example, the correction is reset when a certain period of time elapses or θ becomes equal to or greater than a certain threshold. According to this embodiment, by correcting so as to stabilize the angle at which the background flows, it is possible to provide an image in which the angle at which the background flows is stable when the user continuously photographs the same scene.
(実施例5)
図6は、実施例5の画像処理装置の処理を説明する図である。
傾き補正においては、補正が大きいほど画像が切り取られてしまう。例えば、図6において、(A-1)の画像を(A-2)の角度に傾き補正を行いたい場合を想定する。(A-1)の外側の領域は、データを持たないので、補正結果は、(A-3)のように切り取られたものとなってしまう。この時、図6の(A)のような場合は、被写体が切られてしまう。したがって、このような場合には、CPU103が、補正角を制限することにより、被写体が切られないようにする。
(Example 5)
FIG. 6 is a diagram for explaining processing of the image processing apparatus according to the fifth embodiment.
In tilt correction, the larger the correction, the more the image is cropped. For example, in FIG. 6, it is assumed that the image (A-1) is tilt-corrected to the angle (A-2). Since the area outside (A-1) does not have data, the correction result will be a clipped area like (A-3). At this time, in the case shown in FIG. 6A, the subject is cut off. Therefore, in such a case, the
補正角の制限において、CPU103は、例えば、最大で補正出来る角度を算出する。まず、CPU103は、(B-1)のように、移動体領域を含み、かつ、元のアスペクトを維持するような領域を設定する。この領域は、図6(A)中の移動体(A-4)の領域を内包する領域に相当する。領域(B-1)の幅をW、高さをHとする。領域(B-1)を含みつつθ回転させるためには(B-2)で示す領域を確保する必要がある。この時、領域(B-2)の高さH2、及び幅W2は、以下のように表わされる。
H2=sin(α+θ)×SQRT{(H÷2)^2+(W÷2)^2}×2
W2=H2×(W÷H)
(SQRT{x}はxの平方根を表わす。)
領域(B-2)を切り抜くためには(B-3)で示す幅と高さが必要になる。この時、(B-3)の領域の高さH3、及び幅W3は、以下のように表わされる。
H3=cos(θ)×H2+sin(θ)×W2
W3=H3×(W÷H)
CPU103は、H3、W3が元の画像サイズを超えないような補正角度θを決定する。
In limiting the correction angle, the
H2=sin(α+θ)×SQRT{(H÷2)̂2+(W÷2)̂2}×2
W2=H2×(W/H)
(SQRT{x} represents the square root of x.)
In order to cut out the area (B-2), the width and height indicated by (B-3) are required. At this time, the height H3 and width W3 of the area (B-3) are expressed as follows.
H3=cos(θ)×H2+sin(θ)×W2
W3=H3×(W/H)
The
このように、本実施例では、CPU103は、被写体領域の情報に基づいて、撮像画像の傾きの補正により被写体が切られないように補正角を制限する。これにより、傾き補正により被写体切られてしまうことを抑制することが可能となる。以上、本発明の好ましい実施例について説明したが、本発明はこれらの実施例に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。例えば、上述した実施例1乃至実施例5を適宜組み合わせて適用するようにしてもよい。
As described above, in this embodiment, the
(その他の実施形態)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other embodiments)
The present invention supplies a program that implements one or more functions of the above-described embodiments to a system or device via a network or a storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by processing to It can also be implemented by a circuit (for example, ASIC) that implements one or more functions.
100 撮像装置
103 CPU
100
Claims (9)
加速度を検出する検出手段と、
前記算出された背景の流れる方向及び前記検出された加速度に応じて算出した補正角に基づいて、前記撮像画像の傾きを補正する制御手段とを備える画像処理装置であって、
前記制御手段は、前記算出された背景の流れる方向の第1の方向に対する角度が第2の閾値より小さい場合に前記撮像画像の傾きを補正し、前記算出された背景の流れる方向の前記第1の方向に対する角度が前記第2の閾値以上であり、前記検出された加速度に応じた前記画像処理装置の水平に対する傾きが第1の閾値未満である場合に前記撮像画像の傾きを補正し前記第1の閾値以上である場合に前記撮像画像の傾きを補正しない
ことを特徴とする画像処理装置。 a calculation means for calculating the flowing direction of the background in the captured image obtained by panning;
detection means for detecting acceleration;
an image processing apparatus comprising: a control unit that corrects the tilt of the captured image based on the calculated direction of background flow and the correction angle calculated according to the detected acceleration,
The control means corrects the tilt of the captured image when the angle of the calculated background flowing direction with respect to the first direction is smaller than a second threshold value, and corrects the tilt of the captured image, is greater than or equal to the second threshold, and the tilt of the image processing device with respect to the horizontal corresponding to the detected acceleration is less than the first threshold, the tilt of the captured image is corrected, and the An image processing apparatus, wherein the tilt of the captured image is not corrected when the tilt is equal to or greater than a threshold value of 1 .
ことを特徴とする請求項1に記載の画像処理装置。 The control means controls that the angle of the calculated background flowing direction with respect to the first direction is smaller than the second threshold value, and the tilt of the image processing device with respect to the horizontal corresponding to the detected acceleration is the first direction. 2. The image processing apparatus according to claim 1, wherein the correction angle is calculated according to an angle of the direction in which the background in the captured image flows with respect to the first direction, when the angle is equal to or greater than a threshold of .
ことを特徴とする請求項2に記載の画像処理装置。 The image processing apparatus according to claim 2, wherein the first direction is a lateral direction of the captured image.
ことを特徴とする、請求項1または請求項2に記載の画像処理装置。 The control means is configured such that the angle of the calculated background flowing direction with respect to the first direction is equal to or greater than the second threshold, and the inclination of the image processing device with respect to the horizontal corresponding to the detected acceleration is the second threshold. 3. The correction angle according to claim 1 or 2, wherein when the acceleration is less than a threshold of 1, the correction angle is calculated based on the tilt of the image processing device with respect to the horizontal corresponding to the detected acceleration. image processing device.
ことを特徴とする請求項4に記載の画像処理装置。 The control means controls that the angle of the calculated background flowing direction with respect to the first direction is smaller than the second threshold value, and the tilt of the image processing device with respect to the horizontal corresponding to the detected acceleration is the first direction. of the absolute value of the tilt with respect to the horizontal of the image processing device according to the detected acceleration, and the absolute value of the angle of the flowing direction of the background in the captured image with respect to the first direction , if the threshold is less than 5. The image processing apparatus according to claim 4, wherein the correction angle is calculated using the smaller angle.
ことを特徴とする請求項1乃至5のいずれか1項に記載の画像処理装置。 6. The controller according to any one of claims 1 to 5 , wherein the controller calculates the first threshold based on at least one of acceleration of the image processing device, subject distance, and focal length. 1. The image processing apparatus according to claim 1.
ことを特徴とする請求項1乃至6のいずれか1項に記載の画像処理装置。 7. The apparatus according to any one of claims 1 to 6 , wherein the control means limits the correction angle so that the subject is not cut off by correcting the tilt of the captured image based on the information of the subject area. The described image processing device.
加速度を検出する検出工程と、
前記算出された背景の流れる方向及び前記検出された加速度に応じて算出した補正角に基づいて、前記撮像画像の傾きを補正する制御工程とを備える画像処理装置の制御方法であって、
前記制御工程は、前記算出された背景の流れる方向の第1の方向に対する角度が第2の閾値より小さい場合に前記撮像画像の傾きを補正し、前記算出された背景の流れる方向の前記第1の方向に対する角度が前記第2の閾値以上であり、前記検出された加速度に応じた前記画像処理装置の水平に対する傾きが第1の閾値未満である場合に前記撮像画像の傾きを補正し前記第1の閾値以上である場合に前記撮像画像の傾きを補正しない
ことを特徴とする画像処理装置の制御方法。 a calculation step of calculating the flowing direction of the background in the captured image obtained by panning;
a detection step for detecting acceleration;
A control method for an image processing device, comprising a control step of correcting the tilt of the captured image based on the calculated direction of background flow and the correction angle calculated according to the detected acceleration,
The control step corrects the tilt of the captured image when the angle of the calculated background flowing direction with respect to the first direction is smaller than a second threshold value, and corrects the tilt of the captured image. is greater than or equal to the second threshold, and the tilt of the image processing device with respect to the horizontal corresponding to the detected acceleration is less than the first threshold, the tilt of the captured image is corrected, and the A control method for an image processing apparatus, wherein the tilt of the captured image is not corrected when the tilt is equal to or greater than a threshold value of 1 .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016221340A JP7118585B2 (en) | 2016-11-14 | 2016-11-14 | Image processing device, imaging device and control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016221340A JP7118585B2 (en) | 2016-11-14 | 2016-11-14 | Image processing device, imaging device and control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2018081124A JP2018081124A (en) | 2018-05-24 |
| JP7118585B2 true JP7118585B2 (en) | 2022-08-16 |
Family
ID=62197643
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2016221340A Active JP7118585B2 (en) | 2016-11-14 | 2016-11-14 | Image processing device, imaging device and control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7118585B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2021100238A (en) * | 2019-12-20 | 2021-07-01 | キヤノン株式会社 | Image processing device, imaging apparatus, and image processing method |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010093607A (en) | 2008-10-09 | 2010-04-22 | Panasonic Corp | Image pickup device |
| JP2013138413A (en) | 2011-11-28 | 2013-07-11 | Panasonic Corp | Imaging apparatus |
| JP2016103682A (en) | 2014-11-27 | 2016-06-02 | キヤノン株式会社 | Level of optical equipment |
-
2016
- 2016-11-14 JP JP2016221340A patent/JP7118585B2/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010093607A (en) | 2008-10-09 | 2010-04-22 | Panasonic Corp | Image pickup device |
| JP2013138413A (en) | 2011-11-28 | 2013-07-11 | Panasonic Corp | Imaging apparatus |
| JP2016103682A (en) | 2014-11-27 | 2016-06-02 | キヤノン株式会社 | Level of optical equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2018081124A (en) | 2018-05-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6594524B2 (en) | Imaging apparatus, operating method, image processing apparatus, and image processing method | |
| JP6685843B2 (en) | Imaging device | |
| US10136064B2 (en) | Image processing apparatus and method of controlling image processing apparatus | |
| US10205878B2 (en) | Image processing apparatus, image-capturing apparatus, image processing method, and non-transitory computer-readable storage medium | |
| JP6749791B2 (en) | Imaging device and automatic focusing method | |
| US11037277B2 (en) | Image processing apparatus, imaging apparatus, lens apparatus, and image processing method | |
| CN109416458B (en) | Camera with a camera module | |
| CN111164963B (en) | Image pickup apparatus, method of operating the same, and storage medium | |
| JP2006310969A (en) | Imaging apparatus | |
| JP7118585B2 (en) | Image processing device, imaging device and control method | |
| JP4487811B2 (en) | Imaging device | |
| JP2015215553A (en) | Imaging apparatus | |
| JP5404160B2 (en) | Imaging system and imaging method | |
| JP6746473B2 (en) | Imaging device and control method | |
| JP5219474B2 (en) | Imaging apparatus and control method thereof | |
| JP4910720B2 (en) | camera | |
| JP2010122358A (en) | Autofocus device, autofocus method, and imaging apparatus | |
| JP2025064105A (en) | Electronic device and control method thereof | |
| JP2007306436A (en) | Imaging device | |
| US20150077621A1 (en) | Image pickup apparatus, image pickup system, method of controlling image pickup apparatus, and non-transitory computer-readable storage medium | |
| US20210195119A1 (en) | Image processing apparatus, image capturing apparatus and image processing method | |
| JP2007028163A (en) | Electronic camera display device | |
| JP2006229697A (en) | Image pickup device | |
| JP2007208827A (en) | Imaging device | |
| JP2016109958A (en) | Imaging device and control method of the same |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20191111 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20201020 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20201201 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210125 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210629 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210830 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20220201 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220331 |
|
| 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: 20220705 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20220803 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 7118585 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |