JP2023103964A - Image blur correction apparatus, control method therefor, imaging apparatus, program, and storage medium - Google Patents
Image blur correction apparatus, control method therefor, imaging apparatus, program, and storage medium Download PDFInfo
- Publication number
- JP2023103964A JP2023103964A JP2022197365A JP2022197365A JP2023103964A JP 2023103964 A JP2023103964 A JP 2023103964A JP 2022197365 A JP2022197365 A JP 2022197365A JP 2022197365 A JP2022197365 A JP 2022197365A JP 2023103964 A JP2023103964 A JP 2023103964A
- Authority
- JP
- Japan
- Prior art keywords
- subject
- blur correction
- image
- correction amount
- image blur
- 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
- Studio Devices (AREA)
- Adjustment Of Camera Lenses (AREA)
Abstract
Description
本発明はデジタルカメラやデジタルビデオ等の撮像装置における像ブレ補正技術に関する。 The present invention relates to an image blur correction technique in imaging devices such as digital cameras and digital videos.
デジタルカメラ等の撮像装置では、カメラ本体部を保持するユーザの手振れに起因する「像ブレ」の他、人物などの被写体の位置が変化することで生じる「被写体ブレ」を補正することが行われている。 In an imaging device such as a digital camera, in addition to "image blurring" caused by camera shake of the user holding the camera body, "subject blurring" caused by a change in the position of a subject such as a person is corrected. ing.
手振れによる「像ブレ」は、撮像装置に取り付けられた角速度センサや、撮像画像内の静止物体(背景)の動きベクトルを取得することにより検出することができる。一方「被写体ブレ」は、被写体検出を行い被写体の位置を計測することにより検出することができる。 "Image blurring" due to camera shake can be detected by an angular velocity sensor attached to an imaging device or by obtaining a motion vector of a stationary object (background) in a captured image. On the other hand, "subject blur" can be detected by performing subject detection and measuring the position of the subject.
被写体検出では、被写体の部位(例えば、頭部、顔、瞳、鼻、口、胴体、腕、脚など)ごとに検出することも可能である。撮影状況によっては、被写体のある部位は検出できるが、別の部位は検出できない場合がある。例えば、被写体が遠くにいて、顔は小さくて検出できないが、胴体はある程度大きいので検出できる場合などである。その反対に、顔は肌の色から検出できるが、胴体は服の色が背景と同化していて検出できない場合などもある。このように、撮影状況によって検出できる被写体の部位が変わることがある。 In subject detection, it is also possible to detect each part of the subject (eg, head, face, eyes, nose, mouth, body, arms, legs, etc.). Depending on the shooting conditions, a certain part of the subject may be detected, but other parts may not be detected. For example, the subject is far away and the face is too small to be detected, but the body is too large to be detected. Conversely, there are cases where the face can be detected from the color of the skin, but the body cannot be detected because the color of the clothes blends with the background. In this way, the part of the subject that can be detected may change depending on the shooting conditions.
そこで、例えば特許文献1には、顔が検出できない場合に、顔以外の部位を検出するように切り替えて、被写体を追尾する技術が開示されている。 Therefore, for example, Japanese Patent Application Laid-Open No. 2002-200001 discloses a technique for tracking a subject by switching to detecting parts other than the face when the face cannot be detected.
特許文献1では、被写体の位置を追尾するのみで、被写体の位置を画像内の所定の目標位置に近づける被写体ブレ補正については考慮されていない。 Japanese Patent Laid-Open No. 2002-200001 only tracks the position of the subject, and does not take into consideration subject shake correction that brings the position of the subject closer to a predetermined target position in the image.
被写体ブレ補正では、被写体の部位の位置が、画像内の所定の位置付近に安定して留まるよう制御を行う。その際、検出される被写体の部位の位置が切り替わると、切り替わり前後の部位の位置の差が制御に反映され、被写体が移動していないにもかかわらず、画面内で被写体の位置が変化してしまう場合がある。 In subject shake correction, control is performed so that the position of the part of the subject stably stays near a predetermined position in the image. At that time, when the position of the detected part of the subject changes, the difference in the position of the part before and after the switch is reflected in the control, and even though the subject does not move, the position of the subject changes within the screen. may be lost.
例えば、人物の顔が画像中央に留まるよう制御をする場合において、途中で顔が検出できなくなり、胴体を検出するように切り替えることを考える。この場合、顔が中央に位置する状態から胴体が画像の中央に位置する状態となり、顔と胴体の部位の位置が不自然に変化し、画像の品位を損なってしまうという課題がある。 For example, when performing control so that the face of a person stays in the center of the image, it is assumed that the face cannot be detected in the middle and switching is made to detect the body. In this case, the state in which the face is positioned in the center changes to the state in which the body is positioned in the center of the image, resulting in an unnatural change in the positions of the face and the body, which impairs the quality of the image.
本発明は上述した課題に鑑みてなされたものであり、その目的は、検出される被写体の部位が切り替わる場合でも、映像の品位を損なわずに被写体ブレ補正を行うことができる像ブレ補正装置を提供することである。 SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and its object is to provide an image blur correction device capable of subject blur correction without impairing image quality even when the part of the subject to be detected changes. to provide.
本発明に係わる像ブレ補正装置は、入力された画像から被写体を部位ごとに検出し、検出された被写体の部位の位置を出力する被写体検出手段と、前記被写体検出手段により検出された1つ以上の被写体の部位から、所定の優先度に基づいて被写体の部位を選択する選択手段と、前記選択手段により選択された被写体の部位の位置と、画像内の所定の目標位置との差分に基づいて被写体ブレを補正するための被写体ブレ補正量を算出する被写体ブレ補正量算出手段と、を備え、前記被写体ブレ補正量算出手段は、前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、前記選択された被写体の部位の位置と前記目標位置との差分と、画像における前記第2の部位の位置と、切り替わる前に取得された画像における前記第2の部位の位置と、に基づいて、前記被写体ブレ補正量を算出することを特徴とする。 An image blur correction apparatus according to the present invention includes subject detection means for detecting each part of a subject from an input image and outputting the position of the detected part of the subject, and one or more detected by the subject detection means. selection means for selecting a part of the subject based on a predetermined priority from the parts of the subject, and based on the difference between the position of the part of the subject selected by the selection means and a predetermined target position in the image and subject blur correction amount calculation means for calculating a subject blur correction amount for correcting subject blur, wherein the subject blur correction amount calculation means determines whether the part of the subject selected by the selection means is from the first part. When switching to the second part, the difference between the position of the selected part of the subject and the target position, the position of the second part in the image, and the second part in the image acquired before switching The subject blur correction amount is calculated based on the position of .
本発明によれば、検出される被写体の部位が切り替わる場合でも、映像の品位を損なわずに被写体ブレ補正を行うことが可能となる。 According to the present invention, even when the part of the subject to be detected is switched, it is possible to perform subject shake correction without impairing the image quality.
以下、添付図面を参照して実施形態を詳しく説明する。なお、以下の実施形態は特許請求の範囲に係る発明を限定するものではない。実施形態には複数の特徴が記載されているが、これらの複数の特徴の全てが発明に必須のものとは限らず、また、複数の特徴は任意に組み合わせられてもよい。さらに、添付図面においては、同一若しくは同様の構成に同一の参照番号を付し、重複した説明は省略する。 Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. In addition, the following embodiments do not limit the invention according to the scope of claims. Although multiple features are described in the embodiments, not all of these multiple features are essential to the invention, and multiple features may be combined arbitrarily. Furthermore, in the accompanying drawings, the same or similar configurations are denoted by the same reference numerals, and redundant description is omitted.
(第1の実施形態)
<ブロック図の説明>
図1は、本発明の像ブレ補正装置の第1の実施形態である撮像装置100の構成を示す図である。
(First embodiment)
<Description of block diagram>
FIG. 1 is a diagram showing the configuration of an
図1において、撮像装置100は、撮影光学系101、撮像素子102、現像処理部103、被写体検出部104、被写体部位選択部105、被写体ブレ補正量算出部106、制御部110、ROM112、RAM114を備える。
In FIG. 1, an
なお、本実施形態では、撮影光学系101内に、撮影光学系101の光軸とは異なる方向に変位することにより、撮像面上で被写体像を移動させ像ブレを補正する補正レンズを有する。また、撮像素子102は、光軸と直交する方向に変位することにより、像ブレを補正することが可能に構成されている。
In this embodiment, the imaging
また、図1では、撮像装置100を、レンズとカメラ本体が一体化された撮像装置として示しているが、本発明は、レンズ交換式の撮像装置に対しても適用可能である。
In addition, although FIG. 1 shows the
図1において、撮影光学系101により結像された被写体像は、撮像素子102においてアナログ画像信号に変換される。そのアナログ画像信号は、現像処理部103において、A/D変換された後、ホワイトバランス補正、色(輝度・色差信号)変換、γ補正などの現像処理が施され、画像データとして出力される。
In FIG. 1, a subject image formed by a photographing
被写体検出部104は、現像処理部103からの入力画像データに対して、特定の被写体を部位ごとに検出し、検出された被写体の部位の位置を出力する。部位は、例えば、頭部、顔、瞳、鼻、口、胴体、腕、脚などである。
A
被写体部位選択部105は、被写体検出部104により検出された1つ以上の被写体の部位から、所定の優先度に基づいて被写体の部位を選択する。
The subject
被写体ブレ補正量算出部106は、被写体部位選択部105により選択された被写体の部位の位置と、画像内の所定の目標位置との差に基づいて被写体ブレ補正量を算出する。
Subject blur correction
そして、光学式像ブレ補正手段である撮影光学系101内の補正レンズ及び撮像素子102の少なくとも一方を、被写体ブレ補正量算出部106により算出された被写体ブレ補正量に基づいて変位させる。これにより、被写体の所望の部位の位置を、目標位置に近づけるよう光学式像ブレ補正を行うことができる。
Then, at least one of the correction lens in the photographing
マイクロコンピュータなどからなる制御部110は、ROM112に記憶されたプログラムをRAM114に展開して実行することにより、撮像装置100の全体を制御する。
A
なお、本発明は光学式像ブレ補正に限定されるものではなく、被写体ブレ補正量に基づいて、電子式像ブレ補正を行ってもよい。電子式像ブレ補正とは、被写体ブレ補正量に基づいて、画像領域全体からそれより小さい表示用の画像領域の切り出し位置を変更することにより、像ブレを補正する動作である。 The present invention is not limited to optical image blur correction, and electronic image blur correction may be performed based on the subject blur correction amount. The electronic image blur correction is an operation of correcting image blur by changing the clipping position of a smaller display image area from the entire image area based on the subject blur correction amount.
<フローチャートの説明>
次に、上記のように構成される撮像装置100における像ブレ補正動作について、図2に示すフローチャートを用いて説明する。図2のフローチャートの動作は、制御部110が、ROM112に記憶されたプログラムをRAM114に展開して実行することにより実現される。
<Description of flow chart>
Next, the image blur correction operation in the
図2において、ステップS201では、制御部110は、被写体検出部104を用いて、現像処理部103からの入力画像から、特定の被写体を部位ごとに検出する。代表的な被写体の部位としては、人物の顔が挙げられる。
In FIG. 2, in step S201, the
この場合、検出方法は公知の顔検出方法を用いればよい。顔検出の公知技術としては、顔に関する知識(肌色情報、目、鼻、口などのパーツ)を利用する方法や、ニューラルネットワークに代表される学習アルゴリズムにより顔検出のための識別器を構成する方法などがある。そして、検出精度を向上させるために、それらを組み合わせて顔検出を行うのが一般的である。人物の顔以外の場合にも同様の手法で検出することが可能である。 In this case, a known face detection method may be used as the detection method. Known techniques for face detection include a method that uses knowledge about faces (skin color information, parts such as eyes, nose, mouth, etc.), and a method that configures a classifier for face detection using a learning algorithm represented by a neural network. and so on. In order to improve the detection accuracy, it is common to perform face detection by combining them. A similar method can be used to detect objects other than human faces.
図3は、被写体が人物である場合における被写体検出結果の一例を示す図である。矩形301~310は検出された部位を示している。具体的には、矩形301は顔または頭部、矩形302は右目、矩形303は左目、矩形304は鼻、矩形305は口、矩形306は右腕、矩形307は左腕、矩形308は胴体、矩形309は右脚、矩形310は左脚をそれぞれ表している。
FIG. 3 is a diagram showing an example of subject detection results when the subject is a person.
以下では、各矩形に含まれる代表点を、被写体の部位の位置として扱う。代表点として、例えば各矩形の重心の座標である重心座標を用いる。ここでは検出された部位を便宜上矩形で表現しているが、矩形に限定されるものではなく、任意の形状で表現してよい。 Below, the representative point included in each rectangle is treated as the position of the part of the subject. As the representative point, for example, barycentric coordinates, which are the coordinates of the barycenter of each rectangle, are used. Here, the detected parts are represented by rectangles for the sake of convenience, but they are not limited to rectangles and may be represented by arbitrary shapes.
なお、被写体の種類は図3の例のように人物に限定されるものではなく、例えば、犬、猫、鳥、馬などの動物でもよい。また動物以外の一般物体にも適用でき、例えば車両の場合、検出される部位がタイヤ、ドア、ボンネット、トランクなどに変わるだけである。検出部位の細かさについても、図3の例に限定されるものではなく、より細かくても粗くても構わない。 Note that the type of subject is not limited to people as in the example of FIG. 3, and may be animals such as dogs, cats, birds, and horses. It can also be applied to general objects other than animals. The fineness of the detection part is not limited to the example shown in FIG. 3, and may be finer or coarser.
画像中に複数の被写体が存在する場合、最も主要と考えられる被写体を一つ選択し、その被写体の部位を出力するものとする。選択方法としては、例えばサイズが大きく、位置が画像の中央に近く、検出の信頼度が高いものほど優先的に選択する方法などが考えられる。また、複数の候補からユーザに選択させるようにしてもよい。以上により、被写体の部位の位置を得ることができる。 If there are multiple subjects in the image, one subject that is considered to be the most important is selected, and the parts of that subject are output. As a selection method, for example, a method of preferentially selecting an image having a larger size, a position closer to the center of the image, and a higher reliability of detection can be considered. Alternatively, the user may be allowed to select from a plurality of candidates. As described above, the position of the part of the subject can be obtained.
ステップS202では、制御部110は、被写体部位選択部105を用いて、ステップS201で検出された1つ以上の被写体の部位から、所定の優先度に基づいて被写体の部位を選択する。
In step S202, the
所定の優先度とは、例えばオートフォーカス(AF)のために被写体検出結果を用いる場合は、顔よりも目や瞳などの細かな器官の優先度を高くすることが一般的である。 For example, when subject detection results are used for autofocus (AF), the predetermined priority is generally to give higher priority to small organs such as eyes and pupils than to the face.
一方、本実施形態の被写体ブレ補正のために被写体検出結果を用いる場合は、検出の安定性、形状の安定性、位置の安定性のような観点も考慮して優先度を設定する必要がある。 On the other hand, when subject detection results are used for subject blur correction in this embodiment, it is necessary to set priorities in consideration of the stability of detection, stability of shape, and stability of position. .
検出の安定性は、どれくらい安定して部位を検出できるかを表わす。例えば目の場合、頭部や胴体に比べて小さくて検出しにくいため、検出の安定性が低い。 Detection stability represents how stably a site can be detected. For example, since the eyes are smaller than the head and body and difficult to detect, the stability of detection is low.
形状の安定性は、どれくらい部位の形状が安定しているかを表わす。例えば人間の腕や脚、鳥の羽などは伸び縮みによって形状が変化するため、形状の安定性が低い。また目の場合、腕や脚ほどの大きな変化ではないが、開き具合によって形状が変化する。頭部は腕や脚、目と比べると形状の安定性が高いと言える。 Shape stability represents how stable the shape of a site is. For example, human arms and legs, bird wings, and the like change their shape as they expand and contract, so their shape stability is low. Also, in the case of the eyes, the shape changes depending on the degree of opening, although the change is not as large as that of the arms and legs. It can be said that the shape of the head is more stable than the arms, legs, and eyes.
位置の安定性は、被写体が向きを変える際にどれくらい被写体の部位の位置が安定しているかを表わす。例えば目の場合、被写体の向きが正面、側面、背面と変わると、被写体の部位の位置も変化するため、位置の安定性が低い。一方で頭部の場合、被写体の向きが正面、側面、背面と変わったとしても、被写体の部位の位置は大きく変わらず位置の安定性が高いと言える。 Positional stability represents how stable the position of the part of the subject is when the subject changes orientation. For example, in the case of the eyes, positional stability is low because the positions of the parts of the subject also change when the direction of the subject changes from front to side to back. On the other hand, in the case of the head, even if the orientation of the subject changes from the front, side, or back, the positions of the parts of the subject do not change significantly, and it can be said that the position is highly stable.
被写体ブレ補正を安定して行うには、これらの安定性が高いことが望ましい。このように、AFの場合とは優先度の観点が異なるため、AFのために用いる被写体の部位とは独立して、被写体ブレ補正のために用いる被写体の部位を選択できるようにすることが好ましい。 In order to stably perform subject blur correction, it is desirable that these are highly stable. In this way, since the viewpoint of priority is different from that in the case of AF, it is preferable to be able to select the part of the subject to be used for subject blur correction independently of the part of the subject to be used for AF. .
具体的には、被写体の部位として、目、瞳、鼻、口のような顔に含まれる器官よりも、顔または頭部を優先して選択することが好ましい。また映像という観点から、一般的に胴体よりも顔または頭部への着目が高いため、被写体の部位として、胴体よりも、顔または頭部のブレを優先して補正することが好ましい。 Specifically, it is preferable to select the face or the head as the part of the subject with priority over organs included in the face such as the eyes, pupils, nose, and mouth. In addition, from the viewpoint of the image, the face or the head is generally more focused than the body. Therefore, it is preferable to correct blurring of the face or the head with priority over the body as the part of the subject.
ステップS203では、制御部110は、被写体ブレ補正量算出部106を用いて、ステップS202で選択された被写体の部位の位置と、画像内の所定の目標位置との差に基づいて、被写体ブレ補正量を算出する。図4を用いて、被写体ブレ補正量の算出方法について説明する。
In step S203, the
黒四角401は画像内の所定の目標位置を示し、任意の位置に設定することができる。図4の例では画像中央に設定している。点線で示した矩形402はステップS202で選択された頭部を示し、黒丸403はその重心位置を示している。矢印404は、座標401と座標403の差であり、この差を被写体ブレ補正量とする。
A
なお、画像のノイズや被写体検出の精度の影響で、検出される被写体の部位の位置は誤差を持つのが一般的である。そのため、検出される被写体の部位の位置あるいは被写体ブレ補正量に対してローパスフィルタ(LPF)を適用し、低周波成分を被写体ブレ補正量として用いることが望ましい。 Note that the position of the detected part of the subject generally has an error due to the effects of image noise and accuracy of subject detection. Therefore, it is desirable to apply a low-pass filter (LPF) to the position of the detected part of the subject or the subject blur correction amount, and use the low-frequency component as the subject blur correction amount.
ステップS204では、制御部110は、ステップS202で選択された被写体の部位が、直前のフレームにおいて選択された部位と同一か否かを判定する。制御部110は、直前のフレームにおいて選択された部位と異なる場合は、処理をステップS205に進め、同一の場合は処理をステップS206に進める。
In step S204,
図5は、直前のフレームと選択された部位が異なる例を示す図である。図5(a)が直前のフレーム、図5(b)が現在のフレーム、図5(c)が次のフレームを表す。図5(a)に対して、図5(b)および図5(c)では被写体が遠ざかり、小さくなっている様子を示している。黒四角501は被写体の目標位置を示し、この例では画像中央としている。
FIG. 5 is a diagram showing an example in which the selected site is different from the previous frame. 5A shows the previous frame, FIG. 5B shows the current frame, and FIG. 5C shows the next frame. In contrast to FIG. 5(a), FIG. 5(b) and FIG. 5(c) show the subject moving away and becoming smaller. A
図5(a)では被写体の頭部502が選択されており、図5(b)および図5(c)では胴体503が選択されている。ステップS202で説明した通り、図5(b)および図5(c)において頭部が検出できている場合は、頭部を優先して選択する。しかし、図5(b)および図5(c)では、頭部が小さいため検出できず、胴体のみしか検出されないため、胴体を選択することになる。
The subject's
図5(a)では頭部502の重心座標が、目標位置501に重なるように被写体ブレ補正が行われる。
In FIG. 5A , subject shake correction is performed so that the coordinates of the center of gravity of the
図5(b)では胴体502が部位として選択される。図5(b)が取得された時点では、まだ頭部501の重心座標が目標位置501に重なるよう被写体ブレ補正が行われる。黒丸504は胴体の重心座標、矢印505は胴体の重心座標を目標位置501に移動させるための被写体ブレ補正量を示している。
In FIG. 5B, the
図5(c)は矢印505(被写体ブレ補正量)に従って、胴体の重心座標504が、目標位置501(画像中央)に重なるように被写体ブレ補正が行われた結果取得されたフレームである。つまり、検出される被写体の部位の切り替わりに伴い、被写体の頭部が画像中央である目標位置501近辺にある状態(図5(a),図5(b))から、被写体の胴体が画像中央にある状態に変化する。すなわち、図5(a)と図5(b)とでは画像上の被写体の位置はほぼ変わらないにもかかわらず、検出される被写体の部位が切り替わり、図5(b)の胴体の重心座標を用いて被写体ブレを補正することにより、被写体の部位の重心座標の変化分だけ被写体の位置が不自然に移動してしまう。
FIG. 5C shows a frame acquired as a result of subject blur correction performed according to an arrow 505 (subject blur correction amount) so that the
そこで、被写体の部位が切り替わることにより、被写体の位置が不自然に移動することを抑制するため、ステップS202において選択される部位が変化した場合、次のステップS205で示す被写体ブレ補正量の抑制処理を行う。 Therefore, in order to suppress unnatural movement of the position of the subject due to the switching of the part of the subject, when the part selected in step S202 changes, the object shake correction amount suppression process shown in the next step S205 is performed. I do.
ステップS205では、制御部110は、被写体ブレ補正量算出部106を用いて、被写体部位選択部105により選択された被写体の部位が切り替わる際の部位の位置の変位量に基づいて、ステップS203で算出した被写体ブレ補正量を抑制する。
In step S205, the
具体的には、図5(b)での胴体503の重心座標から、図5(a)での頭部502の重心座標を差し引いた値をオフセットとして、被写体ブレ補正量505から減算する。このようにすることで、被写体ブレ補正量から、被写体の部位の重心座標の変化分がキャンセルされ、被写体の位置の不自然な移動がなくなる。
Specifically, a value obtained by subtracting the barycentric coordinates of the
図6を用いて、被写体ブレ補正量の抑制処理について詳細に説明する。図6の横軸は時刻を表し、縦軸はステップS202で選択される被写体の部位の位置の垂直座標を表している。この例では、最初は最も優先度が高い部位である頭部が選択されており、時刻t1で頭部から胴体に切り替わり、t2で胴体から再び頭部に切り替わるものとする。 The processing for suppressing the amount of subject blur correction will be described in detail with reference to FIG. The horizontal axis in FIG. 6 represents time, and the vertical axis represents the vertical coordinates of the position of the part of the subject selected in step S202. In this example, the head, which is the part with the highest priority, is initially selected, and at time t1, the head is switched to the body, and at time t2, the body is switched back to the head.
図6において、破線601は抑制処理前、点線602は抑制処理後の被写体の部位の位置の時系列データを表す。実線603は点線602に対して、後述する修正処理を施した時系列データである。ここで、図5において、画像の下方向を垂直座標が大きくなる方向と定める。図5で頭部の方が胴体よりも上にあるため、図6では頭部で垂直座標が小さく、胴体で垂直座標が大きくなっている。
In FIG. 6 , a dashed
時刻t1とt2では、部位の切り替わりによって垂直座標が大きく変位している。t1での被写体の部位の位置の変位量を604、t2での被写体の部位の位置の変位量を605とする。これらの変位量をそのまま被写体ブレの補正量に反映してしまうと、選択される部位が変わっただけで被写体の位置が不自然に変わってしまうことになる。
At times t1 and t2, the vertical coordinate is greatly displaced due to the switching of the parts.
そこで、抑制処理前の被写体の部位の位置601から、時刻t1以降では変位量604をオフセットとして差し引き、さらに時刻t2以降では変位量604と変位量605を加算した量である変位量606をオフセットとして差し引くことで、抑制処理後の被写体の部位の位置602を得ることができる。
Therefore, a
このように、被写体ブレ補正量算出部106は、被写体部位選択部105により選択された被写体の部位が切り替わる際の部位の位置の変位量をオフセットとして、被写体ブレ補正量から差し引く。さらに、被写体ブレ補正量算出部106は、被写体部位選択部105により選択された被写体の部位が切り替わる度に、現在のオフセットに対して更にオフセットを加算し、加算されたオフセットを被写体ブレ補正量から差し引く。これにより、被写体の部位の切り替わりによって被写体の位置が不自然に移動することを抑制することができる。
In this way, the subject blur correction
ここで、時刻t2以降では再び頭部が選択されるので、抑制処理後の点線602は、抑制処理前の破線601と一致するのが理想的であるが、一致していない。これは、時刻t1でのオフセットと時刻t2でのオフセットが相殺されず、オフセットの誤差が生じるためである。オフセットの誤差が生じる原因としては、被写体の部位が切り替わるときの被写体の動きや被写体検出の誤差などが考えられる。
Here, since the head is selected again after time t2, it is ideal that the dashed
そこで、再び頭部が検出された時刻t2以降において、前述の加算されたオフセット(変位量604+605=変位量606)を徐々に零に近づけることで、抑制処理後の点線602が、抑制処理前の破線601に近づき、実線603を得ることができる。
Therefore, after time t2 when the head is detected again, the added offset (
すなわち、被写体ブレ補正量算出部106は、被写体部位選択部105により最も優先度の高い被写体の部位が選択されているとき、加算されたオフセットを徐々に零に近づけることで、オフセットによる被写体ブレ補正量のずれを修正できる。
That is, when the subject
ステップS206では、制御部110は、ステップS203またはステップS205で算出された被写体ブレ補正量に基づいて、像ブレ補正を行う。前述のとおり、像ブレ補正の手段としては、光学式像ブレ補正手段である撮影光学系101内の補正レンズ、撮像素子102、不図示の電子式像ブレ補正手段を用いることができる。
In step S206, the
最後のステップS207では、制御部110は、最終フレームまで処理が完了したか否かを判定し、最終フレームまで処理が完了していない場合は、ステップS201に処理を戻す。最終フレームまで処理が完了した場合は、このフローの動作を終了する。
In the final step S207, the
以上の処理によって、検出される被写体の部位が切り替わる場合でも、映像の品位を損なわずに被写体ブレ補正を行うことができる。 By the above processing, even when the part of the subject to be detected is switched, subject shake correction can be performed without impairing the image quality.
なお、ステップS201~S207の処理は全て撮影時にリアルタイムで行うことが可能であるが、必ずしも撮影時に行う必要はなく、画像の再生時に行ってもよい。 It should be noted that the processes of steps S201 to S207 can all be performed in real time during image capturing, but they do not necessarily have to be performed during image capturing, and may be performed during image reproduction.
例えば、撮影時の画像を不図示の記録部に記録しておき、電子式像ブレ補正により記録された画像に対してステップS201~S207の処理を行うことで、画像の再生時に被写体ブレ補正を行うことができる。 For example, by recording an image at the time of shooting in a recording unit (not shown) and performing the processing of steps S201 to S207 on the image recorded by the electronic image blur correction, subject blur correction can be performed when the image is reproduced. It can be carried out.
また、撮影時に、画像に加えて、被写体検出部104により得られる被写体の部位の位置の情報を記録しておき、画像の再生時に被写体検出を行わなくて済むようにしてもよい。
In addition to the image, information on the position of the part of the subject obtained by the
(第1の実施形態の変形例)
上述の実施形態における被写体ブレ補正量の抑制処理では、選択された被写体の部位が切り替わった後の図5(b)での胴体503の重心座標から、選択された被写体の部位が切り替わる前の図5(a)での頭部502の重心座標を差し引いた値をオフセットとして、被写体ブレ補正量505から減算した。しかしながら、オフセットの算出方法はこれに限定されない。
(Modification of the first embodiment)
In the subject blur correction amount suppression processing in the above-described embodiment, the coordinates of the center of gravity of the
オフセットとしては、選択された被写体の部位が切り替わった後の頭部の重心座標と、選択された被写体の部位が切り替わった後の胴体の重心座標との差分を用いることが好ましいが、切り替わった後の頭部の重心座標はわからない。そのため、上述の実施形態では、切り替わり前後における頭部の重心座標の変化は小さいとみなし、上述の実施形態では切り替わった後の胴体503の重心座標から、切り替わる前の頭部502の重心座標を差し引いた値をオフセットとした。しかしながら、切り替わる前の頭部502の重心座標が目標位置とズレていた場合は、そのズレが被写体ブレ補正の対象となり、被写体が動かなくても、被写体ブレ補正量分だけ頭部502の重心座標が変化する。そのため、切り替わった後の胴体503の重心座標から、切り替わる前の頭部502の重心座標を差し引いた値(上述の変位量604)に対して、更に切り替わり前後で補正した被写体ブレ補正量を加算してもよい。但し、切り替わり前の図5(a)の時点で被写体ブレ補正が実行されており、目標位置と頭部502の重心座標のズレは小さいと考えられるため、上述のように、切り替わった後の胴体503の重心座標から、切り替わる前の頭部502の重心座標を差し引いた値をオフセットとしてもよい。
As the offset, it is preferable to use the difference between the barycentric coordinates of the head after the selected part of the subject is switched and the barycentric coordinates of the body after the selected part of the subject is switched. We do not know the coordinates of the center of gravity of the head. Therefore, in the above-described embodiment, the change in the barycentric coordinates of the head before and after switching is considered to be small, and in the above-described embodiment, the barycentric coordinates of the
また、選択された被写体の部位が切り替わる前から胴体503が検出できている場合は、選択された被写体の部位が切り替わる前の図5(a)における胴体503の重心座標から頭部502の重心座標を差し引いた値をオフセットとして用いることもできる。上述のように、図5(a)と図5(b)との間に被写体の大きさの変動があると、切り替わり前の頭部502の重心座標と胴体503との重心座標とからオフセットを求めると、被写体の大きさの変動分だけオフセットも誤差を含んでしまう。しかしながら、切り替わり前後のわずかな時間に生じる被写体の大きさの変動も大きくはない。よって、切り替わり前の頭部502の重心座標と胴体503との重心座標とからオフセットを求めてもよい。尚、オフセットをより正確に求めるために、切り替わり前の胴体のサイズと切り替わり後の胴体のサイズを比較して切り替わり前後に生じる被写体の大きさの変動を取得し、これを考慮してオフセットを求めてもよい。
Further, if the
(第2の実施形態)
第1の実施形態では、被写体ブレのみを像ブレ補正の対象として扱ったが、本実施形態では手振れも加味して像ブレ補正を行う。
(Second embodiment)
In the first embodiment, only subject blurring is treated as an object of image blurring correction, but in the present embodiment, image blurring correction is performed in consideration of camera shake as well.
図7は、本発明の第2の実施形態に係わる撮像装置700の構成を示す図である。図7において、図1に示した構成要素と共通する部分については、図1と同符号を付して説明を省略する。本実施形態の撮像装置は、図1に示した構成に加えて、手振れ検出部701、手振れ補正量算出部702、像ブレ補正量合成部703を有する。本実施形態では、第1の実施形態と異なる処理を行う部分についてのみ説明する。
FIG. 7 is a diagram showing the configuration of an
手振れ検出部701は、撮像装置700に加わる手振れを検出する。手振れ補正量算出部702は、手振れ検出部701により検出される振れに起因する像ブレを補正するための像ブレ補正量(手振れ補正量)を算出する。
A camera
像ブレ補正量合成部703は、被写体ブレ補正量算出部106から出力される被写体ブレ補正量と、手振れ補正量算出部702から出力される像ブレ補正量(手振れ補正量)を合成して、最終的な像ブレ補正量(合成像ブレ補正量)を生成する。
The image blur correction
図8は、第2の実施形態における像ブレ補正動作を示すフローチャートである。図8において、図2に示したステップと共通するステップについては、図2と同符号を付し説明を省略する。図8のフローチャートの動作は、制御部110が、ROM112に記憶されたプログラムをRAM114に展開して実行することにより実現される。
FIG. 8 is a flow chart showing an image blur correction operation in the second embodiment. 8, steps common to those shown in FIG. 2 are assigned the same reference numerals as in FIG. 2, and descriptions thereof are omitted. The operation of the flowchart of FIG. 8 is realized by the
ステップS204では、制御部110は、ステップS202で選択された被写体の部位が、直前のフレームにおいて選択された部位と同一か否かを判定する。制御部110は、直前のフレームにおいて選択された部位と異なる場合は、処理をステップS205に進め、同一の場合は処理をステップS801に進める。制御部110は、ステップS205の完了後は、ステップS801に処理を進める。
In step S204,
ステップS801では、制御部110は、手振れ検出部701を用いて、撮像装置700に加わる手振れを検出する。手振れ検出部701としては、例えばジャイロセンサを用いることができる。ただし検出方法はこれに限られない。なお、ステップS801を実行するタイミングはS802よりも前であれば任意であり、S201~S205と前後しても構わない。
In step S<b>801 , the
ステップS802では、手振れ補正量算出部702は、ステップS801で検出される手振れに起因する像ブレを補正するための手振れ補正量を算出する。例えば、ジャイロセンサにより得られる手振れの角速度信号を積分し、符号を反転させることで、手振れ補正量を算出することができる。
In step S802, the camera shake correction
ステップS803では、制御部110は、像ブレ補正量合成部703を用いて、ステップS204またはステップS205で得られる被写体ブレ補正量と、ステップS802で得られる手振れ補正量を合成して、最終的な像ブレ補正量を算出する。
In step S803, the
合成方法としては、例えば周波数で分けて合成する方法がある。具体的には、被写体ブレ補正量に対してローパスフィルタ(LPF)を適用して低周波成分を抽出する。一方、手振れ補正量に対してハイパスフィルタ(HPF)を適用して高周波成分を抽出する。このようにして得られた被写体ブレ補正量の低周波成分と、手振れ補正量の高周波成分を加算して合成する。 As a synthesizing method, for example, there is a method of synthesizing by dividing by frequency. Specifically, a low-pass filter (LPF) is applied to the subject shake correction amount to extract low-frequency components. On the other hand, a high-pass filter (HPF) is applied to the shake correction amount to extract high frequency components. The low frequency component of the subject blur correction amount obtained in this way and the high frequency component of the camera shake correction amount are added and synthesized.
つまり、最終的な像ブレ補正量は、低周波は被写体ブレ成分を補正し、高周波は手振れ成分を補正するような像ブレ補正量となる。 That is, the final image blur correction amount is such that the low frequency corrects the subject blur component and the high frequency corrects the camera shake component.
ここで、LPFとHPFのカットオフ周波数は、略一致させて、被写体検出の信頼度に応じて動的に変えることが好ましい。例えば、被写体検出の信頼度が高い場合には、カットオフ周波数を上げることで被写体ブレ補正を強くし、被写体検出の信頼度が低い場合には、カットオフ周波数を下げることで手振れ補正を強くする。 Here, it is preferable that the cutoff frequencies of the LPF and HPF are substantially matched and dynamically changed according to the reliability of object detection. For example, if the reliability of subject detection is high, increase the cutoff frequency to strengthen the subject blur correction, and if the reliability of subject detection is low, decrease the cutoff frequency to strengthen the camera shake correction. .
ステップS804では、制御部110は、ステップS803で得られる最終的な像ブレ補正量に基づいて、像ブレ補正を行う。前述のとおり、ブレ補正の手段としては、光学式像ブレ補正手段である撮影光学系101内の補正レンズ、撮像素子102、不図示の電子式像ブレ補正手段を用いることができる。
In step S804, the
以上の処理によって、検出される被写体の部位が切り替わる場合でも、映像の品位を損なわずに被写体ブレ補正および手振れに起因する像ブレ補正を行うことができる。 By the above processing, even when the part of the subject to be detected is switched, subject shake correction and image blur correction due to camera shake can be performed without impairing the image quality.
(第3の実施形態)
第1の実施形態、第2の実施形態では、ともに、被写体部位の切り替わりに伴ってオフセットを取得し、取得したオフセットを被写体ブレ補正量から差し引く形態について説明をした。これらと同様の効果を、被写体部位の切り替わりに応じて目標位置を変更することでも得ることができる。本実施形態では、被写体部位の切り替わりに応じて目標位置を変更する形態について説明をする。
(Third Embodiment)
In both the first embodiment and the second embodiment, a configuration has been described in which an offset is acquired in accordance with the switching of the subject part, and the acquired offset is subtracted from the subject shake correction amount. Effects similar to these can also be obtained by changing the target position according to the switching of the subject part. In the present embodiment, a form will be described in which the target position is changed according to the switching of the subject part.
本実施形態は、第1の実施形態と、ステップS205で示す被写体ブレ補正量の抑制処理が異なるが、その他の構成は第1の実施形態と同じであるため説明を省略する。本実施形態では、抑制処理として、目標位置の変更を行う。目標位置は、切り替わり後に選択されている被写体部位の位置に基づいて決定する。切り替わり後に選択されている被写体の部位とは、図5(a)、(b)の場合は胴体503のことを指す。以下、説明のために、切り替わりが生じる前に選択されている被写体部位(図5(a)、(b)の場合、頭部502)を第1の部位、切り替わりが生じた後に選択されている被写体部位(図5(a)、(b)の場合、胴体503)を第2の部位と呼ぶことがある。
This embodiment differs from the first embodiment in the process of suppressing the subject blurring correction amount shown in step S205, but the rest of the configuration is the same as that of the first embodiment, so the description is omitted. In this embodiment, the target position is changed as suppression processing. The target position is determined based on the position of the subject part selected after switching. The part of the subject selected after switching refers to the
変更後の目標位置について説明を行う。本実施形態では、例えば、図5(b)に示した切り替わり後のフレームにおける第2の部位(胴体503)の重心座標(黒丸504の位置)を目標位置として切り替わり後の被写体ブレ補正量の算出をする。図5(b)は第1の部位(頭部502)の重心座標を用いて被写体ブレ補正をした結果得られたフレームの画像であるため、頭部502は元々の目標位置501である画像中央近傍に位置する。そのため、図5(b)における胴体503の重心座標を目標位置とし、これ以降のフレームにおいて胴体503の重心座標が目標位置(つまり、図5(b)での胴体503の重心座標)にくるように被写体ブレ補正を行うことで、頭部502が選択されていなくても、頭部502が画像中央近傍に位置するように被写体ブレ補正制御を行うことができる。これにより、被写体部位の切り替えに伴う被写体位置の急激な変化を軽減できる。
The target position after change will be explained. In the present embodiment, for example, the subject blur correction amount after switching is calculated using the barycentric coordinates (position of black circle 504) of the second part (torso 503) in the frame after switching shown in FIG. 5B as the target position. do. FIG. 5B is a frame image obtained as a result of subject blur correction using the coordinates of the center of gravity of the first part (head 502). located nearby. Therefore, the coordinates of the center of gravity of the
目標位置は、図5(a)に示した切り替わり前のフレームにおける第2の部位(胴体503)の重心座標を目標位置としてもよい。この場合、第1の実施形態の変形例と同様に、図5(a)と図5(b)との間に生じる被写体の大きさの変動の影響を受ける。しかしながら、わずかな時間の間に生じる被写体の大きさの変動は大きくないとみなせるため、切り替わり前のフレームにおける胴体503の重心位置を目標位置としても構図の大きな変動が生じる可能性は小さい。
As for the target position, the coordinates of the center of gravity of the second part (torso 503) in the frame before switching shown in FIG. 5A may be used as the target position. In this case, similarly to the modified example of the first embodiment, it is affected by the change in the size of the object that occurs between FIGS. 5(a) and 5(b). However, since it can be assumed that the change in the size of the subject that occurs in a short period of time is not large, there is little possibility that the composition will change significantly even if the position of the center of gravity of the
また、目標位置は、図5(a)に示した、切り替わり前のフレームにおける、第1の部位(頭部502)と第2の部位(胴体503)との重心座標の差分に基づいて設定してもよい。切り替わり前のフレームにおいて頭部502が目標位置からズレていた場合、切り替わり前のフレームにおける胴体503の位置をそのまま目標位置とすると、ズレた状態が保持されるように被写体ブレ補正が行われる。切り替わり前の目標位置(図5(a)では画像中央)に切り替わり前のフレームにおける頭部502と胴体503との差分を加算した位置を目標位置とすることで、頭部502が画像中央に位置する場合の胴体503の位置を目標位置とすることができる。但し、切り替わり前のフレームにおける胴体503の重心座標そのものを目標位置とした場合と同様に、図5(a)と図5(b)との間に生じる被写体の大きさの変動の影響を受ける。
Also, the target position is set based on the difference in the center-of-gravity coordinates between the first part (head 502) and the second part (body 503) in the frame before switching shown in FIG. 5(a). may When the
また、切り替わり前、切り替わり後、どちらの第2の部位(胴体503)の位置を用いる場合であっても、胴体の重心座標をそのまま目標位置とするだけでなく、各種調整を行ってもよい。例えば、被写体部位の切り替わりと同時に被写体が急激に動いた場合等は、選択された被写体部位の重心座標が画像の端部に位置する可能性がある。この場合、重心座標そのものを目標位置に設定すると、被写体が画像の端部に位置するような被写体ブレ補正制御が行われるため、画像の中央から目標位置までの距離に上限値を設けたり、目標位置として設定できる座標を制限したりするなどして、重心座標よりも画像中央に近い位置を目標位置としてもよい。また、切り替わり前後の第2の部位の大きさが検出できる場合は、切り替わり前の第2の部位の重心座標に対して、大きさの変動を考慮した調整を行った位置を目標位置としてもよい。例えば、被写体の大きさが小さくなることによって被写体部位が顔から胴体に切り替わった場合、切り替わり前の胴体の重心座標を大きさの変動分中央に寄せた位置を目標位置としてもよい。 Further, regardless of which position of the second part (torso 503) is used before switching or after switching, the coordinates of the center of gravity of the torso may not only be used as the target position, but various adjustments may be made. For example, when the subject suddenly moves at the same time when the subject part is switched, there is a possibility that the barycentric coordinates of the selected subject part are positioned at the edge of the image. In this case, if the barycentric coordinates themselves are set as the target position, subject blur correction control is performed so that the subject is positioned at the edge of the image. A position closer to the center of the image than the barycentric coordinates may be set as the target position by, for example, limiting the coordinates that can be set as the position. Further, if the size of the second part before and after switching can be detected, the target position may be a position adjusted with respect to the coordinates of the center of gravity of the second part before switching in consideration of the change in size. . For example, when the subject part is switched from the face to the body due to the reduction in the size of the subject, the target position may be a position where the coordinates of the center of gravity of the body before the change are moved to the center by the amount of the change in size.
本明細書の開示は、以下の像ブレ補正装置及びその制御方法、撮像装置、プログラム、記憶媒体を含む。 The disclosure of this specification includes the following image blur correction device and its control method, imaging device, program, and storage medium.
(項目1)
入力された画像から被写体を部位ごとに検出し、検出された被写体の部位の位置を出力する被写体検出手段と、
前記被写体検出手段により検出された1つ以上の被写体の部位から、所定の優先度に基づいて被写体の部位を選択する選択手段と、
前記選択手段により選択された被写体の部位の位置と、画像内の所定の目標位置との差分に基づいて被写体ブレを補正するための被写体ブレ補正量を算出する被写体ブレ補正量算出手段と、を備え、
前記被写体ブレ補正量算出手段は、
前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、前記選択された被写体の部位の位置と前記目標位置との差分と、画像における前記第2の部位の位置と、切り替わる前に取得された画像における前記第2の部位の位置と、に基づいて、前記被写体ブレ補正量を算出することを特徴とする像ブレ補正装置。
(Item 1)
subject detection means for detecting each part of the subject from the input image and outputting the position of the detected part of the subject;
selection means for selecting a part of the subject based on a predetermined priority from one or more parts of the subject detected by the subject detection means;
subject blur correction amount calculation means for calculating a subject blur correction amount for correcting subject blur based on the difference between the position of the part of the subject selected by the selection means and a predetermined target position in the image; prepared,
The subject blur correction amount calculation means includes:
When the part of the subject selected by the selection means is switched from the first part to the second part, the difference between the position of the selected part of the subject and the target position, and the position of the second part in the image. The image blur correction device, wherein the subject blur correction amount is calculated based on the position and the position of the second part in the image acquired before switching.
(項目2)
前記被写体ブレ補正量算出手段は、前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、前記選択された被写体の部位の位置と前記目標位置との差分と、切り替わる前に取得された画像における前記第1の部位の位置と切り替わった後の前記第2の部位の位置とに基づいて、前記被写体ブレ補正量を算出することを特徴とする項目1に記載の像ブレ補正装置。
(Item 2)
When the part of the subject selected by the selecting means is switched from the first part to the second part, the subject shake correction amount calculating means calculates the difference between the position of the selected part of the subject and the target position. 3. The method according to
(項目3)
前記被写体ブレ補正量算出手段は、前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、前記選択された被写体の部位の位置と前記目標位置との差分と、切り替わる前に取得された画像における前記第1の部位の位置と切り替わった後に取得された画像における前記第2の部位の位置との差分と、に基づいて、前記被写体ブレ補正量を算出することを特徴とする項目2に記載の像ブレ補正装置。
(Item 3)
When the part of the subject selected by the selecting means is switched from the first part to the second part, the subject shake correction amount calculating means calculates the difference between the position of the selected part of the subject and the target position. and calculating the subject blur correction amount based on a difference between the position of the first part in the image acquired before switching and the position of the second part in the image acquired after switching. The image blur correction device according to item 2, characterized by:
(項目4)
前記被写体ブレ補正量算出手段は、前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、前記選択された被写体の部位の位置と前記目標位置との差分と、切り替わる前に取得された画像における前記第1の部位の位置と、切り替わる前に取得された画像における前記第2の部位の位置とに基づいて、前記被写体ブレ補正量を算出することを特徴とする項目1に記載の像ブレ補正装置。
(Item 4)
When the part of the subject selected by the selecting means is switched from the first part to the second part, the subject shake correction amount calculating means calculates the difference between the position of the selected part of the subject and the target position. and calculating the subject blur correction amount based on the position of the first part in the image acquired before switching and the position of the second part in the image acquired before switching. The image blur correction device according to
(項目5)
前記被写体ブレ補正量算出手段は、前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、前記選択された被写体の部位の位置と前記目標位置との差分と、切り替わる前に取得された画像における前記第1の部位の位置と切り替わる前に取得された画像における前記第2の部位の位置との差分と、に基づいて、前記被写体ブレ補正量を算出することを特徴とする項目4に記載の像ブレ補正装置。
(Item 5)
When the part of the subject selected by the selecting means is switched from the first part to the second part, the subject shake correction amount calculating means calculates the difference between the position of the selected part of the subject and the target position. and calculating the subject blur correction amount based on a difference between the position of the first part in the image acquired before switching and the position of the second part in the image acquired before switching. The image blur correction device according to item 4, characterized by:
(項目6)
前記被写体ブレ補正量算出手段は、前記第2の部位の位置と前記目標位置との差分に基づく仮の被写体ブレ補正量から、前記第1の部位の位置と前記第2の部位の位置との差分をオフセットとして差し引くことにより前記被写体ブレ補正量を算出することを特徴とする項目3または5に記載の像ブレ補正装置。
(Item 6)
The subject blur correction amount calculation means calculates the position of the first part and the position of the second part from a provisional subject blur correction amount based on the difference between the position of the second part and the target position. 6. The image blur correction device according to item 3 or 5, wherein the subject blur correction amount is calculated by subtracting the difference as an offset.
(項目7)
前記被写体ブレ補正量算出手段は、選択された被写体の部位が切り替わる度に前記オフセットを加算し、加算されたオフセットを前記仮の被写体ブレ補正量から差し引くことを特徴とする項目6に記載の像ブレ補正装置。
(Item 7)
Item 7. The image according to item 6, wherein the subject blur correction amount calculation means adds the offset each time a part of the selected subject changes, and subtracts the added offset from the provisional subject blur correction amount. blur correction device.
(項目8)
前記被写体ブレ補正量算出手段は、最も優先度の高い被写体の部位が選択されている場合に、前記加算されたオフセットを徐々に零に近づけることを特徴とする項目7に記載の像ブレ補正装置。
(Item 8)
Item 8. The image blur correction apparatus according to item 7, wherein the subject blur correction amount calculation means gradually approaches the added offset to zero when a part of the subject with the highest priority is selected. .
(項目9)
前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、切り替わり前の画像における前記第2の部位の位置と、切り替わり前の画像における前記第1の部位の位置とに基づいて前記目標位置を変更することを特徴とする項目8に記載の像ブレ補正装置。
(Item 9)
When the part of the subject selected by the selection means is switched from the first part to the second part, the position of the second part in the image before switching and the position of the first part in the image before switching 9. The image blur correction device according to item 8, wherein the target position is changed based on:
(項目10)
入力された画像から被写体を部位ごとに検出し、検出された被写体の部位の位置を出力する被写体検出手段と、
前記被写体検出手段により検出された1つ以上の被写体の部位から、所定の優先度に基づいて被写体の部位を選択する選択手段と、
前記選択手段により選択された被写体の部位の位置と、画像内の所定の目標位置との差に基づいて被写体ブレを補正するための被写体ブレ補正量を算出する被写体ブレ補正量算出手段と、を備え、
前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、第2の部位の位置に基づいて前記目標位置を変更することを特徴とする像ブレ補正装置。
(Item 10)
subject detection means for detecting each part of the subject from the input image and outputting the position of the detected part of the subject;
selection means for selecting a part of the subject based on a predetermined priority from one or more parts of the subject detected by the subject detection means;
subject blur correction amount calculation means for calculating a subject blur correction amount for correcting subject blur based on the difference between the position of the part of the subject selected by the selection means and a predetermined target position in the image; prepared,
An image blur correction device, wherein when the part of the subject selected by the selection means is switched from the first part to the second part, the target position is changed based on the position of the second part.
(項目11)
前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、切り替わった後に取得された画像における前記第2の部位の位置に基づいて前記目標位置を変更することを特徴とする項目10に記載の像ブレ補正装置。
(Item 11)
changing the target position based on the position of the second part in the image acquired after switching when the part of the subject selected by the selecting means is switched from the first part to the second part; 11. The image blur correction device according to item 10.
(項目12)
前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、切り替わる前に取得された画像における前記第2の部位の位置に基づいて前記目標位置を変更することを特徴とする項目10に記載の像ブレ補正装置。
(Item 12)
changing the target position based on the position of the second part in the image acquired before switching when the part of the subject selected by the selecting means is switched from the first part to the second part; 11. The image blur correction device according to item 10.
(項目13)
撮像装置に加わる振れに起因する像ブレを補正するための手振れ補正量を算出するための手振れ補正量算出手段と、前記被写体ブレ補正量と、前記手振れ補正量算出手段により算出された手振れ補正量とを合成して合成像ブレ補正量を生成する合成手段とをさらに備えることを特徴とする項目1乃至12のいずれか1項目に記載の像ブレ補正装置。
(Item 13)
camera shake correction amount calculation means for calculating a camera shake correction amount for correcting image blur caused by shake applied to an imaging device; the subject blur correction amount; and the camera shake correction amount calculated by the camera shake correction amount calculation means. 13. The image blur correction device according to any one of
(項目14)
前記合成手段は、前記被写体ブレ補正量の低周波成分と、前記手振れ補正量の高周波成分を加算して合成することを特徴とする項目13に記載の像ブレ補正装置。
(Item 14)
14. The image blur correction apparatus according to item 13, wherein the synthesizing unit adds and synthesizes the low frequency component of the subject blur correction amount and the high frequency component of the camera shake correction amount.
(項目15)
前記選択手段は、オートフォーカスのために用いる被写体の部位とは独立して、被写体ブレの補正のために用いる被写体の部位を選択できることを特徴とする項目1乃至14のいずれか1項目に記載の像ブレ補正装置。
(Item 15)
15. The method according to any one of
(項目16)
前記選択手段は、被写体の部位として、顔に含まれる器官よりも、顔または頭部を優先して選択することを特徴とする項目1乃至15のいずれか1項目に記載の像ブレ補正装置。
(Item 16)
16. The image blur correction device according to any one of
(項目17)
前記選択手段は、被写体の部位として、胴体よりも、顔または頭部を優先して選択することを特徴とする項目1乃至16のいずれか1項目に記載の像ブレ補正装置。
(Item 17)
17. The image blur correction device according to any one of
(項目18)
前記被写体ブレ補正量に基づいて、像ブレを補正する像ブレ補正手段をさらに備えることを特徴とする項目1乃至17のいずれか1項目に記載の像ブレ補正装置。
(Item 18)
18. The image blur correction device according to any one of
(項目19)
前記像ブレ補正手段は、撮影光学系の光軸と直交する方向に変位することにより、像ブレを補正する撮像素子を有することを特徴とする項目18に記載の像ブレ補正装置。
(Item 19)
19. An image blur correction apparatus according to item 18, wherein the image blur correction means has an imaging device that corrects image blur by being displaced in a direction perpendicular to the optical axis of the photographing optical system.
(項目20)
前記像ブレ補正手段は、撮影光学系の光軸と異なる方向に変位することにより、像ブレを補正する補正レンズを有することを特徴とする項目18に記載の像ブレ補正装置。
(Item 20)
19. The image blur correction device according to item 18, wherein the image blur correction means has a correcting lens that corrects image blur by being displaced in a direction different from the optical axis of the photographing optical system.
(項目21)
被写体を撮像する撮像手段と、
項目1乃至20のいずれか1項目に記載の像ブレ補正装置と、
を備えることを特徴とする撮像装置。
(Item 21)
imaging means for imaging a subject;
an image blur correction device according to any one of
An imaging device comprising:
(項目22)
入力された画像から被写体を部位ごとに検出し、検出された被写体の部位の位置を出力する被写体検出工程と、
前記被写体検出工程において検出された1つ以上の被写体の部位から、所定の優先度に基づいて被写体の部位を選択する選択工程と、
前記選択工程において選択された被写体の部位の位置と、画像内の所定の目標位置との差に基づいて被写体ブレを補正するための被写体ブレ補正量を算出する被写体ブレ補正量算出工程と、を有し、
前記選択工程において選択された被写体の部位が第1の部位から第2の部位に切り替わると、
前記被写体ブレ補正量算出工程において、
前記選択された被写体の部位の位置と前記目標位置との差分と、画像における前記第2の部位の位置と、切り替わる前に取得された画像における前記第1の部位の位置と、に基づいて、前記被写体ブレ補正量を算出することを特徴とする像ブレ補正装置の制御方法。
(Item 22)
a subject detection step of detecting each part of the subject from the input image and outputting the position of the detected part of the subject;
a selection step of selecting a part of the subject based on a predetermined priority from one or more parts of the subject detected in the subject detection step;
a subject blur correction amount calculation step of calculating a subject blur correction amount for correcting subject blur based on the difference between the position of the part of the subject selected in the selection step and a predetermined target position in the image; have
When the part of the subject selected in the selection step switches from the first part to the second part,
In the subject blur correction amount calculation step,
Based on the difference between the position of the part of the selected subject and the target position, the position of the second part in the image, and the position of the first part in the image acquired before switching, A control method for an image blur correction device, comprising: calculating the subject blur correction amount.
(項目23)
入力された画像から被写体を部位ごとに検出し、検出された被写体の部位の位置を出力する被写体検出工程と、
前記被写体検出工程において検出された1つ以上の被写体の部位から、所定の優先度に基づいて被写体の部位を選択する選択工程と、
前記選択工程において選択された被写体の部位の位置と、画像内の所定の目標位置との差分に基づいて被写体ブレを補正するための被写体ブレ補正量を算出する被写体ブレ補正量算出工程と、を有し、
前記選択工程において選択された被写体の部位が第1の部位から第2の部位に切り替わると、第2の部位の位置に基づいて前記目標位置を変更することを特徴とする像ブレ補正装置の制御方法。
(Item 23)
a subject detection step of detecting each part of the subject from the input image and outputting the position of the detected part of the subject;
a selection step of selecting a part of the subject based on a predetermined priority from one or more parts of the subject detected in the subject detection step;
a subject blur correction amount calculation step of calculating a subject blur correction amount for correcting subject blur based on the difference between the position of the part of the subject selected in the selection step and a predetermined target position in the image; have
Control of an image blur correction device characterized by changing the target position based on the position of the second part when the part of the subject selected in the selection step is switched from the first part to the second part. Method.
(項目24)
項目22または23に記載の制御方法の各工程をコンピュータに実行させるためのプログラム。
(Item 24)
A program for causing a computer to execute each step of the control method according to item 22 or 23.
(項目25)
項目22または23に記載の制御方法の各工程をコンピュータに実行させるためのプログラムを記憶したコンピュータが読み取り可能な記憶媒体。
(Item 25)
A computer-readable storage medium storing a program for causing a computer to execute each step of the control method according to item 22 or 23.
(他の実施形態)
また本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現できる。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現できる。
(Other embodiments)
In addition, the present invention supplies a program that implements 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 reads the program. It can also be realized by executing processing. It can also be implemented by a circuit (eg, ASIC) that implements one or more functions.
発明は上記実施形態に制限されるものではなく、発明の精神及び範囲から離脱することなく、様々な変更及び変形が可能である。従って、発明の範囲を公にするために請求項を添付する。 The invention is not limited to the embodiments described above, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, the claims are appended to make public the scope of the invention.
100:撮像装置、101:光学系、102:撮像素子、103:現像処理部、104:被写体検出部、105:被写体部位選択部、106:被写体ブレ補正量算出部、701:手振れ検出部、702;手振れ補正量算出部、703:像ブレ補正量合成部
100: Imaging Apparatus 101: Optical System 102: Imaging Device 103: Development Processing Unit 104: Subject Detection Unit 105: Subject Part Selection Unit 106: Subject Blur Correction Amount Calculation Unit 701: Camera
Claims (25)
前記被写体検出手段により検出された1つ以上の被写体の部位から、所定の優先度に基づいて被写体の部位を選択する選択手段と、
前記選択手段により選択された被写体の部位の位置と、画像内の所定の目標位置との差分に基づいて被写体ブレを補正するための被写体ブレ補正量を算出する被写体ブレ補正量算出手段と、を備え、
前記被写体ブレ補正量算出手段は、
前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、前記選択された被写体の部位の位置と前記目標位置との差分と、画像における前記第2の部位の位置と、切り替わる前に取得された画像における前記第2の部位の位置と、に基づいて、前記被写体ブレ補正量を算出することを特徴とする像ブレ補正装置。 subject detection means for detecting each part of the subject from the input image and outputting the position of the detected part of the subject;
selection means for selecting a part of the subject based on a predetermined priority from one or more parts of the subject detected by the subject detection means;
subject blur correction amount calculation means for calculating a subject blur correction amount for correcting subject blur based on the difference between the position of the part of the subject selected by the selection means and a predetermined target position in the image; prepared,
The subject blur correction amount calculation means includes:
When the part of the subject selected by the selection means is switched from the first part to the second part, the difference between the position of the selected part of the subject and the target position, and the position of the second part in the image. The image blur correction device, wherein the subject blur correction amount is calculated based on the position and the position of the second part in the image acquired before switching.
前記被写体検出手段により検出された1つ以上の被写体の部位から、所定の優先度に基づいて被写体の部位を選択する選択手段と、
前記選択手段により選択された被写体の部位の位置と、画像内の所定の目標位置との差に基づいて被写体ブレを補正するための被写体ブレ補正量を算出する被写体ブレ補正量算出手段と、を備え、
前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、第2の部位の位置に基づいて前記目標位置を変更することを特徴とする像ブレ補正装置。 subject detection means for detecting each part of the subject from the input image and outputting the position of the detected part of the subject;
selection means for selecting a part of the subject based on a predetermined priority from one or more parts of the subject detected by the subject detection means;
subject blur correction amount calculation means for calculating a subject blur correction amount for correcting subject blur based on the difference between the position of the part of the subject selected by the selection means and a predetermined target position in the image; prepared,
An image blur correction device, wherein when the part of the subject selected by the selection means is switched from the first part to the second part, the target position is changed based on the position of the second part.
請求項1乃至20のいずれか1項に記載の像ブレ補正装置と、
を備えることを特徴とする撮像装置。 imaging means for imaging a subject;
an image blur correction device according to any one of claims 1 to 20;
An imaging device comprising:
前記被写体検出工程において検出された1つ以上の被写体の部位から、所定の優先度に基づいて被写体の部位を選択する選択工程と、
前記選択工程において選択された被写体の部位の位置と、画像内の所定の目標位置との差に基づいて被写体ブレを補正するための被写体ブレ補正量を算出する被写体ブレ補正量算出工程と、を有し、
前記選択工程において選択された被写体の部位が第1の部位から第2の部位に切り替わると、
前記被写体ブレ補正量算出工程において、
前記選択された被写体の部位の位置と前記目標位置との差分と、画像における前記第2の部位の位置と、切り替わる前に取得された画像における前記第1の部位の位置と、に基づいて、前記被写体ブレ補正量を算出することを特徴とする像ブレ補正装置の制御方法。 a subject detection step of detecting each part of the subject from the input image and outputting the position of the detected part of the subject;
a selection step of selecting a part of the subject based on a predetermined priority from one or more parts of the subject detected in the subject detection step;
a subject blur correction amount calculation step of calculating a subject blur correction amount for correcting subject blur based on the difference between the position of the part of the subject selected in the selection step and a predetermined target position in the image; have
When the part of the subject selected in the selection step switches from the first part to the second part,
In the subject blur correction amount calculation step,
Based on the difference between the position of the part of the selected subject and the target position, the position of the second part in the image, and the position of the first part in the image acquired before switching, A control method for an image blur correction device, comprising: calculating the subject blur correction amount.
前記被写体検出工程において検出された1つ以上の被写体の部位から、所定の優先度に基づいて被写体の部位を選択する選択工程と、
前記選択工程において選択された被写体の部位の位置と、画像内の所定の目標位置との差分に基づいて被写体ブレを補正するための被写体ブレ補正量を算出する被写体ブレ補正量算出工程と、を有し、
前記選択工程において選択された被写体の部位が第1の部位から第2の部位に切り替わると、第2の部位の位置に基づいて前記目標位置を変更することを特徴とする像ブレ補正装置の制御方法。 a subject detection step of detecting each part of the subject from the input image and outputting the position of the detected part of the subject;
a selection step of selecting a part of the subject based on a predetermined priority from one or more parts of the subject detected in the subject detection step;
a subject blur correction amount calculation step of calculating a subject blur correction amount for correcting subject blur based on the difference between the position of the part of the subject selected in the selection step and a predetermined target position in the image; have
Control of an image blur correction device characterized by changing the target position based on the position of the second part when the part of the subject selected in the selection step is switched from the first part to the second part. Method.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US18/151,018 US20230232102A1 (en) | 2022-01-14 | 2023-01-06 | Image blur correction apparatus, control method therefor, imaging apparatus, and storage medium |
GB2300401.3A GB2616944A (en) | 2022-01-14 | 2023-01-11 | Image blur correction apparatus, control method therefor, imaging apparatus, program, and storage medium |
DE102023100698.3A DE102023100698A1 (en) | 2022-01-14 | 2023-01-13 | Image blur correction device, control method therefor, imaging device, program and storage medium |
CN202310040231.4A CN116456186A (en) | 2022-01-14 | 2023-01-13 | Image blur correction apparatus, control method thereof, image capturing apparatus, and storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022004591 | 2022-01-14 | ||
JP2022004591 | 2022-01-14 |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2023103964A true JP2023103964A (en) | 2023-07-27 |
Family
ID=87378480
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2022197365A Pending JP2023103964A (en) | 2022-01-14 | 2022-12-09 | Image blur correction apparatus, control method therefor, imaging apparatus, program, and storage medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2023103964A (en) |
-
2022
- 2022-12-09 JP JP2022197365A patent/JP2023103964A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101624450B1 (en) | Image processing device, image processing method, and storage medium | |
JP5645450B2 (en) | Image processing apparatus and method | |
US9865064B2 (en) | Image processing apparatus, image processing method, and storage medium | |
KR20090089071A (en) | Digital photographing apparatus, method for controlling the same, and recording medium storing program to implement the method | |
JP2007081682A (en) | Image processor, image processing method, and executable program by information processor | |
JP2011258180A (en) | Subject tracking apparatus, subject tracking method, and program | |
JP2010114752A (en) | Device and method of imaging and program | |
JP2010187348A (en) | Apparatus, method and program for image processing | |
KR102444292B1 (en) | Method and apparatus for processing 360 degree image | |
JP7418697B2 (en) | Image processing device and image processing program | |
JP2022120681A (en) | Image processing device and image processing method | |
JP2023103964A (en) | Image blur correction apparatus, control method therefor, imaging apparatus, program, and storage medium | |
KR20100046544A (en) | Image distortion compensation method and apparatus | |
US20230232102A1 (en) | Image blur correction apparatus, control method therefor, imaging apparatus, and storage medium | |
RU2761187C1 (en) | Image processing apparatus and image capturing apparatus | |
WO2015198478A1 (en) | Image distortion correction apparatus, information processing apparatus and image distortion correction method | |
US11727545B2 (en) | Image processing apparatus and image capturing apparatus | |
JP5615012B2 (en) | White balance stable adjustment device and control method thereof, program for white balance stable adjustment | |
JP2016042662A (en) | Image processing system, imaging apparatus, image processing method, program, and storage medium | |
CN116456186A (en) | Image blur correction apparatus, control method thereof, image capturing apparatus, and storage medium | |
JPH06133298A (en) | Motion vector detector | |
JP7110657B2 (en) | Image processing device, image processing method and program | |
JP6873815B2 (en) | Image processing equipment, imaging equipment, image processing methods, programs, and storage media | |
JP2019083407A (en) | Image blur correction device and control method therefor, and imaging device | |
US20230215034A1 (en) | Image processing apparatus, image processing method, and image capture apparatus |