JP2011022351A - Camera shake-correcting device - Google Patents

Camera shake-correcting device Download PDF

Info

Publication number
JP2011022351A
JP2011022351A JP2009167267A JP2009167267A JP2011022351A JP 2011022351 A JP2011022351 A JP 2011022351A JP 2009167267 A JP2009167267 A JP 2009167267A JP 2009167267 A JP2009167267 A JP 2009167267A JP 2011022351 A JP2011022351 A JP 2011022351A
Authority
JP
Japan
Prior art keywords
panning
data
offset
blur correction
value
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.)
Withdrawn
Application number
JP2009167267A
Other languages
Japanese (ja)
Inventor
Kenichi Miyasako
賢一 宮迫
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 JP2009167267A priority Critical patent/JP2011022351A/en
Publication of JP2011022351A publication Critical patent/JP2011022351A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a camera shake-correcting device, restraining lowering of a camera shake correcting effect even in a panning state. <P>SOLUTION: When the start of panning operation is detected, offset from an offset changing circuit 106 is applied to the output of a high-pass filter (HPF) 15 indicating a shake amount of an imaging device by an adder-subtracter 108, thereby reducing the shake amount. As the size of shake correction data outputted by a focal length-computing circuit 17 is closer to the correction end of a shape correction circuit 19, the value of the offset is set larger. When the end of the panning operation is detected, the offset value is returned to zero. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、撮像装置の動きによる撮像画像のブレを補正するブレ補正装置に関する。   The present invention relates to a shake correction apparatus that corrects a shake of a captured image due to movement of an image pickup apparatus.

近年、撮像装置の小型化やズームレンズの高倍率化に伴い、装置ブレや手ブレと呼ばれる露光中の撮像装置の動きが撮像画像の品質を低下させる大きな原因となっている。そのため、装置ブレが撮像画像に与える影響を軽減するブレ補正装置が提案されている。   In recent years, with the downsizing of an imaging apparatus and the increase in the magnification of a zoom lens, the movement of the imaging apparatus during exposure, which is called apparatus blurring or camera shake, has become a major cause of reducing the quality of captured images. For this reason, there has been proposed a shake correction device that reduces the influence of device shake on a captured image.

一方、流し撮りなど、意図的に撮像装置を移動させながら撮像する撮像手法がある。このような意図的な撮像装置の移動と装置ブレとを区別せずにブレ補正を適用することは好ましくない。そのため、撮像装置が意図的に移動させられているのか、装置ブレなのかを判定し、判定結果に応じてブレ補正の感度を補正することが知られている。   On the other hand, there is an imaging technique such as panning that captures an image while intentionally moving the imaging device. It is not preferable to apply the shake correction without distinguishing between the intentional movement of the imaging device and the device shake. For this reason, it is known to determine whether the imaging device is intentionally moved or device shake, and to correct the sensitivity of shake correction according to the determination result.

例えば、特許文献1には、撮像装置がパンニングされていると判定された場合にはパンニングの周波数成分に対するブレ補正機能の応答性を抑制することが開示されている。
例えば、撮像装置に搭載されるブレ補正装置の例として、図19に示すような構成のものがある。ブレ補正装置10において、角速度センサ11は、図示しない撮像装置本体に取り付けられており、撮像装置のブレを角速度として検出する。DCカットフィルタ12は、角速度センサ11から出力される角速度信号の直流(DC)成分を遮断して、交流成分、すなわち振動成分のみを通過させる。アンプ13は、DCカットフィルタ12を通過して出力された角速度信号を増幅して出力する。A/D(アナログ/ディジタル)変換器14は、アンプ13で増幅された角速度信号をディジタル化して出力する。
For example, Patent Document 1 discloses that when it is determined that the imaging apparatus is panned, the response of the blur correction function to the frequency component of panning is suppressed.
For example, as an example of a shake correction apparatus mounted on an imaging apparatus, there is a structure as shown in FIG. In the shake correction device 10, an angular velocity sensor 11 is attached to an imaging device main body (not shown) and detects a shake of the imaging device as an angular velocity. The DC cut filter 12 blocks the direct current (DC) component of the angular velocity signal output from the angular velocity sensor 11 and passes only the alternating current component, that is, the vibration component. The amplifier 13 amplifies and outputs the angular velocity signal output through the DC cut filter 12. The A / D (analog / digital) converter 14 digitizes and outputs the angular velocity signal amplified by the amplifier 13.

高域通過フィルタ(ハイパスフィルタ:HPF)15、積分器16、焦点距離演算回路17、パンニング制御回路18は、例えば、マイクロコンピュータ(マイコン)20が、図示しない不揮発性メモリに記憶されたソフトウェアを実行することによって実現される。   The high-pass filter (high-pass filter: HPF) 15, the integrator 16, the focal length calculation circuit 17, and the panning control circuit 18 are executed by, for example, a microcomputer 20 that executes software stored in a nonvolatile memory (not shown). It is realized by doing.

HPF15はA/D変換器14から出力されたディジタル角速度信号(角速度データ)周波数成分のうち、設定された低域カットオフ周波数以下の低周波成分を遮断し、低域カットオフ周波数を超える高周波成分を出力する。積分器16は、HPF15から出力された角速度データの高周波成分を積分して、積分結果を角変位データとして出力する。焦点距離演算回路17は、図示しない撮像装置が有するズームレンズの焦点距離を検出する。焦点距離演算回路17は例えば、撮像装置が有するズームレンズの現在のズーム位置を、ズームエンコーダから取得し、ズーム位置からズームレンズの焦点距離(画角)を算出することにより、焦点距離を検出する。そして、焦点距離演算回路17は、焦点距離と、上述した角変位データとから、撮像素子の光軸のブレを補正するためのブレ補正データを算出する。ブレ補正回路19は、ブレ補正データに応じて撮像装置の光軸ブレを補正する。   The HPF 15 blocks a low frequency component below the set low frequency cutoff frequency from among the digital angular velocity signal (angular velocity data) frequency components output from the A / D converter 14, and a high frequency component exceeding the low frequency cutoff frequency. Is output. The integrator 16 integrates the high frequency component of the angular velocity data output from the HPF 15 and outputs the integration result as angular displacement data. The focal length calculation circuit 17 detects the focal length of a zoom lens included in an imaging device (not shown). For example, the focal length calculation circuit 17 acquires the current zoom position of the zoom lens included in the imaging apparatus from the zoom encoder, and calculates the focal length (view angle) of the zoom lens from the zoom position, thereby detecting the focal length. . Then, the focal length calculation circuit 17 calculates blur correction data for correcting the blur of the optical axis of the image sensor from the focal length and the angular displacement data described above. The shake correction circuit 19 corrects the optical axis shake of the imaging apparatus according to the shake correction data.

ブレ補正回路19は、補正レンズを光軸と垂直な方向に駆動して光軸を偏心させることでブレ補正を行う光学式ブレ補正回路であっても良いし、撮像素子から読み出す領域を移動させることでブレ補正を行う電子式ブレ補正回路であっても良い。あるいは、撮像素子を光軸に対して垂直な面内で移動させるセンサーシフト式ブレ補正回路であっても良い。   The blur correction circuit 19 may be an optical blur correction circuit that performs blur correction by driving the correction lens in a direction perpendicular to the optical axis and decentering the optical axis, or may move an area to be read from the image sensor. Thus, an electronic blur correction circuit that performs blur correction may be used. Alternatively, it may be a sensor shift type blur correction circuit that moves the image sensor in a plane perpendicular to the optical axis.

パンニング制御回路18は、A/D変換器14から出力された角速度データ及び積分器16から出力された角変位データに基づいて、撮像装置がパンニングされているかどうかの判定(パンニング判定)を行う。具体的には、例えば、角速度データが所定の閾値以上、或いは、角速度データが所定の閾値に満たなくとも角変位データ(積分結果)が所定の閾値以上であるならば、パンニング状態であると判定する。   The panning control circuit 18 determines whether the imaging device is panned (panning determination) based on the angular velocity data output from the A / D converter 14 and the angular displacement data output from the integrator 16. Specifically, for example, if the angular velocity data is equal to or greater than a predetermined threshold value, or if the angular displacement data (integration result) is equal to or greater than the predetermined threshold value even if the angular velocity data is less than the predetermined threshold value, the panning state is determined. To do.

そして、パンニング制御回路18は、パンニング判定の結果に従ってパンニング制御を行う。パンニング制御では、まず、HPF15の低域カットオフ周波数を徐々に高くさせて、ブレ補正が機能するブレの周波数領域を高域側に縮小する。また、積分器16での積分演算に用いる時定数の値を徐々に小さくさせる。これにより、ブレ補正位置が徐々に移動範囲中心へと移動し、積分器16から出力される角変位データの値が基準値(ブレがない状態においてとりうる値)に徐々に近づいていく。   Then, the panning control circuit 18 performs panning control according to the result of the panning determination. In the panning control, first, the low frequency cut-off frequency of the HPF 15 is gradually increased to reduce the frequency region of the blur where the blur correction functions to the high frequency side. Further, the value of the time constant used for the integration calculation in the integrator 16 is gradually reduced. As a result, the shake correction position gradually moves to the center of the moving range, and the value of the angular displacement data output from the integrator 16 gradually approaches the reference value (a value that can be taken in the absence of shake).

一方、パンニング制御回路18は、パンニング状態でないと判定された場合には、HPF15の低域カットオフ周波数を徐々に低くさせ、積分器16での積分演算に用いる時定数の値を徐々に大きくさせる。これにより、HPF15の低域カットオフ周波数、及び積分器16での積分演算に用いる時定数の値が各々元の状態に戻され、パンニング制御が解除される。
例えば、特許文献1では、上述したパンニング時のHPF15及び積分器16の制御方法が開示されている。
On the other hand, when it is determined that the panning state is not established, the panning control circuit 18 gradually lowers the low-frequency cutoff frequency of the HPF 15 and gradually increases the value of the time constant used for the integration calculation in the integrator 16. . As a result, the low-frequency cutoff frequency of the HPF 15 and the value of the time constant used for the integration calculation in the integrator 16 are restored to the original state, and the panning control is released.
For example, Patent Document 1 discloses a method for controlling the HPF 15 and the integrator 16 during panning described above.

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

しかしながら、パンニング動作の周波数帯域がDC〜1Hz程度、手ブレや身体の揺れの周波数帯域が1Hz〜10Hz程度と非常に近いため、特許文献1に開示された従来技術では、以下のような問題点がある。
すなわち、パンニング状態であると判定された際に、HPF15の低域カットオフ周波数や、積分器16での時定数の値を制御してパンニングの周波数成分の信号の減衰量を高めると、手ブレや、歩行時などの体の揺れの周波数成分の信号の減衰量も大きくなる。その結果、パンニング状態と判定された場合にはパンニング状態と判定されない場合よりも、ブレ補正効果が低下する。
However, since the frequency band of the panning operation is very close to about DC to 1 Hz and the frequency band of camera shake or body shake is about 1 Hz to 10 Hz, the conventional technique disclosed in Patent Document 1 has the following problems. There is.
In other words, when it is determined that the panning state is established, the low frequency cutoff frequency of the HPF 15 and the time constant value in the integrator 16 are controlled to increase the attenuation of the signal of the panning frequency component. In addition, the attenuation amount of the signal of the frequency component of body shaking during walking is also increased. As a result, when the panning state is determined, the blur correction effect is lower than when the panning state is not determined.

本発明はこのような従来技術の課題に鑑みなされたものであり、パンニング状態においてもブレ補正効果の低下を抑制可能なブレ補正装置を提供することを目的とする。   The present invention has been made in view of such a problem of the prior art, and an object of the present invention is to provide a shake correction apparatus capable of suppressing a reduction in shake correction effect even in a panning state.

上記目的を達成するために、本発明のブレ補正装置は、撮像装置に加わる振れを検出して出力する振れ検出手段と、振れ検出手段の出力に基づいて、振れによる画像のブレを補正するブレ補正データを算出する補正データ演算手段と、ブレ補正データの絶対値が予め定めた第1の閾値を超えたことを検出することにより撮像装置のパンニング動作を検出し、ブレ補正データの絶対値が第2の閾値を下回り、かつ、振れ検出手段で検出された振れの大きさが第3の閾値よりも小さいことを検出することにより撮像装置のパンニング動作の終了を検出するするパンニング制御手段と、パンニング制御手段によってパンニング動作が検出されたときに、振れ検出手段の出力から減算するためのオフセット値を生成する生成手段と、振れ検出手段の出力からオフセット値を減算する減算手段と、を有し、生成手段は、パンニング制御手段によってパンニング動作の終了が検出されたときは、オフセット値をゼロにすることを特徴とする。   In order to achieve the above object, a shake correction apparatus of the present invention detects a shake applied to an imaging apparatus and outputs a shake detection unit that corrects a shake of an image caused by the shake based on an output of the shake detection unit. A panning operation of the imaging apparatus is detected by detecting correction data calculating means for calculating correction data, and detecting that the absolute value of the blur correction data exceeds a predetermined first threshold value, Panning control means for detecting the end of the panning operation of the imaging device by detecting that the magnitude of the shake detected by the shake detection means is smaller than the third threshold value, which is below the second threshold value; When a panning operation is detected by the panning control means, a generation means for generating an offset value to be subtracted from the output of the shake detection means, and an output of the shake detection means A subtracting means for subtracting the offset value, from, generation means, when termination of panning operation is detected by the panning control means is characterized in that the offset value to zero.

このような構成により、本発明によれば、パンニング状態においてもブレ補正効果の低下を抑制可能なブレ補正装置を提供することができる。   With such a configuration, according to the present invention, it is possible to provide a shake correction apparatus capable of suppressing a reduction in the shake correction effect even in a panning state.

本発明の実施形態に係るブレ補正装置の構成例を示すブロック図。1 is a block diagram showing a configuration example of a shake correction apparatus according to an embodiment of the present invention. (a)は、第1の実施形態においてパンニング制御回路112が行うパンニング制御処理を説明するためのフローチャート、(b)は、本発明の第3の実施形態に係るパンニング制御回路112が行うパンニング制御処理のうち、第1の実施形態と異なる処理ステップを説明するためのフローチャート。(A) is a flowchart for explaining panning control processing performed by the panning control circuit 112 in the first embodiment, and (b) is panning control performed by the panning control circuit 112 according to the third embodiment of the present invention. The flowchart for demonstrating a process step different from 1st Embodiment among processes. 図2(a)のS101で行う処理を説明するための図。The figure for demonstrating the process performed by S101 of Fig.2 (a). 図19に示した従来のブレ補正装置が搭載された撮像装置にてパンニング動作が行われたときの、(a)ブレ補正データ、(b)HPF15の低域カットオフ周波数、(c)ブレ残り量の経時変化を示す図。(A) blur correction data, (b) HPF 15 low-frequency cutoff frequency, and (c) blur remaining when panning operation is performed in an imaging apparatus equipped with the conventional blur correction apparatus shown in FIG. The figure which shows the time-dependent change of quantity. 第1の実施形態におけるブレ補正装置が搭載された撮像装置にて図4と同様のパンニング動作が行われたときの、(a)ブレ補正データ、(b)オフセット変更回路106の出力(OFFSET_NOW)、(c)ブレ残り量、の経時変化を示す図である。(A) Shake correction data and (b) Output of the offset change circuit 106 (OFFSET_NOW) when a panning operation similar to that shown in FIG. 4 is performed in the imaging apparatus equipped with the shake correction apparatus according to the first embodiment. (C) Remaining blur amount is a figure which shows a time-dependent change. (a)は第2の実施形態におけるパンニング開始判定閾値IN_THRESH1とズームレンズの焦点距離との関係を示す図、(b)はパンニング終了判定閾値IN_THRESH2と焦点距離の関係を示す図、(c)は第4の実施形態における、パンニング終了判定角速度閾値OUT_THRESH2と焦点距離の関係を示す図。(A) is a diagram showing the relationship between the panning start determination threshold IN_THRESH1 and the focal length of the zoom lens in the second embodiment, (b) is a diagram showing the relationship between the panning end determination threshold IN_THRESH2 and the focal length, and (c) is a diagram. The figure which shows the relationship between the panning end determination angular velocity threshold value OUT_THRESH2 and a focal distance in 4th Embodiment. 第3の実施形態に係るブレ補正装置のパンニング動作終了時における、(a)角速度データ、(b)ブレ補正データ、(c)オフセット変更回路106の出力の経時変化を示す図、(d)はパンニング動作終了時の実際のブレ量と、焦点距離演算回路17の出力であるブレ補正データとの差から、補正する必要のないパンニング成分を除去した値の経時変化を示す図。FIG. 6D is a diagram showing temporal changes in (a) angular velocity data, (b) blur correction data, and (c) output of the offset change circuit 106 at the end of the panning operation of the shake correction apparatus according to the third embodiment. FIG. 6 is a diagram showing a change with time of a value obtained by removing a panning component that does not need to be corrected from a difference between an actual blur amount at the end of the panning operation and blur correction data that is an output of the focal length calculation circuit 17; 第5の実施形態に係るパンニング制御回路112が行うパンニング制御処理を説明するためのフローチャート。The flowchart for demonstrating the panning control process which the panning control circuit 112 which concerns on 5th Embodiment performs. 第5の実施形態における、(a)ズーム速度とZOOM_OFFSET_SPEEDとの関係を示す図、(b)焦点距離とFOCAL_OFFSET_GAINとの関係を示す図、(c)ブレ補正データCORRECT_DATAとCORRECT_OFFSET_GAINとの関係を示す図、(d)焦点距離とHPF15の低域カットオフ周波数との関係を示す図。In the fifth embodiment, (a) a diagram showing a relationship between zoom speed and ZOOM_OFFSET_SPEED, (b) a diagram showing a relationship between focal length and FOCAL_OFFSET_GAIN, and (c) a diagram showing a relationship between blur correction data CORRECT_DATA and CORRECT_OFFSET_GAIN. (D) The figure which shows the relationship between a focal distance and the low-pass cutoff frequency of HPF15. 従来のブレ補正装置が搭載された撮像装置にて、高速ズーミング中にパンニング動作が行われたときの、(a)角速度データ、(b)ブレ補正データ、(c)HPF15の低域カットオフ周波数の経時変化を示す図。(A) angular velocity data, (b) blur correction data, and (c) low-frequency cutoff frequency of HPF 15 when a panning operation is performed during high-speed zooming in an imaging device equipped with a conventional blur correction device. FIG. 第5の実施形態のブレ補正装置が搭載された撮像装置で図10と同様の動作が行われたときの、(a)角速度データ、(b)ブレ補正データ、(c)オフセット変更回路106の出力、(d)HPF15の低域カットオフ周波数の経時変化を示す図。(A) angular velocity data, (b) blur correction data, and (c) offset change circuit 106 when an operation similar to that shown in FIG. 10 is performed in an imaging apparatus equipped with the blur correction apparatus of the fifth embodiment. Output, (d) The figure which shows the time-dependent change of the low frequency cut-off frequency of HPF15. (a)は、本発明の第6の実施形態に係るパンニング制御回路112が行うパンニング制御処理を説明するためのフローチャート、(b)は、本発明の第7の実施形態に係るパンニング制御回路112が行うパンニング制御処理のうち、第6の実施形態と異なる処理ステップを説明するためのフローチャート。(A) is a flowchart for explaining a panning control process performed by the panning control circuit 112 according to the sixth embodiment of the present invention, and (b) is a panning control circuit 112 according to the seventh embodiment of the present invention. The flowchart for demonstrating the process step different from 6th Embodiment among the panning control processes performed. 本発明の第6の実施形態における、信号置換回路107の出力信号と角変位データとの関係を示したグラフである。It is the graph which showed the relationship between the output signal of the signal substitution circuit 107, and angular displacement data in the 6th Embodiment of this invention. (a)〜(c)は、従来のブレ補正装置が搭載された撮像装置にて急激なパンニング動作が行われたときの、角速度データ、HPF15の低域カットオフ周波数、積分器16の出力である角変位データの経時変化を示す図、(d)〜(e)は、第6の実施形態におけるブレ補正装置が搭載された撮像装置にて同様のパンニング動作が行われたときの、信号置換回路107の出力信号、角変位データの経時変化を示す図。(A)-(c) are the angular velocity data, the low-frequency cutoff frequency of the HPF 15, and the output of the integrator 16 when an abrupt panning operation is performed in an imaging device equipped with a conventional shake correction device. FIGS. 9D and 9E are diagrams showing changes over time in certain angular displacement data, and FIG. 9D shows signal replacement when a similar panning operation is performed in an imaging apparatus equipped with the shake correction apparatus in the sixth embodiment. The figure which shows the time-dependent change of the output signal of circuit 107, and angular displacement data. 本発明の第8の実施形態に係るパンニング制御回路112が行うパンニング制御処理を説明するためのフローチャート。The flowchart for demonstrating the panning control process which the panning control circuit 112 which concerns on the 8th Embodiment of this invention performs. (a)は、パンニング動作が行われた際のA/D変換器14の出力(角速度データ)の経時変化を示す図、(b)は、3種類のパンニング動作が行われたときの角速度データの経時変化を示す図。(A) is a figure which shows the time-dependent change of the output (angular velocity data) of the A / D converter 14 when the panning operation is performed, and (b) is the angular velocity data when the three types of panning operations are performed. FIG. 第8の実施形態における、(a)パンニング動作が開始されてからの時間CANCEL_TIMEと、OFFSET_CANCEL_ORIGINALとの関係を示す図、(b)PAN_TIMEとPAN_TIME_GAINとの関係を示す図、(c)GYRO_PEAKとGYRO_PEAK_GAINとの関係を示す図。In the eighth embodiment, (a) a diagram showing the relationship between the time CANCEL_TIME since the start of the panning operation and OFFSET_CANCEL_ORIGINAL, (b) a diagram showing the relationship between PAN_TIME and PAN_TIME_GAIN, (c) GYRO_PEAK and GYRO_PEAK_GAIN FIG. (a),(b)は、従来のブレ補正装置が搭載された撮像装置にてパンニング動作が行われたときの、角速度データ、HPF15の低域カットオフ周波数の経時変化を示す図、(c)は、第8の実施形態におけるブレ補正装置が搭載された撮像装置にて図18(a)と同様のパンニング動作が行われたときの、角速度データ、オフセット変更回路106の出力の経時変化を示す図。(A), (b) is a figure which shows a time-dependent change of angular velocity data and the low-pass cutoff frequency of HPF15 when panning operation | movement is performed with the imaging device with which the conventional blurring correction apparatus was mounted, (c) ) Shows changes over time in the angular velocity data and the output of the offset change circuit 106 when a panning operation similar to that shown in FIG. 18A is performed in the imaging apparatus equipped with the shake correction apparatus in the eighth embodiment. FIG. 従来のブレ補正装置の構成例を示すブロック図。The block diagram which shows the structural example of the conventional blurring correction apparatus.

以下、図面を参照して、本発明の例示的な実施形態を詳細に説明する。
図1は、本発明の実施形態の全てを実施可能なブレ補正装置の構成例を示すブロック図であり、図19と同様の構成には同じ参照数字を付して説明を省略する。ただし、個々の実施形態において、図1に示す機能ブロックの全てが必須ではないことに留意されたい。そして、必須でない機能ブロックを有する実施形態に係る撮像装置は、必須でない機能ブロックを有さない構成であってよいことは言うまでもない。以下の実施形態においてはいずれも、ブレ補正装置が撮像装置に用いられる場合を想定している。ブレ補正装置に加わる振れを検出して振れ情報を出力する振れ検出(ブレ検出)センサ、本実施形態では例として角速度センサ11は、図示しない撮像装置本体に取り付けられており、装置に加わる振れを検出し、振れの大きさを角速度として検出する。そして、ブレ補正回路19は、装置に加わる振れによる画像のブレを補正する。
Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram showing a configuration example of a shake correction apparatus capable of implementing all of the embodiments of the present invention. The same reference numerals are assigned to the same configurations as those in FIG. However, it should be noted that not all of the functional blocks shown in FIG. 1 are essential in each embodiment. And it cannot be overemphasized that the imaging device which concerns on embodiment which has a non-essential functional block may be the structure which does not have a non-essential functional block. In the following embodiments, it is assumed that the shake correction apparatus is used for an imaging apparatus. A shake detection (blur detection) sensor that detects shake applied to the shake correction device and outputs shake information, in this embodiment, an angular velocity sensor 11 is attached to an imaging device main body (not shown) as an example, and the shake applied to the device is detected. It detects and the magnitude of the shake is detected as an angular velocity. The blur correction circuit 19 corrects the blur of the image due to the shake applied to the apparatus.

ブレ補正回路19は、ブレ補正データに応じて、図示しない撮像装置が備える撮像光学系(レンズ群)の一部である補正光学系の補正レンズを、光軸と垂直な方向に駆動して光軸を偏心させることで撮像画像のブレ補正を行う光学式ブレ補正回路であって良い。また、ブレ補正回路19は、ブレ補正データに応じて、撮像装置が有する撮像素子から読み出す領域を移動させることでブレ補正を行う電子式ブレ補正回路であっても良い。あるいは、ブレ補正回路19は、ブレ補正データに応じて撮像素子を光軸に対して垂直な面内で移動させるセンサーシフト式ブレ補正回路であっても良い。   The blur correction circuit 19 drives a correction lens of a correction optical system, which is a part of an imaging optical system (lens group) included in an imaging device (not shown), in a direction perpendicular to the optical axis in accordance with the blur correction data. It may be an optical blur correction circuit that performs blur correction of a captured image by decentering the axis. In addition, the blur correction circuit 19 may be an electronic blur correction circuit that performs blur correction by moving an area read from an image sensor included in the imaging device in accordance with blur correction data. Alternatively, the blur correction circuit 19 may be a sensor shift type blur correction circuit that moves the image sensor in a plane perpendicular to the optical axis in accordance with the blur correction data.

図1において、マイクロコンピュータ120が実現する機能ブロックとして、オフセット変更回路106、信号置換回路107、加減算器108及びスイッチ109が追加されている点と、パンニング制御回路112の動作が変更されている点において、図19と異なる。   In FIG. 1, an offset change circuit 106, a signal replacement circuit 107, an adder / subtractor 108, and a switch 109 are added as functional blocks realized by the microcomputer 120, and the operation of the panning control circuit 112 is changed. However, it differs from FIG.

なお、マイクロコンピュータ120が図示しない不揮発性メモリに記憶されたプログラムを実行して実現する機能ブロックの少なくとも1つ以上をハードウェアによって実現してもよいことはいうまでもない。   It goes without saying that at least one or more functional blocks realized by the microcomputer 120 executing a program stored in a non-volatile memory (not shown) may be realized by hardware.

オフセット変更回路106は、パンニング制御回路112の判定結果に応じて、ブレ補正データを補正中心位置に戻すための信号を生成し、加減算器108に出力する。オフセット変更回路106の動作の詳細は後述する。オフセット適用手段としての加減算器108は、低周波成分を遮断する高域通過フィルタ(HPF)15の出力信号にオフセット変更回路106が出力するオフセット値を適用した結果を、スイッチ109に供給する。本実施形態において、加減算器108は、HPF15の出力信号からオフセット値を減算することによりオフセット値を適用する。   The offset changing circuit 106 generates a signal for returning the blur correction data to the correction center position according to the determination result of the panning control circuit 112, and outputs the signal to the adder / subtractor 108. Details of the operation of the offset changing circuit 106 will be described later. An adder / subtractor 108 serving as an offset application unit supplies the switch 109 with the result of applying the offset value output from the offset changing circuit 106 to the output signal of the high-pass filter (HPF) 15 that cuts off the low-frequency component. In the present embodiment, the adder / subtracter 108 applies the offset value by subtracting the offset value from the output signal of the HPF 15.

信号生成手段としての信号置換回路107は、パンニング制御回路112の判定結果に応じて、所定の信号をスイッチ109に出力する。信号置換回路107の動作の詳細は後述する。スイッチ109は、パンニング制御回路112の判定結果に応じて、加減算器108の出力と信号置換回路107の出力のいずれか一方の信号を選択して積分器16に供給する。   The signal replacement circuit 107 serving as a signal generation unit outputs a predetermined signal to the switch 109 according to the determination result of the panning control circuit 112. Details of the operation of the signal replacement circuit 107 will be described later. The switch 109 selects one of the output of the adder / subtractor 108 and the output of the signal replacement circuit 107 according to the determination result of the panning control circuit 112 and supplies the selected signal to the integrator 16.

積分器16は、HPF15から出力された角速度データを積分し、その積分結果を角変位データとして焦点距離演算回路に供給する。HPF15のDCカットオフ周波数と積分器16が積分演算に用いる時定数は、パンニング制御回路112の制御によって可変である。   The integrator 16 integrates the angular velocity data output from the HPF 15 and supplies the integration result as angular displacement data to the focal length calculation circuit. The DC cutoff frequency of the HPF 15 and the time constant used by the integrator 16 for integration calculation are variable under the control of the panning control circuit 112.

パンニング制御回路112は、A/D変換器14から出力された角速度データ、積分器16から出力された角変位データ、ブレ補正データ演算手段として機能する焦点距離演算回路17から出力されたブレ補正データに基づいて、撮像装置がパンニング状態であるか否かを判定する。すなわち、パンニング制御回路112は、撮像装置の動きがユーザのパンニング動作によるものであるか否かを判定する。そして、パンニング制御回路112は、撮像装置がパンニング状態であると判断される場合、パンニング制御を行う。パンニング制御において、パンニング制御回路112は、HPF15、積分器16、オフセット変更回路106、信号置換回路107、スイッチ109の動作を制御する。   The panning control circuit 112 outputs angular velocity data output from the A / D converter 14, angular displacement data output from the integrator 16, and blur correction data output from the focal length calculation circuit 17 functioning as blur correction data calculation means. Based on the above, it is determined whether or not the imaging device is in a panning state. That is, the panning control circuit 112 determines whether or not the movement of the imaging device is due to the user's panning operation. The panning control circuit 112 performs panning control when it is determined that the imaging apparatus is in the panning state. In panning control, the panning control circuit 112 controls operations of the HPF 15, the integrator 16, the offset changing circuit 106, the signal replacement circuit 107, and the switch 109.

●(第1の実施形態)
以下、本発明の第1の実施形態におけるパンニング制御回路112の動作について説明する。なお、本実施形態において、信号置換回路107及びスイッチ109は必須でなく、加減算器108の出力が積分器16に直接入力されてもよい。
● (first embodiment)
Hereinafter, the operation of the panning control circuit 112 according to the first embodiment of the present invention will be described. In this embodiment, the signal replacement circuit 107 and the switch 109 are not essential, and the output of the adder / subtractor 108 may be directly input to the integrator 16.

図2(a)は、第1の実施形態においてパンニング制御回路112が行うパンニング制御処理を説明するためのフローチャートである。なお、図2(a)を参照して以下に説明する処理は、例えば垂直同期期間(60分の1秒)毎といったように、所定期間毎に繰り返し行われる。   FIG. 2A is a flowchart for explaining the panning control process performed by the panning control circuit 112 in the first embodiment. Note that the processing described below with reference to FIG. 2A is repeatedly performed every predetermined period, for example, every vertical synchronization period (1/60 second).

S101においてパンニング制御回路112は、オフセット変更回路106の出力信号を決定するための変数OFFSET_DATAの値を算出する。なお、現在のパンニング制御処理におけるオフセット変更回路106の出力信号をOFFSET_NOWとし、1回前(1垂直同期期間前)の処理におけるオフセット変更回路106の出力信号をOFFSET_PASTと定義する。   In S101, the panning control circuit 112 calculates the value of the variable OFFSET_DATA for determining the output signal of the offset changing circuit 106. Note that the output signal of the offset change circuit 106 in the current panning control process is defined as OFFSET_NOW, and the output signal of the offset change circuit 106 in the process one time before (one vertical synchronization period before) is defined as OFFSET_PAST.

S101における、オフセット変更回路106の出力信号を決定するための変数であるOFFSET_DATAの算出方法を、図3を参照して説明する。図3において、横軸は焦点距離演算回路17の出力信号であるブレ補正データ(CORRECT_DATA)、縦軸は変数OFFSET_DATAである。このように、パンニング制御回路112は、CORRECT_DATAの値に応じて変数OFFSET_DATAの値を算出する。   A method of calculating OFFSET_DATA that is a variable for determining the output signal of the offset changing circuit 106 in S101 will be described with reference to FIG. In FIG. 3, the horizontal axis represents blur correction data (CORRECT_DATA) that is an output signal of the focal length calculation circuit 17, and the vertical axis represents the variable OFFSET_DATA. As described above, the panning control circuit 112 calculates the value of the variable OFFSET_DATA according to the value of CORRECT_DATA.

パンニング制御回路112は、CORRECT_DATAの絶対値がパンニング開始判定閾値IN_THRESH1を超えたときに、撮像装置がパンニング状態であると判定する。また、パンニング制御回路112は、CORRECT_DATAの絶対値がパンニング終了判定閾値OUT_THRESH1(第2の閾値)を下回ったときに、撮像装置がパンニング状態にないと判定する。ここで、パンニング終了判定閾値OUT_THRESH1はパンニング開始判定閾値IN_THRESH1より小さい値とする。   The panning control circuit 112 determines that the imaging device is in the panning state when the absolute value of CORRECT_DATA exceeds the panning start determination threshold IN_THRESH1. The panning control circuit 112 determines that the imaging device is not in the panning state when the absolute value of CORRECT_DATA falls below the panning end determination threshold value OUT_THRESH1 (second threshold value). Here, the panning end determination threshold value OUT_THRESH1 is set to a value smaller than the panning start determination threshold value IN_THRESH1.

図3に示すように、パンニング制御回路112は、CORRECT_DATAの絶対値がパンニング開始判定閾値IN_THRESH1(第1の閾値)以下である場合、OFFSET_DATAの値をゼロとする。一方、パンニング制御回路112は、CORRECT_DATAの値がパンニング開始判定閾値IN_THRESH1より大きい場合は、CORRECT_DATAの値が大きくなるに従ってOFFSET_DATAの値も大きくなるようにOFFSET_DATAの値を算出する。また、パンニング制御回路112は、CORRECT_DATAの値がパンニング開始判定閾値 -IN_THRESH1より小さい場合は、CORRECT_DATAが小さくなるに従ってOFFSET_DATAの値も小さくなるように、OFFSET_DATAの値を算出する。このように、パンニング制御回路112は、ブレ補正データCORRECT_DATAの値が、ブレ補正回路19の動作範囲の限界(以下、補正端とする)に近付くことに応じて、OFFSET_DATAの絶対値が大きくなるようにOFFSET_DATAの値を算出する。   As shown in FIG. 3, the panning control circuit 112 sets the value of OFFSET_DATA to zero when the absolute value of CORRECT_DATA is equal to or less than the panning start determination threshold IN_THRESH1 (first threshold). On the other hand, when the value of CORRECT_DATA is larger than the panning start determination threshold IN_THRESH1, the panning control circuit 112 calculates the value of OFFSET_DATA so that the value of OFFSET_DATA increases as the value of CORRECT_DATA increases. Further, when the value of CORRECT_DATA is smaller than the panning start determination threshold value -IN_THRESH1, the panning control circuit 112 calculates the value of OFFSET_DATA so that the value of OFFSET_DATA decreases as CORRECT_DATA decreases. As described above, the panning control circuit 112 increases the absolute value of OFFSET_DATA as the value of the blur correction data CORRECT_DATA approaches the limit of the operation range of the blur correction circuit 19 (hereinafter referred to as a correction end). Calculate the value of OFFSET_DATA.

S101においてOFFSET_DATAの値を算出すると、パンニング制御回路112は、S102において、OFFSET_PASTがゼロか否か、即ち、1回前の処理でパンニング状態と判定されていなかったかどうかを判定する。OFFSET_PASTがゼロで、1回前の処理においてパンニング状態と判断されていなかった場合、パンニング制御回路112は処理をS103に移行する。なお、OFFSET_PASTの初期値はゼロとする。従って、最初の処理ではパンニング制御回路112はS103の処理を必ず行う。   When the value of OFFSET_DATA is calculated in S101, the panning control circuit 112 determines in S102 whether OFFSET_PAST is zero, that is, whether the panning state has not been determined in the previous process. When OFFSET_PAST is zero and the panning state has not been determined in the previous process, the panning control circuit 112 shifts the process to S103. Note that the initial value of OFFSET_PAST is zero. Accordingly, in the first process, the panning control circuit 112 always performs the process of S103.

S103においてパンニング制御回路112は、S101で算出したOFFSET_DATAがゼロ未満であるか否かを判定し、ゼロ以上の場合は符号フラグSIGN_FLAGをリセット(S104)し、ゼロ未満の場合は符号フラグSIGN_FLAGをセットする(S105)。S103〜S105の処理は、1回前の処理においてパンニング状態でないと判定された場合にのみ行われるため、一度パンニング状態であると判定された後は、パンニング状態でないと判定されるまで、符号フラグSIGN_FLAGの状態は保持される。パンニング制御回路112は、S104もしくはS105の処理の後、S111の処理に移行する。   In S103, the panning control circuit 112 determines whether or not the OFFSET_DATA calculated in S101 is less than zero. If the OFFSET_DATA is less than zero, the sign flag SIGN_FLAG is reset (S104), and if it is less than zero, the sign flag SIGN_FLAG is set. (S105). Since the processing of S103 to S105 is performed only when it is determined that it is not in the panning state in the previous processing, after it is determined that it is once in the panning state, the sign flag is determined until it is determined that it is not in the panning state. The state of SIGN_FLAG is retained. The panning control circuit 112 proceeds to the process of S111 after the process of S104 or S105.

S111においてパンニング制御回路112は、オフセット変更回路106の出力OFFSET_NOWに、S101で算出したOFFSET_DATAの値を設定する。図3を用いて説明したように、CORRECT_DATAの絶対値がパンニング開始判定閾値IN_THRESH1を超えた場合、パンニング制御回路112は撮像装置がパンニング状態であると判定する。そして、このときパンニング制御回路112は、オフセット変更回路106の出力OFFSET_NOWに、焦点距離演算回路17の出力CORRECT_DATAをゼロ(補正中心位置)に近付けるような値を設定する。   In S111, the panning control circuit 112 sets the value of OFFSET_DATA calculated in S101 to the output OFFSET_NOW of the offset change circuit 106. As described with reference to FIG. 3, when the absolute value of CORRECT_DATA exceeds the panning start determination threshold IN_THRESH1, the panning control circuit 112 determines that the imaging device is in the panning state. At this time, the panning control circuit 112 sets a value that brings the output CORRECT_DATA of the focal length calculation circuit 17 close to zero (correction center position) in the output OFFSET_NOW of the offset change circuit 106.

S102においてパンニング制御回路112は、OFFSET_PASTがゼロでなかった場合、即ち1回前の処理においてパンニング状態と判定されている場合、S106の処理に移行する。S106でパンニング制御回路112は、符号フラグSIGN_FLAGがセットされているか否かの判定、即ちパンニングの方向の判定を行う。   In S102, if the OFFSET_PAST is not zero, that is, if it is determined that the panning state is obtained in the previous process, the panning control circuit 112 proceeds to the process in S106. In S106, the panning control circuit 112 determines whether or not the sign flag SIGN_FLAG is set, that is, determines the panning direction.

S106でSIGN_FLAGがセットされていると判定された場合、パンニング制御回路112は、S101で算出したOFFSET_DATAが、1回前の処理のオフセット変更回路106の出力OFFSET_PASTより小さいか否か判定する(S108)。また、S106でSIGN_FLAGがセットされていないと判定された場合、パンニング制御回路112は、S101で算出したOFFSET_DATAが、1回前の処理のオフセット変更回路106の出力OFFSET_PASTより大きいか否かを判定する(S107)。   If it is determined in S106 that SIGN_FLAG is set, the panning control circuit 112 determines whether or not the OFFSET_DATA calculated in S101 is smaller than the output OFFSET_PAST of the offset change circuit 106 of the previous process (S108). . If it is determined in S106 that SIGN_FLAG is not set, the panning control circuit 112 determines whether the OFFSET_DATA calculated in S101 is larger than the output OFFSET_PAST of the offset change circuit 106 of the previous process. (S107).

このように、S106〜S108の処理において、パンニング制御回路112は、1回前の処理でパンニング状態であると判定されている場合に、現在の処理でブレ補正データCORRECT_DATAがブレ補正回路19の補正端に近付いているか否かを判定する。   As described above, in the processes of S106 to S108, when it is determined that the panning control circuit 112 is in the panning state in the previous process, the blur correction data CORRECT_DATA is corrected by the blur correction circuit 19 in the current process. It is determined whether or not the edge is approaching.

S107においてOFFSET_DATAがOFFSET_PASTより大きいと判定された場合、及びS108においてOFFSET_DATAがOFFSET_PASTより小さいと判定された場合、パンニング制御回路112はS111の処理に移行する。そして、S111でパンニング制御回路112は、オフセット変更回路106の出力にS101で算出したOFFSET_DATAの値を設定する。即ち、既にパンニング状態であると判定されている際に、ブレ補正データの値がブレ補正回路19の補正端にさらに近付いた場合、パンニング制御回路112は、ブレ補正データをさらに大きくゼロに近付けるようにオフセット変更回路106の出力を制御する。   If it is determined in S107 that OFFSET_DATA is greater than OFFSET_PAST, or if it is determined in S108 that OFFSET_DATA is smaller than OFFSET_PAST, the panning control circuit 112 proceeds to the process of S111. In step S <b> 111, the panning control circuit 112 sets the value of OFFSET_DATA calculated in step S <b> 101 as the output of the offset change circuit 106. That is, when it is already determined that the camera is in the panning state, if the value of the blur correction data further approaches the correction end of the blur correction circuit 19, the panning control circuit 112 increases the blur correction data closer to zero. The output of the offset changing circuit 106 is controlled.

このように、本実施形態では、オフセット状態と判定されている状態でブレ補正データの値がブレ補正回路19の補正端に近づいた場合、HPF15の出力を小さくするようなオフセットを与える。これにより、HPF15の出力する角速度データに含まれるパンニング成分を、HPF15の低域カットオフ周波数を変更せずに除去することができる。そのため、パンニング状態と判定されても手ブレや身体の揺れに起因する撮像装置のブレの効果を低減させることがない。   As described above, in the present embodiment, when the value of the blur correction data approaches the correction end of the blur correction circuit 19 in a state where the offset state is determined, an offset that reduces the output of the HPF 15 is given. As a result, the panning component included in the angular velocity data output by the HPF 15 can be removed without changing the low-frequency cutoff frequency of the HPF 15. Therefore, even if the panning state is determined, the blurring effect of the imaging device due to camera shake or body shake is not reduced.

S107においてOFFSET_DATAがOFFSET_PAST以下であると判定された場合、及びS108においてOFFSET_DATAがOFFSET_PAST以上であると判定された場合、パンニング制御回路112はS109の処理に移行する。即ち、既にパンニング状態であると判定されている際に、ブレ補正データの値がゼロに近付いた場合、パンニング制御回路112はS109の処理に移行する。   If it is determined in S107 that OFFSET_DATA is equal to or lower than OFFSET_PAST, or if it is determined in S108 that OFFSET_DATA is equal to or higher than OFFSET_PAST, the panning control circuit 112 proceeds to processing in S109. That is, when it is determined that the panning state has already been reached and the value of the blur correction data approaches zero, the panning control circuit 112 proceeds to the process of S109.

S109においてパンニング制御回路112は、ブレ補正データCORRECT_DATAの絶対値が、パンニング終了判定閾値OUT_THRESH1より小さくなったかどうかを判定する。S109において、CORRECT_DATAの絶対値がOUT_THRESH1より小さいと判定された場合、パンニング制御回路112はパンニング状態が終了したと判断し、S111の処理に移行する。図3に示したように、パンニング制御回路112は、CORRECT_DATAの絶対値がOUT_THRESH1より小さい場合は、OFFSET_DATAの値をゼロと決定する、そのため、S111の処理により、OFFSET_NOWの値はゼロに設定される。   In S109, the panning control circuit 112 determines whether or not the absolute value of the blur correction data CORRECT_DATA is smaller than the panning end determination threshold OUT_THRESH1. If it is determined in S109 that the absolute value of CORRECT_DATA is smaller than OUT_THRESH1, the panning control circuit 112 determines that the panning state has ended, and the process proceeds to S111. As shown in FIG. 3, when the absolute value of CORRECT_DATA is smaller than OUT_THRESH1, the panning control circuit 112 determines the value of OFFSET_DATA to be zero. Therefore, the value of OFFSET_NOW is set to zero by the processing of S111. .

一方、S109において、CORRECT_DATAの絶対値がOUT_THRESH1以上であると判定された場合、パンニング制御回路112は、オフセット変更回路106の出力OFFSET_NOWに、1回前の処理のオフセット変更回路106の出力OFFSET_PASTを設定する(S110)。このように、S109においてパンニング状態でない(パンニングが終了した)と判定されるまで、オフセット変更回路106の出力OFFSET_NOWは、更新されず、前の処理で設定した値に保持される。   On the other hand, if it is determined in S109 that the absolute value of CORRECT_DATA is equal to or greater than OUT_THRESH1, the panning control circuit 112 sets the output OFFSET_PAST of the offset change circuit 106 of the previous process to the output OFFSET_NOW of the offset change circuit 106. (S110). As described above, the output OFFSET_NOW of the offset changing circuit 106 is not updated and is held at the value set in the previous process until it is determined in S109 that the panning state is not reached (panning is completed).

S110又はS111の処理の後、パンニング制御回路112は、次周期の処理で用いるため、OFFSET_PASTをOFFSET_NOWの値で更新(S112)し、パンニング制御処理の1周期分を終了し、所定時間後に次周期の処理を開始する。   After the processing of S110 or S111, the panning control circuit 112 updates OFFSET_PAST with the value of OFFSET_NOW (S112) for use in the processing of the next cycle (S112), ends one cycle of the panning control processing, and passes the next cycle after a predetermined time. Start processing.

図4及び図5を用いて、本実施形態におけるパンニング制御の有効性について説明する。図4は、図19に示した従来のブレ補正装置が搭載された撮像装置にてパンニング動作が行われたときの、ブレ補正データ(CORRECT_DATA)、HPF15の低域カットオフ周波数、ブレ残り量の経時変化を示す図である。図5は、本実施形態におけるブレ補正装置が搭載された撮像装置にて図4と同様のパンニング動作が行われたときの、ブレ補正データ(CORRECT_DATA)、オフセット変更回路106の出力(OFFSET_NOW)、ブレ残り量の経時変化を示す図である。   The effectiveness of panning control in this embodiment will be described with reference to FIGS. 4 and 5. FIG. 4 shows the blur correction data (CORRECT_DATA), the low-frequency cutoff frequency of the HPF 15 and the remaining blur amount when the panning operation is performed in the imaging apparatus equipped with the conventional blur correction apparatus shown in FIG. It is a figure which shows a time-dependent change. FIG. 5 shows the blur correction data (CORRECT_DATA), the output of the offset change circuit 106 (OFFSET_NOW) when the panning operation similar to that in FIG. 4 is performed in the imaging apparatus equipped with the blur correction apparatus according to the present embodiment, It is a figure which shows a time-dependent change of the blurring remaining amount.

図4(a)は、パンニング動作が時刻T1から開始され、時刻T4で終了した際の、図19の焦点距離演算回路17の出力であるブレ補正データの変化を示す。ブレ補正データは、高周波の手ブレ波形に低周波のパンニング成分が重畳された波形を有している。図4(b)は、上述したパンニング動作がなされた際の、HPF15の低域カットオフ周波数の経時変化を示す。図4(c)は、上述したパンニング動作を行った際の、実際のブレ量と、ブレ補正データとの差(ブレ残り量)の経時変化を示す。   FIG. 4A shows a change in blur correction data that is an output of the focal length calculation circuit 17 in FIG. 19 when the panning operation starts at time T1 and ends at time T4. The blur correction data has a waveform in which a low frequency panning component is superimposed on a high frequency camera shake waveform. FIG. 4B shows a change with time of the low-frequency cutoff frequency of the HPF 15 when the panning operation described above is performed. FIG. 4C shows a change over time in the difference (blur remaining amount) between the actual blur amount and the blur correction data when the panning operation described above is performed.

また、図5(a)は、パンニング動作が時刻T1’から開始され、時刻T4’で終了した際の、図1の焦点距離演算回路17の出力であるブレ補正データの変化を示す。図5(b)は、上述したパンニング動作がなされた際の、オフセット変更回路106の出力の経時変化を示す。図5(c)は、上述したパンニング動作がなされた際の、実際のブレ量と、ブレ補正データとの差(ブレ残り量)の経時変化を示す。   FIG. 5A shows a change in blur correction data, which is an output of the focal length calculation circuit 17 in FIG. 1, when the panning operation starts at time T1 'and ends at time T4'. FIG. 5B shows a change with time of the output of the offset changing circuit 106 when the panning operation described above is performed. FIG. 5C shows the change over time in the difference (blur remaining amount) between the actual blur amount and the blur correction data when the above-described panning operation is performed.

図4に示す従来のパンニング制御では、パンニング制御回路18が、図4(a)においてブレ補正データの大きさがIN_THRESH1を超えた時刻T2に、パンニング状態であると判定する。そして図4(b)に示すように、パンニング制御回路18は、時刻T2からHPF15の低域カットオフ周波数を高くする。これによって図4(a)に示すように、時刻T3からブレ補正データが徐々にゼロに近付いていく。その後図4(a)においてブレ補正データの大きさがOUT_THRESH1を下回った時刻T4に、パンニング制御回路18はパンニング状態が終了したと判定する。そして図4(b)に示すように、パンニング制御回路18は時刻T4にHPF15の低域カットオフ周波数を低い状態に戻す。   In the conventional panning control shown in FIG. 4, the panning control circuit 18 determines that the panning state is reached at time T2 when the magnitude of the blur correction data exceeds IN_THRESH1 in FIG. Then, as shown in FIG. 4B, the panning control circuit 18 increases the low frequency cutoff frequency of the HPF 15 from time T2. As a result, as shown in FIG. 4A, the blur correction data gradually approaches zero from time T3. Thereafter, at time T4 when the magnitude of the blur correction data is less than OUT_THRESH1 in FIG. 4A, the panning control circuit 18 determines that the panning state has ended. Then, as shown in FIG. 4B, the panning control circuit 18 returns the low frequency cutoff frequency of the HPF 15 to a low state at time T4.

以上のパンニング制御によるブレ残り量を図4(c)に示す。時刻T2からT4にかけて、ブレ残り量を一方向に増加させているのがパンニング成分である。パンニング状態と判定されるとHPF15の低域カットオフ周波数を高くすることで、パンニング成分をブレ補正データから除去している。しかし、上述のように、パンニング成分とブレ成分とは周波数帯域が近いため、HPF15の低域カットオフ周波数を高くすると、補正を行いたいブレ成分も減衰させることになる。その結果、図4(c)に示すように、パンニングが行われていない状態でのブレ残り量ERROR_NORMAL_OLDと比較して、パンニングが行われている状態でのパンニング成分を除いたブレ残り量ERROR_PAN_OLDは大きくなってしまう。   FIG. 4C shows the amount of remaining blur due to the above panning control. From time T2 to T4, it is the panning component that increases the blur remaining amount in one direction. When the panning state is determined, the panning component is removed from the blur correction data by increasing the low frequency cutoff frequency of the HPF 15. However, as described above, since the panning component and the blur component are close to each other in the frequency band, if the low frequency cutoff frequency of the HPF 15 is increased, the blur component to be corrected is also attenuated. As a result, as shown in FIG. 4C, the remaining blur amount ERROR_PAN_OLD excluding the panning component when panning is performed is compared with the remaining blur amount ERROR_NORMAL_OLD when panning is not performed. It gets bigger.

一方、本実施形態によれば、図5(a)においてブレ補正データの大きさがIN_THRESH1を超えた時刻T2´に、撮像装置がパンニング状態にあるとパンニング制御回路112が判定する。そして図5(b)に示すように、パンニング制御回路112は、時刻T2´からオフセット変更回路106の出力を大きくする(図2(a)、S111)。時刻T2´からT3´にかけて、図5(a)のブレ補正データが大きくなっているときは、オフセット変更回路106の出力も大きくしていく。その後、図5(a)においてブレ補正データの大きさがOUT_THRESH1を下回り、パンニング状態が終了したと判定される時刻T4´まで、パンニング制御回路112はオフセット変更回路106の出力を保持する。これによって図5(a)に示すように、時刻T3´からブレ補正データが徐々にゼロに近付いていく。これによって、光学式ブレ補正であれば補正レンズ若しくは撮像素子が光軸中心方向に移動し、電子式ブレ補正であれば、読み出す領域が撮像素子中心方向に移動する。そして図5(b)に示すように、パンニング制御回路112は時刻T4´にオフセット変更回路106の出力をゼロに戻す。   On the other hand, according to the present embodiment, the panning control circuit 112 determines that the imaging apparatus is in the panning state at time T2 ′ when the magnitude of the blur correction data exceeds IN_THRESH1 in FIG. Then, as shown in FIG. 5B, the panning control circuit 112 increases the output of the offset changing circuit 106 from time T2 ′ (FIG. 2A, S111). From time T2 ′ to T3 ′, when the blur correction data in FIG. 5A increases, the output of the offset change circuit 106 also increases. After that, in FIG. 5A, the panning control circuit 112 holds the output of the offset changing circuit 106 until time T4 ′ when the size of the blur correction data is less than OUT_THRESH1 and it is determined that the panning state is finished. As a result, as shown in FIG. 5A, the blur correction data gradually approaches zero from time T3 ′. As a result, the correction lens or the image sensor moves toward the center of the optical axis in the case of optical blur correction, and the area to be read moves toward the center of the image sensor in the case of electronic blur correction. Then, as shown in FIG. 5B, the panning control circuit 112 returns the output of the offset changing circuit 106 to zero at time T4 ′.

本実施形態におけるパンニング制御により、ブレ残り量は図5(c)に示すようになる。時刻T2’からT4’にかけて、ブレ残り量を増加させているのがパンニング成分であり、オフセット変更回路106の出力を大きくすることにより、パンニング成分を補正データから除去している。オフセット変更回路106の出力は時刻T3´からT4´まで一定値で保持しており、一定値を積分器16によって積分すると、一方向に単調増加もしくは単調減少する。これにより、補正を行いたいブレ成分をブレ補正データから減衰することなく、ブレ補正データを滑らかにゼロに近付けることができる。その結果、図5(c)に示すように、パンニングが行われていない状態でのブレ残り量ERROR_NORMAL_NEWと比較しても、パンニングが行われている状態でのパンニング成分を除いたブレ残り量ERROR_PAN_NEWは変化しない。つまり、パンニング中でもブレ補正効果が低減しない。   By the panning control in this embodiment, the amount of remaining blur becomes as shown in FIG. From time T2 'to T4', it is the panning component that increases the blur remaining amount, and the panning component is removed from the correction data by increasing the output of the offset changing circuit 106. The output of the offset changing circuit 106 is held at a constant value from time T3 ′ to T4 ′, and when the constant value is integrated by the integrator 16, it monotonously increases or decreases monotonously in one direction. As a result, it is possible to smoothly bring the shake correction data close to zero without attenuating the shake component to be corrected from the shake correction data. As a result, as shown in FIG. 5C, the remaining blur amount ERROR_PAN_NEW excluding the panning component when panning is performed even when compared with the remaining blur amount ERROR_NORMAL_NEW when panning is not performed. Does not change. That is, the blur correction effect is not reduced even during panning.

以上のように、本実施形態によれば、パンニング状態であると判定された場合に、HPF15の低域カットオフ周波数を高くする制御を行う代わりに、HPF15の出力をオフセット値で低減させることによりパンニング成分を除去する。これにより、ブレ補正効果を低減させずに、ブレ補正データに対するパンニング成分の影響を抑制することができる。   As described above, according to the present embodiment, when the panning state is determined, instead of performing control to increase the low frequency cutoff frequency of the HPF 15, the output of the HPF 15 is reduced by the offset value. Remove panning ingredients. Thereby, the influence of the panning component on the blur correction data can be suppressed without reducing the blur correction effect.

●(第2の実施形態)
次に、本発明の第2の実施形態を説明する。本実施形態では、撮像装置が有する焦点距離が可変のズームレンズの焦点距離(画角)に応じて、第1の実施形態において固定値であった、パンニング開始判定閾値IN_THRESH1とパンニング終了判定閾値OUT_THRESH1の値を変更することを特徴とする。
● (Second Embodiment)
Next, a second embodiment of the present invention will be described. In the present embodiment, the panning start determination threshold IN_THRESH1 and the panning end determination threshold OUT_THRESH1 that were fixed values in the first embodiment according to the focal length (angle of view) of the zoom lens having a variable focal length in the imaging apparatus. The value of is changed.

図6(a)は、本実施形態におけるパンニング開始判定閾値IN_THRESH1とズームレンズの焦点距離との関係を示す。図6(a)に示すように、本実施形態におけるパンニング制御回路112は、パンニング開始判定閾値IN_THRESH1を、ズームレンズの焦点距離が大きく(画角が小さく)なるほど小さく設定する。   FIG. 6A shows the relationship between the panning start determination threshold IN_THRESH1 and the focal length of the zoom lens in the present embodiment. As shown in FIG. 6A, the panning control circuit 112 in this embodiment sets the panning start determination threshold value IN_THRESH1 to be smaller as the focal length of the zoom lens becomes larger (the angle of view becomes smaller).

積分器16の出力である角変位データをθ、ズームレンズの焦点距離データをfとすると、焦点距離演算回路17の出力であるブレ補正データCORRECT_DATAは、CORRECT_DATA=ftanθとなる。つまり、ブレ補正装置100に同じ角速度のブレが生じたとき、ブレ補正データの変化量は、レンズの焦点距離が大きいほど大きくなる。レンズの焦点距離が大きいときにパンニングが行われると、焦点距離が小さいときと比較してブレ補正データがより速く補正端に近付く。つまり、ブレ補正回路19の補正限界に達しやすくなる。よって、本実施形態では、図6(a)に示すように、レンズの焦点距離が大きくなるほどパンニング開始判定閾値IN_THRESH1を小さくし、より早いタイミングでパンニング状態であると判定するようにする。これにより、望遠撮影時でのパンニング動作中のブレ補正効果の低減を抑制することができる。   If the angular displacement data output from the integrator 16 is θ and the focal length data of the zoom lens is f, the blur correction data CORRECT_DATA output from the focal length calculation circuit 17 is CORRECT_DATA = ftanθ. That is, when blurring at the same angular velocity occurs in the blur correction device 100, the amount of change in blur correction data increases as the focal length of the lens increases. When panning is performed when the focal length of the lens is large, the blur correction data approaches the correction end faster than when the focal length is small. That is, the correction limit of the blur correction circuit 19 is easily reached. Therefore, in the present embodiment, as shown in FIG. 6A, the panning start determination threshold IN_THRESH1 is decreased as the focal length of the lens increases, and the panning state is determined at an earlier timing. Accordingly, it is possible to suppress a reduction in the blur correction effect during the panning operation at the time of telephoto shooting.

一方、図6(b)は、本実施形態におけるパンニング終了判定閾値OUT_THRESH1とレンズの焦点距離との関係を示す。図6(b)に示すように、本実施形態におけるパンニング制御回路112は、パンニング終了判定閾値OUT_THRESH1を、レンズの焦点距離が大きく(画角が小さく)なるほど大きく設定する。   On the other hand, FIG. 6B shows the relationship between the panning end determination threshold value OUT_THRESH1 and the focal length of the lens in the present embodiment. As shown in FIG. 6B, the panning control circuit 112 in the present embodiment sets the panning end determination threshold value OUT_THRESH1 to be larger as the focal length of the lens is larger (the angle of view is smaller).

上述したように、ブレ補正装置100に同じ角速度のブレが生じたとき、ブレ補正データの変化量はレンズの焦点距離が大きいほど大きくなる。また、オフセット変更回路106の出力が同じ値であったとき、ブレ補正データがゼロに近付く速度もレンズの焦点距離が大きいほど大きくなる。そのため、レンズの焦点距離が大きいときにパンニング終了判定が遅れると、ブレ補正データがゼロを通り過ぎて逆側の補正端に近付いてしまう危険性がある。よって、レンズの焦点距離が大きくなることに応じて、図6(b)に示すようにパンニング終了判定閾値OUT_THRESH1の値を大きくし、より早いタイミングでパンニング終了判定を行うことで、ブレ補正データが逆側の補正端に向かうことを防止する。   As described above, when the shake at the same angular velocity occurs in the shake correction apparatus 100, the amount of change in the shake correction data increases as the focal length of the lens increases. When the output of the offset changing circuit 106 is the same value, the speed at which the blur correction data approaches zero increases as the focal length of the lens increases. Therefore, if the panning end determination is delayed when the focal length of the lens is large, there is a risk that the blur correction data passes through zero and approaches the opposite correction end. Therefore, as the focal length of the lens increases, the value of the panning end determination threshold OUT_THRESH1 is increased as shown in FIG. 6B, and the panning end determination is performed at an earlier timing, whereby the blur correction data is obtained. Prevents heading to the opposite correction end.

以上のように、本実施形態によれば、レンズの焦点距離が変更された際にも、第1の実施形態と同様の効果を実現することができる。   As described above, according to this embodiment, even when the focal length of the lens is changed, the same effect as that of the first embodiment can be realized.

●(第3の実施形態)
次に、本発明の第3の実施形態を説明する。本実施形態では、補正データの絶対値がパンニング終了判定閾値OUT_THRESH1未満であることに加え、角速角速度データ(GYRO_DATA)の絶対値の大きさが条件を満たした場合にパンニング状態が終了したと判断することを特徴とする。なお、本実施形態において、信号置換回路107及びスイッチ109は必須でなく、加減算器108の出力が積分器16に直接入力されてもよい。
● (Third embodiment)
Next, a third embodiment of the present invention will be described. In the present embodiment, in addition to the absolute value of the correction data being less than the panning end determination threshold OUT_THRESH1, it is determined that the panning state has ended when the absolute value of the angular velocity angular velocity data (GYRO_DATA) satisfies the condition. It is characterized by doing. In this embodiment, the signal replacement circuit 107 and the switch 109 are not essential, and the output of the adder / subtractor 108 may be directly input to the integrator 16.

図2(b)は、第3の実施形態においてパンニング制御回路112が行うパンニング制御処理のうち、第1の実施形態と異なる動作を説明するためのフローチャートである。本実施形態のパンニング制御処理は、S109とS111の間に角速度データの判定処理(S210)が加わったことを除き、第1の実施形態と共通している。そのため、異なる処理のみを説明する。   FIG. 2B is a flowchart for explaining operations different from those of the first embodiment in the panning control processing performed by the panning control circuit 112 in the third embodiment. The panning control process of this embodiment is the same as that of the first embodiment except that an angular velocity data determination process (S210) is added between S109 and S111. Therefore, only different processes will be described.

S109においてパンニング制御回路112は、ブレ補正データCORRECT_DATAの絶対値が、パンニング終了判定閾値OUT_THRESH1より小さくなったかどうかを判定する。S109において、CORRECT_DATAの絶対値がOUT_THRESH1以上であると判定された場合、パンニング制御回路112は、オフセット変更回路106の出力OFFSET_NOWに、1回前の処理のオフセット変更回路106の出力OFFSET_PASTを設定する(S110)。   In S109, the panning control circuit 112 determines whether or not the absolute value of the blur correction data CORRECT_DATA is smaller than the panning end determination threshold OUT_THRESH1. If it is determined in S109 that the absolute value of CORRECT_DATA is equal to or greater than OUT_THRESH1, the panning control circuit 112 sets the output OFFSET_PAST of the offset change circuit 106 of the previous process to the output OFFSET_NOW of the offset change circuit 106 ( S110).

一方、S109において、CORRECT_DATAの絶対値がOUT_THRESH1より小さいと判定された場合、パンニング制御回路112はS210に移行する。S210でパンニング制御回路112は、A/D変換器14の出力である角速度データ(GYRO_DATA)の絶対値が、パンニング終了判定角速度閾値OUT_THRESH2より小さいかどうかを判定する。パンニング終了判定角速度閾値OUT_THRESH2は、第3の閾値に相当する。   On the other hand, if it is determined in S109 that the absolute value of CORRECT_DATA is smaller than OUT_THRESH1, the panning control circuit 112 proceeds to S210. In S210, the panning control circuit 112 determines whether the absolute value of the angular velocity data (GYRO_DATA) that is the output of the A / D converter 14 is smaller than the panning end determination angular velocity threshold OUT_THRESH2. The panning end determination angular velocity threshold OUT_THRESH2 corresponds to a third threshold.

S210において、GYRO_DATAの絶対値がパンニング終了判定角速度閾値OUT_THRESH2より小さいと判定された場合、パンニング制御回路112は、パンニング状態が終了したと判断し、S111の処理に移行する。   In S210, when it is determined that the absolute value of GYRO_DATA is smaller than the panning end determination angular velocity threshold OUT_THRESH2, the panning control circuit 112 determines that the panning state has ended, and the process proceeds to S111.

次に、S210の処理の技術的意味について、図7を用いて詳細に説明する。
図7はパンニング動作終了時(図5における時刻T4´付近)における、(a)角速度データ(GYRO_DATA)、(b)ブレ補正データ(CORRECT_DATA)、(c)オフセット変更回路106の出力(OFFSET_NOW)の経時変化を示す。また、図7(d)は、パンニング動作終了時の実際のブレ量と、焦点距離演算回路17の出力であるブレ補正データとの差(ブレ残り量)から、補正する必要のないパンニング成分を除去した値の経時変化を示す。
Next, the technical meaning of the process of S210 will be described in detail with reference to FIG.
7 shows (a) angular velocity data (GYRO_DATA), (b) blur correction data (CORRECT_DATA), and (c) output of the offset changing circuit 106 (OFFSET_NOW) at the end of the panning operation (near time T4 ′ in FIG. 5). The change with time is shown. FIG. 7D shows a panning component that does not need to be corrected from the difference (blur remaining amount) between the actual blur amount at the end of the panning operation and the blur correction data output from the focal length calculation circuit 17. The change over time of the removed value is shown.

第1の実施形態のように、ブレ補正データの絶対値がOUT_THRESH1を下回ったときに、パンニング状態が終了したと判断する場合、図7における時刻T11のタイミングでパンニングが終了したと判断される。そして、オフセット変更回路106の出力がゼロに戻される(S111)。   As in the first embodiment, when it is determined that the panning state has ended when the absolute value of the blur correction data is below OUT_THRESH1, it is determined that panning has ended at the timing of time T11 in FIG. Then, the output of the offset changing circuit 106 is returned to zero (S111).

このとき、図7(a)に示すように、角速度データの絶対値が大きい(OUT_SHRESH2以上である)、即ち、ブレの速度が大きい状態であると、以下のような現象が生じる。ブレの速度が大きい、時刻T11のタイミングでは、角速度センサ11の検出誤差やその他演算誤差等の影響により、図7(d)に示すようにブレ残り量も大きくなる。このように、ブレ残り量が大きくなるタイミングでオフセット変更回路106の出力をゼロに戻すと、オフセット変更回路106の出力変更の影響により、ブレ残り量が更に大きくなってしまう。   At this time, as shown in FIG. 7A, the following phenomenon occurs when the absolute value of the angular velocity data is large (OUT_SHRESH2 or more), that is, the blur speed is high. At the timing of time T11 when the blur speed is large, the remaining blur amount is large as shown in FIG. 7D due to the influence of the detection error of the angular velocity sensor 11 and other calculation errors. As described above, if the output of the offset changing circuit 106 is returned to zero at the timing when the amount of remaining blur becomes large, the amount of remaining blur becomes larger due to the influence of the output change of the offset changing circuit 106.

そこで、本実施形態においては、ブレ補正データの絶対値がOUT_THRESH1を下回り、かつ角速度データの絶対値がパンニング終了判定角速度閾値OUT_THRESH2を下回ったときに、パンニング状態が終了したと判断することとした。   Therefore, in the present embodiment, when the absolute value of the blur correction data is less than OUT_THRESH1 and the absolute value of the angular velocity data is less than the panning end determination angular velocity threshold OUT_THRESH2, it is determined that the panning state is finished.

図7(a)に示す角速度データの絶対値がパンニング終了判定角速度閾値OUT_THRESH2を下回るのは時刻T12のタイミングである。時刻T12のタイミングでは、図7(a)の角速度データの絶対値が小さい、即ちブレの速度が小さい状態となっている。ブレの速度が小さい時刻T12のタイミングでは、図7(d)に示すようにブレ残り量も小さくなる。ブレ残り量が小さくなるタイミングでオフセット値OFFSET_NOWをゼロに戻す(S111)ことで、ブレ残り量が大きいタイミングで戻す場合に対し、オフセット値の変更がブレ残り量に与える影響を十分に抑制可能である。   The absolute value of the angular velocity data shown in FIG. 7A falls below the panning end determination angular velocity threshold OUT_THRESH2 at the timing of time T12. At the timing of time T12, the absolute value of the angular velocity data in FIG. 7A is small, that is, the blur speed is low. At the timing of time T12 when the blur speed is low, the remaining blur amount is also small as shown in FIG. By returning the offset value OFFSET_NOW to zero when the remaining blur amount is reduced (S111), the effect of changing the offset value on the remaining blur amount can be sufficiently suppressed compared to when returning the remaining blur amount timing. is there.

以上のように、本実施形態によれば、ブレ補正データの絶対値が小さいだけでなく、角速度データが小さい状態でパンニング成分の除去を終了させることで、パンニング成分の除去終了がブレ残り量に与える影響を十分に抑制することができる。   As described above, according to the present embodiment, not only the absolute value of the shake correction data is small but also the removal of the panning component is terminated in a state where the angular velocity data is small. The influence exerted can be sufficiently suppressed.

●(第4の実施形態)
次に、本発明の第4の実施形態を説明する。本実施形態では、撮像装置が有する焦点距離が可変のズームレンズの焦点距離(画角)に応じて、第3の実施形態において固定値であった、パンニング終了判定角速度閾値OUT_THRESH2の値を変更することを特徴とする。
● (Fourth embodiment)
Next, a fourth embodiment of the present invention will be described. In the present embodiment, the value of the panning end determination angular velocity threshold OUT_THRESH2, which is a fixed value in the third embodiment, is changed according to the focal length (view angle) of the zoom lens having a variable focal length. It is characterized by that.

図6(c)は、本実施形態におけるパンニング終了判定角速度閾値OUT_THRESH2とレンズの焦点距離との関係を示す。図6(c)に示すように、本実施形態におけるパンニング制御回路112は、パンニング終了判定角速度閾値OUT_THRESH2を、レンズの焦点距離が大きく(画角が小さく)なるほど大きく設定する。   FIG. 6C shows the relationship between the panning end determination angular velocity threshold OUT_THRESH2 and the focal length of the lens in this embodiment. As shown in FIG. 6C, the panning control circuit 112 according to the present embodiment sets the panning end determination angular velocity threshold OUT_THRESH2 to be larger as the focal length of the lens is larger (the angle of view is smaller).

上述したように、ブレ補正装置100に同じ角速度のブレが生じたとき、ブレ補正データの変化量はレンズの焦点距離が大きいほど大きくなる。また、オフセット変更回路106の出力が同じ値であったとき、ブレ補正データがゼロに近付く速度もレンズの焦点距離が大きいほど大きくなる。そのため、レンズの焦点距離が大きいときにパンニング終了判定が遅れると、ブレ補正データがゼロを通り過ぎて逆側の補正端に近付いてしまう危険性がある。よって、レンズの焦点距離が大きくなることに応じ、図6(c)に示すようにパンニング終了判定角速度閾値OUT_THRESH2の値を大きくし、より早いタイミングでパンニング終了判定を行い、ブレ補正データが逆側の補正端に向かうことを防止する。   As described above, when the shake at the same angular velocity occurs in the shake correction apparatus 100, the amount of change in the shake correction data increases as the focal length of the lens increases. When the output of the offset changing circuit 106 is the same value, the speed at which the blur correction data approaches zero increases as the focal length of the lens increases. Therefore, if the panning end determination is delayed when the focal length of the lens is large, there is a risk that the blur correction data passes through zero and approaches the opposite correction end. Accordingly, as the focal length of the lens increases, as shown in FIG. 6C, the panning end determination angular velocity threshold OUT_THRESH2 is increased, panning end determination is performed at an earlier timing, and the blur correction data is reversed. It is prevented from going to the correction end.

以上のように、本実施形態によれば、レンズの焦点距離が変更された際にも、第3の実施形態と同様の効果を実現することができる。   As described above, according to this embodiment, even when the focal length of the lens is changed, the same effect as that of the third embodiment can be realized.

●(第5の実施形態)
次に、本発明の第5の実施形態を説明する。本実施形態は、ズーミングがなされている場合のパンニング制御方法に関する。本実施形態において、図1における信号置換回路107及びスイッチ109は必須でない。
● (Fifth Embodiment)
Next, a fifth embodiment of the present invention will be described. The present embodiment relates to a panning control method when zooming is performed. In the present embodiment, the signal replacement circuit 107 and the switch 109 in FIG. 1 are not essential.

図8は、本実施形態におけるパンニング制御回路112が行うパンニング制御処理を説明するためのフローチャートである。なお、図8を参照して以下に説明する処理は、例えば垂直同期期間(60分の1秒)毎といったように、所定期間毎に繰り返し行われる。   FIG. 8 is a flowchart for explaining the panning control process performed by the panning control circuit 112 according to this embodiment. Note that the processing described below with reference to FIG. 8 is repeatedly performed every predetermined period, for example, every vertical synchronization period (1/60 second).

S301においてパンニング制御回路112は、焦点距離演算回路17を通じてレンズの焦点距離を取得し、前回の処理で取得した焦点距離と比較して増加(広角側から望遠側への変化)しているかどうか判定する。S301において焦点距離の増加がないと判定される場合、パンニング制御回路112はS302の処理に移行する。   In S301, the panning control circuit 112 acquires the focal length of the lens through the focal length calculation circuit 17, and determines whether or not it is increased (change from the wide angle side to the telephoto side) compared to the focal length acquired in the previous process. To do. When it is determined in S301 that there is no increase in the focal length, the panning control circuit 112 proceeds to the process of S302.

ズーミング動作が行われているときのオフセット変更回路106の出力信号をOFFSET_ZOOMと定義すると、S302において、パンニング制御回路112はOFFSET_ZOOMの値をゼロとし、処理を終了する。ここで、本実施形態を第1〜第4の実施形態のいずれか1つ以上と併用して実施する場合、オフセット変更回路106の出力は、OFFSET_NOWとOFFSET_ZOOMを加算した値とする。また、本実施形態を単独で実施する場合は、オフセット変更回路106の出力をOFFSET_ZOOMとする。   If the output signal of the offset changing circuit 106 when the zooming operation is performed is defined as OFFSET_ZOOM, the panning control circuit 112 sets the value of OFFSET_ZOOM to zero in S302 and ends the process. Here, when this embodiment is used in combination with one or more of the first to fourth embodiments, the output of the offset change circuit 106 is a value obtained by adding OFFSET_NOW and OFFSET_ZOOM. When this embodiment is implemented alone, the output of the offset change circuit 106 is OFFSET_ZOOM.

S301において、焦点距離の増加があると判定された場合、パンニング制御回路112はS303の処理に移行する。S303においてパンニング制御回路112は、図9に示すようにしてOFFSET_ZOOMの値を算出する。   If it is determined in S301 that there is an increase in focal length, the panning control circuit 112 proceeds to the process of S303. In S303, the panning control circuit 112 calculates the value of OFFSET_ZOOM as shown in FIG.

本実施形態においてパンニング制御回路112は、OFFSET_ZOOMの値を、ズーム速度(焦点距離の増加速度)、焦点距離、及びブレ補正データの値に応じて決定する。ズーム速度に応じて決定するパラメータをZOOM_OFFSET_SPEED、焦点距離に応じて決定するパラメータをFOCAL_OFFSET_GAIN、ブレ補正データに応じて決定するパラメータをCORRECT_OFFSET_GAINとする。このとき、パンニング制御回路112はOFFSET_ZOOMの値を以下の(式1)によって算出する。
OFFSET_ZOOM = ZOOM_OFFSET_SPEED × FOCAL_OFFSET_GAIN × CORRECT_OFFSET_GAIN …(式1)
In the present embodiment, the panning control circuit 112 determines the value of OFFSET_ZOOM according to the zoom speed (increased speed of focal distance), the focal distance, and the values of blur correction data. The parameter determined according to the zoom speed is ZOOM_OFFSET_SPEED, the parameter determined according to the focal length is FOCAL_OFFSET_GAIN, and the parameter determined according to the blur correction data is CORRECT_OFFSET_GAIN. At this time, the panning control circuit 112 calculates the value of OFFSET_ZOOM by the following (Equation 1).
OFFSET_ZOOM = ZOOM_OFFSET_SPEED × FOCAL_OFFSET_GAIN × CORRECT_OFFSET_GAIN… (Formula 1)

図9(a)は、ズーム速度とZOOM_OFFSET_SPEEDとの関係を示す図である。ZOOM_OFFSET_SPEEDの値は、ズーム速度が第4の閾値であるズーム速度閾値SPEED_THRESH以下であるときはゼロにする。また、ズーム速度がSPEED_THRESHより大きいときは、ZOOM_OFFSET_SPEEDの値をズーム速度が大きくなるほど大きくしていく。これは、焦点距離が大きくなる速度が速くなると、ブレ補正データが補正端に近付く速度も大きくなるため、ブレ補正データをゼロに近付ける速度も速くする必要があるためである。   FIG. 9A shows the relationship between the zoom speed and ZOOM_OFFSET_SPEED. The value of ZOOM_OFFSET_SPEED is set to zero when the zoom speed is equal to or less than the zoom speed threshold SPEED_THRESH that is the fourth threshold. When the zoom speed is higher than SPEED_THRESH, the value of ZOOM_OFFSET_SPEED is increased as the zoom speed increases. This is because as the speed at which the focal length increases, the speed at which the blur correction data approaches the correction end increases, and thus the speed at which the blur correction data approaches zero must be increased.

図9(b)は、焦点距離とFOCAL_OFFSET_GAINとの関係を示す図である。FOCAL_OFFSET_GAINはZOOM_OFFSET_SPEEDに乗じる係数であり、焦点距離が大きいほど小さい値とする。オフセット変更回路106の出力が同じ値であったときに、焦点距離が大きくなるほどブレ補正データがゼロに近付く速度も大きくなる。そのためズーミング中に急激にブレ補正データがゼロに近付く速度が大きくなり、不自然な動きになってしまう。図9(b)のように、焦点距離が大きいほどオフセット変更回路106の出力を小さくすれば、ズーミング中でもブレ補正データがゼロに近付く速度を一定にすることができ、不自然な動きになることを防止することができる。   FIG. 9B is a diagram showing the relationship between the focal length and FOCAL_OFFSET_GAIN. FOCAL_OFFSET_GAIN is a coefficient by which ZOOM_OFFSET_SPEED is multiplied, and the smaller the focal length, the smaller the value. When the output of the offset changing circuit 106 is the same value, the speed at which the blur correction data approaches zero increases as the focal length increases. For this reason, the speed at which the blur correction data approaches zero during zooming increases, resulting in an unnatural movement. As shown in FIG. 9B, if the output of the offset changing circuit 106 is reduced as the focal length increases, the speed at which the blur correction data approaches zero can be made constant even during zooming, resulting in an unnatural movement. Can be prevented.

図9(c)は、ブレ補正データCORRECT_DATAとCORRECT_OFFSET_GAINとの関係を示す図である。CORRECT_OFFSET_GAINは、FOCAL_OFFSET_GAIN と同様ZOOM_OFFSET_SPEEDに乗じる係数であり、ブレ補正データの値が大きいほど大きい値とする。これは、ブレ補正データが補正端に近いときに、補正端へ達してしまうことを防ぐために、ブレ補正データをより速くゼロに近付ける必要があるためである。なお、ブレ補正データがゼロのときはCORRECT_OFFSET_GAINの値もゼロとする。   FIG. 9C is a diagram illustrating a relationship between the blur correction data CORRECT_DATA and CORRECT_OFFSET_GAIN. CORRECT_OFFSET_GAIN is a coefficient to be multiplied by ZOOM_OFFSET_SPEED as in FOCAL_OFFSET_GAIN, and the larger the value of the blur correction data, the larger the value. This is because when the blur correction data is close to the correction end, it is necessary to make the blur correction data approach zero quickly in order to prevent reaching the correction end. When blur correction data is zero, the value of CORRECT_OFFSET_GAIN is also zero.

従って、OFFSET_ZOOMの値は、ズーム速度がズーム速度閾値SPEED_THRESH以下であるときはゼロである。また、OFFSET_ZOOMの値は、ズーム速度がズーム速度閾値より大きい場合には、ズーム速度が早いほど、焦点距離が小さいほど、またブレ補正データの値が大きいほど大きな値となる。そしてOFFSET_ZOOMの値は、パンニング制御回路112からオフセット変更回路106に与えられる。   Therefore, the value of OFFSET_ZOOM is zero when the zoom speed is equal to or less than the zoom speed threshold SPEED_THRESH. Further, when the zoom speed is larger than the zoom speed threshold value, the value of OFFSET_ZOOM becomes a larger value as the zoom speed is faster, the focal length is smaller, and the value of the blur correction data is larger. The value of OFFSET_ZOOM is given from the panning control circuit 112 to the offset changing circuit 106.

パンニング制御回路112はS303においてOFFSET_ZOOMの算出を行った後、S304の処理に移行する。S304でパンニング制御回路112は、S301で取得した現在の焦点距離が焦点距離閾値ZOOM_THRESHより大きいかどうかを判定し、焦点距離がZOOM_THRESHより大きい場合は、S305の処理に移行する。   The panning control circuit 112 calculates OFFSET_ZOOM in S303, and then proceeds to S304. In step S304, the panning control circuit 112 determines whether or not the current focal length acquired in step S301 is greater than the focal length threshold ZOOM_THRESH. If the focal length is greater than ZOOM_THRESH, the process proceeds to step S305.

S305でパンニング制御回路112は、HPF15の低域カットオフ周波数の設定を行う。S305においてパンニング制御回路112は、図9(d)に示すようにしてHPF15の低域カットオフ周波数を算出する。   In step S <b> 305, the panning control circuit 112 sets the low frequency cutoff frequency of the HPF 15. In S305, the panning control circuit 112 calculates the low-frequency cutoff frequency of the HPF 15 as shown in FIG.

すなわち、本実施形態においてパンニング制御回路112は、焦点距離が第5の閾値であるZOOM_THRESHより大きくなったとき、焦点距離が大きいほど大きくなるようにHPF15の低域カットオフ周波数を算出する。   That is, in the present embodiment, the panning control circuit 112 calculates the low-frequency cutoff frequency of the HPF 15 so that the focal length increases as the focal length increases when the focal length exceeds the fifth threshold value ZOOM_THRESH.

一方、S304で焦点距離がZOOM_THRESH以下の場合、パンニング制御回路112は処理を終了し、次の処理開始周期まで待機する。   On the other hand, when the focal length is equal to or smaller than ZOOM_THRESH in S304, the panning control circuit 112 ends the process and waits for the next process start cycle.

次に図10及び図11を用いて、本実施形態におけるズーミング動作が行われたときのパンニング制御の有効性について説明を行う。図10は、従来のブレ補正装置が搭載された撮像装置にて、高速ズーミング中にパンニング動作が行われたときの、角速度データ、ブレ補正データ、HPF15の低域カットオフ周波数の経時変化を示す図である。   Next, the effectiveness of the panning control when the zooming operation in the present embodiment is performed will be described with reference to FIGS. 10 and 11. FIG. 10 shows temporal changes in angular velocity data, blur correction data, and low-frequency cut-off frequency of the HPF 15 when a panning operation is performed during high-speed zooming in an imaging device equipped with a conventional blur correction device. FIG.

図11は、本実施形態のブレ補正装置が搭載された撮像装置で図10と同様の動作が行われたときの、角速度データ、ブレ補正データ、オフセット変更回路106の出力(OFFSET_ZOOM)、HPF15の低域カットオフ周波数の経時変化を示す図である。   FIG. 11 shows the angular velocity data, the shake correction data, the output of the offset change circuit 106 (OFFSET_ZOOM), and the HPF 15 when the same operation as that in FIG. 10 is performed in the image pickup apparatus equipped with the shake correction device of this embodiment. It is a figure which shows the time-dependent change of a low-pass cutoff frequency.

図10(a)は、図19のA/D変換器14の出力である角速度データの変化を示している。図10(a)は、時刻T21からズーミング動作(ズームイン動作)とパンニング動作が同時に行われ、時刻T22でズーミング動作が終了、時刻T23でパンニング動作が終了したときの、角速度データの経時変化を示している。図10(b)は、図19の焦点距離演算回路17の出力であるブレ補正データの変化を示す。実線は従来のパンニング制御を行ったときのブレ補正データを、点線は従来のパンニング制御を行わなかったときのブレ補正データを示している。図10(c)は、従来のパンニング制御を行ったときの、HPF15の低域カットオフ周波数の経時変化を示している。   FIG. 10A shows a change in angular velocity data that is an output of the A / D converter 14 of FIG. FIG. 10A shows a change in angular velocity data with time when the zooming operation (zoom-in operation) and the panning operation are performed simultaneously from time T21, the zooming operation ends at time T22, and the panning operation ends at time T23. ing. FIG. 10B shows a change in blur correction data that is an output of the focal length calculation circuit 17 of FIG. The solid line indicates the blur correction data when the conventional panning control is performed, and the dotted line indicates the blur correction data when the conventional panning control is not performed. FIG. 10C shows a change with time of the low frequency cutoff frequency of the HPF 15 when conventional panning control is performed.

図11(a)は、図10(a)と同様のズーミング動作とパンニング動作が行われたときの、図1のA/D変換器14の出力であるGYRO_DATA(角速度データ)の経時変化を示している。ただし、図11では、時刻T31からズーミング動作(ズームイン動作)とパンニング動作が同時に行われ、時刻T33でズーミング動作が終了、時刻T34でパンニング動作が終了しているものとする。   FIG. 11A shows the change over time of GYRO_DATA (angular velocity data) that is the output of the A / D converter 14 in FIG. 1 when the same zooming operation and panning operation as in FIG. 10A are performed. ing. However, in FIG. 11, it is assumed that the zooming operation (zoom-in operation) and the panning operation are simultaneously performed from time T31, the zooming operation is completed at time T33, and the panning operation is completed at time T34.

図11(b)は、図1の焦点距離演算回路17の出力であるブレ補正データの経時変化を示している。図11(b)の実線は、本実施形態のパンニング制御を行ったときのブレ補正データを、点線は本実施形態のパンニング制御を行わなかったときのブレ補正データを示している。図11(c)は、上述したズーミング動作とパンニング動作を行ったときの、オフセット変更回路106の出力の経時変化を示している。図11(d)は、本実施形態のパンニング制御に従ったHPF15の低域カットオフ周波数の経時変化を示している。
同じ角速度のブレを補正するためのブレ補正データは、焦点距離に比例して大きくなる。そのため、図10(a)及び図11(a)に示すように、パンニング動作と高速ズーミング(ズームイン)動作が同時に行われると、TELE側になるほど、図10(b)及び図11(b)に点線で示すように、ブレ補正データが急速に大きくなる。
FIG. 11B shows a change with time of the blur correction data which is the output of the focal length calculation circuit 17 of FIG. A solid line in FIG. 11B indicates blur correction data when the panning control of the present embodiment is performed, and a dotted line indicates blur correction data when the panning control of the present embodiment is not performed. FIG. 11C shows the change with time of the output of the offset changing circuit 106 when the above-described zooming operation and panning operation are performed. FIG. 11D shows the change with time of the low-frequency cutoff frequency of the HPF 15 according to the panning control of the present embodiment.
The blur correction data for correcting blur at the same angular velocity increases in proportion to the focal length. Therefore, as shown in FIGS. 10A and 11A, when the panning operation and the high-speed zooming (zoom-in) operation are performed at the same time, the closer to the TELE side, the closer to FIGS. 10B and 11B. As indicated by the dotted line, the blur correction data increases rapidly.

ブレ補正データがブレ補正回路19の補正端に急速に近付くことを防止するため、従来のパンニング制御では、以下のような制御を行っていた。すなわち、図10(c)に示すように、高速ズーミング動作中である時刻T21からT22の間は、焦点距離が大きくなるほどHPF15の低域カットオフ周波数を高くする制御である。これによって図10(b)の実線で示すように、ブレ補正データの急増が防止されていた。   In order to prevent the blur correction data from rapidly approaching the correction end of the blur correction circuit 19, the following control is performed in the conventional panning control. That is, as shown in FIG. 10C, during the high-speed zooming operation, the low frequency cutoff frequency of the HPF 15 is increased as the focal length increases during the time T21 to T22. As a result, as shown by the solid line in FIG. 10B, a sudden increase in the blur correction data is prevented.

しかし、従来のパンニング制御では以下のような問題点があった。時刻T22でズーミング動作が終了した後、HPF15の低域カットオフ周波数を急に元の値に復帰させると、ブレ補正データが急激に変化し、ブレ補正データの誤差量が急激に大きくなる。そのため、時刻T22からT24にかけてゆっくりと低域カットオフ周波数を低くしていく必要がある。しかし、HPF15の低域カットオフ周波数が高い状態では、補正を行いたいブレ成分もHPF15で減衰させている。すなわち、ズーミング動作が終了した後、低域カットオフ周波数が元の値に戻るまでの間(T22からT24までの間)は、ブレ成分の減衰が元に戻らず、ブレ残り量が大きくなってしまう。   However, the conventional panning control has the following problems. After the zooming operation is completed at time T22, when the low frequency cutoff frequency of the HPF 15 is suddenly returned to the original value, the blur correction data changes rapidly, and the error amount of the blur correction data increases rapidly. Therefore, it is necessary to slowly lower the low frequency cutoff frequency from time T22 to T24. However, when the low frequency cutoff frequency of the HPF 15 is high, the blur component to be corrected is also attenuated by the HPF 15. In other words, after the zooming operation is completed, until the low-frequency cutoff frequency returns to the original value (between T22 and T24), the blur component attenuation does not return to the original value, and the blur remaining amount increases. End up.

一方、本実施形態によるパンニング制御では、図11(c)に示すように、ズーミング動作が行われている時刻T31からT33にかけて、(式1)の計算式で算出されたOFFSET_ZOOMに従ってオフセット変更回路106の出力を決定する。さらに、以下に説明するように、焦点距離がZOOM_THRESHに達するまでの期間はHPF15のカットオフ周波数を行わないことで、ブレ成分の減衰が生じる期間を最小限に抑制する。   On the other hand, in the panning control according to the present embodiment, as shown in FIG. 11C, the offset changing circuit 106 according to OFFSET_ZOOM calculated by the calculation formula (Formula 1) from time T31 to T33 when the zooming operation is performed. Determine the output of. Furthermore, as will be described below, the cutoff frequency of the HPF 15 is not performed during the period until the focal length reaches ZOOM_THRESH, thereby minimizing the period during which the blur component is attenuated.

ズーミング動作中、図11における時刻T32に、焦点距離がZOOM_THRESHとなったとする。この場合、パンニング制御回路112は、時刻T32からズーミング動作が終了する時刻T33まで、図11(d)に示すように図9(d)に従ってHPF15の低域カットオフ周波数を大きくしていく。そしてズーミング動作が終了した後、図11(d)に示すように時刻T34にかけてHPF15の低域カットオフ周波数を小さい値(変更前の値)に徐々に戻していく。時刻T34以降は、HPF15の低域カットオフ周波数が元の値に戻る。このため、従来のパンニング制御では、ブレ成分の減衰が大きい状態が、T21からT24までの長い時間続くが、本実施形態では、ブレ成分の減衰が生じる時間がT32からT34の短い時間となり、かつブレ成分の減衰が小さい状態で済む。そのため、ブレ残り量の絶対量が小さい上、短時間で元の状態に復帰することができる。   Assume that the focal length becomes ZOOM_THRESH at time T32 in FIG. 11 during the zooming operation. In this case, the panning control circuit 112 increases the low-frequency cutoff frequency of the HPF 15 from time T32 to time T33 when the zooming operation ends, as shown in FIG. 11D, according to FIG. Then, after the zooming operation is completed, as shown in FIG. 11 (d), the low frequency cutoff frequency of the HPF 15 is gradually returned to a small value (value before change) over time T34. After time T34, the low frequency cutoff frequency of the HPF 15 returns to the original value. Therefore, in the conventional panning control, the state where the attenuation of the blur component is large continues for a long time from T21 to T24. However, in this embodiment, the time when the blur component is attenuated is a short time from T32 to T34, and The attenuation of the blur component is small. Therefore, the absolute amount of the remaining blur amount is small and the original state can be restored in a short time.

ここで、HPF15の低域カットオフ周波数を大きくする制御を行う理由について説明する。図11(c)に示したように、ズーミング動作が行われている時刻T31からT33までは、オフセット変更回路106の出力を大きくすることによりブレ補正データがゼロに近付く速度を上げるように制御している。しかし時刻T33のズーミング動作終了後においても、図11(a)に示すようにパンニングが終了していない場合、オフセット変更回路106の出力はゼロとなっている。そのため、ズーミング動作終了後のパンニング成分によって、特に焦点距離が大きいときに、ブレ補正データが急に補正端に近付いてしまう現象が生じる。本実施形態では、図11(d)に示すように、ズーミング動作中に焦点距離が大きくなったときにHPF15の低域カットオフ周波数を大きくする。これにより、ズーミング動作終了直後のパンニング成分を除去することができ、ブレ補正データが急に補正端に近付いてしまう現象を防止することができる。   Here, the reason why the control for increasing the low frequency cutoff frequency of the HPF 15 is performed will be described. As shown in FIG. 11C, from time T31 to time T33 when the zooming operation is performed, the output of the offset changing circuit 106 is increased so as to increase the speed at which the blur correction data approaches zero. ing. However, even after the zooming operation at time T33, when the panning is not completed as shown in FIG. 11A, the output of the offset changing circuit 106 is zero. For this reason, a phenomenon occurs in which the blur correction data suddenly approaches the correction end due to the panning component after completion of the zooming operation, particularly when the focal length is large. In the present embodiment, as shown in FIG. 11D, when the focal length is increased during the zooming operation, the low frequency cutoff frequency of the HPF 15 is increased. Thereby, the panning component immediately after the end of the zooming operation can be removed, and the phenomenon that the blur correction data suddenly approaches the correction end can be prevented.

なお、仮に時刻T34を過ぎてもパンニング動作が継続している場合は、時刻T33からT34にかけてHPF15の低域カットオフ周波数を戻しながら、図2(a)や図2(b)のフローチャートに示した処理を行えばよい。これによって、低域カットオフ周波数が小さくなった時刻T34以降もブレ補正データが急に補正端に近付いてしまう現象を防止することができる。   If the panning operation continues even after time T34, the low frequency cut-off frequency of the HPF 15 is returned from time T33 to T34 and shown in the flowcharts of FIGS. 2 (a) and 2 (b). Can be performed. As a result, it is possible to prevent a phenomenon in which the blur correction data suddenly approaches the correction end even after time T34 when the low-frequency cutoff frequency becomes small.

以上説明したように、本実施形態では、ズーミング動作中のパンニング制御において、オフセット変更回路106の出力変更制御と、HPF15の低域カットオフ周波数変更制御を併用する。これにより、低域カットオフ周波数が高くなる時間、即ちブレ残り量が大きくなる時間を最小限に抑えることができる。   As described above, in the present embodiment, in the panning control during the zooming operation, the output change control of the offset change circuit 106 and the low frequency cut-off frequency change control of the HPF 15 are used in combination. As a result, it is possible to minimize the time during which the low frequency cut-off frequency is increased, that is, the time during which the remaining blur amount is increased.

以上のように本実施形態のパンニング制御方法によれば、パンニング中にズーム動作が行われている場合、ズーム速度が閾値以上の場合にはHPF15の出力を低減させるオフセット値を増加させるように補正する。そのため、上述の実施形態の効果に加え、パンニング中に高速ズーム動作がなされても、ブレ残り量の増加を防止することができる。さらに、レンズの焦点距離が予め定めた値を超えた時点から、HPF15のカットオフ周波数を上昇させる制御を併用する。そのため、ズーム終了時にHPF15のカットオフ周波数を元に戻すために必要な時間が短く、HPF15のカットオフ周波数を上昇させることによるブレ残り量の増加を最小限に抑えつつ、パンニング成分を適切に除去することができる。   As described above, according to the panning control method of the present embodiment, when the zoom operation is performed during panning, the offset value for reducing the output of the HPF 15 is increased when the zoom speed is equal to or higher than the threshold value. To do. Therefore, in addition to the effects of the above-described embodiment, even if a high-speed zoom operation is performed during panning, an increase in the amount of remaining blur can be prevented. Furthermore, the control for increasing the cutoff frequency of the HPF 15 from the time when the focal length of the lens exceeds a predetermined value is also used. Therefore, the time required to return the cutoff frequency of the HPF 15 to the original value at the end of zooming is short, and the panning component is appropriately removed while minimizing the increase in the amount of blurring due to the increase in the cutoff frequency of the HPF 15. can do.

●(第6の実施形態)
次に、本発明の第6の実施形態を説明する。本実施形態は、急激なパンニング時におけるパンニング制御方法に関する。
図12(a)は、本実施形態におけるパンニング制御回路112が行うパンニング制御処理を説明するためのフローチャートである。なお、図12(a)を参照して以下に説明する処理は、例えば60分の1秒毎といったように、所定期間毎に繰り返し行われる。
● (Sixth embodiment)
Next, a sixth embodiment of the present invention will be described. The present embodiment relates to a panning control method during rapid panning.
FIG. 12A is a flowchart for explaining the panning control process performed by the panning control circuit 112 in the present embodiment. Note that the processing described below with reference to FIG. 12A is repeatedly performed at predetermined intervals, for example, every 1/60 second.

S401でパンニング制御回路112は、S408でセットされS412でリセットされるフラグCHANGE_FLAGがセットされているか否か判定する。CHANGE_FLAGがリセットされている場合、パンニング制御回路112はS402の処理に移行する。   In S401, the panning control circuit 112 determines whether a flag CHANGE_FLAG that is set in S408 and reset in S412 is set. When CHANGE_FLAG is reset, the panning control circuit 112 proceeds to the process of S402.

ここで、積分器16の出力信号である角変位データをINT_DATA、INT_DATAが単調増加もしくは単調減少しているときの変化幅をINT_INCREASE_WIDTHとする。S402においてパンニング制御回路112は、INT_INCREASE_WIDTHの大きさが、パンニング開始判定積分器閾値IN_THRESH2(第6の閾値)より大きいか否かを判定する。INT_INCREASE_WIDTHの大きさがIN_THRESH2より大きい場合、パンニング制御回路112はS403の処理に移行する。   Here, the angular displacement data, which is the output signal of the integrator 16, is INT_DATA, and the change width when INT_DATA is monotonously increasing or monotonically decreasing is INT_INCREASE_WIDTH. In S402, the panning control circuit 112 determines whether the magnitude of INT_INCREASE_WIDTH is larger than the panning start determination integrator threshold IN_THRESH2 (sixth threshold). If the value of INT_INCREASE_WIDTH is larger than IN_THRESH2, the panning control circuit 112 proceeds to the process of S403.

S403においてパンニング制御回路112は、A/D変換器14の出力である角速度データGYRO_DATAの絶対値が、パンニング開始判定角速度閾値IN_THRESH3(第7の閾値)より大きいか否か判定する。パンニング制御回路112は、GYRO_DATAの絶対値がIN_THRESH3より大きいと判定された場合、撮像装置がパンニング状態であると判定し、S404の処理に移行する。一方、S402においてINT_INCREASE_WIDTHの大きさがIN_THRESH2以下であると判定された場合、パンニング制御回路112は撮像装置がパンニング状態ではないと判定する。また、S403において、GYRO_DATAの絶対値がIN_THRESH3以下であると判定された場合にも、パンニング制御回路112は撮像装置がパンニング状態ではないと判定する。撮像装置がパンニング状態ではないと判定された場合、パンニング制御回路112は処理を終了し、次の処理開始まで待機する。なお、S402及びS403の判定順序は逆転してもよい。   In S403, the panning control circuit 112 determines whether or not the absolute value of the angular velocity data GYRO_DATA that is the output of the A / D converter 14 is greater than the panning start determination angular velocity threshold IN_THRESH3 (seventh threshold). If the panning control circuit 112 determines that the absolute value of GYRO_DATA is greater than IN_THRESH3, the panning control circuit 112 determines that the imaging device is in the panning state, and proceeds to S404. On the other hand, when it is determined in S402 that the magnitude of INT_INCREASE_WIDTH is equal to or smaller than IN_THRESH2, the panning control circuit 112 determines that the imaging device is not in the panning state. In S403, when it is determined that the absolute value of GYRO_DATA is equal to or less than IN_THRESH3, the panning control circuit 112 determines that the imaging device is not in the panning state. When it is determined that the imaging apparatus is not in the panning state, the panning control circuit 112 ends the process and waits until the next process starts. Note that the determination order of S402 and S403 may be reversed.

S404においてパンニング制御回路112は、A/D変換器14の出力である角速度データGYRO_DATAがゼロ未満であるか否か判定する。ゼロ以上の場合、パンニング制御回路112は、S406の処理へ移行し、符号フラグSIGN_FLAG2をリセットする。一方、ゼロ未満の場合、パンニング制御回路112は、S406の処理へ移行し、符号フラグSIGN_FLAG2をセットする。S405、S406の処理を行った後、パンニング制御回路112はS407の処理に移行する。   In S404, the panning control circuit 112 determines whether or not the angular velocity data GYRO_DATA that is the output of the A / D converter 14 is less than zero. If it is greater than or equal to zero, the panning control circuit 112 proceeds to the process of S406 and resets the sign flag SIGN_FLAG2. On the other hand, if it is less than zero, the panning control circuit 112 proceeds to the processing of S406 and sets the sign flag SIGN_FLAG2. After performing the processes of S405 and S406, the panning control circuit 112 proceeds to the process of S407.

S407においてパンニング制御回路112は、図1の信号置換回路107が出力する置換信号データGYRO_DUMMYの値を、図13に示すように積分器16の出力信号である角変位データINT_DATAに応じて算出する。具体的には、INT_DATAの絶対値がINT_THRESH以下(第8の閾値以下)の場合は、GYRO_DUMMYの値はゼロとする。また、INT_DATAの値が閾値INT_THRESHより大きい場合は、INT_DATAの値が大きくなるに従ってGYRO_DUMMYの値が負の値で小さくなるように値を算出する。さらに、INT_DATAの値が閾値−INT_THRESHより小さい場合は、INT_DATAの値が小さくなるに従ってGYRO_DUMMYの値が正の値で大きくなるように値を算出する。   In S407, the panning control circuit 112 calculates the value of the replacement signal data GYRO_DUMMY output from the signal replacement circuit 107 of FIG. 1 according to the angular displacement data INT_DATA that is the output signal of the integrator 16, as shown in FIG. Specifically, when the absolute value of INT_DATA is equal to or less than INT_THRESH (less than the eighth threshold value), the value of GYRO_DUMMY is set to zero. Further, when the value of INT_DATA is larger than the threshold value INT_THRESH, the value is calculated so that the value of GYRO_DUMMY becomes a negative value as the value of INT_DATA increases. Furthermore, when the value of INT_DATA is smaller than the threshold value −INT_THRESH, the value is calculated so that the value of GYRO_DUMMY increases with a positive value as the value of INT_DATA decreases.

S407においてGYRO_DUMMYの算出を行った後、パンニング制御回路112は、S408の処理へ移行する。S408においてパンニング制御回路112は、スイッチ109の状態を、HPF15の出力を積分器16に接続している状態から、信号置換回路107の出力を積分器16へ接続する状態へ切り替え、フラグCHANGE_FLAGをセットする。S408においてパンニング制御回路112がスイッチ109の切替を行うと、S407において算出した信号置換回路107の出力GYRO_DUMMYが、積分器16に入力される。GYRO_DUMMYは、図13に示したように、積分器16の出力であるINT_DATAの絶対値が大きいほど大きく、INT_DATAと逆の符号を有するため、積分器16の出力であるINT_DATAはゼロに近付く方向に変化する。   After calculating GYRO_DUMMY in S407, the panning control circuit 112 proceeds to the process of S408. In S408, the panning control circuit 112 switches the state of the switch 109 from the state in which the output of the HPF 15 is connected to the integrator 16 to the state in which the output of the signal replacement circuit 107 is connected to the integrator 16, and sets the flag CHANGE_FLAG. To do. When the panning control circuit 112 switches the switch 109 in S408, the output GYRO_DUMMY of the signal replacement circuit 107 calculated in S407 is input to the integrator 16. As shown in FIG. 13, GYRO_DUMMY is larger as the absolute value of INT_DATA, which is the output of integrator 16, is larger, and has a sign opposite to that of INT_DATA. Therefore, INT_DATA, which is the output of integrator 16, tends to approach zero. Change.

S408の処理が終了すると、パンニング制御回路112は処理を終了し、次の処理を開始するタイミングまで待機する。   When the process of S408 ends, the panning control circuit 112 ends the process and waits until the timing for starting the next process.

一方、S401において、CHANGE_FLAGがセットされている場合、すなわちスイッチ109が信号置換回路107の出力を積分器16に与えるように切替されている場合、パンニング制御回路112はS409の処理に移行する。S409でパンニング制御回路112は、SIGN_FLAG2がセットされているか否かの判定、即ちパンニング開始判定時の角速度データが負であったか正(ゼロ以上)であったかの符号判定を行う。   On the other hand, if CHANGE_FLAG is set in S401, that is, if the switch 109 is switched to give the output of the signal replacement circuit 107 to the integrator 16, the panning control circuit 112 proceeds to the processing of S409. In step S409, the panning control circuit 112 determines whether or not SIGN_FLAG2 is set, that is, determines whether the angular velocity data at the time of starting panning is negative or positive (zero or more).

S409において、SIGN_FLAG2がリセットされている場合、即ちパンニング開始判定時の角速度データが正であった場合、パンニング制御回路112はS410の処理に移行する。S410においてパンニング制御回路112は、GYRO_DATAがパンニング終了判定角速度閾値OUT_THRESH3より小さいか否か判定する。なお、OUT_THRESH3は、パンニング開始判定角速度閾値IN_THRESH3より小さい値とする。   In S409, if SIGN_FLAG2 is reset, that is, if the angular velocity data at the time of panning start determination is positive, the panning control circuit 112 proceeds to the process of S410. In S410, the panning control circuit 112 determines whether GYRO_DATA is smaller than the panning end determination angular velocity threshold OUT_THRESH3. Note that OUT_THRESH3 is a value smaller than the panning start determination angular velocity threshold IN_THRESH3.

またS409において、SIGN_FLAG2がセットされている場合、即ちパンニング開始判定時の角速度データが負であった場合、パンニング制御回路112はS411の処理に移行する。S411においてパンニング制御回路112は、GYRO_DATAが−OUT_THRESH3より大きいか否かを判定する。   In S409, if SIGN_FLAG2 is set, that is, if the angular velocity data at the time of starting panning is negative, the panning control circuit 112 proceeds to the processing of S411. In S411, the panning control circuit 112 determines whether GYRO_DATA is greater than -OUT_THRESH3.

S410においてGYRO_DATAがOUT_THRESH3より小さいと判定された場合、またはS411においてGYRO_DATAが−OUT_THRESH3より大きいと判定された場合、パンニング制御回路112はパンニング状態終了と判定しS412の処理に移行する。S412においてパンニング制御回路112は、スイッチ109の状態を、信号置換回路107の出力を積分器16に接続する状態から、HPF15の出力を積分器16に接続する状態へ切り替え、フラグCHANGE_FLAGをリセットする。S412の処理が終了した後、パンニング制御回路112は処理を終了し、次の処理実行周期まで待機する。   If it is determined in S410 that GYRO_DATA is smaller than OUT_THRESH3, or if it is determined in S411 that GYRO_DATA is greater than -OUT_THRESH3, the panning control circuit 112 determines that the panning state has ended, and the process proceeds to S412. In S412, the panning control circuit 112 switches the state of the switch 109 from a state in which the output of the signal replacement circuit 107 is connected to the integrator 16 to a state in which the output of the HPF 15 is connected to the integrator 16, and resets the flag CHANGE_FLAG. After the process of S412 is completed, the panning control circuit 112 ends the process and waits for the next process execution cycle.

S410において、GYRO_DATAがOUT_THRESH3以上であると判定された場合、またはS411において、GYRO_DATAが−OUT_THRESH3以下であると判定された場合、パンニング制御回路112はパンニング状態が継続していると判定し、S413の処理に移行する。   If it is determined in S410 that GYRO_DATA is equal to or greater than OUT_THRESH3, or if it is determined in S411 that GYRO_DATA is equal to or less than -OUT_THRESH3, the panning control circuit 112 determines that the panning state is continuing, and in S413. Transition to processing.

S413においてパンニング制御回路112は、積分器16の出力信号である角変位データ(INT_DATA)の絶対値が、閾値OUT_THRESH4より小さいかどうか判定する。S413において、INT_DATAの絶対値が、閾値OUT_THRESH4より小さいと判定された場合、パンニング制御回路112はS414の処理に移行する。なお、OUT_THRESH4は、図13に示すようにINT_THRESHより小さい値とする。   In S413, the panning control circuit 112 determines whether or not the absolute value of the angular displacement data (INT_DATA) that is the output signal of the integrator 16 is smaller than the threshold value OUT_THRESH4. If it is determined in S413 that the absolute value of INT_DATA is smaller than the threshold value OUT_THRESH4, the panning control circuit 112 proceeds to the process of S414. Note that OUT_THRESH4 is a value smaller than INT_THRESH as shown in FIG.

S414においてパンニング制御回路112は、角変位データINT_DATAが十分にゼロに近付いたと判断し、GYRO_DUMMYの値をゼロとする。これによって、角変位データが中心を通過し反対側の補正端に向かって動いてしまうことを防止する。   In S414, the panning control circuit 112 determines that the angular displacement data INT_DATA has sufficiently approached zero, and sets the value of GYRO_DUMMY to zero. This prevents the angular displacement data from passing through the center and moving toward the opposite correction end.

S413において、INT_DATAの絶対値が、閾値OUT_THRESH4以上であると判定された場合、パンニング制御回路112は、処理を終了し、次の処理実行周期まで待機する。   If it is determined in S413 that the absolute value of INT_DATA is greater than or equal to the threshold value OUT_THRESH4, the panning control circuit 112 ends the process and waits for the next process execution cycle.

このように、本実施形態では、積分器16の出力する角変位データの単調増加又は単調減少の変化量が閾値を超え、かつ角速度データの絶対値が閾値を超える場合、HPF15の出力に代えて、角変位データを低減させるための値を積分器16に与える。これにより、急激なパンニングが行われた場合でも補正データが補正端に達しにくくなる。   Thus, in this embodiment, when the change amount of the monotonic increase or monotonic decrease of the angular displacement data output from the integrator 16 exceeds the threshold value and the absolute value of the angular velocity data exceeds the threshold value, the output of the HPF 15 is used instead. A value for reducing the angular displacement data is given to the integrator 16. This makes it difficult for the correction data to reach the correction end even when rapid panning is performed.

次に図14を用いて、本実施形態におけるパンニング制御の有効性について説明する。
図14(a)〜(c)は、従来のブレ補正装置が搭載された撮像装置にて急激なパンニング動作が行われたときの、角速度データGYRO_DATA、HPF15の低域カットオフ周波数、角変位データINT_DATAの経時変化を示す。図14(d)及び図14(e)は、本実施形態におけるブレ補正装置が搭載された撮像装置にて同様のパンニング動作が行われたときの、信号置換回路107の出力信号(GYRO_DUMMY)、角変位データの経時変化を示す図である。
Next, the effectiveness of panning control in this embodiment will be described with reference to FIG.
FIGS. 14A to 14C show angular velocity data GYRO_DATA, HPF 15 low-frequency cut-off frequency, and angular displacement data when an abrupt panning operation is performed in an imaging apparatus equipped with a conventional shake correction apparatus. Indicates the change with time of INT_DATA. 14D and 14E show the output signal (GYRO_DUMMY) of the signal replacement circuit 107 when a similar panning operation is performed in the imaging apparatus equipped with the shake correction apparatus in the present embodiment. It is a figure which shows a time-dependent change of angular displacement data.

図14(a)は、図19又は図1のA/D変換器14の出力である角速度データの経時変化を示す。ここでは、時刻0から急激なパンニング動作が行われ、時刻T53でパンニング動作が終了したものとする。図14(b)は、急激なパンニング動作がなされた際の、HPF15の低域カットオフ周波数の経時変化を示す。図14(c)は、図19の積分器16の出力である角変位データの経時変化を示し、実線は従来のパンニング制御を行ったときの角変位データを、点線はパンニング制御を行わなかったときの角変位データを示す。   FIG. 14A shows a change with time of angular velocity data which is an output of the A / D converter 14 of FIG. 19 or FIG. Here, it is assumed that a rapid panning operation is performed from time 0 and the panning operation is completed at time T53. FIG. 14B shows a change with time of the low-frequency cutoff frequency of the HPF 15 when a rapid panning operation is performed. FIG. 14C shows the change over time of the angular displacement data, which is the output of the integrator 16 of FIG. 19, the solid line shows the angular displacement data when the conventional panning control is performed, and the dotted line does not perform the panning control. The angular displacement data is shown.

図14(d)は、急激なパンニング動作を行ったときの、信号置換回路107の出力である置換信号データの経時変化を示す図である。図14(e)は、図1の積分器16の出力である角変位データの経時変化を示す図である。図14(e)で、実線は本実施形態のパンニング制御を行ったときの経時変化を、点線は本実施形態のパンニング制御を行わなかったときの経時変化を示している。   FIG. 14D is a diagram showing a change with time of replacement signal data, which is an output of the signal replacement circuit 107, when a rapid panning operation is performed. FIG. 14 (e) is a diagram showing the change with time of the angular displacement data, which is the output of the integrator 16 of FIG. In FIG. 14 (e), the solid line shows the change with time when the panning control of this embodiment is performed, and the dotted line shows the change with time when the panning control of this embodiment is not performed.

図14(a)に示すように、短時間で角速度データが大きくなるようなパンニング動作が行われたとき、パンニング制御を行わないと図14(c)及び図14(e)に点線で示すように角変位データの値が急速に上昇し、ブレ補正回路19の補正端(補正限界)に近付いていく。   As shown in FIG. 14A, when a panning operation is performed such that the angular velocity data increases in a short time, if the panning control is not performed, as shown in FIG. 14C and FIG. Then, the value of the angular displacement data rises rapidly and approaches the correction end (correction limit) of the shake correction circuit 19.

角変位データが急速に補正端に近付く現象を防止するため、従来のパンニング制御では、図14(b)に示すように、角速度データがパンニング開始判定角速度閾値IN_THRESH3より大きくなった時刻T51からHPF15の低域カットオフ周波数を高くする制御を行っていた。これによって図14(c)に実線で示すように、角変位データが急速に上昇して補正端に近付く現象を防止していた。   In order to prevent the phenomenon in which the angular displacement data rapidly approaches the correction end, in the conventional panning control, as shown in FIG. 14B, the HPF 15 is changed from the time T51 when the angular velocity data becomes larger than the panning start determination angular velocity threshold IN_THRESH3. Control was performed to increase the low-frequency cutoff frequency. As a result, as shown by the solid line in FIG. 14C, the phenomenon that the angular displacement data rapidly rises and approaches the correction end is prevented.

しかし、従来のパンニング制御では以下のような問題点があった。時刻T53では角速度データがパンニング終了判定角速度閾値OUT_THRESH3より小さくなり、パンニング動作が終了したと判定される。その後、HPF15の低域カットオフ周波数を急に元の値に復帰させると、ブレ補正データが急激に変化し、ブレ補正データの誤差量が急激に大きくなる。そのため、時刻T53からT54にかけてゆっくりと低域カットオフ周波数を低くしていく必要がある。しかし、HPF15の低域カットオフ周波数が高い状態では、補正を行いたいブレ成分も減衰させている。すなわち、急激なパンニング動作が終了した後、低域カットオフ周波数が元の値に戻るまでの間(T53からT54までの間)、ブレ成分の減衰が元に戻らず、ブレ残り量が大きくなってしまう。   However, the conventional panning control has the following problems. At time T53, the angular velocity data becomes smaller than the panning end determination angular velocity threshold OUT_THRESH3, and it is determined that the panning operation has ended. Thereafter, when the low-frequency cutoff frequency of the HPF 15 is suddenly restored to the original value, the blur correction data changes abruptly, and the error amount of the blur correction data increases rapidly. Therefore, it is necessary to slowly lower the low frequency cutoff frequency from time T53 to time T54. However, in a state where the low frequency cutoff frequency of the HPF 15 is high, the blur component to be corrected is also attenuated. That is, after the abrupt panning operation is finished, until the low-frequency cutoff frequency returns to the original value (between T53 and T54), the blur component attenuation does not return to the original value and the blur remaining amount increases. End up.

一方、本実施形態によるパンニング制御回路112は、図12(a)のS402及びS403に示すように、時刻T51で角速度データがパンニング開始判定角速度閾値IN_THRESH3より大きくなっただけではパンニング動作が開始されたと判定しない。パンニング制御回路112は、さらに、角変位データが単調増加または減少し、その変化量がパンニング開始判定積分器閾値IN_THRESH2を超えた時刻T52で、パンニング動作が開始されたと判定する。   On the other hand, as shown in S402 and S403 of FIG. 12A, the panning control circuit 112 according to the present embodiment starts the panning operation only when the angular velocity data becomes larger than the panning start determination angular velocity threshold IN_THRESH3 at time T51. Do not judge. Further, the panning control circuit 112 determines that the panning operation is started at time T52 when the angular displacement data monotonously increases or decreases and the change amount exceeds the panning start determination integrator threshold IN_THRESH2.

時刻T52でパンニング動作が開始されたと判定すると、パンニング制御回路112は、図13に示したように信号置換回路107の出力GYRO_DUMMYを決定する(図14(d))。そして、パンニング制御回路112は、スイッチ109の状態を切り替え、HPF15の出力に代えて信号置換回路107の出力を積分器16に供給し始める。そして時刻T53でパンニング動作が終了されたと判定されると、パンニング制御回路112は、HPF15の出力が積分器16に供給されるようにスイッチ109を元に戻す。   When it is determined that the panning operation is started at time T52, the panning control circuit 112 determines the output GYRO_DUMMY of the signal replacement circuit 107 as shown in FIG. 13 (FIG. 14 (d)). Then, the panning control circuit 112 switches the state of the switch 109 and starts supplying the output of the signal replacement circuit 107 to the integrator 16 instead of the output of the HPF 15. When it is determined that the panning operation has been completed at time T53, the panning control circuit 112 returns the switch 109 so that the output of the HPF 15 is supplied to the integrator 16.

時刻T52からT53において、スイッチ109が、信号置換回路107が出力する置換信号データを積分器16に供給する状態へ切り替えられている間、積分器16の出力する角変位データは図14(e)に示すようにゼロに近付いていく。図13に示したように、パンニング制御回路112は、符号が変位データと逆で、絶対値は角変位データの絶対値が大きいほど大きくなるような置換信号データGYRO_DUMMYを算出する。これによって、角変位データが補正端に近いときは大きな値が角変位データから削減されることになり、ブレ補正データをより速くゼロに近付けることができる。   From time T52 to T53, while the switch 109 is switched to a state in which the replacement signal data output from the signal replacement circuit 107 is supplied to the integrator 16, the angular displacement data output from the integrator 16 is shown in FIG. As shown, it approaches zero. As shown in FIG. 13, the panning control circuit 112 calculates replacement signal data GYRO_DUMMY whose sign is opposite to that of the displacement data and whose absolute value increases as the absolute value of the angular displacement data increases. Thus, when the angular displacement data is close to the correction end, a large value is reduced from the angular displacement data, and the blur correction data can be brought closer to zero faster.

なお、時刻T52からT53においては、角速度データを信号置換回路107の出力に切り替えるため、ブレ補正を行うことはできない。パンニング動作はユーザが意図して行った動作であるため、補正を行わない方が却って自然な映像となる。しかし、不用意にパンニング制御に入ってしまうと、ブレ補正を行う状態と行わない状態を繰り返し、見苦しい映像となってしまう。そのため、図12(a)のフローチャートのS402とS403の2条件のパンニング開始判定を行うことにより、不用意にパンニング制御に入ることを防止している。   In addition, from time T52 to T53, the angular velocity data is switched to the output of the signal replacement circuit 107, and thus blur correction cannot be performed. Since the panning operation is an operation performed intentionally by the user, a natural image is obtained on the contrary when the correction is not performed. However, if the panning control is entered carelessly, the state where the blur correction is performed and the state where the blur correction is not performed are repeated, resulting in an unsightly image. Therefore, the panning control is prevented from being inadvertently performed by performing the panning start determination of the two conditions of S402 and S403 in the flowchart of FIG.

本実施形態のパンニング制御を行った結果、角変位データは図14(e)の実線に示すようになり、角変位データが急速に補正端に近付く現象を防止することができる。また、従来のパンニング制御において、図14(b)の時刻T53からT54でHPF15の低域カットオフ周波数変更制御を行うことによって生じていた、ブレ残り量が大きくなる現象を防止し、パンニング動作終了後すぐにブレ残り量を最小にするように制御することができる。   As a result of performing the panning control of this embodiment, the angular displacement data becomes as shown by the solid line in FIG. 14E, and the phenomenon in which the angular displacement data rapidly approaches the correction end can be prevented. In addition, in the conventional panning control, the phenomenon that the blur remaining amount increases due to the low frequency cutoff frequency change control of the HPF 15 from time T53 to T54 in FIG. 14B is prevented, and the panning operation ends. It can be controlled to minimize the remaining blur amount immediately afterward.

以上のように本実施形態によれば、パンニング動作が急激である場合には、角速度データの代わりに置換信号データを積分器に供給することで、積分器の出力する角変位データが補正端に達することを防止できる。そして、パンニング動作が終了すると、十分な効果が実現できるブレ補正を直ちに開始することができる。そのため、パンニング動作中にHPF15の低域カットオフ周波数を上昇させる従来のパンニング制御で発生していた、パンニング終了後しばらくの間はブレ残り量が大きくなる現象を回避することができる。   As described above, according to the present embodiment, when the panning operation is rapid, the replacement signal data is supplied to the integrator instead of the angular velocity data, so that the angular displacement data output from the integrator is at the correction end. Can be prevented. Then, when the panning operation is completed, it is possible to immediately start blur correction that can realize a sufficient effect. For this reason, it is possible to avoid the phenomenon that the blur remaining amount increases for a while after the end of panning, which occurs in the conventional panning control in which the low frequency cutoff frequency of the HPF 15 is increased during the panning operation.

なお、本実施形態では積分器16の出力である角変位データに基づいてパンニング判定を行ったが、これに限定されるものではない。例えば焦点距離演算回路17の出力するブレ補正データを用いて判定しても良いし、パンニング判定専用の積分器を備え、その出力を用いて判定しても良い。   In this embodiment, the panning determination is performed based on the angular displacement data that is the output of the integrator 16, but the present invention is not limited to this. For example, the determination may be made using blur correction data output from the focal length calculation circuit 17, or an integrator dedicated to panning determination may be provided and the output may be used for the determination.

●(第7の実施形態)
次に、本発明の第7の実施形態を説明する。本実施形態も第6の実施形態と同様、急激なパンニング時におけるパンニング制御方法に関する。本実施形態のパンニング制御処理は、図12(a)に示した第6の実施形態のS402の処理に代えて、図12(b)に示したS502の処理を行うことを特徴とする。他の処理ステップは第6の実施形態と共通であるため、以下、本実施形態に特徴的なS502の処理についてのみ説明を行い、その他の処理についての説明は省略する。
● (Seventh embodiment)
Next, a seventh embodiment of the present invention will be described. As in the sixth embodiment, this embodiment also relates to a panning control method at the time of rapid panning. The panning control process of this embodiment is characterized in that the process of S502 shown in FIG. 12B is performed instead of the process of S402 of the sixth embodiment shown in FIG. Since the other processing steps are the same as those in the sixth embodiment, only the processing of S502 that is characteristic of this embodiment will be described below, and description of the other processing will be omitted.

図12(a)のS402では、角速度データの絶対値が閾値IN_THRESH3を超え、かつ積分器16が出力する角変位データが単調増加または減少しているときの変化幅が閾値IN_THRESH2を超えると、パンニング動作が開始したと判定した。しかしこの方法では、角変位データが一瞬減少してすぐに増加するような変化をした場合、角変位データの単調増加(減少)変化幅がIN_THRESH2を超える前に、角変位データが補正端に達してしまう可能性があった。   In S402 of FIG. 12A, when the absolute value of the angular velocity data exceeds the threshold value IN_THRESH3 and the change width when the angular displacement data output from the integrator 16 monotonously increases or decreases exceeds the threshold value IN_THRESH2, panning is performed. It is determined that the operation has started. However, with this method, when the angular displacement data changes momentarily and then increases, the angular displacement data reaches the correction end before the monotonically increasing (decreasing) change width of the angular displacement data exceeds IN_THRESH2. There was a possibility.

本実施形態では、図12(b)のS502に示すように、積分器16の出力信号である角変位データの絶対値が、パンニング開始判定角変位閾値IN_THRESH4より大きいか否かを判定することとした。なお、第9の閾値であるIN_THRESH4は図13に示すように、OUT_THRESH4、INT_THRESHよりも補正端に近い値に設定する。つまり、本実施形態のパンニング制御回路112は、角速度データの絶対値が第7の閾値IN_THRESH3を超え、かつ積分器16の出力信号である角変位データの絶対値が第9の閾値IN_THRESH4を超えると、パンニング動作が開始したと判定する。これにより、角変位データが補正端に達する前にパンニング開始判定を行うことが可能となり、角変位データが補正端に達してしまうことを防止することができる。   In the present embodiment, as shown in S502 of FIG. 12B, it is determined whether or not the absolute value of the angular displacement data that is the output signal of the integrator 16 is greater than the panning start determination angular displacement threshold IN_THRESH4. did. As shown in FIG. 13, the ninth threshold value IN_THRESH4 is set to a value closer to the correction end than OUT_THRESH4 and INT_THRESH. That is, when the absolute value of the angular velocity data exceeds the seventh threshold value IN_THRESH3 and the absolute value of the angular displacement data that is the output signal of the integrator 16 exceeds the ninth threshold value IN_THRESH4, the panning control circuit 112 of the present embodiment. It is determined that the panning operation has started. Accordingly, it is possible to perform panning start determination before the angular displacement data reaches the correction end, and it is possible to prevent the angular displacement data from reaching the correction end.

以上のように本実施形態によれば、パンニング動作による角変位データの変化方向が一定でない場合においても、第6の実施形態と同様の効果を実現できる。   As described above, according to this embodiment, even when the change direction of the angular displacement data due to the panning operation is not constant, the same effect as that of the sixth embodiment can be realized.

●(第8の実施形態)
次に、本発明の第8の実施形態を説明する。本実施形態は、パンニング動作の揺り戻しを考慮したパンニング制御方法に関する。
● (Eighth embodiment)
Next, an eighth embodiment of the present invention will be described. The present embodiment relates to a panning control method that takes into account the swinging back of the panning operation.

図15は、本実施形態におけるパンニング制御回路112が行うパンニング制御処理を説明するためのフローチャートである。なお、図15を参照して以下に説明する処理は、例えば60分の1秒毎といったように、所定期間毎に繰り返し行われる。   FIG. 15 is a flowchart for explaining a panning control process performed by the panning control circuit 112 according to this embodiment. Note that the processing described below with reference to FIG. 15 is repeatedly performed at predetermined intervals, for example, every 1/60 second.

また、図16(a)は、パンニング動作が行われた際のA/D変換器14の出力(角速度データ)の経時変化を示す図である。図16(a)で、パンニング動作期間では、DCカットフィルタ12によりパンニングの低周波数成分が減衰され、角速度データは徐々に小さくなる。そしてパンニング動作が終了すると、DCカットフィルタ12によりパンニングの低周波数成分が減衰された影響により、角速度データがパンニング方向とは逆方向に振れる。その後DCカットフィルタ12の時定数分の時間をかけて、角速度データはゼロに収束していく。図15に示したフローチャートの処理はこのパンニング後に角速度データが逆方向に振れる現象により、撮像画像が動いてしまう揺り戻し現象を防止するための処理である。パンニング中は、図2(a)、図2(b)、図12(a)、図12(b)のフローチャートに示した処理を行えばよく、本実施形態においては説明を省略する。   FIG. 16A is a diagram showing a change with time in the output (angular velocity data) of the A / D converter 14 when the panning operation is performed. In FIG. 16A, during the panning operation period, the low frequency component of panning is attenuated by the DC cut filter 12, and the angular velocity data gradually decreases. When the panning operation ends, the angular velocity data swings in the direction opposite to the panning direction due to the influence of the low frequency component of panning attenuated by the DC cut filter 12. Thereafter, the angular velocity data converges to zero over time corresponding to the time constant of the DC cut filter 12. The process of the flowchart shown in FIG. 15 is a process for preventing a swing-back phenomenon in which a captured image moves due to a phenomenon in which angular velocity data fluctuates in the reverse direction after panning. During panning, the processing shown in the flowcharts of FIGS. 2A, 2B, 12A, and 12B may be performed, and the description thereof is omitted in this embodiment.

図15のS601において、パンニング制御回路112は、パンニングが開始されたことを示すフラグPAN_START_FLAGがセットされているか否かを判定する。PAN_START_FLAGがセットされていないと判定された場合、パンニング制御回路112は、S602の処理に移行する。   In S601 of FIG. 15, the panning control circuit 112 determines whether or not a flag PAN_START_FLAG indicating that panning has started is set. If it is determined that PAN_START_FLAG is not set, the panning control circuit 112 proceeds to the process of S602.

S602においてパンニング制御回路112は、A/D変換器14の出力である角速度データ(GYRO_DATA)が、パンニング開始判定角速度閾値IN_THRESH5より大きいか否かを判定する。   In S602, the panning control circuit 112 determines whether or not the angular velocity data (GYRO_DATA) that is the output of the A / D converter 14 is greater than the panning start determination angular velocity threshold IN_THRESH5.

S602において、GYRO_DATAがIN_THRESH5より大きいと判定された場合、パンニング制御回路112は撮像装置のパンニング動作が開始されたと判断し、S604及びS606の処理へ移行する。S604でパンニング制御回路112はSIGN_FLAG3をリセットし、パンニング開始時の角速度データの符号(正)を記憶する。S606でパンニング制御回路112はパンニングが開始されたことを示すフラグPAN_START_FLAGをセットする。   If it is determined in S602 that GYRO_DATA is greater than IN_THRESH5, the panning control circuit 112 determines that the panning operation of the imaging apparatus has started, and proceeds to the processing of S604 and S606. In step S604, the panning control circuit 112 resets SIGN_FLAG3 and stores the sign (positive) of angular velocity data at the start of panning. In S606, the panning control circuit 112 sets a flag PAN_START_FLAG indicating that panning has started.

S602において、GYRO_DATAがIN_THRESH5以下であると判定された場合、パンニング制御回路112は、S603の処理に移行する。S603においてパンニング制御回路112は、A/D変換器14の出力である角速度データ(GYRO_DATA)が、パンニング開始判定角速度閾値−IN_THRESH5より小さいか否かを判定する。   If it is determined in S602 that GYRO_DATA is equal to or less than IN_THRESH5, the panning control circuit 112 proceeds to the process of S603. In S603, the panning control circuit 112 determines whether or not the angular velocity data (GYRO_DATA) that is the output of the A / D converter 14 is smaller than the panning start determination angular velocity threshold −IN_THRESH5.

S603において、GYRO_DATAが−IN_THRESH5より小さいと判定された場合、パンニング制御回路112は撮像装置でパンニング動作が開始されたと判断し、S605及びS606の処理へ移行する。S605ではSIGN_FLAG3をセットし、パンニング動作開始時の角速度データの符号(負)を記憶する。S606でパンニング制御回路112はパンニング動作が開始されたことを示すフラグPAN_START_FLAGをセットする。   In S603, when it is determined that GYRO_DATA is smaller than -IN_THRESH5, the panning control circuit 112 determines that the panning operation has been started in the imaging apparatus, and the process proceeds to S605 and S606. In S605, SIGN_FLAG3 is set, and the sign (negative) of the angular velocity data at the start of the panning operation is stored. In S606, the panning control circuit 112 sets a flag PAN_START_FLAG indicating that the panning operation has been started.

S606の処理が行われた後、或いはS603においてGYRO_DATAが−IN_THRESH5以上であると判定された場合、パンニング制御回路112は処理を終了し、次の処理実行開始まで待機する。   After the process of S606 is performed, or when it is determined in S603 that GYRO_DATA is equal to or greater than −IN_THRESH5, the panning control circuit 112 ends the process and waits until the start of the next process execution.

S601において、PAN_START_FLAGがセットされているときは、パンニング動作が行われていると判定されている状態であり、パンニング制御回路112はS607の処理に移行する。S607においてパンニング制御回路112は、パンニング動作が終了したことを示すフラグPAN_CANSEL_FLAGがセットされているか否かを判定する。PAN_CANSEL_FLAGがセットされていないと判定された場合、パンニング制御回路112は、S608の処理に移行する。   In S601, when PAN_START_FLAG is set, it is determined that the panning operation is being performed, and the panning control circuit 112 proceeds to the process of S607. In step S607, the panning control circuit 112 determines whether or not a flag PAN_CANSEL_FLAG indicating that the panning operation has ended is set. If it is determined that PAN_CANSEL_FLAG is not set, the panning control circuit 112 proceeds to the process of S608.

S608においてパンニング制御回路112は、PAN_START_FLAGがセットされてからの時間PAN_TIMEをカウントし、S609の処理に移行する。   In S608, the panning control circuit 112 counts the time PAN_TIME after PAN_START_FLAG is set, and proceeds to the processing of S609.

S609においてパンニング制御回路112は、SIGN_FLAG3がセットされているかどうかを判定する。S609においてSIGN_FLAG3がセットされていると判定された場合、即ちパンニング動作開始時の角速度データの符号が負であった場合、パンニング制御回路112はS610の処理に移行する。   In S609, the panning control circuit 112 determines whether SIGN_FLAG3 is set. If it is determined in S609 that SIGN_FLAG3 is set, that is, if the sign of the angular velocity data at the start of the panning operation is negative, the panning control circuit 112 proceeds to the processing of S610.

S610においてパンニング制御回路112は、パンニング動作中と判定されている間のA/D変換器14の出力である角速度データ(GYRO_DATA)のピーク値として最小値を算出して変数GYRO_PEAKに設定して、S611の処理に移行する。   In S610, the panning control circuit 112 calculates the minimum value as the peak value of the angular velocity data (GYRO_DATA), which is the output of the A / D converter 14 while it is determined that the panning operation is being performed, and sets it as a variable GYRO_PEAK. The process proceeds to S611.

S611においてパンニング制御回路112は、GYRO_DATAがゼロ以上になったかどうかを判定する。S611において、GYRO_DATAがゼロ以上になったと判定された場合、パンニング制御回路112は、S614の処理へ移行し、パンニング動作が終了したことを示すフラグPAN_CANSEL_FLAGをセットする。   In S611, the panning control circuit 112 determines whether GYRO_DATA has become zero or more. If it is determined in S611 that GYRO_DATA has become zero or more, the panning control circuit 112 proceeds to the processing of S614, and sets a flag PAN_CANSEL_FLAG indicating that the panning operation has ended.

S609においてSIGN_FLAG3がセットされていないと判定された場合、即ちパンニング動作開始時の角速度データの符号が正であった場合、パンニング制御回路112は、S612の処理に移行する。S612においてパンニング制御回路112は、パンニング動作中と判定されている間のA/D変換器14の出力である角速度データ(GYRO_DATA)のピーク値として最大値を算出して変数GYRO_PEAKに設定し、S613の処理に移行する。   If it is determined in S609 that SIGN_FLAG3 is not set, that is, if the sign of the angular velocity data at the start of the panning operation is positive, the panning control circuit 112 proceeds to the process of S612. In S612, the panning control circuit 112 calculates the maximum value as the peak value of the angular velocity data (GYRO_DATA), which is the output of the A / D converter 14 while it is determined that the panning operation is being performed, and sets it as a variable GYRO_PEAK. Move on to processing.

S613においてパンニング制御回路112は、GYRO_DATAがゼロ以下になったかどうかを判定する。S613において、GYRO_DATAがゼロ以下になったと判定された場合、パンニング制御回路112は、S614の処理へ移行し、パンニング動作が終了したことを示すフラグPAN_CANSEL_FLAGをセットする。   In S613, the panning control circuit 112 determines whether GYRO_DATA has become zero or less. If it is determined in S613 that GYRO_DATA has become zero or less, the panning control circuit 112 proceeds to the processing of S614 and sets a flag PAN_CANSEL_FLAG indicating that the panning operation has ended.

S614の処理後、或いはS611においてGYRO_DATAがゼロより小さいと判定された後、或いはS613においてGYRO_DATAがゼロより大きいと判定された後、パンニング制御回路112は処理を終了し、次の処理開始まで待機する。   After the process of S614, or after it is determined in S611 that GYRO_DATA is less than zero, or in S613, it is determined that GYRO_DATA is greater than zero, the panning control circuit 112 ends the process and waits for the start of the next process. .

S607において、PAN_CANSEL_FLAGがセットされている場合、パンニング動作が終了したと判定されている状態であり、パンニング制御回路112はS615の処理に移行する。
S615においてパンニング制御回路112は、PAN_CANSEL_FLAGがセットされてからの時間CANCEL_TIMEをカウントし、S616の処理に移行する。
If PAN_CANSEL_FLAG is set in S607, it is determined that the panning operation has been completed, and the panning control circuit 112 proceeds to the process of S615.
In S615, the panning control circuit 112 counts the time CANCEL_TIME after PAN_CANSEL_FLAG is set, and proceeds to the process of S616.

S616においてパンニング制御回路112は、角速度データに含まれる、パンニングと逆方向に振れる信号成分を除去するため、オフセット変更回路106の出力に設定する信号値である、OFFSET_CANCELの値を算出する。OFFSET_CANCELの算出方法について、図17を用いて説明する。   In S616, the panning control circuit 112 calculates a value of OFFSET_CANCEL that is a signal value set to the output of the offset change circuit 106 in order to remove a signal component that is included in the angular velocity data and shakes in the direction opposite to panning. A calculation method of OFFSET_CANCEL will be described with reference to FIG.

パンニング制御回路112は、OFFSET_CANCELの値を、パンニング動作が終了されてからの時間CANCEL_TIME、パンニング動作が開始されてからの時間PAN_TIME、パンニング動作中の角速度データのピークGYRO_PEAKの値に応じて決定する。CANCEL_TIMEに応じて決定するパラメータをOFFSET_CANCEL_ORIGINAL、PAN_TIMEに応じて決定するパラメータをPAN_TIME_GAIN、GYRO_PEAKに応じて決定するパラメータをGYRO_PEAK_GAINとする。このとき、パンニング制御回路112は、OFFSET_CANCELの値を以下の(式2)によって算出する。
OFFSET_CANCEL = OFFSET_CANCEL_ORIGINAL×PAN_TIME_GAIN×GYRO_PEAK_GAIN (式2)
The panning control circuit 112 determines the value of OFFSET_CANCEL according to the time CANCEL_TIME from the end of the panning operation, the time PAN_TIME from the start of the panning operation, and the value of the peak GYRO_PEAK of the angular velocity data during the panning operation. The parameter determined according to CANCEL_TIME is OFFSET_CANCEL_ORIGINAL, the parameter determined according to PAN_TIME is PAN_TIME_GAIN, and the parameter determined according to GYRO_PEAK is GYRO_PEAK_GAIN. At this time, the panning control circuit 112 calculates the value of OFFSET_CANCEL by the following (Formula 2).
OFFSET_CANCEL = OFFSET_CANCEL_ORIGINAL × PAN_TIME_GAIN × GYRO_PEAK_GAIN (Formula 2)

図17(a)は、パンニング動作が終了されてからの時間CANCEL_TIMEと、OFFSET_CANCEL_ORIGINALとの関係を示す図である。OFFSET_CANCEL_ORIGINALの値は、CANCEL_TIMEの値がPEAK_TIME(第1の所定時間)となるまではCANCEL_PEAKに向かって大きくなる。そして、OFFSET_CANCEL_ORIGINALの値は、PEAK_TIMEを経過した後(第1の所定時間経過後)、CANCEL_TIMEの値がCANCEL_END(第2の所定時間)となるまで徐々に小さくなる。そして、OFFSET_CANCEL_ORIGINALの値は、CANCEL_TIMEがCANCEL_ENDとなった時点でゼロになる。なお、図17(a)は、図16(a)に示した揺り戻し期間における角速度データの経時変化に近似させた経時特性を持たせている。揺り戻し期間における角速度データの経時変化を予め測定し、それに近似させてCANCEL_ORIGINALを用意しておくことができる。なお、図17(a)に示す関係は、上述した各種の閾値やパラメータと同様、ブレ補正装置100が搭載される撮像装置やパンニング制御回路112が備える不揮発性メモリにテーブルデータとして格納しておくことができる。あるいは、図17(a)のPEAK_TIME、CANCEL_END、CANCEL_PEAK等の代表的なタイミングでのOFFSET_CANCEL_ORIGINALの値のみ不揮発性メモリに格納し、他のタイミングでの値は補間により算出しても良い。   FIG. 17A is a diagram illustrating a relationship between time CANCEL_TIME after the panning operation is finished and OFFSET_CANCEL_ORIGINAL. The value of OFFSET_CANCEL_ORIGINAL increases toward CANCEL_PEAK until the value of CANCEL_TIME reaches PEAK_TIME (first predetermined time). Then, the value of OFFSET_CANCEL_ORIGINAL gradually decreases after PEAK_TIME has elapsed (after the first predetermined time has elapsed) until the value of CANCEL_TIME reaches CANCEL_END (second predetermined time). The value of OFFSET_CANCEL_ORIGINAL becomes zero when CANCEL_TIME becomes CANCEL_END. Note that FIG. 17A has a temporal characteristic approximated to the temporal change of the angular velocity data in the swing-back period shown in FIG. CANCEL_ORIGINAL can be prepared by measuring the temporal change of angular velocity data during the swing-back period in advance and approximating it. Note that the relationship shown in FIG. 17A is stored as table data in a non-volatile memory included in the imaging device or panning control circuit 112 in which the shake correction device 100 is mounted, as in the case of the various thresholds and parameters described above. be able to. Alternatively, only OFFSET_CANCEL_ORIGINAL values at typical timings such as PEAK_TIME, CANCEL_END, and CANCEL_PEAK in FIG. 17A may be stored in the nonvolatile memory, and values at other timings may be calculated by interpolation.

図17(b)は、PAN_TIMEとPAN_TIME_GAINとの関係を示す図である。PAN_TIME_GAINは、OFFSET_CANCEL_ORIGINALに乗じる係数である。PAN_TIMEが閾値TIME_THRESHより大きくなるまでは、PAN_TIME_GAINの値はゼロとする。PAN_TIMEが閾値TIME_THRESHより大きく、TIME_MAX以下(第10の閾値以下)の場合は、PAN_TIME_GAINの値をPAN_TIMEの値が大きいほど大きくする。PAN_TIMEが第10の閾値であるTIME_MAXより大きくなるとPAN_TIME_GAINの値を最大値1で固定する。   FIG. 17B is a diagram illustrating a relationship between PAN_TIME and PAN_TIME_GAIN. PAN_TIME_GAIN is a coefficient by which OFFSET_CANCEL_ORIGINAL is multiplied. Until PAN_TIME becomes larger than the threshold value TIME_THRESH, the value of PAN_TIME_GAIN is set to zero. When PAN_TIME is larger than the threshold value TIME_THRESH and less than TIME_MAX (below the tenth threshold value), the value of PAN_TIME_GAIN is increased as the value of PAN_TIME is larger. When PAN_TIME becomes larger than the tenth threshold value TIME_MAX, the value of PAN_TIME_GAIN is fixed at the maximum value 1.

図17(c)は、GYRO_PEAKとGYRO_PEAK_GAINとの関係を示す図である。GYRO_PEAK_GAINは、PAN_TIME_GAINと同様OFFSET_CANCEL_ORIGINALに乗じる係数である。GYRO_PEAKの絶対値がパンニング開始判定角速度閾値IN_THRESH5より小さいとき(第11の閾値未満のとき)は、GYRO_PEAK_GAINの値はゼロとする。GYRO_PEAKが、IN_THRESH5以上でGYRO_PEAK_MAXより小さい場合はGYRO_PEAK _GAINの値をGYRO_PEAKが大きくなるほど大きくする。GYRO_PEAK_MAX以上ではGYRO_PEAK_GAINを最大値1で固定する。GYRO_PEAKが、−IN_THRESH5以下で−GYRO_PEAK_MAXより大きい場合はGYRO_PEAK _GAINの値をGYRO_PEAKが小さくなるほど小さくする。GYRO_PEAKが、−GYRO_PEAK_MAX以下ではGYRO_PEAK _GAINを最小値−1で固定する。   FIG. 17C is a diagram showing the relationship between GYRO_PEAK and GYRO_PEAK_GAIN. GYRO_PEAK_GAIN is a coefficient by which OFFSET_CANCEL_ORIGINAL is multiplied as in PAN_TIME_GAIN. When the absolute value of GYRO_PEAK is smaller than the panning start determination angular velocity threshold IN_THRESH5 (less than the eleventh threshold), the value of GYRO_PEAK_GAIN is set to zero. When GYRO_PEAK is greater than IN_THRESH5 and smaller than GYRO_PEAK_MAX, the value of GYRO_PEAK_GAIN is increased as GYRO_PEAK is increased. For GYRO_PEAK_MAX and above, GYRO_PEAK_GAIN is fixed at a maximum value of 1. When GYRO_PEAK is −IN_THRESH5 or less and greater than −GYRO_PEAK_MAX, the value of GYRO_PEAK_GAIN is decreased as GYRO_PEAK is decreased. When GYRO_PEAK is equal to or less than -GYRO_PEAK_MAX, GYRO_PEAK_GAIN is fixed at the minimum value -1.

OFFSET_CANCELは、図1のオフセット変更回路106の出力信号として設定される。これによって、パンニング終了時にHPF15の出力に含まれる、パンニングの角速度と逆方向に現れる揺り戻しの信号成分を、オフセット変更回路106の出力信号によって相殺した結果を、積分器16に入力することができ、揺り戻し現象を防止することができる。   OFFSET_CANCEL is set as an output signal of the offset changing circuit 106 in FIG. As a result, the result obtained by canceling the signal component of the swingback that appears in the direction opposite to the angular velocity of panning included in the output of the HPF 15 at the end of panning by the output signal of the offset changing circuit 106 can be input to the integrator 16. , Can prevent the swing back phenomenon.

ここでHPF15の出力に含まれるパンニングと逆方向に振れる信号成分の大きさの特徴について、図16(b)を用いて説明する。図16(b)は、3種類のパンニング動作が行われたときの角速度データの経時変化を示す図である。図16(b)の実線(1)と点線(2)で示すように、パンニング動作時の角速度データのピークが(1)と比較して小さい(2)の方が、揺り戻しで生じる信号も小さくなる。よって、図17(c)に示すように、パンニング動作中の角速度データのピークGYRO_PEAKに応じて、GYRO_PEAK_GAINの大きさを変更することで、OFFSET_CANCELの値を、実際の揺り戻し成分と類似した大きさにできる。   Here, the characteristics of the magnitude of the signal component that swings in the direction opposite to the panning included in the output of the HPF 15 will be described with reference to FIG. FIG. 16B is a diagram showing a change with time of angular velocity data when three kinds of panning operations are performed. As shown by the solid line (1) and the dotted line (2) in FIG. 16B, the signal generated by the swing back is smaller when the peak of the angular velocity data during the panning operation is smaller than (1) (2). Get smaller. Therefore, as shown in FIG. 17C, by changing the magnitude of GYRO_PEAK_GAIN according to the peak GYRO_PEAK of the angular velocity data during the panning operation, the value of OFFSET_CANCEL is similar to the actual swingback component. Can be.

また、図16(b)において、パンニング動作の継続時間が異なる実線(1)と一点鎖線(3)とを比較すると、継続時間が長い(3)の揺り戻し成分の方が大きい値となる。よって、図17(b)に示すように、パンニング動作開始から終了までの時間PAN_TIMEに応じて、PAN_TIME_GAINの大きさを変更することにより、OFFSET_CANCELの値を実際の揺り戻し信号成分と類似した大きさとすることができる。   Further, in FIG. 16B, when the solid line (1) and the alternate long and short dash line (3) having different durations of the panning operation are compared, the swing back component having the longer duration (3) has a larger value. Therefore, as shown in FIG. 17B, by changing the size of PAN_TIME_GAIN according to the time PAN_TIME from the start to the end of the panning operation, the value of OFFSET_CANCEL is set to a size similar to the actual shakeback signal component. can do.

S616においてOFFSET_CANCELの算出を行った後、パンニング制御回路112は、S617の処理に移行する。S617においてパンニング制御回路112は、S615でカウントしているCANCEL_TIMEが、揺り戻し信号成分がゼロに収束する時刻CANCEL_END以上かどうかを判定する。S617において、CANCEL_TIMEがCANCEL_END以上であると判定された場合、パンニング制御回路112は、パンニングと逆方向に発生する揺り戻し信号成分を除去する処理を終了するため、S618及びS619の処理に移行する。S618でパンニング制御回路112はOFFSET_CANCELをゼロとし、S619ではPAN_CANSEL_FLAG及びPAN_START_FLAGをリセットする。   After calculating OFFSET_CANCEL in S616, the panning control circuit 112 proceeds to the process of S617. In S617, the panning control circuit 112 determines whether or not CANCEL_TIME counted in S615 is equal to or greater than the time CANCEL_END at which the shakeback signal component converges to zero. If it is determined in S617 that CANCEL_TIME is equal to or greater than CANCEL_END, the panning control circuit 112 proceeds to the processes of S618 and S619 in order to end the process of removing the shakeback signal component generated in the direction opposite to the panning. In S618, the panning control circuit 112 sets OFFSET_CANCEL to zero, and in S619, PAN_CANSEL_FLAG and PAN_START_FLAG are reset.

S619の処理の後、或いはS617においてCANCEL_TIMEがCANCEL_ENDより小さいと判定された場合、パンニング制御回路112は本処理を終了し、次の処理開始まで待機する。   After the process of S619 or when it is determined in S617 that CANCEL_TIME is smaller than CANCEL_END, the panning control circuit 112 ends this process and waits until the next process starts.

次に図18を用いて、本実施形態におけるパンニング制御の有効性について説明を行う。図18(a),図18(b)は、従来のブレ補正装置が搭載された撮像装置にてパンニング動作が行われたときの、角速度データ(GYRO_DATA)、HPF15の低域カットオフ周波数の経時変化を示す。図18(c)は、本実施形態におけるブレ補正装置が搭載された撮像装置にて図18(a)と同様のパンニング動作が行われたときの、オフセット変更回路106の出力(OFFSET_CANCEL)の経時変化を示す。   Next, the effectiveness of panning control in this embodiment will be described with reference to FIG. 18 (a) and 18 (b) show the time lapse of the angular velocity data (GYRO_DATA) and the low-frequency cut-off frequency of the HPF 15 when the panning operation is performed by the imaging device equipped with the conventional shake correction device. Showing change. FIG. 18 (c) shows a time-lapse of the output (OFFSET_CANCEL) of the offset changing circuit 106 when a panning operation similar to that in FIG. 18 (a) is performed in the imaging apparatus equipped with the shake correction apparatus in the present embodiment. Showing change.

図18(a)は、パンニング動作の開始から、パンニング動作の終了後に発生する揺り戻し信号成分がゼロに収束するまでの、図19又は図1のA/D変換器14の出力である角速度データの経時変化を示す。図18(b)は、上述したパンニング動作の開始から、パンニング動作の終了後に生じる角速度データの揺り戻し信号成分がゼロに収束するまでの、HPF15の低域カットオフ周波数の経時変化を示す。また図18(c)は、パンニング動作の終了後に角速度データの揺り戻し信号成分がゼロに収束するまでの、オフセット変更回路106の出力の経時変化を示す。図18(c)には示していないが、パンニング動作中のオフセット変更回路106の出力は、図5(b)や図7(c)に示した通りである。   FIG. 18A shows angular velocity data that is an output of the A / D converter 14 of FIG. 19 or FIG. 1 from the start of the panning operation until the shakeback signal component generated after the end of the panning operation converges to zero. The time-dependent change of is shown. FIG. 18B shows a change with time of the low-frequency cutoff frequency of the HPF 15 from the start of the panning operation described above until the shakeback signal component of the angular velocity data generated after the end of the panning operation converges to zero. FIG. 18C shows the change with time of the output of the offset changing circuit 106 until the swing-back signal component of the angular velocity data converges to zero after the panning operation is completed. Although not shown in FIG. 18 (c), the output of the offset changing circuit 106 during the panning operation is as shown in FIG. 5 (b) and FIG. 7 (c).

従来のパンニング制御では、図18(a)において角速度データの大きさがIN_THRESH5を超えた時刻T71に、パンニング動作が開始されたと判定される。そして図18(b)に示すように、時刻T71からHPF15の低域カットオフ周波数を高くする。その後、図18(a)において角速度データの符号が反転した時刻T72に、パンニング動作が終了したと判定される。パンニング動作が終了したと判定された後は、HPF15の低域カットオフ周波数を元の値に徐々に戻していく。さらに、パンニング動作の終了後の揺り戻し信号成分を減衰させるため、時刻T63まではHPF15の低域カットオフ周波数を最小値(元の値)まで小さくせずに一定値で保持する。そして、時刻T63を過ぎるとHPF15の低域カットオフ周波数を再度低下させ、時刻T64で最小値(元の値)に戻す。   In the conventional panning control, it is determined that the panning operation is started at time T71 when the magnitude of the angular velocity data exceeds IN_THRESH5 in FIG. Then, as shown in FIG. 18B, the low frequency cutoff frequency of the HPF 15 is increased from time T71. Thereafter, it is determined that the panning operation is completed at time T72 when the sign of the angular velocity data is reversed in FIG. After it is determined that the panning operation has been completed, the low frequency cutoff frequency of the HPF 15 is gradually returned to the original value. Further, in order to attenuate the swing-back signal component after the end of the panning operation, the low frequency cutoff frequency of the HPF 15 is held at a constant value without decreasing it to the minimum value (original value) until time T63. Then, after time T63, the low frequency cutoff frequency of the HPF 15 is lowered again and returned to the minimum value (original value) at time T64.

このようなパンニング制御によれば、パンニング動作の終了後の揺り戻し信号成分をHPF15で減衰することで、揺り戻し信号成分による撮像画像の移動を防止することができる。しかし、上述の通り、HPF15の低域カットオフ周波数を高いままにしておくと、HPF15は補正を行いたいブレ成分も減衰する。その結果、パンニング終了後の時刻T72からT64までは、ブレ残り量が大きくなってしまう。   According to such panning control, it is possible to prevent movement of the captured image due to the swingback signal component by attenuating the swingback signal component after the end of the panning operation by the HPF 15. However, as described above, if the low frequency cutoff frequency of the HPF 15 is kept high, the HPF 15 also attenuates the blur component to be corrected. As a result, the remaining blur amount increases from time T72 to T64 after the end of panning.

これに対し、本実施形態によるパンニング制御回路112は、図18(a)において角速度データの大きさがIN_THRESH5を超えた時刻T71に、パンニング動作の開始を判定する点では従来と同様である。しかし、その後、パンニング制御回路112は、角速度データの符号が反転する時刻T72までの間、図18(a)に示したGYRO_PEAKの算出と及びPAN_TIMEのカウントを一定周期毎に継続する。そして、パンニング制御回路112は、時刻T72においてパンニング動作が終了したと判定すると、時刻T73までの間、(式2)の計算式に従ってOFFSET_CANCELを算出し、オフセット変更回路106から出力させる。   On the other hand, the panning control circuit 112 according to the present embodiment is the same as the conventional one in that the start of the panning operation is determined at time T71 when the magnitude of the angular velocity data exceeds IN_THRESH5 in FIG. However, after that, the panning control circuit 112 continues the calculation of GYRO_PEAK and the count of PAN_TIME shown in FIG. 18A at regular intervals until time T72 when the sign of the angular velocity data is inverted. If the panning control circuit 112 determines that the panning operation has been completed at time T72, it calculates OFFSET_CANCEL according to the calculation formula (Equation 2) and outputs it from the offset change circuit 106 until time T73.

OFFSET_CANCELが加減算器108でHPF15の出力から減算されることで、パンニング動作の終了後に発生する揺り戻し信号成分を効率的に抑制することができ、揺り戻しによる撮像画像の動きを抑制することができる。本実施形態の方法によれば、HPF15の低域カットオフ周波数を変更しないので、補正を行いたいブレ成分をブレ補正データから減衰することなく、パンニング動作の終了後に生じる角速度データの揺り戻し信号成分を除去することができる。   By subtracting OFFSET_CANCEL from the output of the HPF 15 by the adder / subtractor 108, it is possible to efficiently suppress the shakeback signal component generated after the end of the panning operation, and to suppress the movement of the captured image due to the shakeback. . According to the method of the present embodiment, the low frequency cut-off frequency of the HPF 15 is not changed, so that the shake signal component of the angular velocity data generated after the end of the panning operation without attenuating the shake component to be corrected from the shake correction data. Can be removed.

以上のように本実施形態によれば、従来のHPF15の低域カットオフ周波数を変更するパンニング制御で発生していたブレ残り量が大きくなる現象を回避しつつ、パンニング動作の終了後に生じる角速度データの揺り戻し信号成分を効果的に抑制可能である。   As described above, according to the present embodiment, the angular velocity data generated after the end of the panning operation while avoiding the phenomenon that the amount of remaining blur generated by the panning control for changing the low-frequency cutoff frequency of the conventional HPF 15 is increased. Can be effectively suppressed.

なお、本実施形態ではA/D変換器14の出力を用いてパンニング動作の開始と終了の判定や、OFFSET_CANCELの値の算出を行ったが、HPF15の出力データを用いても同様の判定や算出を行うことができる。   In this embodiment, the output of the A / D converter 14 is used to determine the start and end of the panning operation and the OFFSET_CANCEL value is calculated. However, the same determination and calculation are performed using the output data of the HPF 15. It can be performed.

また、OFFSET_CANCELの値を算出する際に、パンニング動作中の角速度データのピークGYRO_PEAKの値を用いたが、これに限定されるものではない。例えば角速度データのピークの代わりに、パンニング動作中の角速度データの平均値を用いても同様の効果を得ることができる。   Moreover, when calculating the value of OFFSET_CANCEL, the value of the peak GYRO_PEAK of the angular velocity data during the panning operation is used, but the present invention is not limited to this. For example, the same effect can be obtained by using the average value of the angular velocity data during the panning operation instead of the peak of the angular velocity data.

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

(その他の実施例)
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
(Other examples)
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

Claims (11)

撮像装置に加わる振れを検出して出力する振れ検出手段と、
前記振れ検出手段の出力に基づいて、前記振れによる画像のブレを補正するブレ補正データを算出する補正データ演算手段と、
前記ブレ補正データの絶対値が予め定めた第1の閾値を超えたことを検出することにより前記撮像装置のパンニング動作を検出し、前記ブレ補正データの絶対値が第2の閾値を下回り、かつ、前記振れ検出手段で検出された振れの大きさが第3の閾値よりも小さいことを検出することにより前記撮像装置のパンニング動作の終了を検出するするパンニング制御手段と、
前記パンニング制御手段によってパンニング動作が検出されたときに、前記振れ検出手段の出力から減算するためのオフセット値を生成する生成手段と、
前記振れ検出手段の出力から前記オフセット値を減算する減算手段と、を有し、
前記生成手段は、前記パンニング制御手段によって前記パンニング動作の終了が検出されたときは、前記オフセット値をゼロにすることを特徴とするブレ補正装置。
Shake detection means for detecting and outputting shake applied to the imaging device;
Correction data calculation means for calculating blur correction data for correcting blurring of the image due to the shake based on the output of the shake detection means;
A panning operation of the imaging device is detected by detecting that an absolute value of the blur correction data exceeds a predetermined first threshold, and the absolute value of the blur correction data is less than a second threshold; Panning control means for detecting the end of the panning operation of the imaging device by detecting that the magnitude of the shake detected by the shake detection means is smaller than a third threshold;
Generating means for generating an offset value to be subtracted from the output of the shake detecting means when a panning operation is detected by the panning control means;
Subtracting means for subtracting the offset value from the output of the shake detection means,
The blur correction apparatus according to claim 1, wherein when the panning control unit detects the end of the panning operation, the generation unit sets the offset value to zero.
前記生成手段は、
前記パンニング制御手段によって前記パンニング動作が検出されており、前記振れ検出手段の出力の大きさが減少している間は、前記オフセット値を変化させないことを特徴とする請求項1に記載のブレ補正装置。
The generating means includes
2. The blur correction according to claim 1, wherein the offset value is not changed while the panning operation is detected by the panning control unit and the magnitude of the output of the shake detection unit is decreasing. apparatus.
前記振れ検出手段は、低周波数成分を遮断する高域通過フィルタを有し、
前記減算手段は、前記高域通過フィルタの出力から前記オフセット値を減算することを特徴とする請求項1又は2に記載のブレ補正装置。
The shake detection means has a high-pass filter that blocks low frequency components,
The blur correction apparatus according to claim 1, wherein the subtracting unit subtracts the offset value from an output of the high-pass filter.
前記撮像装置が備えるズームレンズの焦点距離を検出する焦点距離演算手段をさらに有し、
前記パンニング制御手段は、前記検出された焦点距離が大きいほど前記第1の閾値を小さく設定することを特徴とする請求項1乃至3の何れか1項に記載のブレ補正装置。
Further comprising a focal length calculation means for detecting a focal length of a zoom lens provided in the imaging device,
4. The blur correction apparatus according to claim 1, wherein the panning control unit sets the first threshold value smaller as the detected focal length is larger. 5.
前記撮像装置が備えるズームレンズの焦点距離を検出する焦点距離演算手段をさらに有し、
前記パンニング制御手段は、前記検出された焦点距離が大きいほど前記第2の閾値を大さく設定することを特徴とする請求項1乃至3の何れか1項に記載のブレ補正装置。
Further comprising a focal length calculation means for detecting a focal length of a zoom lens provided in the imaging device,
The blur correction apparatus according to claim 1, wherein the panning control unit sets the second threshold value to be larger as the detected focal length is larger.
撮像装置に加わる振れの大きさを検出して出力する振れ検出手段と、
前記振れ検出手段によって検出された振れの大きさに適用するためのオフセット値を生成する生成手段と、
前記振れ検出手段によって検出された振れの大きさに前記オフセット値を適用するオフセット適用手段と、
前記オフセット適用手段の出力に基づいて、前記振れによる前記撮像装置の撮像光学系の光軸のブレを補正するためのブレ補正データを算出する補正データ演算手段と、
前記撮像装置のパンニング動作を検出するとともに、前記生成手段を制御するパンニング制御手段と、を有し、
前記パンニング制御手段は、
前記ブレ補正データの絶対値が予め定めた第1の閾値を超えたことを検出することにより前記撮像装置のパンニング動作を検出すると、前記撮像装置のパンニング動作の検出が終了するまで、前記振れ検出手段が出力する振れの大きさを削減するオフセット値を生成するよう前記生成手段を制御し、
前記ブレ補正データの絶対値が第2の閾値を下回り、かつ、前記振れ検出手段で検出された振れの大きさが第3の閾値よりも小さいことを検出することにより前記撮像装置のパンニング動作の検出を終了すると、前記オフセット値をゼロにするよう前記生成手段を制御することを特徴とするブレ補正装置。
Shake detection means for detecting and outputting the magnitude of shake applied to the imaging device;
Generating means for generating an offset value to be applied to the magnitude of shake detected by the shake detection means;
Offset applying means for applying the offset value to the magnitude of shake detected by the shake detecting means;
Correction data calculation means for calculating blur correction data for correcting blurring of the optical axis of the imaging optical system of the imaging apparatus due to the shake based on the output of the offset application means;
Panning control means for detecting the panning operation of the imaging device and controlling the generation means,
The panning control means includes
When the panning operation of the imaging device is detected by detecting that the absolute value of the blur correction data exceeds a predetermined first threshold, the shake detection is performed until the detection of the panning operation of the imaging device is completed. Controlling the generating means to generate an offset value that reduces the amount of shake output by the means;
By detecting that the absolute value of the blur correction data is less than a second threshold value and the magnitude of the shake detected by the shake detection unit is smaller than the third threshold value, the panning operation of the imaging apparatus is performed. When the detection is finished, the blur correction apparatus controls the generation unit to set the offset value to zero.
前記パンニング制御手段は、
前記ブレ補正データの絶対値が前記第1の閾値を超えて増加している間は、前記ブレ補正データの絶対値が大きくなるように前記生成手段に前記オフセット値を更新させ、
前記ブレ補正データの絶対値が前記第1の閾値を超えた後、前記第2の閾値より大きな値の範囲で減少している場合は、前記オフセットの値を更新しないように前記生成手段を制御することを特徴とする請求項6に記載のブレ補正装置。
The panning control means includes
While the absolute value of the blur correction data is increasing beyond the first threshold, the generating unit updates the offset value so that the absolute value of the blur correction data is increased,
If the absolute value of the blur correction data exceeds the first threshold and then decreases within a range of values greater than the second threshold, the generation unit is controlled not to update the offset value. The blur correction apparatus according to claim 6, wherein:
前記振れ検出手段は、前記振れの大きさを角速度データとして検出し、前記パンニング制御手段は、前記角速度データの絶対値が前記第3の閾値よりも小さいか判定することを特徴とする請求項6又は7記載のブレ補正装置。   7. The shake detection unit detects the magnitude of the shake as angular velocity data, and the panning control unit determines whether an absolute value of the angular velocity data is smaller than the third threshold value. Or the blur correction apparatus of 7. 前記振れ検出手段は、低周波数成分を遮断する高域通過フィルタを有し、
前記オフセット適用手段は、前記高域通過フィルタの出力に前記オフセット値を適用することを特徴とする請求項8に記載のブレ補正装置。
The shake detection means has a high-pass filter that blocks low frequency components,
The blur correction apparatus according to claim 8, wherein the offset applying unit applies the offset value to an output of the high-pass filter.
前記撮像装置が備えるズームレンズの焦点距離を検出する焦点距離演算手段をさらに有し、
前記パンニング制御手段は、前記検出された焦点距離が大きいほど前記第3の閾値を大きく設定することを特徴とする請求項6乃至9の何れか1項に記載のブレ補正装置。
Further comprising a focal length calculation means for detecting a focal length of a zoom lens provided in the imaging device,
10. The blur correction apparatus according to claim 6, wherein the panning control unit sets the third threshold value to be larger as the detected focal length is larger. 11.
さらに、前記ブレ補正データに応じて、前記撮像装置の有するレンズ群に含まれる補正レンズを駆動するか、前記撮像装置が有する撮像素子から読み出す領域を移動させるか、前記撮像素子を移動させるかのいずれかにより、前記撮像装置が撮像する画像のブレを補正するブレ補正回路を有することを特徴とする請求項1乃至10の何れか1項に記載のブレ補正装置。   Further, according to the blur correction data, whether to drive a correction lens included in a lens group included in the imaging apparatus, move an area read from the imaging element included in the imaging apparatus, or move the imaging element The blur correction apparatus according to claim 1, further comprising a blur correction circuit that corrects blur of an image captured by the imaging apparatus.
JP2009167267A 2009-07-15 2009-07-15 Camera shake-correcting device Withdrawn JP2011022351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009167267A JP2011022351A (en) 2009-07-15 2009-07-15 Camera shake-correcting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009167267A JP2011022351A (en) 2009-07-15 2009-07-15 Camera shake-correcting device

Publications (1)

Publication Number Publication Date
JP2011022351A true JP2011022351A (en) 2011-02-03

Family

ID=43632484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009167267A Withdrawn JP2011022351A (en) 2009-07-15 2009-07-15 Camera shake-correcting device

Country Status (1)

Country Link
JP (1) JP2011022351A (en)

Similar Documents

Publication Publication Date Title
JP5513029B2 (en) Imaging apparatus and control method thereof
JP6257207B2 (en) Image shake correction apparatus and control method therefor, lens barrel, and imaging apparatus
JP6700826B2 (en) Image blur correction apparatus, control method thereof, program, and storage medium
JP2006101485A (en) Camera-shake correcting device, and imaging apparatus
JP6315997B2 (en) Image blur correction apparatus, control method therefor, optical apparatus, and imaging apparatus
JP6543946B2 (en) Shake correction device, camera and electronic device
EP1711005A2 (en) Image blurring correcting apparatus
JP6659086B2 (en) Image blur correction device, optical device, imaging device, and control method
JP5462541B2 (en) Imaging apparatus and control method thereof
JP2012168420A (en) Imaging apparatus and method for controlling the same
JP5836110B2 (en) Imaging apparatus and control method thereof
CN108737698B (en) Image stabilization apparatus and method, image pickup apparatus, image pickup system, and storage medium
JP2011022353A (en) Camera shake-correcting device
JP5448800B2 (en) Imaging apparatus and control means thereof
CN102346346A (en) Fuzzy correction equipment and image pickup equipment
JP2011022354A (en) Camera shake-correcting device
JP2006332809A (en) Imaging apparatus
JP2011022351A (en) Camera shake-correcting device
JP6165052B2 (en) Vibration correction apparatus, imaging apparatus having the same, vibration correction method, and program
JP6611585B2 (en) Zoom control device, zoom control method, and imaging device
JP6178573B2 (en) Image blur correction apparatus, control method therefor, program, and storage medium
JP2012163852A (en) Shake correction device and optical apparatus
JP5744165B2 (en) Imaging apparatus, blur correction apparatus, and control method thereof
JP2006074402A (en) Imaging apparatus
JP7398907B2 (en) Image stabilization system and method, imaging device and imaging system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20121002