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 PDF

Info

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
Application number
JP2022197365A
Other languages
Japanese (ja)
Inventor
優 成田
Masaru Narita
龍一郎 安田
Ryuichiro Yasuda
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to US18/151,018 priority Critical patent/US20230232102A1/en
Priority to GB2300401.3A priority patent/GB2616944A/en
Priority to DE102023100698.3A priority patent/DE102023100698A1/en
Priority to CN202310040231.4A priority patent/CN116456186A/en
Publication of JP2023103964A publication Critical patent/JP2023103964A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Adjustment Of Camera Lenses (AREA)

Abstract

To provide an image blur correction apparatus capable of performing object blur correction without impairing quality of an image even when parts of an object to be detected are switched.SOLUTION: Included are: object detection means configured to detect an object for each part from an input image and output a position of the part of the object detected; selection means configured to select a part of the object from the part of one or more objects detected by the object detection means on the basis of a predetermined priority; and object blur correction amount calculation means configured to calculate an object blur correction amount for correcting object blur on the basis of a difference between a position of the part of the object selected by the selection means and a predetermined target position in the image. The object blur correction amount calculation means, when the part of the object selected by the selection means is switched from a first part to a second part, calculates the object blur correction amount on the basis of a difference between the position of the selected part of the object and the target position, a position of the second part in the image, and a position of the second part in the image acquired before the switching.SELECTED DRAWING: Figure 1

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.

特許第5771461号公報Japanese Patent No. 5771461

特許文献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.

第1の実施形態に係わる撮像装置の構成を示すブロック図。1 is a block diagram showing the configuration of an imaging device according to a first embodiment; FIG. 第1の実施形態で行われる処理を説明するフローチャート。4 is a flowchart for explaining processing performed in the first embodiment; 被写体検出結果の例を示す図。4A and 4B are diagrams showing examples of subject detection results; FIG. 被写体ブレ補正量の算出方法を説明する図。4A and 4B are diagrams for explaining a method of calculating a subject blur correction amount; FIG. 被写体検出において選択される部位が切り替わる場合の例を説明する図。FIG. 10 is a diagram for explaining an example in which a part selected in subject detection is switched; 被写体ブレ補正の抑制処理を説明する図。4A and 4B are diagrams for explaining suppression processing of subject blur correction; FIG. 第2の実施形態に係わる撮像装置の構成を示すブロック図。FIG. 2 is a block diagram showing the configuration of an imaging device according to a second embodiment; FIG. 第2の実施形態で行われる処理を説明するフローチャート。9 is a flowchart for explaining processing performed in the second embodiment;

以下、添付図面を参照して実施形態を詳しく説明する。なお、以下の実施形態は特許請求の範囲に係る発明を限定するものではない。実施形態には複数の特徴が記載されているが、これらの複数の特徴の全てが発明に必須のものとは限らず、また、複数の特徴は任意に組み合わせられてもよい。さらに、添付図面においては、同一若しくは同様の構成に同一の参照番号を付し、重複した説明は省略する。 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 imaging device 100 that is a first embodiment of an image blur correction device of the present invention.

図1において、撮像装置100は、撮影光学系101、撮像素子102、現像処理部103、被写体検出部104、被写体部位選択部105、被写体ブレ補正量算出部106、制御部110、ROM112、RAM114を備える。 In FIG. 1, an imaging apparatus 100 includes an imaging optical system 101, an imaging element 102, a development processing unit 103, an object detection unit 104, an object part selection unit 105, an object shake correction amount calculation unit 106, a control unit 110, a ROM 112, and a RAM 114. Prepare.

なお、本実施形態では、撮影光学系101内に、撮影光学系101の光軸とは異なる方向に変位することにより、撮像面上で被写体像を移動させ像ブレを補正する補正レンズを有する。また、撮像素子102は、光軸と直交する方向に変位することにより、像ブレを補正することが可能に構成されている。 In this embodiment, the imaging optical system 101 includes a correction lens that is displaced in a direction different from the optical axis of the imaging optical system 101 to move the subject image on the imaging plane and correct image blur. Further, the imaging device 102 is configured to be able to correct image blur by displacing in a direction perpendicular to the optical axis.

また、図1では、撮像装置100を、レンズとカメラ本体が一体化された撮像装置として示しているが、本発明は、レンズ交換式の撮像装置に対しても適用可能である。 In addition, although FIG. 1 shows the imaging apparatus 100 as an imaging apparatus in which a lens and a camera body are integrated, the present invention can also be applied to a lens-interchangeable imaging apparatus.

図1において、撮影光学系101により結像された被写体像は、撮像素子102においてアナログ画像信号に変換される。そのアナログ画像信号は、現像処理部103において、A/D変換された後、ホワイトバランス補正、色(輝度・色差信号)変換、γ補正などの現像処理が施され、画像データとして出力される。 In FIG. 1, a subject image formed by a photographing optical system 101 is converted into an analog image signal by an image sensor 102 . The analog image signal is A/D converted in the development processing unit 103, then subjected to development processing such as white balance correction, color (luminance/color difference signal) conversion, and γ correction, and output as image data.

被写体検出部104は、現像処理部103からの入力画像データに対して、特定の被写体を部位ごとに検出し、検出された被写体の部位の位置を出力する。部位は、例えば、頭部、顔、瞳、鼻、口、胴体、腕、脚などである。 A subject detection unit 104 detects each part of a specific subject from the input image data from the development processing unit 103, and outputs the positions of the detected parts of the subject. Parts include, for example, the head, face, eyes, nose, mouth, body, arms, and legs.

被写体部位選択部105は、被写体検出部104により検出された1つ以上の被写体の部位から、所定の優先度に基づいて被写体の部位を選択する。 The subject part selection unit 105 selects a part of the subject based on a predetermined priority from one or more parts of the subject detected by the subject detection unit 104 .

被写体ブレ補正量算出部106は、被写体部位選択部105により選択された被写体の部位の位置と、画像内の所定の目標位置との差に基づいて被写体ブレ補正量を算出する。 Subject blur correction amount calculation section 106 calculates subject blur correction amount based on the difference between the position of the part of the subject selected by subject part selection section 105 and a predetermined target position in the image.

そして、光学式像ブレ補正手段である撮影光学系101内の補正レンズ及び撮像素子102の少なくとも一方を、被写体ブレ補正量算出部106により算出された被写体ブレ補正量に基づいて変位させる。これにより、被写体の所望の部位の位置を、目標位置に近づけるよう光学式像ブレ補正を行うことができる。 Then, at least one of the correction lens in the photographing optical system 101 and the image sensor 102, which is optical image blur correction means, is displaced based on the subject blur correction amount calculated by the subject blur correction amount calculation unit 106. FIG. As a result, optical image blur correction can be performed so that the position of the desired part of the subject is brought closer to the target position.

マイクロコンピュータなどからなる制御部110は、ROM112に記憶されたプログラムをRAM114に展開して実行することにより、撮像装置100の全体を制御する。 A control unit 110 such as a microcomputer develops a program stored in a ROM 112 in a RAM 114 and executes the program, thereby controlling the imaging apparatus 100 as a whole.

なお、本発明は光学式像ブレ補正に限定されるものではなく、被写体ブレ補正量に基づいて、電子式像ブレ補正を行ってもよい。電子式像ブレ補正とは、被写体ブレ補正量に基づいて、画像領域全体からそれより小さい表示用の画像領域の切り出し位置を変更することにより、像ブレを補正する動作である。 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 imaging apparatus 100 configured as described above will be described using the flowchart shown in FIG. The operation of the flowchart in FIG. 2 is realized by the control unit 110 developing the program stored in the ROM 112 in the RAM 114 and executing the program.

図2において、ステップS201では、制御部110は、被写体検出部104を用いて、現像処理部103からの入力画像から、特定の被写体を部位ごとに検出する。代表的な被写体の部位としては、人物の顔が挙げられる。 In FIG. 2, in step S201, the control unit 110 uses the subject detection unit 104 to detect a specific subject for each part from the input image from the development processing unit 103. FIG. A person's face is a representative part of a subject.

この場合、検出方法は公知の顔検出方法を用いればよい。顔検出の公知技術としては、顔に関する知識(肌色情報、目、鼻、口などのパーツ)を利用する方法や、ニューラルネットワークに代表される学習アルゴリズムにより顔検出のための識別器を構成する方法などがある。そして、検出精度を向上させるために、それらを組み合わせて顔検出を行うのが一般的である。人物の顔以外の場合にも同様の手法で検出することが可能である。 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. Rectangles 301 to 310 indicate detected regions. Specifically, rectangle 301 is the face or head, rectangle 302 is the right eye, rectangle 303 is the left eye, rectangle 304 is the nose, rectangle 305 is the mouth, rectangle 306 is the right arm, rectangle 307 is the left arm, rectangle 308 is the body, rectangle 309. represents the right leg and rectangle 310 represents the left leg.

以下では、各矩形に含まれる代表点を、被写体の部位の位置として扱う。代表点として、例えば各矩形の重心の座標である重心座標を用いる。ここでは検出された部位を便宜上矩形で表現しているが、矩形に限定されるものではなく、任意の形状で表現してよい。 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 control unit 110 uses the subject part selection unit 105 to select a part of the subject from the one or more parts of the subject detected in step S201 based on a predetermined priority.

所定の優先度とは、例えばオートフォーカス(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 control unit 110 uses the subject blur correction amount calculation unit 106 to perform subject blur correction based on the difference between the position of the part of the subject selected in step S202 and a predetermined target position in the image. Calculate quantity. A method of calculating the subject blur correction amount will be described with reference to FIG.

黒四角401は画像内の所定の目標位置を示し、任意の位置に設定することができる。図4の例では画像中央に設定している。点線で示した矩形402はステップS202で選択された頭部を示し、黒丸403はその重心位置を示している。矢印404は、座標401と座標403の差であり、この差を被写体ブレ補正量とする。 A black square 401 indicates a predetermined target position in the image and can be set at any position. In the example of FIG. 4, it is set at the center of the image. A rectangle 402 indicated by a dotted line indicates the head selected in step S202, and a black circle 403 indicates the position of its center of gravity. An arrow 404 indicates the difference between the coordinates 401 and 403, and this difference is used as the subject shake correction amount.

なお、画像のノイズや被写体検出の精度の影響で、検出される被写体の部位の位置は誤差を持つのが一般的である。そのため、検出される被写体の部位の位置あるいは被写体ブレ補正量に対してローパスフィルタ(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, control unit 110 determines whether the part of the subject selected in step S202 is the same as the part selected in the previous frame. Control unit 110 advances the process to step S205 if different from the part selected in the previous frame, and advances the process to step S206 if the same.

図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 black square 501 indicates the target position of the subject, which is the center of the image in this example.

図5(a)では被写体の頭部502が選択されており、図5(b)および図5(c)では胴体503が選択されている。ステップS202で説明した通り、図5(b)および図5(c)において頭部が検出できている場合は、頭部を優先して選択する。しかし、図5(b)および図5(c)では、頭部が小さいため検出できず、胴体のみしか検出されないため、胴体を選択することになる。 The subject's head 502 is selected in FIG. 5(a), and the body 503 is selected in FIGS. 5(b) and 5(c). As described in step S202, when the head can be detected in FIGS. 5B and 5C, the head is preferentially selected. However, in FIGS. 5B and 5C, the head is too small to be detected, and only the body is detected, so the body is selected.

図5(a)では頭部502の重心座標が、目標位置501に重なるように被写体ブレ補正が行われる。 In FIG. 5A , subject shake correction is performed so that the coordinates of the center of gravity of the head 502 overlap the target position 501 .

図5(b)では胴体502が部位として選択される。図5(b)が取得された時点では、まだ頭部501の重心座標が目標位置501に重なるよう被写体ブレ補正が行われる。黒丸504は胴体の重心座標、矢印505は胴体の重心座標を目標位置501に移動させるための被写体ブレ補正量を示している。 In FIG. 5B, the trunk 502 is selected as the part. At the time when FIG. 5B is obtained, subject shake correction is performed so that the coordinates of the center of gravity of the head 501 still overlap the target position 501 . A black circle 504 indicates the coordinates of the center of gravity of the trunk, and an arrow 505 indicates the subject shake correction amount for moving the coordinates of the center of gravity of the trunk to the target position 501 .

図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 coordinates 504 of the center of gravity of the body overlap with the target position 501 (image center). That is, as the body part of the subject to be detected is switched, the head of the subject is positioned near the target position 501 at the center of the image (FIGS. 5A and 5B), and the body of the subject is positioned at the center of the image. change to the state in That is, although the position of the subject on the images is almost the same between FIGS. By correcting the blurring of the subject by using the above method, the position of the subject moves unnaturally by the change in the coordinates of the center of gravity of the part of the subject.

そこで、被写体の部位が切り替わることにより、被写体の位置が不自然に移動することを抑制するため、ステップ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 control unit 110 uses the object shake correction amount calculation unit 106, based on the amount of displacement of the position of the object selected by the object part selection unit 105 when the part of the object changes, calculated in step S203. suppresses the amount of subject blur correction applied.

具体的には、図5(b)での胴体503の重心座標から、図5(a)での頭部502の重心座標を差し引いた値をオフセットとして、被写体ブレ補正量505から減算する。このようにすることで、被写体ブレ補正量から、被写体の部位の重心座標の変化分がキャンセルされ、被写体の位置の不自然な移動がなくなる。 Specifically, a value obtained by subtracting the barycentric coordinates of the head 502 in FIG. 5A from the barycentric coordinates of the body 503 in FIG. 5B is subtracted from the subject shake correction amount 505 as an offset. By doing so, the amount of change in the coordinates of the center of gravity of the part of the subject is canceled from the subject shake correction amount, and unnatural movement of the position of the subject is eliminated.

図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 line 601 represents time-series data of the positions of parts of the subject before the suppression process, and a dotted line 602 represents the time-series data of the positions of the parts of the subject after the suppression process. A solid line 603 is time-series data obtained by performing correction processing, which will be described later, on the dotted line 602 . Here, in FIG. 5, the downward direction of the image is defined as the direction in which the vertical coordinate increases. Since the head is higher than the body in FIG. 5, the vertical coordinate is smaller for the head and larger for the body in FIG.

時刻t1とt2では、部位の切り替わりによって垂直座標が大きく変位している。t1での被写体の部位の位置の変位量を604、t2での被写体の部位の位置の変位量を605とする。これらの変位量をそのまま被写体ブレの補正量に反映してしまうと、選択される部位が変わっただけで被写体の位置が不自然に変わってしまうことになる。 At times t1 and t2, the vertical coordinate is greatly displaced due to the switching of the parts. Let 604 be the amount of displacement of the position of the part of the subject at t1, and 605 be the amount of displacement of the position of the part of the subject at t2. If these displacement amounts are directly reflected in the subject blur correction amount, the position of the subject will change unnaturally just by changing the part to be selected.

そこで、抑制処理前の被写体の部位の位置601から、時刻t1以降では変位量604をオフセットとして差し引き、さらに時刻t2以降では変位量604と変位量605を加算した量である変位量606をオフセットとして差し引くことで、抑制処理後の被写体の部位の位置602を得ることができる。 Therefore, a displacement amount 604 is subtracted as an offset from the position 601 of the part of the subject before suppression processing after time t1, and a displacement amount 606, which is an amount obtained by adding the displacement amounts 604 and 605 after time t2, is used as an offset. By subtracting, the position 602 of the part of the subject after the suppression process can be obtained.

このように、被写体ブレ補正量算出部106は、被写体部位選択部105により選択された被写体の部位が切り替わる際の部位の位置の変位量をオフセットとして、被写体ブレ補正量から差し引く。さらに、被写体ブレ補正量算出部106は、被写体部位選択部105により選択された被写体の部位が切り替わる度に、現在のオフセットに対して更にオフセットを加算し、加算されたオフセットを被写体ブレ補正量から差し引く。これにより、被写体の部位の切り替わりによって被写体の位置が不自然に移動することを抑制することができる。 In this way, the subject blur correction amount calculation unit 106 subtracts from the subject blur correction amount, as an offset, the amount of displacement of the position of the subject when the part of the subject selected by the subject part selection unit 105 is switched. Further, the subject blur correction amount calculation unit 106 adds an offset to the current offset each time the part of the subject selected by the subject part selection unit 105 is switched, and subtracts the added offset from the subject blur correction amount. Subtract. As a result, it is possible to prevent the position of the subject from moving unnaturally due to the switching of the part of the subject.

ここで、時刻t2以降では再び頭部が選択されるので、抑制処理後の点線602は、抑制処理前の破線601と一致するのが理想的であるが、一致していない。これは、時刻t1でのオフセットと時刻t2でのオフセットが相殺されず、オフセットの誤差が生じるためである。オフセットの誤差が生じる原因としては、被写体の部位が切り替わるときの被写体の動きや被写体検出の誤差などが考えられる。 Here, since the head is selected again after time t2, it is ideal that the dashed line 602 after suppression processing matches the dashed line 601 before suppression processing, but they do not match. This is because the offset at the time t1 and the offset at the time t2 are not canceled and an offset error occurs. Possible causes of the offset error include the motion of the subject when the body part of the subject is switched, the subject detection error, and the like.

そこで、再び頭部が検出された時刻t2以降において、前述の加算されたオフセット(変位量604+605=変位量606)を徐々に零に近づけることで、抑制処理後の点線602が、抑制処理前の破線601に近づき、実線603を得ることができる。 Therefore, after time t2 when the head is detected again, the added offset (displacement amount 604+605=displacement amount 606) is gradually brought closer to zero. We approach the dashed line 601 and obtain the solid line 603 .

すなわち、被写体ブレ補正量算出部106は、被写体部位選択部105により最も優先度の高い被写体の部位が選択されているとき、加算されたオフセットを徐々に零に近づけることで、オフセットによる被写体ブレ補正量のずれを修正できる。 That is, when the subject part selection unit 105 selects the part of the subject with the highest priority, the subject blur correction amount calculation unit 106 gradually reduces the added offset to zero, thereby correcting the subject blur by the offset. Quantity deviations can be corrected.

ステップS206では、制御部110は、ステップS203またはステップS205で算出された被写体ブレ補正量に基づいて、像ブレ補正を行う。前述のとおり、像ブレ補正の手段としては、光学式像ブレ補正手段である撮影光学系101内の補正レンズ、撮像素子102、不図示の電子式像ブレ補正手段を用いることができる。 In step S206, the control unit 110 performs image blur correction based on the subject blur correction amount calculated in step S203 or step S205. As described above, the correcting lens in the photographing optical system 101, which is optical image blur correction means, the image sensor 102, and electronic image blur correction means (not shown) can be used as the image blur correction means.

最後のステップS207では、制御部110は、最終フレームまで処理が完了したか否かを判定し、最終フレームまで処理が完了していない場合は、ステップS201に処理を戻す。最終フレームまで処理が完了した場合は、このフローの動作を終了する。 In the final step S207, the control unit 110 determines whether or not the processing has been completed up to the final frame, and if the processing has not been completed up to the final frame, the processing returns to step S201. When the processing is completed up to the final frame, the operation of this flow ends.

以上の処理によって、検出される被写体の部位が切り替わる場合でも、映像の品位を損なわずに被写体ブレ補正を行うことができる。 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 subject detection unit 104 may be recorded in addition to the image at the time of photographing, so that subject detection does not have to be performed when the image is reproduced.

(第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 body 503 in FIG. A value obtained by subtracting the coordinates of the center of gravity of the head 502 in 5(a) is subtracted from the subject shake correction amount 505 as an offset. However, the offset calculation method is not limited to this.

オフセットとしては、選択された被写体の部位が切り替わった後の頭部の重心座標と、選択された被写体の部位が切り替わった後の胴体の重心座標との差分を用いることが好ましいが、切り替わった後の頭部の重心座標はわからない。そのため、上述の実施形態では、切り替わり前後における頭部の重心座標の変化は小さいとみなし、上述の実施形態では切り替わった後の胴体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 head 502 before switching are subtracted from the barycentric coordinates of the body 503 after switching. The value obtained was used as an offset. However, if the coordinates of the center of gravity of the head 502 before switching are deviated from the target position, the deviation is subject to subject blur correction. changes. Therefore, the subject blur correction amount corrected before and after switching is added to the value obtained by subtracting the coordinates of the center of gravity of the head 502 before switching from the coordinates of the center of gravity of the body 503 after switching (displacement amount 604 described above). may However, subject shake correction has been performed at the time of FIG. A value obtained by subtracting the coordinates of the center of gravity of the head 502 before switching from the coordinates of the center of gravity of 503 may be used as the offset.

また、選択された被写体の部位が切り替わる前から胴体503が検出できている場合は、選択された被写体の部位が切り替わる前の図5(a)における胴体503の重心座標から頭部502の重心座標を差し引いた値をオフセットとして用いることもできる。上述のように、図5(a)と図5(b)との間に被写体の大きさの変動があると、切り替わり前の頭部502の重心座標と胴体503との重心座標とからオフセットを求めると、被写体の大きさの変動分だけオフセットも誤差を含んでしまう。しかしながら、切り替わり前後のわずかな時間に生じる被写体の大きさの変動も大きくはない。よって、切り替わり前の頭部502の重心座標と胴体503との重心座標とからオフセットを求めてもよい。尚、オフセットをより正確に求めるために、切り替わり前の胴体のサイズと切り替わり後の胴体のサイズを比較して切り替わり前後に生じる被写体の大きさの変動を取得し、これを考慮してオフセットを求めてもよい。 Further, if the body 503 can be detected before the selected parts of the subject are switched, the coordinates of the center of gravity of the body 503 in FIG. can be used as an offset. As described above, if there is a change in the size of the subject between FIG. 5A and FIG. When obtained, the offset also includes an error corresponding to the variation in the size of the subject. However, the change in the size of the object that occurs in a short period of time before and after switching is not large. Therefore, the offset may be obtained from the coordinates of the center of gravity of the head 502 and the coordinates of the center of gravity of the body 503 before switching. In addition, in order to obtain the offset more accurately, the body size before and after switching is compared to obtain the change in the size of the subject that occurs before and after switching, and the offset is obtained by taking this into consideration. may

(第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 imaging device 700 according to the second embodiment of the invention. In FIG. 7, the same reference numerals as in FIG. 1 denote the same components as in FIG. 1, and the description thereof will be omitted. The imaging apparatus of this embodiment has a camera shake detection unit 701, a camera shake correction amount calculation unit 702, and an image blur correction amount synthesizing unit 703 in addition to the configuration shown in FIG. In this embodiment, only portions that perform processing different from that in the first embodiment will be described.

手振れ検出部701は、撮像装置700に加わる手振れを検出する。手振れ補正量算出部702は、手振れ検出部701により検出される振れに起因する像ブレを補正するための像ブレ補正量(手振れ補正量)を算出する。 A camera shake detection unit 701 detects camera shake applied to the imaging device 700 . A shake correction amount calculation unit 702 calculates an image shake correction amount (shake correction amount) for correcting image blur caused by shake detected by the shake detection unit 701 .

像ブレ補正量合成部703は、被写体ブレ補正量算出部106から出力される被写体ブレ補正量と、手振れ補正量算出部702から出力される像ブレ補正量(手振れ補正量)を合成して、最終的な像ブレ補正量(合成像ブレ補正量)を生成する。 The image blur correction amount synthesizing unit 703 synthesizes the subject blur correction amount output from the subject blur correction amount calculation unit 106 and the image blur correction amount (shake correction amount) output from the camera shake correction amount calculation unit 702, A final image blur correction amount (composite image blur correction amount) is generated.

図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 control unit 110 developing the program stored in the ROM 112 in the RAM 114 and executing the program.

ステップS204では、制御部110は、ステップS202で選択された被写体の部位が、直前のフレームにおいて選択された部位と同一か否かを判定する。制御部110は、直前のフレームにおいて選択された部位と異なる場合は、処理をステップS205に進め、同一の場合は処理をステップS801に進める。制御部110は、ステップS205の完了後は、ステップS801に処理を進める。 In step S204, control unit 110 determines whether the part of the subject selected in step S202 is the same as the part selected in the previous frame. Control unit 110 advances the process to step S205 if different from the part selected in the previous frame, and advances the process to step S801 if the same. After step S205 is completed, control unit 110 advances the process to step S801.

ステップS801では、制御部110は、手振れ検出部701を用いて、撮像装置700に加わる手振れを検出する。手振れ検出部701としては、例えばジャイロセンサを用いることができる。ただし検出方法はこれに限られない。なお、ステップS801を実行するタイミングはS802よりも前であれば任意であり、S201~S205と前後しても構わない。 In step S<b>801 , the control unit 110 detects camera shake applied to the imaging device 700 using the camera shake detection unit 701 . A gyro sensor, for example, can be used as the camera shake detection unit 701 . However, the detection method is not limited to this. Note that the timing of executing step S801 is arbitrary as long as it is before S802, and may be executed before or after S201 to S205.

ステップS802では、手振れ補正量算出部702は、ステップS801で検出される手振れに起因する像ブレを補正するための手振れ補正量を算出する。例えば、ジャイロセンサにより得られる手振れの角速度信号を積分し、符号を反転させることで、手振れ補正量を算出することができる。 In step S802, the camera shake correction amount calculation unit 702 calculates a camera shake correction amount for correcting image blur caused by camera shake detected in step S801. For example, the shake correction amount can be calculated by integrating the shake angular velocity signal obtained by the gyro sensor and inverting the sign.

ステップS803では、制御部110は、像ブレ補正量合成部703を用いて、ステップS204またはステップS205で得られる被写体ブレ補正量と、ステップS802で得られる手振れ補正量を合成して、最終的な像ブレ補正量を算出する。 In step S803, the control unit 110 uses the image blur correction amount synthesizing unit 703 to synthesize the subject blur correction amount obtained in step S204 or step S205 and the camera shake correction amount obtained in step S802. An image blur correction amount is calculated.

合成方法としては、例えば周波数で分けて合成する方法がある。具体的には、被写体ブレ補正量に対してローパスフィルタ(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 control unit 110 performs image blur correction based on the final image blur correction amount obtained in step S803. As described above, the correcting lens in the photographing optical system 101, which is optical image blur correction means, the image sensor 102, and electronic image blur correction means (not shown) can be used as blur correction means.

以上の処理によって、検出される被写体の部位が切り替わる場合でも、映像の品位を損なわずに被写体ブレ補正および手振れに起因する像ブレ補正を行うことができる。 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 body 503 in FIGS. 5(a) and 5(b). Hereinafter, for the sake of explanation, the part of the subject selected before the switching occurs (in the case of FIGS. 5A and 5B, the head 502) is the first part, and the part selected after the switching occurs. The part of the subject (body 503 in FIGS. 5A and 5B) is sometimes called a second part.

変更後の目標位置について説明を行う。本実施形態では、例えば、図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 body 503 in FIG. 5B are set as the target position, and the coordinates of the center of gravity of the body 503 are set to the target position (that is, the coordinates of the center of gravity of the body 503 in FIG. 5B) in subsequent frames. By performing subject blur correction on the first image, subject blur correction control can be performed so that the head 502 is positioned near the center of the image even if the head 502 is not selected. This makes it possible to reduce abrupt changes in the subject position that accompany the switching of the subject part.

目標位置は、図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 body 503 in the frame before switching is set as the target position.

また、目標位置は、図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 head 502 is displaced from the target position in the frame before switching, if the position of the body 503 in the frame before switching is set as the target position, subject shake correction is performed so as to maintain the displaced state. By setting the position obtained by adding the difference between the head 502 and the body 503 in the frame before switching to the target position before switching (the center of the image in FIG. 5A) as the target position, the head 502 is positioned at the center of the image. The position of the torso 503 in the case of doing so can be set as the target position. However, similarly to the case where the coordinates of the center of gravity of the body 503 in the frame before switching are set as the target position, it is affected by the change in the size of the object that occurs between FIGS. 5A and 5B.

また、切り替わり前、切り替わり後、どちらの第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 item 1, wherein the subject blur correction amount is calculated based on the position of the first part in the image acquired before switching and the position of the second part after switching. image stabilization device.

(項目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 item 1.

(項目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 items 1 to 12, further comprising combining means for generating a combined image blur correction amount by combining the above.

(項目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 items 1 to 14, wherein the selection means can select a part of the subject to be used for correcting blurring of the subject independently of a part of the subject to be used for autofocus. Image blur correction device.

(項目16)
前記選択手段は、被写体の部位として、顔に含まれる器官よりも、顔または頭部を優先して選択することを特徴とする項目1乃至15のいずれか1項目に記載の像ブレ補正装置。
(Item 16)
16. The image blur correction device according to any one of items 1 to 15, wherein the selection means selects the face or the head with priority over the organs included in the face as the part of the subject.

(項目17)
前記選択手段は、被写体の部位として、胴体よりも、顔または頭部を優先して選択することを特徴とする項目1乃至16のいずれか1項目に記載の像ブレ補正装置。
(Item 17)
17. The image blur correction device according to any one of items 1 to 16, wherein the selection means selects the face or the head with priority over the body as the part of the subject.

(項目18)
前記被写体ブレ補正量に基づいて、像ブレを補正する像ブレ補正手段をさらに備えることを特徴とする項目1乃至17のいずれか1項目に記載の像ブレ補正装置。
(Item 18)
18. The image blur correction device according to any one of items 1 to 17, further comprising image blur correction means for correcting image blur based on the subject blur correction amount.

(項目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 items 1 to 20;
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 Shake Detection Unit 702 ; camera shake correction amount calculation unit 703: image blur correction amount synthesis unit

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の部位から第2の部位に切り替わると、前記選択された被写体の部位の位置と前記目標位置との差分と、切り替わる前に取得された画像における前記第1の部位の位置と切り替わった後の前記第2の部位の位置とに基づいて、前記被写体ブレ補正量を算出することを特徴とする請求項1に記載の像ブレ補正装置。 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 after switching. The image blur correction device described. 前記被写体ブレ補正量算出手段は、前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、前記選択された被写体の部位の位置と前記目標位置との差分と、切り替わる前に取得された画像における前記第1の部位の位置と切り替わった後に取得された画像における前記第2の部位の位置との差分と、に基づいて、前記被写体ブレ補正量を算出することを特徴とする請求項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. 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. 3. The image blur correction device according to claim 2, characterized by: 前記被写体ブレ補正量算出手段は、前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、前記選択された被写体の部位の位置と前記目標位置との差分と、切り替わる前に取得された画像における前記第1の部位の位置と、切り替わる前に取得された画像における前記第2の部位の位置とに基づいて、前記被写体ブレ補正量を算出することを特徴とする請求項1に記載の像ブレ補正装置。 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. 2. The image blur correction device according to claim 1. 前記被写体ブレ補正量算出手段は、前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、前記選択された被写体の部位の位置と前記目標位置との差分と、切り替わる前に取得された画像における前記第1の部位の位置と切り替わる前に取得された画像における前記第2の部位の位置との差分と、に基づいて、前記被写体ブレ補正量を算出することを特徴とする請求項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 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. 5. The image blur correction device according to claim 4, characterized by: 前記被写体ブレ補正量算出手段は、前記第2の部位の位置と前記目標位置との差分に基づく仮の被写体ブレ補正量から、前記第1の部位の位置と前記第2の部位の位置との差分をオフセットとして差し引くことにより前記被写体ブレ補正量を算出することを特徴とする請求項3に記載の像ブレ補正装置。 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. 4. The image blur correction device according to claim 3, wherein the subject blur correction amount is calculated by subtracting the difference as an offset. 前記被写体ブレ補正量算出手段は、選択された被写体の部位が切り替わる度に前記オフセットを加算し、加算されたオフセットを前記仮の被写体ブレ補正量から差し引くことを特徴とする請求項6に記載の像ブレ補正装置。 7. The subject blur correction amount calculation means according to claim 6, wherein each time a part of the selected subject changes, the offset is added, and the added offset is subtracted from the provisional subject blur correction amount. Image blur correction device. 前記被写体ブレ補正量算出手段は、最も優先度の高い被写体の部位が選択されている場合に、前記加算されたオフセットを徐々に零に近づけることを特徴とする請求項7に記載の像ブレ補正装置。 8. The image blur correction according to claim 7, wherein said subject blur correction amount calculation means gradually brings said added offset closer to zero when a part of the subject with the highest priority is selected. Device. 前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、切り替わり前の画像における前記第2の部位の位置と、切り替わり前の画像における前記第1の部位の位置とに基づいて前記目標位置を変更することを特徴とする請求項8に記載の像ブレ補正装置。 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 claim 8, wherein the target position is changed based on and. 入力された画像から被写体を部位ごとに検出し、検出された被写体の部位の位置を出力する被写体検出手段と、
前記被写体検出手段により検出された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の部位から第2の部位に切り替わると、切り替わった後に取得された画像における前記第2の部位の位置に基づいて前記目標位置を変更することを特徴とする請求項10に記載の像ブレ補正装置。 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 claim 10. 前記選択手段により選択された被写体の部位が第1の部位から第2の部位に切り替わると、切り替わる前に取得された画像における前記第2の部位の位置に基づいて前記目標位置を変更することを特徴とする請求項10に記載の像ブレ補正装置。 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 claim 10. 撮像装置に加わる振れに起因する像ブレを補正するための手振れ補正量を算出するための手振れ補正量算出手段と、前記被写体ブレ補正量と、前記手振れ補正量算出手段により算出された手振れ補正量とを合成して合成像ブレ補正量を生成する合成手段とをさらに備えることを特徴とする請求項1に記載の像ブレ補正装置。 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. 2. The image blur correction apparatus according to claim 1, further comprising synthesizing means for synthesizing the and to generate a synthetic image blur correction amount. 前記合成手段は、前記被写体ブレ補正量の低周波成分と、前記手振れ補正量の高周波成分を加算して合成することを特徴とする請求項13に記載の像ブレ補正装置。 14. The image blur correction apparatus according to claim 13, wherein said synthesizing means adds and synthesizes a low frequency component of said subject blur correction amount and a high frequency component of said camera shake correction amount. 前記選択手段は、オートフォーカスのために用いる被写体の部位とは独立して、被写体ブレの補正のために用いる被写体の部位を選択できることを特徴とする請求項1に記載の像ブレ補正装置。 2. The image blur correction device according to claim 1, wherein said selection means can select a part of the subject to be used for correcting blurring of the subject independently of a part of the subject to be used for autofocus. 前記選択手段は、被写体の部位として、顔に含まれる器官よりも、顔または頭部を優先して選択することを特徴とする請求項1に記載の像ブレ補正装置。 2. The image blur correction device according to claim 1, wherein said selection means selects the face or the head with priority over the organs included in the face as the part of the subject. 前記選択手段は、被写体の部位として、胴体よりも、顔または頭部を優先して選択することを特徴とする請求項1に記載の像ブレ補正装置。 2. The image blur correction device according to claim 1, wherein the selection means selects the face or the head with priority over the body as the part of the subject. 前記被写体ブレ補正量に基づいて、像ブレを補正する像ブレ補正手段をさらに備えることを特徴とする請求項1に記載の像ブレ補正装置。 2. The image blur correction device according to claim 1, further comprising image blur correction means for correcting image blur based on said subject blur correction amount. 前記像ブレ補正手段は、撮影光学系の光軸と直交する方向に変位することにより、像ブレを補正する撮像素子を有することを特徴とする請求項18に記載の像ブレ補正装置。 19. The image blur correction apparatus according to claim 18, wherein said 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 imaging optical system. 前記像ブレ補正手段は、撮影光学系の光軸と異なる方向に変位することにより、像ブレを補正する補正レンズを有することを特徴とする請求項18に記載の像ブレ補正装置。 19. The image blur correction device according to claim 18, wherein said image blur correction means has a correction lens that corrects image blur by being displaced in a direction different from the optical axis of the photographing optical system. 被写体を撮像する撮像手段と、
請求項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.
請求項22または23に記載の制御方法の各工程をコンピュータに実行させるためのプログラム。 A program for causing a computer to execute each step of the control method according to claim 22 or 23. 請求項22または23に記載の制御方法の各工程をコンピュータに実行させるためのプログラムを記憶したコンピュータが読み取り可能な記憶媒体。 24. A computer-readable storage medium storing a program for causing a computer to execute each step of the control method according to claim 22 or 23.
JP2022197365A 2022-01-14 2022-12-09 Image blur correction apparatus, control method therefor, imaging apparatus, program, and storage medium Pending JP2023103964A (en)

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)

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