JP2015126436A - Image processor, image processing method and program - Google Patents

Image processor, image processing method and program Download PDF

Info

Publication number
JP2015126436A
JP2015126436A JP2013270324A JP2013270324A JP2015126436A JP 2015126436 A JP2015126436 A JP 2015126436A JP 2013270324 A JP2013270324 A JP 2013270324A JP 2013270324 A JP2013270324 A JP 2013270324A JP 2015126436 A JP2015126436 A JP 2015126436A
Authority
JP
Japan
Prior art keywords
image
time
correction
amount
filter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2013270324A
Other languages
Japanese (ja)
Inventor
大資 田原
Daishi Tahara
大資 田原
倉田 徹
Toru Kurata
徹 倉田
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP2013270324A priority Critical patent/JP2015126436A/en
Publication of JP2015126436A publication Critical patent/JP2015126436A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To satisfactorily reduce uncomfortable fluctuations of images due to camera shakes.SOLUTION: An image fluctuation amount of an input image is acquired at every points of time. An image fluctuation amount at every points of time, which is obtained by accumulating image fluctuation amount at every points of time, is subjected to a stabilization filtering processing to acquire a correction amount at every points of time on the basis of the accumulated image fluctuation amount before and after the stabilization filtering processing. The image fluctuation at every points of time of the input image is corrected by using the correction amount at every points of time to output the corrected image. A filter parameter of a stabilization filter at every points of time is set according to the reliability of a piece of information relevant to the state a camera for obtaining an input image and/or the fluctuation amount of the image acquired at every points of time.

Description

本技術は、画像処理装置、画像処理方法およびプログラムに関し、手ブレなどによる画像変動量を補正する画像処理装置、画像処理方法およびプログラムに関する。   The present technology relates to an image processing apparatus, an image processing method, and a program, and more particularly to an image processing apparatus, an image processing method, and a program that correct an image fluctuation amount due to camera shake or the like.

手ブレに代表されるようなカメラに与えられた振動やカメラの不自然な移動は、動画に不快な画像の揺れを発生させる。この不快な画像の揺れを低減する技術として、従来、光学防振方式や電子防振方式などが提案、採用されている。例えば、電子防振方式では、撮像・現像された画像の一部を切り出し、変形することで、不快な画像の揺れを低減する。   Vibration or unnatural movement of the camera as represented by camera shake causes unpleasant image shaking in the moving image. Conventionally, as a technique for reducing this unpleasant image shake, an optical image stabilization method, an electronic image stabilization method, and the like have been proposed and adopted. For example, in the electronic image stabilization method, an unpleasant image shake is reduced by cutting out and deforming a part of the captured and developed image.

画像間の変動量には、手ブレ等のユーザの意図しないものに加えて、パンニングやチルティングといったユーザの意図する動きも含まれる。そのため、望ましい補正を行うためには、変動量に処理を行って補正量を算出する必要がある。従来、画像間の変動量に基づいて補正を行う技術が提案されている(例えば、特許文献1、特許文献2参照)。   The amount of variation between images includes movements intended by the user, such as panning and tilting, in addition to those not intended by the user, such as camera shake. Therefore, in order to perform a desired correction, it is necessary to calculate the correction amount by processing the variation amount. Conventionally, a technique for performing correction based on the amount of change between images has been proposed (see, for example, Patent Document 1 and Patent Document 2).

特開2011-029735号公報JP 2011-029735 A 特表2008-541662号公報Special table 2008-541626

本技術の目的は、手ブレなどによる不快な画像の揺れを良好に低減することにある。   An object of the present technology is to satisfactorily reduce unpleasant image shaking due to camera shake or the like.

本技術の概念は、
入力画像の各時刻の画像変動量を取得する画像変動量取得部と、
上記取得された各時刻の画像変動量を積算して得られる各時刻の累積画像変動量に安定化フィルタ処理を施し、該安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量を取得する補正量取得部と、
上記取得された各時刻の補正量を用いて上記入力画像の各時刻の画像変動を補正して補正画像を出力する画像補正部を備え、
上記補正量取得部は、
上記入力画像を得るカメラの撮影情報に応じて、上記各時刻の安定化フィルタのフィルタパラメータを設定する
画像処理装置にある。
The concept of this technology is
An image fluctuation amount acquisition unit for acquiring an image fluctuation amount at each time of the input image;
Stabilization filter processing is performed on the accumulated image fluctuation amount at each time obtained by integrating the acquired image fluctuation amounts at each time, and each time based on the accumulated image fluctuation amount at each time before and after the stabilization filter processing. A correction amount acquisition unit for acquiring a correction amount of time;
An image correction unit that corrects image fluctuation at each time of the input image using the acquired correction amount at each time and outputs a corrected image,
The correction amount acquisition unit
The image processing apparatus sets a filter parameter of the stabilization filter at each time according to shooting information of the camera that obtains the input image.

本技術において、画像変動量取得部により、入力画像の各時刻の画像変動量が取得される。ここで、各時刻の画像変動量は、隣接する画像との間の変動量、つまり画像間の変動量である。画像間の変動量は、例えば絵柄のマッチングにより、求められる。   In the present technology, the image fluctuation amount at each time of the input image is acquired by the image fluctuation amount acquisition unit. Here, the image fluctuation amount at each time is a fluctuation amount between adjacent images, that is, a fluctuation amount between images. The amount of change between images is obtained by, for example, pattern matching.

補正量取得部により、取得された各時刻の画像変動量が累積されて各時刻の累積画像変動量が得られ、この各時刻の累積画像変動量に安定化フィルタの処理が施される。また、この補正量取得部により、この安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量が取得される。そして、画像補正部により、取得された各時刻の補正量が用いられて入力画像の各時刻の画像変動が補正される。   The correction amount acquisition unit accumulates the acquired image fluctuation amount at each time to obtain the accumulated image fluctuation amount at each time, and the accumulated filter fluctuation amount at each time is subjected to a stabilization filter process. Further, the correction amount acquisition unit acquires the correction amount at each time based on the accumulated image fluctuation amount at each time before and after the stabilization filter processing. Then, the image correction unit corrects the image fluctuation at each time of the input image using the acquired correction amount at each time.

補正量取得部では、カメラの撮影情報に応じて、各時刻の安定化フィルタのフィルタパラメータが設定される。これにより、変動量の推定結果が低信頼で誤りやすいときに、補正を弱めることができ、誤検出による誤補正を防ぐことが可能となる。例えば、カメラの撮影情報は、入力画像を得るカメラの状態情報および/または取得された各時刻の画像変動量の信頼度である。   In the correction amount acquisition unit, the filter parameter of the stabilization filter at each time is set according to the shooting information of the camera. Thereby, when the estimation result of the fluctuation amount is low in reliability and easily erroneous, the correction can be weakened, and erroneous correction due to erroneous detection can be prevented. For example, the shooting information of the camera is the state information of the camera that obtains the input image and / or the reliability of the acquired image fluctuation amount at each time.

なお、本技術において、例えば、補正量取得部は、入力画像を得るカメラの状態情報から変調値を求め、所定のフィルタパラメータをこの変調値で調整し、あるいは所定のフィルタパラメータを信頼度で調整して、安定化フィルタのフィルタパラメータを設定する、ようにされてもよい。この場合、例えば、カメラの状態情報には、カメラが持つジャイロセンサの出力信号が含まれ、フィルタパラメータはタップ数であり、補正量取得部は、ジャイロセンサの出力信号に基づき、カメラの動きが小さい程変調値を小さく求める、ようにされてもよい。   In the present technology, for example, the correction amount acquisition unit obtains a modulation value from the state information of the camera that obtains the input image, and adjusts the predetermined filter parameter with the modulation value, or adjusts the predetermined filter parameter with reliability. Then, the filter parameter of the stabilization filter may be set. In this case, for example, the camera status information includes the output signal of the gyro sensor of the camera, the filter parameter is the number of taps, and the correction amount acquisition unit determines whether the camera moves based on the output signal of the gyro sensor. The smaller the modulation value, the smaller the modulation value may be obtained.

また、本技術において、例えば、補正量取得部は、入力画像を得るカメラの状態情報から変調値を求め、所定の補正マージンをこの変調値で調整し、あるいは所定の補正マージンを信頼度で調整し、補正量がこの変調された補正マージンを超えないように安定化フィルタのフィルタパラメータを設定する、ようにされてもよい。これにより、補正量が補正マージンに収まることを保証でき、破綻を防ぐことが可能となる。この場合、例えば、カメラの状態情報には、カメラのシャッタースピード情報が含まれ、フィルタパラメータはタップ数であり、補正量取得部は、シャッタースピードが遅くなる程変調値を小さく求める、ようにされてもよい。   In the present technology, for example, the correction amount acquisition unit obtains a modulation value from the state information of the camera that obtains the input image, and adjusts the predetermined correction margin with the modulation value, or adjusts the predetermined correction margin with reliability. Then, the filter parameter of the stabilization filter may be set so that the correction amount does not exceed the modulated correction margin. As a result, it is possible to ensure that the correction amount falls within the correction margin, and it is possible to prevent failure. In this case, for example, the camera state information includes camera shutter speed information, the filter parameter is the number of taps, and the correction amount acquisition unit obtains a smaller modulation value as the shutter speed becomes slower. May be.

また、本技術において、例えば、フィルタパラメータはタップ数であり、補正量取得部は、入力画像を得るカメラの状態情報から、安定化フィルタのタップ数を変調する第1の変調値を求めると共に、補正マージンを変調する第2の変調値を求め、所定のタップ数を第1の変調値で変調して第1のタップ数を求め、所定のマージンを第2の変調値で変調し、補正量がこの変調された補正マージンを超えない最大のタップ数を第2のタップ数として求め、第1のタップ数と第2のタップ数のうち小さい方を安定化フィルタのタップ数に設定する、ようにされてもよい。   In the present technology, for example, the filter parameter is the number of taps, and the correction amount acquisition unit obtains a first modulation value that modulates the number of taps of the stabilization filter from the state information of the camera that obtains the input image. A second modulation value for modulating the correction margin is obtained, the predetermined number of taps is modulated with the first modulation value to obtain the first number of taps, the predetermined margin is modulated with the second modulation value, and the correction amount Finds the maximum number of taps that does not exceed this modulated correction margin as the second tap number, and sets the smaller of the first tap number and the second tap number as the tap number of the stabilization filter. May be.

また、本技術において、例えば、補正量取得部は、設定される各時刻の安定化フィルタのフィルタパラメータに平滑化処理を施し、各時刻の累積画像変動量に、この平滑化処理が施されたフィルタパラメータによる安定化フィルタ処理を施す、ようにされてもよい。この場合、例えば、フィルタパラメータはタップ数であり、フィルタパラメータへの平滑化処理は、タップ数の小さい側で包絡線をとる処理である、ようにされてもよい。これにより安定化フィルタ自体の時間変化が小さくなり、違和感のない補正効果の調整が可能となる。   In the present technology, for example, the correction amount acquisition unit performs a smoothing process on the filter parameters of the stabilization filter set at each time, and the smoothing process is performed on the accumulated image fluctuation amount at each time. A stabilization filtering process may be performed based on the filter parameters. In this case, for example, the filter parameter may be the number of taps, and the smoothing process to the filter parameter may be a process of taking an envelope on the side with the smaller number of taps. As a result, the time change of the stabilization filter itself is reduced, and it is possible to adjust the correction effect without feeling uncomfortable.

また、本技術において、例えば、補正量取得部は、安定化フィルタ処理が施された後の各時刻の累積画像変動量に平滑化処理を施し、この平滑化が施された後の各時刻の累積画像変動量と安定化フィルタ処理が施される前の各時刻の累積画像変動量に基づいて各時刻の補正量を取得する、ようにされてもよい。この場合、例えば、安定化フィルタ処理が施された後の各時刻の累積画像変動量への平滑化処理は、安定化フィルタ処理が施される前後の各時刻の累積画像変動量の間に入るように包絡線をとる処理である、ようにされてもよい。これにより、フィルタパラメータの変動が与える累積画像変動量の細かな変動を取り除くことができ、各時刻の補正量としてより適切な補正量を得ることが可能となる。   Further, in the present technology, for example, the correction amount acquisition unit performs a smoothing process on the accumulated image fluctuation amount at each time after the stabilization filter process is performed, and at each time after the smoothing is performed. The correction amount at each time may be acquired based on the accumulated image variation amount and the accumulated image variation amount at each time before the stabilization filter processing is performed. In this case, for example, the smoothing process to the accumulated image fluctuation amount at each time after the stabilization filter process is performed falls between the accumulated image fluctuation amounts at each time before and after the stabilization filter process is performed. In this way, the process of taking an envelope may be performed. As a result, it is possible to remove fine fluctuations in the accumulated image fluctuation amount given by fluctuations in the filter parameters, and it is possible to obtain a more appropriate correction amount as the correction amount at each time.

本技術によれば、手ブレなどによる不快な画像の揺れを良好に低減できる。なお、ここに記載された効果に必ずしも限定されるものではなく、本開示中に記載されたいずれかの効果であってもよい。   According to the present technology, it is possible to satisfactorily reduce unpleasant image shake due to camera shake or the like. Note that the effect described here is not necessarily limited, and any effect described in the present disclosure may be used.

第1の実施の形態としての画像処理装置の構成例を示すブロック図である。1 is a block diagram illustrating a configuration example of an image processing apparatus as a first embodiment. 電子防振方式によるが画像変動の補正原理を示す模式図である。It is a schematic diagram which shows the correction principle of an image variation according to an electronic image stabilization method. 画像変動量取得部で取得される画像間の変動量を説明するための図である。It is a figure for demonstrating the variation | change_quantity between the images acquired by the image variation | change_quantity acquisition part. 各時刻における画像変動量、カメラパス(累積画像変動量)、安定化カメラパスの一例を示す図である。It is a figure which shows an example of the image variation | change_quantity in each time, a camera path (cumulative image variation | change_quantity), and a stabilization camera path | pass. 電子防振方式による画像変動の補正を説明するための図である。It is a figure for demonstrating correction | amendment of the image variation by an electronic image stabilization system. 第2の実施の形態としての画像処理装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the image processing apparatus as 2nd Embodiment. 第3の実施の形態としての画像処理装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the image processing apparatus as 3rd Embodiment. 第4の実施の形態としての画像処理装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the image processing apparatus as 4th Embodiment. 第5の実施の形態としての画像処理装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the image processing apparatus as 5th Embodiment. 第6の実施の形態としての画像処理装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the image processing apparatus as 6th Embodiment. カメラ状態解析部の解析処理を概略的に示す図である。It is a figure which shows roughly the analysis process of a camera state analysis part. 変調値の平滑化処理の一例を示す図である。It is a figure which shows an example of the smoothing process of a modulation value. 所定時刻におけるフィルタパラメータ(タップ数)の生成処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the production | generation process procedure of the filter parameter (tap number) in predetermined time. 予め設定される補正マージンと変調値を反映して狭めた補正マージンとの関係を示す図である。It is a figure which shows the relationship between the correction margin set beforehand and the correction margin narrowed reflecting the modulation value. 予め設定するタップ数と、変調値、解析信頼度を反映して減らしたタップ数と、変調値、解析信頼度を反映して狭めた補正マージンに収まるタップ数との関係を示す図である。It is a figure which shows the relationship between the tap number set beforehand, the tap number reduced reflecting the modulation value and analysis reliability, and the tap number which fits in the correction margin narrowed reflecting the modulation value and analysis reliability. 所定時刻におけるフィルタパラメータ(タップ数)の生成処理手順の他の一例を示すフローチャートである。It is a flowchart which shows another example of the production | generation procedure of the filter parameter (tap number) in predetermined time. 所定時刻におけるフィルタパラメータ(タップ数)の生成処理手順の他の一例を示すフローチャートである。It is a flowchart which shows another example of the production | generation procedure of the filter parameter (tap number) in predetermined time. タップ数の平滑化処理の一例を示す図である。It is a figure which shows an example of the smoothing process of a tap number. フィルタ後累積画像変動量の平滑化処理の一例を示す図である。It is a figure which shows an example of the smoothing process of the accumulated image fluctuation amount after a filter. 第6の実施の形態としての画像処理装置における処理を概略的に示すフローチャートである。It is a flowchart which shows roughly the process in the image processing apparatus as 6th Embodiment. ソフトウェアで処理を行うコンピュータ装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the computer apparatus which processes by software.

以下、発明を実施するための形態(以下、「実施の形態」とする)について説明する。なお、説明は以下の順序で行う。
1.第1の実施の形態
2.第2の実施の形態
3.第3の実施の形態
4.第4の実施の形態
5.第5の実施の形態
6.第6の実施の形態
7.変形例
Hereinafter, modes for carrying out the invention (hereinafter referred to as “embodiments”) will be described. The description will be given in the following order.
1. 1. First embodiment 2. Second embodiment 3. Third embodiment 4. Fourth embodiment 5. Fifth embodiment 6. Sixth embodiment Modified example

<1.第1の実施の形態>
[画像処理装置の構成]
図1は、第1の実施の形態としての画像処理装置100の構成例を示している。この画像処理装置100は、各時刻(各フレーム)における画像変動の補正を電子防振方式で行う。図2は、電子防振方式によるが画像変動の補正原理を示す模式図を示している。この電子防振方式では、周知のように、撮像・現像された画像から、画像変動量に応じて切り出し位置が各時刻で移動されて、一部が切り出され、拡大などの変形が施されることで、画像変動の補正が行われる。
<1. First Embodiment>
[Configuration of image processing apparatus]
FIG. 1 shows a configuration example of an image processing apparatus 100 according to the first embodiment. The image processing apparatus 100 corrects image fluctuations at each time (each frame) using an electronic image stabilization method. FIG. 2 is a schematic diagram illustrating the principle of correcting image fluctuations according to the electronic image stabilization method. In this electronic image stabilization method, as is well known, a cut-out position is moved at each time from an imaged / developed image according to the amount of image fluctuation, a part is cut out, and deformation such as enlargement is performed. As a result, image fluctuation correction is performed.

この画像処理装置100は、画像変動量取得部101と、補正量取得部102と、画像補正部103と、カメラ状態解析部108を有している。画像変動量取得部101は、入力画像の各時刻(各フレーム)の画像変動量を取得する。入力画像は、カメラで撮像、現像されて得られた画像である。ここで、現像とは、撮像画像に対する種々の処理(ゲイン調整処理、特殊モード処理など)を意味する。   The image processing apparatus 100 includes an image fluctuation amount acquisition unit 101, a correction amount acquisition unit 102, an image correction unit 103, and a camera state analysis unit 108. The image fluctuation amount acquisition unit 101 acquires the image fluctuation amount at each time (each frame) of the input image. The input image is an image obtained by capturing and developing with a camera. Here, the development means various processes (gain adjustment process, special mode process, etc.) on the captured image.

画像変動量取得部101は、各時刻の画像変動量として、図3に示すように、隣接する画像との間の変動量、つまり画像間の変動量を取得する。この場合、画像変動量取得部101は、例えば絵柄のマッチングとることで、変動量を取得する。例えば、画像変動量取得部101は、2画像間の絵柄のフィッティングを行うための射影行列を計算し、この射影行列を解析して画像変動量を取得する。   As shown in FIG. 3, the image fluctuation amount acquisition unit 101 acquires a fluctuation amount between adjacent images, that is, a fluctuation amount between images, as the image fluctuation amount at each time. In this case, the image fluctuation amount acquisition unit 101 acquires the fluctuation amount by, for example, pattern matching. For example, the image variation amount acquisition unit 101 calculates a projection matrix for fitting a pattern between two images, and analyzes the projection matrix to acquire an image variation amount.

補正量取得部102は、画像変動量取得部101で取得された各時刻の画像変動量を積算して各時刻の累積画像変動量を得る。また、補正量取得部102は、この各時刻の累積画像変動量に安定化フィルタ処理を施す。そして、補正量取得部102は、安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて、各時刻における差分を補正量として取得する。   The correction amount acquisition unit 102 integrates the image fluctuation amount at each time acquired by the image fluctuation amount acquisition unit 101 to obtain the accumulated image fluctuation amount at each time. Further, the correction amount acquisition unit 102 performs a stabilization filter process on the accumulated image fluctuation amount at each time. Then, the correction amount acquisition unit 102 acquires the difference at each time as the correction amount based on the accumulated image fluctuation amount at each time before and after the stabilization filter process.

図4(a)は各時刻の画像変動量の一例を示している。なお、この画像変動量は、上述したように、画像間の絵柄の移動量を指す。この画像変動量の要因は、カメラの移動に伴うフレーム枠の動きや、撮影時にカメラに与えた手ブレや歩きに伴う振動、カメラの光学系自体の振動などが挙げられる。各時刻の画像変動量は、画像間の相対的な値として、時系列に並ぶ。   FIG. 4A shows an example of the image fluctuation amount at each time. Note that the image fluctuation amount indicates the amount of movement of the pattern between images as described above. The factors of the image fluctuation amount include the movement of the frame frame accompanying the movement of the camera, the vibration caused by the camera shake or walking given to the camera during photographing, the vibration of the optical system of the camera itself, and the like. The image fluctuation amount at each time is arranged in time series as a relative value between images.

図4(b)は、各時刻の累積画像変動量の一例を示している。この累積画像変動量は「カメラパス」とも称する。この累積画像変動量は累積開始時刻から現在時刻までにどれだけカメラが移動したかあるいはブレたのかを示す量であり、時系列に並ぶ。   FIG. 4B shows an example of the cumulative image fluctuation amount at each time. This accumulated image fluctuation amount is also referred to as a “camera pass”. This cumulative image fluctuation amount is an amount indicating how much the camera has moved or shaken from the cumulative start time to the current time, and is arranged in time series.

図4(c)の実線Pは、各時刻の累積画像変動量に安定化フィルタ処理を施して得られた安定化カメラパス(安定化累積画像変動量)を示している。ここで、安定化とは、「不自然な手ブレやカメラの揺れが軽減された滑らかな動画」を得るために、カメラパス(累積画像変動量)の不快な振動(例えば、高周波振動)を除去する処理を意味する。また、この安定化フィルタ処理で使用するフィルタのことを安定化フィルタと称する。そして、カメラパスに安定化フィルタによるフィルタ処理を施した結果を安定化カメラパスと称する。   A solid line P in FIG. 4C indicates a stabilized camera path (stabilized cumulative image fluctuation amount) obtained by performing the stabilization filter process on the cumulative image fluctuation amount at each time. Here, stabilization refers to unpleasant vibration (for example, high-frequency vibration) of the camera path (cumulative image fluctuation amount) in order to obtain “smooth video with reduced unnatural camera shake and camera shake”. Means the process to be removed. A filter used in the stabilization filter process is referred to as a stabilization filter. A result obtained by performing the filtering process using the stabilization filter on the camera path is referred to as a stabilization camera path.

なお、本明細書では、説明の簡単のために、画像変動量の成分として主に、水平、垂直の並進成分を対象とした補正処理として記載するが、画像変動量の成分は並進に限定されず、ロール回転、ピッチ回転、ヨー回転、せん断変形、拡縮変形など、異なる画像変動量に対して、同様の処理が可能である。   In this specification, for the sake of simplicity of explanation, correction processing is mainly described as horizontal and vertical translation components as components of image fluctuation amounts, but the components of image fluctuation amounts are limited to translation. The same processing can be performed for different image fluctuation amounts such as roll rotation, pitch rotation, yaw rotation, shear deformation, and expansion / contraction deformation.

また、説明の簡単のために、主に、安定化フィルタが、フィルタパラメータとして「タップ数」を有する単純な「平均値フィルタ」(与えられたタップ数分の数値の平均値を出力とするフィルタ)であるとする。しかし、安定化フィルタは、この平均値フィルタに限定されるものではなく、適当な特性、パラメータを有するその他のフィルタを採用することも可能である。   For the sake of simplicity, the stabilization filter mainly includes a simple “average value filter” having “number of taps” as a filter parameter (a filter that outputs an average value of numerical values for a given number of taps). ). However, the stabilization filter is not limited to this average value filter, and other filters having appropriate characteristics and parameters may be employed.

画像補正部103は、補正量取得部102で取得された各時刻の補正量を用いて、入力画像の各時刻の画像変動を補正して補正画像を出力する。この場合、画像補正部103は、入力画像の各時刻の画像から、切り出し位置を補正量に基づいて各時刻で移動し、一部を切り出し、拡大などの変形を施して画像変動の補正を行う(図2参照)。   The image correction unit 103 uses the correction amount at each time acquired by the correction amount acquisition unit 102 to correct the image variation at each time of the input image and outputs a corrected image. In this case, the image correction unit 103 corrects the image fluctuation by moving the cutout position at each time based on the correction amount from the image at each time of the input image, cutting out a part, and performing deformation such as enlargement. (See FIG. 2).

カメラ状態解析部108は、カメラの所定数の状態情報を、「タップ数に対する変調値」および「補正マージンに対する変調値」の2種類の変調値に変換して出力する。これらの変調値は、0.0から1.0までの重みの形で表現される。カメラの状態情報には、カメラが自律して設定する設定情報、ユーザが設定する設定情報、さらにはカメラに積んでいる各種センサーの出力情報などが含まれる。具体的には、シャッタースピード、ゲイン、フレームレートの設定情報、ジャイロセンサの出力信号などである。   The camera state analysis unit 108 converts a predetermined number of state information of the camera into two types of modulation values “modulation value for the number of taps” and “modulation value for the correction margin” and outputs the result. These modulation values are expressed in the form of weights from 0.0 to 1.0. The camera status information includes setting information set by the camera autonomously, setting information set by the user, and output information of various sensors loaded on the camera. Specifically, the shutter speed, gain, frame rate setting information, gyro sensor output signal, and the like.

「タップ数に対する変調値」は、安定化効果の周波数特性をカメラの状態に応じて調整する効果がある。例えば、ジャイロセンサの出力信号から揺れの大きさを解析することで、撮影者の撮り方の状況(走っているのか、立ち止まっているのか)を判断し、変調値が決定される。例えば、動きの小さな立ち止まっているときは、強く安定化した方が望ましい画像になるので1.0に近い値とされ、走っているような状況では、大きな揺れに対する過補正を抑制するために小さな値とされる。   The “modulation value with respect to the number of taps” has an effect of adjusting the frequency characteristic of the stabilization effect according to the state of the camera. For example, by analyzing the magnitude of the shake from the output signal of the gyro sensor, the situation of the photographer's way of shooting (running or stopping) is determined, and the modulation value is determined. For example, when the motion is at a standstill with a small amount of motion, it is desirable that the image is strongly stabilized, so the value is close to 1.0. In situations where the vehicle is running, a small value is used to suppress overcorrection for large shaking. Value.

「補正マージンに対する変調値」は、各時刻の補正量を制限する効果がある。例えば、シャッタースピードが遅くなってくると、面内の露光ブレが目立ちやすくなる。そして、この露光ブレは大きな補正量が発生すると目立ちやすくなる。そのため、シャッタースピードが遅いときは変調値が小さな値とされ、補正量に制限がかけられる。   The “modulation value for the correction margin” has an effect of limiting the correction amount at each time. For example, when the shutter speed becomes slow, the in-plane exposure blur becomes conspicuous. This exposure blur becomes conspicuous when a large correction amount occurs. Therefore, when the shutter speed is slow, the modulation value is set to a small value, and the correction amount is limited.

なお、上述したように、電子防振方式による画像変動の補正では、図5(b)に破線枠で示すように、補正前の画像(図5(a)参照)の一部を切り出し、拡大、変形して補正した画像(補正後の画像)を生成する。これは、補正前の画像に移っていない領域が参照されないようにするためである。この切り出し領域の許容範囲を「補正マージン」と称する。   As described above, in the correction of the image fluctuation by the electronic image stabilization method, as shown by a broken line frame in FIG. 5B, a part of the image before correction (see FIG. 5A) is cut out and enlarged. Then, a deformed and corrected image (corrected image) is generated. This is to prevent reference to a region that has not moved to the image before correction. This allowable range of the cutout area is referred to as “correction margin”.

補正量取得部102は、この変調値に基づいて、安定化フィルタのタップ数を設定する。すなわち、補正量取得部102は、所定のタップ数(固定のタップ数)を「タップ数に対する変調値」で変調して第1のタップ数を求める。また、補正量取得部102は、所定の補正マージン(固定の補正マージン)を「補正マージンに対する変調値」で変調し、補正量がこの変調された補正マージンを超えない最大のタップ数を第2のタップ数とする。そして、補正量取得部102は、第1のタップ数と第2のタップ数のうち小さい方を安定化フィルタのタップ数に設定する。   The correction amount acquisition unit 102 sets the number of taps of the stabilization filter based on the modulation value. That is, the correction amount acquisition unit 102 obtains a first tap number by modulating a predetermined tap number (fixed tap number) with “a modulation value for the tap number”. Further, the correction amount acquisition unit 102 modulates a predetermined correction margin (fixed correction margin) with the “modulation value with respect to the correction margin”, and sets the maximum number of taps whose correction amount does not exceed the modulated correction margin to the second value. The number of taps. Then, the correction amount acquisition unit 102 sets the smaller one of the first tap number and the second tap number as the tap number of the stabilization filter.

図1に示す画像処理装置100の動作を説明する。カメラで撮像・現像されて得られた入力画像は、画像変動量取得部101に供給される。この画像変動量取得部101では、入力画像の各時刻(各フレーム)の画像変動量が取得される(図4(a)参照)。この画像変動量は、補正量取得部102に供給される。   The operation of the image processing apparatus 100 shown in FIG. 1 will be described. An input image obtained by being imaged and developed by the camera is supplied to the image fluctuation amount acquisition unit 101. The image fluctuation amount acquisition unit 101 acquires the image fluctuation amount at each time (each frame) of the input image (see FIG. 4A). This image fluctuation amount is supplied to the correction amount acquisition unit 102.

補正量取得部102には、画像変動量取得部101で取得された入力画像の各時刻(各フレーム)の画像変動量が供給される。補正量取得部102では、各時刻の画像変動量が積算されて各時刻の累積画像変動量(カメラパス)が得られる(図4(b)参照)。そして、補正量取得部102では、この各時刻の累積画像変動量に安定化フィルタ処理が施されて、各時刻の安定化された累積画像変動量(安定化カメラパス)が得られる(図4(c)参照)。   The correction amount acquisition unit 102 is supplied with the image variation amount at each time (each frame) of the input image acquired by the image variation amount acquisition unit 101. In the correction amount acquisition unit 102, the image variation amount at each time is integrated to obtain the accumulated image variation amount (camera path) at each time (see FIG. 4B). Then, the correction amount acquisition unit 102 performs a stabilization filter process on the accumulated image fluctuation amount at each time to obtain a stabilized accumulated image fluctuation amount (stabilized camera path) at each time (FIG. 4). (See (c)).

補正量取得部102では、安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて、各時刻における差分が補正量として取得される。この場合、補正量取得部102には、カメラ状態解析部108から、カメラの状態情報に基づいて得られた「タップ数に対する変調値」および「補正マージンに対する変調値」の2つの変調値が供給される。そして、補正量取得部102では、これらの変調値に基づいて、安定化フィルタのタップ数が調整されると共に、補正マージンが調整され、その結果に基づいて安定化フィルタのタップ数が設定される。これにより、安定化効果の周波数特性がカメラの状態に応じて調整され、また、各時刻の補正量が制限される。   In the correction amount acquisition unit 102, the difference at each time is acquired as a correction amount based on the accumulated image fluctuation amount at each time before and after the stabilization filter processing. In this case, the correction amount acquisition unit 102 is supplied with two modulation values “a modulation value for the number of taps” and “a modulation value for the correction margin” obtained from the camera state analysis unit 108 based on the camera state information. Is done. Then, the correction amount acquisition unit 102 adjusts the tap number of the stabilization filter, adjusts the correction margin based on these modulation values, and sets the tap number of the stabilization filter based on the result. . Thereby, the frequency characteristic of the stabilization effect is adjusted according to the state of the camera, and the correction amount at each time is limited.

補正量取得部102で取得される各時刻の補正量は、画像補正部103に供給される。画像補正部103では、各時刻の補正量を用いて、入力画像の各時刻の画像変動が補正されて補正画像が出力される。この場合、画像補正部103では、入力画像の各時刻の画像から、切り出し位置が補正量に基づいて各時刻で移動されて、一部が切り出され、拡大などの変形が施されて画像変動の補正が行われる。   The correction amount at each time acquired by the correction amount acquisition unit 102 is supplied to the image correction unit 103. The image correction unit 103 corrects the image variation at each time of the input image using the correction amount at each time, and outputs a corrected image. In this case, in the image correction unit 103, the cutout position is moved at each time based on the correction amount from the image at each time of the input image, a part of the cutout position is cut out, and a deformation such as enlargement is applied to change the image fluctuation. Correction is performed.

以上説明したように、図1に示す画像処理装置100においては、入力画像を得るカメラの状態に応じて各時刻の安定化フィルタのタップ数(フィルタパラメータ)が設定されるものである。そのため、画像変動量取得部101で取得される画像変動量の推定結果が低信頼で誤りやすいときに、補正量を弱めることができ、誤検出による誤補正を防ぐことが可能となる。   As described above, in the image processing apparatus 100 shown in FIG. 1, the number of stabilization filter taps (filter parameters) at each time is set according to the state of the camera that obtains the input image. Therefore, when the estimation result of the image fluctuation amount acquired by the image fluctuation amount acquisition unit 101 is low in reliability and easily erroneous, the correction amount can be weakened, and erroneous correction due to erroneous detection can be prevented.

また、図1に示す画像処理装置100においては、所定のタップ数(固定のタップ数)を「タップ数に対する変調値」で変調して得られる第1のタップ数と、所定の補正マージン(固定の補正マージン)を「補正マージンに対する変調値」で変調して得られる補正マージンを超えない最大のタップ数である第2のタップ数のうち小さい方を安定化フィルタのタップ数に設定するものである。そのため、補正量が変調後の補正マージンに収まることを保証でき、破綻の発生を防ぐことが可能となる。また、この場合、カットオフ周波数を最も低周波に寄せることができる。   Further, in the image processing apparatus 100 shown in FIG. 1, a first tap number obtained by modulating a predetermined tap number (fixed tap number) with a “modulation value for the tap number” and a predetermined correction margin (fixed). The smaller one of the second tap numbers, which is the maximum number of taps not exceeding the correction margin obtained by modulating the “correction margin for the correction margin” with the “modulation value for the correction margin”, is set as the tap number of the stabilization filter. is there. Therefore, it is possible to ensure that the correction amount is within the correction margin after modulation, and it is possible to prevent the occurrence of failure. In this case, the cut-off frequency can be brought to the lowest frequency.

<2.第2の実施の形態>
[画像処理装置の構成]
図6は、第2の実施の形態としての画像処理装置100Aの構成例を示している。この画像処理装置100Aは、図1に示す画像処理装置100と同様に、各時刻(各フレーム)における画像変動の補正を電子防振方式で行う。この図6において、図1と対応する部分には同一符号を付し、適宜、その詳細説明は省略する。
<2. Second Embodiment>
[Configuration of image processing apparatus]
FIG. 6 shows an example of the configuration of an image processing apparatus 100A as the second embodiment. Similar to the image processing apparatus 100 shown in FIG. 1, the image processing apparatus 100A corrects image fluctuations at each time (each frame) by using an electronic image stabilization method. 6, parts corresponding to those in FIG. 1 are denoted by the same reference numerals, and detailed description thereof will be omitted as appropriate.

この画像処理装置100Aは、画像変動量取得部101Aと、補正量取得部102Aと、画像補正部103を有している。画像変動量取得部101Aは、入力画像の各時刻(各フレーム)の画像変動量を取得すると共に、この取得された各時刻の累積画像変動量の信頼度(解析信頼度)を得る。   The image processing apparatus 100A includes an image fluctuation amount acquisition unit 101A, a correction amount acquisition unit 102A, and an image correction unit 103. The image fluctuation amount acquisition unit 101A acquires the image fluctuation amount at each time (each frame) of the input image and obtains the reliability (analysis reliability) of the accumulated image fluctuation amount at each acquired time.

信頼度は、画像変化量を算出する際にその推定精度を0.0〜1.0で表した重みである。例えば、画像変動量取得部101Aは、図1に示す画像処理装置100における画像変動量取得部101と同様に2画像間の絵柄のフィッティングを行うための射影行列を計算し、さらに、この射影行列を解析して画像変動量を取得する。画像変動量取得部101Aは、さらに、このフィッティングの誤差を重みに変換して信頼度とする。   The reliability is a weight representing the estimation accuracy of 0.0 to 1.0 when calculating the image change amount. For example, the image fluctuation amount acquisition unit 101A calculates a projection matrix for fitting a pattern between two images in the same manner as the image fluctuation amount acquisition unit 101 in the image processing apparatus 100 shown in FIG. To obtain the image fluctuation amount. The image fluctuation amount acquisition unit 101A further converts the fitting error into a weight to obtain a reliability.

具体的に説明する。画像Aと画像Bから射影行列を計算することを考える。画像A、画像Bの絵柄からマッチング情報(例えば、ブロックマッチングを使用)を、まず、生成する。画像の座標のペアになるので、
{(Xa_n,Ya_n)⇔(Xb_n,Yb_n) | n=1,...}
となる。このペア情報から最小2乗法のような広く知られた方法で、射影行列を求めることができる。
This will be specifically described. Consider calculating a projection matrix from images A and B. First, matching information (for example, using block matching) is generated from the patterns of images A and B. Since it becomes a pair of coordinates of the image,
{(Xa_n, Ya_n) ⇔ (Xb_n, Yb_n) | n = 1, ...}
It becomes. From this pair information, a projection matrix can be obtained by a widely known method such as the least square method.

次にn=1,…それぞれで、画像A上の座標(Xa_n, Ya_n)を、射影行列をつかって、画像B上の座標に変換した結果を(X’b_n, Y’b_n)とする。このとき、(Xb_n, Yb_n)と(X’b_n, Y’b_n)の間の距離をすべてのnについて足し合わせた値を誤差とすることができる。重みへの変換は、例えば、上記の誤差の値を予め設定しておいた閾値と比較して0.0〜1.0の重みに変換する。   Next, in each of n = 1,..., The result of converting the coordinates (Xa_n, Ya_n) on the image A into the coordinates on the image B using a projection matrix is defined as (X′b_n, Y′b_n). At this time, a value obtained by adding the distances between (Xb_n, Yb_n) and (X′b_n, Y′b_n) for all n can be used as an error. In the conversion to the weight, for example, the above error value is compared with a preset threshold value and converted to a weight of 0.0 to 1.0.

補正量取得部102Aは、画像変動量取得部101Aで取得された各時刻の画像変動量を積算して各時刻の累積画像変動量を得る。また、補正量取得部102Aは、この各時刻の累積画像変動量に安定化フィルタ処理を施す。そして、安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて、各時刻における差分を補正量として取得する。   The correction amount acquisition unit 102A integrates the image variation amount at each time acquired by the image variation amount acquisition unit 101A to obtain the accumulated image variation amount at each time. Further, the correction amount acquisition unit 102A performs a stabilization filter process on the accumulated image fluctuation amount at each time. Then, based on the accumulated image fluctuation amount at each time before and after the stabilization filter process, a difference at each time is acquired as a correction amount.

また、補正量取得部102Aは、画像変動量取得部101Aで得られる信頼度に基づいて、安定化フィルタのタップ数を設定する。すなわち、補正量取得部102Aは、所定のタップ数(固定のタップ数)を信頼度で調整して第1のタップ数を求める。また、補正量取得部102Aは、所定の補正マージン(固定の補正マージン)を信頼度で調整し、補正量がこの調整された補正マージンを超えない最大のタップ数を第2のタップ数とする。そして、補正量取得部102Aは、例えば、第1のタップ数と第2のタップ数のうち小さい方を安定化フィルタのタップ数に設定する。   Further, the correction amount acquisition unit 102A sets the number of taps of the stabilization filter based on the reliability obtained by the image variation amount acquisition unit 101A. That is, the correction amount acquisition unit 102A obtains the first tap number by adjusting the predetermined tap number (fixed tap number) with reliability. Further, the correction amount acquisition unit 102A adjusts a predetermined correction margin (fixed correction margin) with reliability, and sets the maximum number of taps whose correction amount does not exceed the adjusted correction margin as the second tap number. . Then, the correction amount acquisition unit 102A sets, for example, the smaller one of the first tap number and the second tap number as the tap number of the stabilization filter.

画像補正部103は、補正量取得部102Aで取得された各時刻の補正量を用いて、入力画像の各時刻の画像変動を補正して補正画像を出力する。この場合、画像補正部103は、入力画像の各時刻の画像から、切り出し位置を補正量に基づいて各時刻で移動し、一部を切り出し、拡大などの変形を施して画像変動の補正を行う(図2参照)。   The image correction unit 103 uses the correction amount at each time acquired by the correction amount acquisition unit 102A to correct the image variation at each time of the input image and outputs a corrected image. In this case, the image correction unit 103 corrects the image fluctuation by moving the cutout position at each time based on the correction amount from the image at each time of the input image, cutting out a part, and performing deformation such as enlargement. (See FIG. 2).

図6に示す画像処理装置100Aの動作を説明する。カメラで撮像・現像されて得られた入力画像は、画像変動量取得部101Aに供給される。この画像変動量取得部101Aでは、入力画像の各時刻(各フレーム)の画像変動量が取得される(図4(a)参照)と共に、この取得された各時刻の累積画像変動量の信頼度(解析信頼度)が得られる。   The operation of the image processing apparatus 100A shown in FIG. 6 will be described. An input image obtained by being imaged and developed by the camera is supplied to the image fluctuation amount acquisition unit 101A. The image fluctuation amount acquisition unit 101A acquires the image fluctuation amount at each time (each frame) of the input image (see FIG. 4A) and the reliability of the acquired cumulative image fluctuation amount at each time. (Analysis reliability) is obtained.

補正量取得部102Aには、画像変動量取得部101Aで取得された入力画像の各時刻(各フレーム)の画像変動量が供給される。補正量取得部102Aでは、各時刻の画像変動量が積算されて各時刻の累積画像変動量(カメラパス)が得られる(図4(b)参照)。そして、補正量取得部102Aでは、この各時刻の累積画像変動量に安定化フィルタ処理が施されて、各時刻の安定化された累積画像変動量(安定化カメラパス)が得られる(図4(c)参照)。   The correction amount acquisition unit 102A is supplied with the image fluctuation amount at each time (each frame) of the input image acquired by the image fluctuation amount acquisition unit 101A. In the correction amount acquisition unit 102A, the image fluctuation amount at each time is integrated to obtain the accumulated image fluctuation amount (camera path) at each time (see FIG. 4B). Then, in the correction amount acquisition unit 102A, the cumulative image fluctuation amount at each time is subjected to a stabilization filter process, and a stabilized cumulative image fluctuation amount (stabilized camera path) at each time is obtained (FIG. 4). (See (c)).

補正量取得部102Aでは、安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて、各時刻における差分が補正量として取得される。この場合、補正量取得部102Aには、画像変動量取得部101Aから、上述の信頼度も供給される。そして、補正量取得部102Aでは、この信頼度に基づいて、安定化フィルタのタップ数が調整されると共に、補正マージンが調整され、その結果に基づいて安定化フィルタのタップ数が設定される。これにより、安定化効果の周波数特性が信頼度に応じて調整され、また、各時刻の補正量が制限される。   In the correction amount acquisition unit 102A, the difference at each time is acquired as the correction amount based on the accumulated image fluctuation amount at each time before and after the stabilization filter processing. In this case, the reliability described above is also supplied to the correction amount acquisition unit 102A from the image variation amount acquisition unit 101A. Then, the correction amount acquisition unit 102A adjusts the tap number of the stabilization filter, adjusts the correction margin based on the reliability, and sets the tap number of the stabilization filter based on the result. Thereby, the frequency characteristic of the stabilization effect is adjusted according to the reliability, and the correction amount at each time is limited.

補正量取得部102Aで取得される各時刻の補正量は、画像補正部103に供給される。画像補正部103では、各時刻の補正量を用いて、入力画像の各時刻の画像変動が補正されて補正画像が出力される。この場合、画像補正部103では、入力画像の各時刻の画像から、切り出し位置が補正量に基づいて各時刻で移動されて、一部が切り出され、拡大などの変形が施されて画像変動の補正が行われる。   The correction amount at each time acquired by the correction amount acquisition unit 102A is supplied to the image correction unit 103. The image correction unit 103 corrects the image variation at each time of the input image using the correction amount at each time, and outputs a corrected image. In this case, in the image correction unit 103, the cutout position is moved at each time based on the correction amount from the image at each time of the input image, a part of the cutout position is cut out, and a deformation such as enlargement is applied to change the image fluctuation. Correction is performed.

以上説明したように、図6に示す画像処理装置100Aにおいては、取得された各時刻の画像変動量の信頼度に応じて各時刻の安定化フィルタのタップ数(フィルタパラメータ)が設定されるものである。そのため、画像変動量取得部101Aで取得される画像変動量の推定結果が低信頼で誤りやすいときに、補正量を弱めることができ、誤検出による誤補正を防ぐことが可能となる。   As described above, in the image processing apparatus 100A shown in FIG. 6, the number of taps (filter parameter) of the stabilization filter at each time is set according to the reliability of the obtained image fluctuation amount at each time. It is. For this reason, when the estimation result of the image variation amount acquired by the image variation amount acquisition unit 101A is low in reliability and easily erroneous, the correction amount can be weakened, and erroneous correction due to erroneous detection can be prevented.

また、図6に示す画像処理装置100Aにおいては、所定のタップ数(固定のタップ数)を信頼度で調整して得られる第1のタップ数と、所定の補正マージン(固定の補正マージン)を信頼度で調整して得られる補正マージンを超えない最大のタップ数である第2のタップ数のうち小さい方を安定化フィルタのタップ数に設定するものである。そのため、補正量が調整後の補正マージンに収まることを保証でき、破綻の発生を防ぐことが可能となる。また、この場合、カットオフ周波数を最も低周波に寄せることができる。   In addition, in the image processing apparatus 100A shown in FIG. 6, the first tap number obtained by adjusting the predetermined tap number (fixed tap number) with reliability and the predetermined correction margin (fixed correction margin) are set. The smaller one of the second tap numbers, which is the maximum number of taps not exceeding the correction margin obtained by adjusting the reliability, is set as the tap number of the stabilization filter. Therefore, it can be ensured that the correction amount is within the adjusted correction margin, and the occurrence of failure can be prevented. In this case, the cut-off frequency can be brought to the lowest frequency.

<3.第3の実施の形態>
[画像処理装置の構成]
図7は、第3の実施の形態としての画像処理装置100Bの構成例を示している。この画像処理装置100Bは、図1に示す画像処理装置100と同様に、各時刻(各フレーム)における画像変動の補正を電子防振方式で行う。この図7において、図1と対応する部分には同一符号を付し、適宜、その詳細説明は書略する。
<3. Third Embodiment>
[Configuration of image processing apparatus]
FIG. 7 shows a configuration example of an image processing device 100B as the third embodiment. Similar to the image processing apparatus 100 shown in FIG. 1, the image processing apparatus 100B corrects image fluctuations at each time (each frame) using an electronic image stabilization method. 7, parts corresponding to those in FIG. 1 are denoted by the same reference numerals, and detailed description thereof will be omitted as appropriate.

この画像処理装置100Bは、画像変動量取得部101と、補正量取得部102Bと、画像補正部103を有している。画像変動量取得部101は、入力画像の各時刻(各フレーム)の画像変動量を取得する。補正量取得部102Bは、画像変動量取得部101で取得された各時刻の画像変動量を積算して各時刻の累積画像変動量を得る。   The image processing apparatus 100B includes an image fluctuation amount acquisition unit 101, a correction amount acquisition unit 102B, and an image correction unit 103. The image fluctuation amount acquisition unit 101 acquires the image fluctuation amount at each time (each frame) of the input image. The correction amount acquisition unit 102B integrates the image fluctuation amount at each time acquired by the image fluctuation amount acquisition unit 101 to obtain the accumulated image fluctuation amount at each time.

また、補正量取得部102Bは、この各時刻の累積画像変動量に安定化フィルタ処理を施す。そして、安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて、各時刻における差分を補正量として取得する。ここで、補正量取得部102Bは、安定化フィルタのタップ数(フィルタパラメータ)として、補正量が所定の補正マージン(固定の補正マージン)を超えない最大のタップ数を設定する。   Further, the correction amount acquisition unit 102B performs a stabilization filter process on the accumulated image fluctuation amount at each time. Then, based on the accumulated image fluctuation amount at each time before and after the stabilization filter process, a difference at each time is acquired as a correction amount. Here, the correction amount acquisition unit 102B sets the maximum number of taps that does not exceed the predetermined correction margin (fixed correction margin) as the tap number (filter parameter) of the stabilization filter.

画像補正部103は、補正量取得部102Bで取得された各時刻の補正量を用いて、入力画像の各時刻の画像変動を補正して補正画像を出力する。この場合、画像補正部103は、入力画像の各時刻の画像から、切り出し位置を補正量に基づいて各時刻で移動し、一部を切り出し、拡大などの変形を施して画像変動の補正を行う(図2参照)。   The image correction unit 103 uses the correction amount at each time acquired by the correction amount acquisition unit 102B to correct the image variation at each time of the input image and outputs a corrected image. In this case, the image correction unit 103 corrects the image fluctuation by moving the cutout position at each time based on the correction amount from the image at each time of the input image, cutting out a part, and performing deformation such as enlargement. (See FIG. 2).

図7に示す画像処理装置100Bの動作を説明する。カメラで撮像、現像されて得られた入力画像は、画像変動量取得部101に供給される。この画像変動量取得部101では、入力画像の各時刻(各フレーム)の画像変動量が取得される(図4(a)参照)。   The operation of the image processing apparatus 100B shown in FIG. 7 will be described. An input image obtained by being imaged and developed by the camera is supplied to the image fluctuation amount acquisition unit 101. The image fluctuation amount acquisition unit 101 acquires the image fluctuation amount at each time (each frame) of the input image (see FIG. 4A).

補正量取得部102Bには、画像変動量取得部101で取得された入力画像の各時刻(各フレーム)の画像変動量が供給される。補正量取得部102Bでは、各時刻の画像変動量が積算されて各時刻の累積画像変動量(カメラパス)が得られる(図4(b)参照)。そして、補正量取得部102Bでは、この各時刻の累積画像変動量に安定化フィルタ処理が施されて、各時刻の安定化された累積画像変動量(安定化カメラパス)が得られる(図4(c)参照)。   The correction amount acquisition unit 102B is supplied with the image variation amount at each time (each frame) of the input image acquired by the image variation amount acquisition unit 101. In the correction amount acquisition unit 102B, the image fluctuation amount at each time is integrated to obtain the accumulated image fluctuation amount (camera path) at each time (see FIG. 4B). Then, the correction amount acquisition unit 102B performs a stabilization filter process on the accumulated image fluctuation amount at each time to obtain a stabilized accumulated image fluctuation amount (stabilized camera path) at each time (FIG. 4). (See (c)).

補正量取得部102Bでは、安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて、各時刻における差分が補正量として取得される。この場合、補正量取得部102Bでは、安定化フィルタのタップ数(フィルタパラメータ)として、補正量が所定の補正マージン(固定の補正マージン)を超えない最大のタップ数に設定される。   In the correction amount acquisition unit 102B, the difference at each time is acquired as the correction amount based on the accumulated image fluctuation amount at each time before and after the stabilization filter processing. In this case, in the correction amount acquisition unit 102B, the correction amount is set to the maximum tap number that does not exceed a predetermined correction margin (fixed correction margin) as the tap number (filter parameter) of the stabilization filter.

補正量取得部102Bで取得される各時刻の補正量は、画像補正部103に供給される。画像補正部103では、各時刻の補正量を用いて、入力画像の各時刻の画像変動が補正されて補正画像が出力される。この場合、画像補正部103では、入力画像の各時刻の画像から、切り出し位置が補正量に基づいて各時刻で移動されて、一部が切り出され、拡大などの変形が施されて画像変動の補正が行われる。   The correction amount at each time acquired by the correction amount acquisition unit 102B is supplied to the image correction unit 103. The image correction unit 103 corrects the image variation at each time of the input image using the correction amount at each time, and outputs a corrected image. In this case, in the image correction unit 103, the cutout position is moved at each time based on the correction amount from the image at each time of the input image, a part of the cutout position is cut out, and a deformation such as enlargement is applied to change the image fluctuation. Correction is performed.

以上説明したように、図7に示す画像処理装置100Bにおいては、安定化フィルタのタップ数(フィルタパラメータ)が、補正量が所定の補正マージン(固定の補正マージン)を超えない最大のタップ数に設定されるものである。そのため、補正量が所定の補正マージンに収まることを保証でき、破綻の発生を防ぐことが可能となる。また、この場合、カットオフ周波数を最も低周波に寄せることができる。   As described above, in the image processing apparatus 100B shown in FIG. 7, the number of taps (filter parameter) of the stabilization filter is set to the maximum number of taps whose correction amount does not exceed a predetermined correction margin (fixed correction margin). Is set. Therefore, it is possible to ensure that the correction amount falls within a predetermined correction margin, and it is possible to prevent the occurrence of failure. In this case, the cut-off frequency can be brought to the lowest frequency.

<4.第4の実施の形態>
[画像処理装置の構成]
図8は、第4の実施の形態としての画像処理装置100Cの構成例を示している。この画像処理装置100Cは、図1に示す画像処理装置100と同様に、各時刻(各フレーム)における画像変動の補正を電子防振方式で行う。この図8において、図1と対応する部分には同一符号を付し、適宜、その詳細説明は書略する。
<4. Fourth Embodiment>
[Configuration of image processing apparatus]
FIG. 8 shows an example of the configuration of an image processing apparatus 100C as the fourth embodiment. Similar to the image processing apparatus 100 shown in FIG. 1, the image processing apparatus 100C corrects image fluctuations at each time (each frame) using an electronic image stabilization method. 8, parts corresponding to those in FIG. 1 are denoted by the same reference numerals, and detailed description thereof will be omitted as appropriate.

この画像処理装置100Cは、画像変動量取得部101と、補正量取得部102Cと、画像補正部103と、フィルタ生成部104と、フィルタパラメータ平滑化部105を有している。画像変動量取得部101は、入力画像の各時刻(各フレーム)の画像変動量を取得する。   The image processing apparatus 100 </ b> C includes an image fluctuation amount acquisition unit 101, a correction amount acquisition unit 102 </ b> C, an image correction unit 103, a filter generation unit 104, and a filter parameter smoothing unit 105. The image fluctuation amount acquisition unit 101 acquires the image fluctuation amount at each time (each frame) of the input image.

フィルタ生成部104は、画像変動量取得部101で取得された各時刻の画像変動量(変動成分)の特徴に応じて各時刻におけるタップ数(フィルタパラメータ)を生成する。フィルタパラメータ平滑化部105は、フィルタ生成部104で生成された各時刻のタップ数に平滑化処理を施し、平滑化された各時刻のタップ数(フィルタパラメータ)を得る。   The filter generation unit 104 generates the number of taps (filter parameter) at each time according to the feature of the image fluctuation amount (variation component) at each time acquired by the image fluctuation amount acquisition unit 101. The filter parameter smoothing unit 105 performs a smoothing process on the number of taps at each time generated by the filter generation unit 104 to obtain a smoothed tap number (filter parameter) at each time.

補正量取得部102Cは、画像変動量取得部101で取得された各時刻の画像変動量を積算して各時刻の累積画像変動量を得る。そして、補正量取得部102Cは、この各時刻の累積画像変動量に、フィルタパラメータ平滑化部105で得られる平滑化された各時刻のタップ数(フィルタパラメータ)を用いて、安定化フィルタ処理を施す。そして、安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて、各時刻における差分を補正量として取得する。   The correction amount acquisition unit 102 </ b> C obtains the cumulative image fluctuation amount at each time by integrating the image fluctuation amounts at each time acquired by the image fluctuation amount acquisition unit 101. Then, the correction amount acquisition unit 102 </ b> C uses the number of taps (filter parameter) smoothed at each time obtained by the filter parameter smoothing unit 105 for the accumulated image fluctuation amount at each time to perform the stabilization filter process. Apply. Then, based on the accumulated image fluctuation amount at each time before and after the stabilization filter process, a difference at each time is acquired as a correction amount.

画像補正部103は、補正量取得部102Cで取得された各時刻の補正量を用いて、入力画像の各時刻の画像変動を補正して補正画像を出力する。この場合、画像補正部103は、入力画像の各時刻の画像から、切り出し位置を補正量に基づいて各時刻で移動し、一部を切り出し、拡大などの変形を施して画像変動の補正を行う(図2参照)。   The image correction unit 103 uses the correction amount at each time acquired by the correction amount acquisition unit 102C to correct the image variation at each time of the input image and outputs a corrected image. In this case, the image correction unit 103 corrects the image fluctuation by moving the cutout position at each time based on the correction amount from the image at each time of the input image, cutting out a part, and performing deformation such as enlargement. (See FIG. 2).

図8に示す画像処理装置100Cの動作を説明する。カメラで撮像・現像されて得られた入力画像は、画像変動量取得部101に供給される。この画像変動量取得部101では、入力画像の各時刻(各フレーム)の画像変動量が取得される(図4(a)参照)。   The operation of the image processing apparatus 100C shown in FIG. 8 will be described. An input image obtained by being imaged and developed by the camera is supplied to the image fluctuation amount acquisition unit 101. The image fluctuation amount acquisition unit 101 acquires the image fluctuation amount at each time (each frame) of the input image (see FIG. 4A).

この各時刻の画像変動量は、フィルタ生成部104に供給される。フィルタ生成部104では、各時刻の画像変動量(変動成分)の特徴に応じて各時刻のタップ数(フィルタパラメータ)が生成される。そして、この各時刻のタップ数がフィルタパラメータ平滑化部105で平滑化されて、平滑化された各時刻のタップ数(フィルタパラメータ)が得られる。例えば、この平滑化処理は、入力されたタップ数以下になるような包絡線処理とされる(図18参照)。   The image fluctuation amount at each time is supplied to the filter generation unit 104. In the filter generation unit 104, the number of taps (filter parameters) at each time is generated according to the feature of the image fluctuation amount (variation component) at each time. Then, the number of taps at each time is smoothed by the filter parameter smoothing unit 105, and the smoothed tap number (filter parameter) at each time is obtained. For example, the smoothing process is an envelope process that is equal to or less than the number of input taps (see FIG. 18).

補正量取得部102Cには、画像変動量取得部101で取得された入力画像の各時刻(各フレーム)の画像変動量が供給される。補正量取得部102Cでは、各時刻の画像変動量が積算されて各時刻の累積画像変動量(カメラパス)が得られる(図4(b)参照)。そして、補正量取得部102Cでは、この各時刻の累積画像変動量に、フィルタパラメータ平滑化部104から得られる平滑化された各時刻のタップ数(フィルタパラメータ)を用いた安定化フィルタ処理が施されて、各時刻の安定化された累積画像変動量(安定化カメラパス)が得られる(図4(c)参照)。   Image correction amount at each time (each frame) of the input image acquired by the image variation amount acquisition unit 101 is supplied to the correction amount acquisition unit 102C. In the correction amount acquisition unit 102C, the image fluctuation amount at each time is integrated to obtain the accumulated image fluctuation amount (camera path) at each time (see FIG. 4B). Then, the correction amount acquisition unit 102C performs a stabilization filter process using the smoothed tap number (filter parameter) of each time obtained from the filter parameter smoothing unit 104 on the accumulated image fluctuation amount at each time. Thus, a stabilized cumulative image fluctuation amount (stabilized camera path) at each time is obtained (see FIG. 4C).

補正量取得部102Cでは、安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて、各時刻における差分が補正量として取得される。補正量取得部102Cで取得される各時刻の補正量は、画像補正部103に供給される。画像補正部103では、各時刻の補正量を用いて、入力画像の各時刻の画像変動が補正されて補正画像が出力される。この場合、画像補正部103では、入力画像の各時刻の画像から、切り出し位置が補正量に基づいて各時刻で移動されて、一部が切り出され、拡大などの変形が施されて画像変動の補正が行われる。   In the correction amount acquisition unit 102C, the difference at each time is acquired as the correction amount based on the accumulated image fluctuation amount at each time before and after the stabilization filter processing. The correction amount at each time acquired by the correction amount acquisition unit 102 </ b> C is supplied to the image correction unit 103. The image correction unit 103 corrects the image variation at each time of the input image using the correction amount at each time, and outputs a corrected image. In this case, in the image correction unit 103, the cutout position is moved at each time based on the correction amount from the image at each time of the input image, a part of the cutout position is cut out, and a deformation such as enlargement is applied to change the image fluctuation. Correction is performed.

以上説明したように、図8に示す画像処理装置100Cにおいては、各時刻のタップ数(フィルタパラメータ)に平滑化処理が施され、平滑化処理後の各時刻のタップ数を用いて安定化フィルタ処理が施されるものである。そのため、フィルタ自体の時間変化が小さくなり、違和感のない補正が可能となる。   As described above, in the image processing apparatus 100C shown in FIG. 8, the number of taps (filter parameter) at each time is smoothed, and the stabilization filter is used by using the number of taps at each time after the smoothing process. Processing is performed. Therefore, the time change of the filter itself is reduced, and correction without a sense of incongruity is possible.

<5.第5の実施の形態>
[画像処理装置の構成]
図9は、第5の実施の形態としての画像処理装置100Dの構成例を示している。この画像処理装置100Dは、図1に示す画像処理装置100と同様に、各時刻(各フレーム)における画像変動の補正を電子防振方式で行う。この図9において、図1と対応する部分には同一符号を付し、適宜、その詳細説明は書略する。
<5. Fifth embodiment>
[Configuration of image processing apparatus]
FIG. 9 shows an example of the configuration of an image processing apparatus 100D as the fifth embodiment. Similar to the image processing apparatus 100 shown in FIG. 1, the image processing apparatus 100D corrects image fluctuations at each time (each frame) using an electronic image stabilization method. 9, parts corresponding to those in FIG. 1 are denoted by the same reference numerals, and detailed description thereof will be omitted as appropriate.

この画像処理装置100Dは、画像変動量取得部101と、補正量取得部102Dと、画像補正部103と、フィルタ処理部106と、変動量平滑化部107を有している。画像変動量取得部101は、入力画像の各時刻(各フレーム)の画像変動量を取得する。   The image processing apparatus 100D includes an image fluctuation amount acquisition unit 101, a correction amount acquisition unit 102D, an image correction unit 103, a filter processing unit 106, and a fluctuation amount smoothing unit 107. The image fluctuation amount acquisition unit 101 acquires the image fluctuation amount at each time (each frame) of the input image.

フィルタ処理部106は、画像変動量取得部101で取得された各時刻の画像変動量を積算して各時刻の累積画像変動量を得る。そして、このフィルタ処理部106は、この各時刻の累積画像変動量に安定化フィルタ処理を施し、フィルタ処理後の各時刻の累積画像変動量を出力する。変動量平滑化部107は、フィルタ処理後の各時刻の累積画像変動量に平滑化処理を施し、平滑化された、フィルタ処理後の各時刻の累積画像変動量を得る。例えば、この平滑化処理は、安定化フィルタ処理が施される前後の各時刻の累積画像変動量の間に入るという制約条件を満たすように包絡線をとる処理とされる(図19参照)。   The filter processing unit 106 integrates the image variation amount at each time acquired by the image variation amount acquisition unit 101 to obtain a cumulative image variation amount at each time. Then, the filter processing unit 106 performs a stabilization filter process on the accumulated image fluctuation amount at each time, and outputs the accumulated image fluctuation amount at each time after the filter processing. The fluctuation amount smoothing unit 107 performs a smoothing process on the accumulated image fluctuation amount at each time after the filter processing, and obtains a smoothed cumulative image fluctuation amount at each time after the filter processing. For example, this smoothing process is a process of taking an envelope so as to satisfy a constraint condition that it falls within the accumulated image fluctuation amount at each time before and after the stabilization filter process is performed (see FIG. 19).

補正量取得部102Dは、この平滑化された、フィルタ処理後の各時刻の累積画像変動量と、画像変動量取得部101で取得された各時刻の画像変動量とに基づいて、各時刻における差分を補正量として取得する。画像補正部103は、補正量取得部102Dで取得された各時刻の補正量を用いて、入力画像の各時刻の画像変動を補正して補正画像を出力する。この場合、画像補正部103は、入力画像の各時刻の画像から、切り出し位置を補正量に基づいて各時刻で移動し、一部を切り出し、拡大などの変形を施して画像変動の補正を行う(図2参照)。   Based on the smoothed accumulated image fluctuation amount at each time after the filter processing and the image fluctuation amount at each time obtained by the image fluctuation amount obtaining unit 101, the correction amount acquisition unit 102D at each time. The difference is acquired as a correction amount. The image correction unit 103 uses the correction amount at each time acquired by the correction amount acquisition unit 102D to correct the image variation at each time of the input image and outputs a corrected image. In this case, the image correction unit 103 corrects the image fluctuation by moving the cutout position at each time based on the correction amount from the image at each time of the input image, cutting out a part, and performing deformation such as enlargement. (See FIG. 2).

図9に示す画像処理装置100Cの動作を説明する。カメラで撮像・現像されて得られた入力画像は、画像変動量取得部101に供給される。この画像変動量取得部101では、入力画像の各時刻(各フレーム)の画像変動量が取得される(図4(a)参照)。   The operation of the image processing apparatus 100C shown in FIG. 9 will be described. An input image obtained by being imaged and developed by the camera is supplied to the image fluctuation amount acquisition unit 101. The image fluctuation amount acquisition unit 101 acquires the image fluctuation amount at each time (each frame) of the input image (see FIG. 4A).

この各時刻の画像変動量は、フィルタ処理部106に供給される。フィルタ処理部106では、各時刻の画像変動量が積算されて各時刻の累積画像変動量(カメラパス)が得られる(図4(b)参照)。そして、フィルタ処理部106では、この各時刻の累積画像変動量に安定化フィルタ処理が施されて、各時刻の安定化された累積画像変動量(安定化カメラパス)が得られる(図4(c)参照)。   The image fluctuation amount at each time is supplied to the filter processing unit 106. In the filter processing unit 106, the image fluctuation amount at each time is integrated to obtain the accumulated image fluctuation amount (camera path) at each time (see FIG. 4B). Then, the filter processing unit 106 performs stabilization filter processing on the accumulated image fluctuation amount at each time to obtain a stabilized accumulated image fluctuation amount (stabilized camera path) at each time (FIG. 4 ( c)).

このフィルタ後の各時刻の累積画像変動量は、変動量平滑化部107に供給される。変動量平滑化部107では、フィルタ処理後の各時刻の累積画像変動量に平滑化処理が施され、平滑化された、フィルタ処理後の各時刻の累積画像変動量が得られる。この平滑化された、フィルタ処理後の各時刻の累積画像変動量は、補正量取得部102Dに供給される。補正量取得部102Dでは、この平滑化された、フィルタ処理後の各時刻の累積画像変動量と、画像変動量取得部101で取得された各時刻の画像変動量とに基づいて、各時刻における差分が補正量として取得される。   The accumulated image fluctuation amount at each time after the filtering is supplied to the fluctuation amount smoothing unit 107. The fluctuation amount smoothing unit 107 performs smoothing processing on the accumulated image fluctuation amount at each time after the filter processing, and obtains a smoothed cumulative image fluctuation amount at each time after the filter processing. The smoothed cumulative image fluctuation amount at each time after the filter processing is supplied to the correction amount acquisition unit 102D. In the correction amount acquisition unit 102D, based on the smoothed accumulated image fluctuation amount at each time after the filter processing and the image fluctuation amount at each time acquired by the image fluctuation amount acquisition unit 101, the correction amount acquisition unit 102D at each time. The difference is acquired as a correction amount.

補正量取得部102Dで取得される各時刻の補正量は、画像補正部103に供給される。画像補正部103では、各時刻の補正量を用いて、入力画像の各時刻の画像変動が補正されて補正画像が出力される。この場合、画像補正部103では、入力画像の各時刻の画像から、切り出し位置が補正量に基づいて各時刻で移動されて、一部が切り出され、拡大などの変形が施されて画像変動の補正が行われる。   The correction amount at each time acquired by the correction amount acquisition unit 102D is supplied to the image correction unit 103. The image correction unit 103 corrects the image variation at each time of the input image using the correction amount at each time, and outputs a corrected image. In this case, in the image correction unit 103, the cutout position is moved at each time based on the correction amount from the image at each time of the input image, a part of the cutout position is cut out, and a deformation such as enlargement is applied to change the image fluctuation. Correction is performed.

以上説明したように、図9に示す画像処理装置100Dにおいては、安定化フィルタ処理が施された各時刻の累積画像変動量に平滑化処理が施されて、各時刻の補正量算出に用いられるものである。そのため、安定化フィルタのタップ数(フィルタパラメータ)の変動が与える累積画像変動量の細かな変動を取り除くことができ、各時刻の補正量としてより適切な補正量を得ることが可能となる。   As described above, in the image processing apparatus 100D shown in FIG. 9, the accumulated image fluctuation amount at each time subjected to the stabilization filter process is subjected to the smoothing process and used for calculating the correction amount at each time. Is. Therefore, it is possible to remove fine fluctuations in the accumulated image fluctuation amount given by fluctuations in the number of taps (filter parameters) of the stabilization filter, and it is possible to obtain a more appropriate correction amount as the correction amount at each time.

<6.第6の実施の形態>
[画像処理装置の構成]
図10は、第6の実施の形態としての画像処理装置200の構成例を示している。この画像処理装置200は、図1に示す画像処理装置100と同様に、各時刻(各フレーム)における画像変動の補正を電子防振方式で行う。なお、「{***}」は値の集合を表すものであり、複数の個数の値をまとめて扱う際の表記である。また、「***_i, ***_n」は、注目する時刻の値を示す。
<6. Sixth Embodiment>
[Configuration of image processing apparatus]
FIG. 10 shows a configuration example of an image processing apparatus 200 as the sixth embodiment. Similar to the image processing apparatus 100 shown in FIG. 1, the image processing apparatus 200 corrects image fluctuations at each time (each frame) by an electronic image stabilization method. Note that “{***}” represents a set of values, and is a notation for handling a plurality of values collectively. Further, “*** _ i, *** _ n” indicates the value of the time of interest.

この画像処理装置200は、撮像・現像部201と、画像記憶部202と、画像変化量算出部203と、変動解析部204と、累積変動量記憶部205と、解析信頼度記憶部206を有している。また、画像処理装置200は、カメラ状態取得部207と、カメラ状態解析部208と、変調値記憶部209と、変調値平滑化部210と、フィルタ生成部211を有している。また、画像処理装置200は、フィルタパラメータ記憶部212と、パラメータ平滑化部213と、フィルタ演算部214と、フィルタ後累積変動量記憶部215と、フィルタ後累積変動量平滑化部216と、差分演算部217と、補正部218を有している。   The image processing apparatus 200 includes an imaging / developing unit 201, an image storage unit 202, an image change amount calculation unit 203, a fluctuation analysis unit 204, a cumulative fluctuation amount storage unit 205, and an analysis reliability storage unit 206. doing. The image processing apparatus 200 includes a camera state acquisition unit 207, a camera state analysis unit 208, a modulation value storage unit 209, a modulation value smoothing unit 210, and a filter generation unit 211. Further, the image processing apparatus 200 includes a filter parameter storage unit 212, a parameter smoothing unit 213, a filter calculation unit 214, a post-filtered cumulative variation storage unit 215, a post-filtered cumulative variation smoothing unit 216, a difference A calculation unit 217 and a correction unit 218 are included.

撮像・現像部201は、被写体を撮像して画像を出力する。ここで、現像とは、撮像画像に対する種々の処理(ゲイン調整処理、特殊モード処理など)を意味する。画像記憶部202は、画像変化量算出部203と、補正部218が、必要なタイミングで必要な時刻(フレーム)の画像を参照できるように、撮像・現像部201から出力される画像(入力画像)を保持するメモリである。   The imaging / developing unit 201 images a subject and outputs an image. Here, the development means various processes (gain adjustment process, special mode process, etc.) on the captured image. The image storage unit 202 outputs an image (input image) output from the imaging / development unit 201 so that the image change amount calculation unit 203 and the correction unit 218 can refer to an image at a necessary time (frame) at a necessary timing. ).

画像変化量算出部203は、画像記憶部202から画像を入力し、図6の画像処理装置100Aにおける画像変動量取得部101Aと同様に、2画像間の絵柄のフィッティングを行うための射影行列H_iを算出すると共に、このフィッティングの誤差を重みに変換して解析信頼度c_iを得る。なお、解析信頼度は、画面内の動被写体領域の面積を重みに変換した値とすることも考えられる。   The image change amount calculation unit 203 inputs an image from the image storage unit 202, and similarly to the image variation amount acquisition unit 101A in the image processing apparatus 100A in FIG. 6, the projection matrix H_i for fitting a pattern between two images. And the fitting error is converted into a weight to obtain the analysis reliability c_i. The analysis reliability may be a value obtained by converting the area of the moving subject area in the screen into a weight.

変動解析部204は、画像変化量算出部203で算出される射影行列H_iを入力として、各時刻の画像変動量を計算し、特定の時刻から累積し続けることで、各時刻の累積画像変動量tx_acc_i,ty_acc_iを出力する。例えば、変動解析部204は、射影行列の成分を解析して、並進量を算出して、内部で積算し続けて、各時刻の累積画像変動量を出力する。   The fluctuation analysis unit 204 receives the projection matrix H_i calculated by the image change amount calculation unit 203, calculates the image fluctuation amount at each time, and continues to accumulate from a specific time, thereby accumulating the image fluctuation amount at each time. tx_acc_i and ty_acc_i are output. For example, the fluctuation analysis unit 204 analyzes the components of the projection matrix, calculates the translation amount, continues to accumulate inside, and outputs the accumulated image fluctuation amount at each time.

累積変動量記憶部205は、変動解析部204が出力する各時刻の累積画像変動量tx_acc_i,Ty_acc_iを、他のブロックが必要とするタイミングで必要な時刻の累積画像変動量を参照できるように保持するメモリである。また、解析信頼度記憶部206は、画像変動量算出部203が出力する各時刻の解析信頼度c_iを、バッファリングする格納先である。   The accumulated variation amount storage unit 205 holds the accumulated image variation amounts tx_acc_i and Ty_acc_i at each time output from the variation analysis unit 204 so that the accumulated image variation amount at a necessary time can be referred to at a timing required by another block. Memory. The analysis reliability storage unit 206 is a storage destination for buffering the analysis reliability c_i at each time output from the image fluctuation amount calculation unit 203.

カメラ状態取得部207は、撮像時のカメラから、カメラの状態を示す各種の数値を取得して、数値群をカメラ状態値{p_k}_iとして出力する。カメラの状態情報には、カメラが自律して設定する状態、ユーザが設定する状態、さらにはカメラに積んでいる各種センサーの出力状態などが含まれる。具体的には、シャッタースピード、ゲイン、フレームレートの設定状態、ジャイロセンサの出力状態などである。   The camera state acquisition unit 207 acquires various numerical values indicating the camera state from the camera at the time of imaging, and outputs a numerical value group as a camera state value {p_k} _i. The state information of the camera includes a state set by the camera autonomously, a state set by the user, and output states of various sensors loaded on the camera. Specifically, the shutter speed, gain, frame rate setting state, gyro sensor output state, and the like.

カメラ状態解析部208は、カメラ状態取得部207で取得されたカメラ状態値{p_k}_iを入力して、図1の画像処理装置100におけるカメラ状態解析部108と同様に、「タップ数(フィルタパラメータ)に対する変調値」および「補正マージンに対する変調値」の2種類の変調値{w_k}_iを出力する。これらの変調値は、0.0から1.0までの重みの形で表現される。カメラ状態値{p_k}_iは、複数種類の数値で構成されているので、カメラ状態解析部208は、それぞれを解析して、最終的に2種類の変調値{w_k}_iに変換する。   The camera state analysis unit 208 inputs the camera state value {p_k} _i acquired by the camera state acquisition unit 207, and similarly to the camera state analysis unit 108 in the image processing apparatus 100 of FIG. Two types of modulation values {w_k} _i are output: “modulation value for parameter)” and “modulation value for correction margin”. These modulation values are expressed in the form of weights from 0.0 to 1.0. Since the camera state value {p_k} _i is composed of a plurality of types of numerical values, the camera state analysis unit 208 analyzes each and finally converts them into two types of modulation values {w_k} _i.

図11は、カメラ状態解析部208の解析処理を概略的に示している。カメラ状態解析部208は、カメラ状態値ごとに予め設定した閾値と比較して重みに変換し、最後に掛け算により統合して出力する。図示の例では、カメラ状態値a,b,・・・、xが入力される。   FIG. 11 schematically shows an analysis process of the camera state analysis unit 208. The camera state analysis unit 208 converts the camera state value into a weight compared with a preset threshold value, and finally integrates and outputs the result by multiplication. In the illustrated example, camera state values a, b,..., X are input.

「タップ数(フィルタパラメータ)に対する変調値」を得る処理では、カメラ状態値a,b,・・・、xがそれぞれ閾値処理で変調重みwa,wb,・・・,wxに変換され、これらが乗算器で掛け算されて変調値Wtotが得られている。一方、「補正マージンに対する変調値」を得る処理では、カメラ状態値a,b,・・・、xがそれぞれ閾値処理で変調重みwa´ ,wb´ ,・・・,wx´ に変換され、これらが乗算器で掛け算されて変調値Wtot´ が得られている。   In the process of obtaining “modulation values for the number of taps (filter parameters)”, the camera state values a, b,..., X are converted into modulation weights wa, wb,. A modulation value Wtot is obtained by multiplication by a multiplier. On the other hand, in the process of obtaining the “modulation value for the correction margin”, the camera state values a, b,..., X are converted into modulation weights wa ′, wb ′,. Is multiplied by a multiplier to obtain a modulation value Wtot ′.

図10に戻って、変調値記憶部209は、カメラ状態解析部208で求められる各時刻(フレーム)の変調値{w_k}_iをバッファリングする格納先である。変調値平滑化部210は、時刻毎に、変調値記憶部209から該当時刻とその周辺の複数の時刻の変調値{{w_k}_m}を取得して平滑化し、時間変動が滑らかにされた変調値{w_k}_iを得る。   Returning to FIG. 10, the modulation value storage unit 209 is a storage destination for buffering the modulation value {w_k} _i at each time (frame) obtained by the camera state analysis unit 208. The modulation value smoothing unit 210 obtains and smoothes the modulation values {{w_k} _m} at the corresponding time and a plurality of surrounding times from the modulation value storage unit 209 for each time, and smoothes the time variation. A modulation value {w_k} _i is obtained.

図12は、変調値の平滑化処理の一例を示している。図示の例は、平滑化処理の一例として、誤補正によるアーティファクトを回避するために、変調値が小さくなる側に包絡する包絡線処理を示している。   FIG. 12 shows an example of the modulation value smoothing process. The illustrated example shows an envelope processing that envelopes the modulation value on the smaller side in order to avoid artifacts due to erroneous correction, as an example of the smoothing processing.

図10に戻って、フィルタ生成部211は、累積画像変動量{tx_acc_n},{ty_acc_n}、解析信頼度{c_n}、平滑化変調値{w_k}_iを入力とし、フィルタパラメータ(タップ数){a_n}_iを生成する。図13のフローチャートは、所定時刻におけるフィルタパラメータ(タップ数)の生成処理手順の一例を示している。簡単のため、平均値フィルタのタップ数を生成する場合の説明をする。   Returning to FIG. 10, the filter generation unit 211 receives the accumulated image fluctuation amount {tx_acc_n}, {ty_acc_n}, the analysis reliability {c_n}, the smoothed modulation value {w_k} _i, and the filter parameter (number of taps) { a_n} _i is generated. The flowchart in FIG. 13 illustrates an example of a filter parameter (number of taps) generation processing procedure at a predetermined time. For the sake of simplicity, the case of generating the number of taps of the average value filter will be described.

フィルタ生成部211は、ステップST1において、処理を開始する。その後、フィルタ生成部211は、ステップST2において、累積画像変動量{tx_acc_n},{Ty_acc_n}の変動成分の特徴に応じたタップ数を算出する。また、フィルタ生成部211は、ステップST3において、最大タップ数を計算する。この際、フィルタ生成部211は、所定のタップ数(予め設定するタップ数)に、「タップ数に対する変調値」と解析信頼度の双方を掛けて最大タップ数(変調度、解析信頼度を反映して減らしたタップ数)を求める。これにより、変調値や解析信頼度が反映されてタップ数が調整される。なお、所定のタップ数に、「タップ数に対する変調値」と解析信頼度のいずれかを掛けて最大タップ数を求めることも考えられる。   In step ST1, the filter generation unit 211 starts processing. Thereafter, in step ST2, the filter generation unit 211 calculates the number of taps according to the characteristics of the fluctuation component of the accumulated image fluctuation amount {tx_acc_n}, {Ty_acc_n}. In addition, in step ST3, the filter generation unit 211 calculates the maximum number of taps. At this time, the filter generation unit 211 multiplies a predetermined number of taps (a preset number of taps) by both the “modulation value for the number of taps” and the analysis reliability to reflect the maximum number of taps (modulation degree and analysis reliability). And the number of taps reduced). Thereby, the number of taps is adjusted by reflecting the modulation value and the analysis reliability. Note that it is also conceivable to obtain the maximum number of taps by multiplying a predetermined number of taps by either the “modulation value for the number of taps” or the analysis reliability.

また、フィルタ生成部211は、ステップST4において、最大補正マージンを計算する。この際、フィルタ生成部211は、所定の補正マージン(予め設定する補正マージン)に、「補正マージンに対する変調値」と解析信頼度とを掛けて最大補正マージン(変調値、解析信頼度を反映して狭めた補正マージン)を求める。これにより、変調値や解析信頼度が反映されて補正マージンが調整される。なお、所定の補正マージンに、「補正マージンに対する変調値」と解析信頼度のいずれかを掛けて最大タップ数を求めることも考えられる。なお、図14は、予め設定される補正マージンと、変調値を反映して狭めた補正マージンとの関係を示している。   Further, the filter generation unit 211 calculates the maximum correction margin in step ST4. At this time, the filter generation unit 211 reflects the maximum correction margin (modulation value and analysis reliability) by multiplying a predetermined correction margin (preset correction margin) by the “modulation value for the correction margin” and the analysis reliability. Narrowed correction margin). Thereby, the correction margin is adjusted by reflecting the modulation value and the analysis reliability. It is also conceivable to obtain the maximum number of taps by multiplying a predetermined correction margin by either “modulation value for correction margin” or analysis reliability. FIG. 14 shows the relationship between the preset correction margin and the correction margin narrowed to reflect the modulation value.

次に、ステップST5において、フィルタ生成部211は、補正可能タップ数を計算する。この場合、フィルタ生成部211は、タップ数を最小1から順番に大きくしながら、累積画像変動量にフィルタ処理を行い、フィルタ処理前後の差分を計算し、その差分値(補正量に相当する)がステップST4で計算された最大補正マージンを超過する直前、または、タップ数がステップST3で計算された最大タップ数に達した段階で、タップ数を出力する。   Next, in step ST5, the filter generation unit 211 calculates the number of correctable taps. In this case, the filter generation unit 211 performs a filtering process on the accumulated image fluctuation amount while increasing the number of taps in order from a minimum of 1, calculates a difference before and after the filtering process, and a difference value (corresponding to a correction amount). The number of taps is output immediately before the maximum correction margin calculated in step ST4 is exceeded or when the number of taps reaches the maximum number of taps calculated in step ST3.

この場合、ステップST3で計算された最大タップ数を第1のタップ数とし、ステップST4で計算された最大補正マージンを超過する直前のタップ数を第2のタップ数とするとき、ステップST5では、第1のタップ数と第2のタップ数のうち小さい方が選択されることとなる。このステップST5のタップ数計算の結果、変調を考慮して、かつ、補正マージンに収まる範囲のタップ数を取得できる。   In this case, when the maximum tap number calculated in step ST3 is the first tap number and the tap number immediately before exceeding the maximum correction margin calculated in step ST4 is the second tap number, in step ST5, The smaller one of the first tap number and the second tap number is selected. As a result of calculating the number of taps in step ST5, it is possible to acquire the number of taps within a range that takes modulation into consideration and falls within the correction margin.

図15は、予め設定するタップ数と、変調値、解析信頼度を反映して減らしたタップ数と、変調値、解析信頼度を反映して狭めた補正マージンに収まるタップ数との関係を示している。なお、変調値、解析信頼度を反映して減らしたタップ数が、変調値、解析信頼度を反映して狭めた補正マージンに収まるタップ数よりも小さくなる場合もある。   FIG. 15 shows the relationship between the number of taps set in advance, the number of taps reduced by reflecting the modulation value and analysis reliability, and the number of taps that fits in the correction margin narrowed by reflecting the modulation value and analysis reliability. ing. In some cases, the number of taps reduced by reflecting the modulation value and analysis reliability is smaller than the number of taps that can be accommodated in the correction margin narrowed by reflecting the modulation value and analysis reliability.

次に、フィルタ生成部211は、ステップST6において、ステップST2で算出されたタップ数と、ステップST5で計算されたタップ数のうち、小さい方を選択する。そして、フィルタ生成部211は、ステップST7において、処理を終了する。   Next, in step ST6, the filter generation unit 211 selects the smaller of the number of taps calculated in step ST2 and the number of taps calculated in step ST5. And the filter production | generation part 211 complete | finishes a process in step ST7.

このフィルタ生成部211で生成されるタップ数(フィルタパラメータ)は、
(1)カメラの状態から得られる変調を考慮(苦手なら弱める)
(2)画像間の変動量の推定結果の信頼度を考慮(低信頼なら弱める)
(3)補正マージンに収まることを保証(「このタップ数以下ならば、破綻しない」)
を反映した結果となる。
The number of taps (filter parameter) generated by the filter generation unit 211 is
(1) Consider the modulation obtained from the camera status (weaken if you are not good)
(2) Consider the reliability of the estimation result of the amount of variation between images (decrease if low reliability)
(3) Guarantee that it will fit within the correction margin ("If it is less than this tap number, it will not fail")
The result reflects.

なお、図16のフローチャートに示すように、図13のフローチャートにおいて、ステップST2およびステップST6を削除した構成も考えられる。また、図13、図16のフローチャートで、ステップST3やステップST4に係る処理を省略した構成も考えられる。例えば、図17(a)のフローチャートは、図16のフローチャートで、ステップST3に係る処理を省略した構成を示している。また、図17(b)のフローチャートは、図16のフローチャートで、ステップST4に係る処理を省略した構成を示している。   In addition, as shown in the flowchart of FIG. 16, the structure which deleted step ST2 and step ST6 in the flowchart of FIG. 13 is also considered. In addition, a configuration in which the processes related to step ST3 and step ST4 are omitted in the flowcharts of FIGS. For example, the flowchart of FIG. 17A shows a configuration in which the process according to step ST3 is omitted from the flowchart of FIG. Moreover, the flowchart of FIG.17 (b) has shown the structure which abbreviate | omitted the process which concerns on step ST4 in the flowchart of FIG.

図10に戻って、フィルタパラメータ記憶部212は、フィルタ生成部211において生成される各時刻(フレーム)のタップ数(フィルタパラメータ){a_n}_iをバッファリングする格納先である。パラメータ平滑化部213は、フィルタパラメータ記憶部212から該当時刻とその周辺の複数の時刻のタップ数{{a_n}_m}を取得して平滑化し、時間変動が滑らかにされたタップ数{a_smth_n}_iを得る。   Returning to FIG. 10, the filter parameter storage unit 212 is a storage destination for buffering the number of taps (filter parameters) {a_n} _i at each time (frame) generated by the filter generation unit 211. The parameter smoothing unit 213 acquires the number of taps {{a_n} _m} at the corresponding time and a plurality of times around it from the filter parameter storage unit 212 and smoothes them, and the number of taps {a_smth_n} whose time variation is smooth Get _i.

上述したように、フィルタ生成部211にて補正マージンに収まることが保証された最大タップ数が得られている。そのため、このパラメータ平滑化部213は、入力されたタップ数を超過しない制約条件下で適当な平滑化を行う。図18は、タップ数の平滑化処理の一例を示している。図示の例は、平滑化処理の一例として、入力されたタップ数以下になるような包絡線処理を示している。   As described above, the maximum number of taps guaranteed to be within the correction margin is obtained by the filter generation unit 211. Therefore, the parameter smoothing unit 213 performs appropriate smoothing under a constraint condition that does not exceed the number of input taps. FIG. 18 illustrates an example of the tap number smoothing process. The example shown in the figure shows an envelope process that is equal to or less than the number of input taps as an example of the smoothing process.

図10に戻って、フィルタ演算部214は、累積画像変動量{tx_acc_n},{ty_acc_n}に、平滑化タップ数{a_smth_n}_iを用いて構成された安定化フィルタ(平均値フィルタ)により、安定化フィルタ処理を施し、各時刻(フレーム)のフィルタ後累積画像変動量tx_acc_filter_i, ty_acc_filter_i を得る。フィルタ後累積変動量記憶部215は、フィルタ演算部214から出力されるフィルタ後の各時刻(フレーム)の累積画像変動量tx_acc_filter_i, ty_acc_filter_i をバッファリングする格納先である。   Returning to FIG. 10, the filter calculation unit 214 uses the stabilization filter (average value filter) that is configured by using the smoothed tap number {a_smth_n} _i for the accumulated image fluctuation amount {tx_acc_n} and {ty_acc_n}. To obtain post-filtering cumulative image fluctuation amounts tx_acc_filter_i and ty_acc_filter_i at each time (frame). The post-filtering cumulative variation storage unit 215 is a storage destination for buffering the cumulative image variation tx_acc_filter_i and ty_acc_filter_i at each time (frame) after filtering output from the filter calculation unit 214.

フィルタ後累積変動量平滑化部216は、フィルタ後累積変動量記憶部215から該当時刻とその周辺の複数の時刻のフィルタ後累積画像変動量{tx_acc_filter_n},{ty_acc_filter_n}を取得して平滑化し、時間変動が滑らかにされた、各時刻(フレーム)のフィルタ後累積画像変動量tx_acc_filter_smth_i,ty_acc_filter_smth_iを得る。   The post-filter cumulative fluctuation amount smoothing unit 216 acquires and smoothes the post-filter cumulative fluctuation amount {tx_acc_filter_n}, {ty_acc_filter_n} from the post-filter cumulative fluctuation amount storage unit 215 at the corresponding time and a plurality of times around it. The post-filter cumulative image fluctuation amount tx_acc_filter_smth_i, ty_acc_filter_smth_i at each time (frame) in which the time fluctuation is smoothed is obtained.

図19は、フィルタ後累積画像変動量の平滑化処理の一例を示している。図示の例は、平滑化処理の一例として、安定化フィルタ処理が施される前後の各時刻の累積画像変動量の間に入るという制約条件を満たすように包絡線をとる処理を示している。この制約条件は、差分演算部217が出力する補正量が補正マージンに収まるための制約条件となる。   FIG. 19 shows an example of the smoothing process of the post-filter accumulated image fluctuation amount. The illustrated example shows, as an example of the smoothing process, a process of taking an envelope so as to satisfy a constraint condition that it falls within the accumulated image fluctuation amount at each time before and after the stabilization filter process. This restriction condition is a restriction condition for the correction amount output from the difference calculation unit 217 to fall within the correction margin.

図10に戻って、差分演算部217は、各時刻(フレーム)において、累積画像変動量tx_acc_i,ty_acc_iと平滑化されたフィルタ後累積画像変動量tx_acc_filter_smth_i,ty_acc_filter_smth_iの差分を取って、各時刻(フレーム)の補正量tx_stb_i,ty_stb_iを得る。   Returning to FIG. 10, the difference calculation unit 217 obtains the difference between the accumulated image fluctuation amount tx_acc_i, ty_acc_i and the smoothed filtered cumulative image fluctuation amount tx_acc_filter_smth_i, ty_acc_filter_smth_i at each time (frame). ) Correction amounts tx_stb_i and ty_stb_i are obtained.

補正部218は、差分演算部217で得られた各時刻(フレーム)の補正量tx_stb_i,ty_stb_iを用いて、入力画像の各時刻の画像変動を補正して補正画像を出力する。この場合、補正部218は、入力画像の各時刻の画像から、切り出し位置を補正量に基づいて各時刻で移動し、一部を切り出し、拡大などの変形を施して画像変動の補正を行う(図2参照)。   The correction unit 218 uses the correction amount tx_stb_i, ty_stb_i at each time (frame) obtained by the difference calculation unit 217 to correct the image fluctuation at each time of the input image and outputs a corrected image. In this case, the correction unit 218 corrects the image variation by moving the cutout position at each time based on the correction amount from the image at each time of the input image, cutting out a part, and performing deformation such as enlargement ( (See FIG. 2).

図10に示す画像処理装置200の動作を説明する。画像変化量算出部203には、画像記憶部202から画像(入力画像)が供給される。画像変化量算出部203では、各時刻(フレーム)において、2画像間の絵柄のフィッティングを行うための射影行列H_iが算出されると共に、このフィッティングの誤差が重みに変換されて解析信頼度c_iが得られる。   The operation of the image processing apparatus 200 shown in FIG. 10 will be described. An image (input image) is supplied from the image storage unit 202 to the image change amount calculation unit 203. The image change amount calculation unit 203 calculates a projection matrix H_i for fitting a picture between two images at each time (frame), and converts the fitting error into a weight to obtain an analysis reliability c_i. can get.

画像変化量算出部203で得られる各時刻の射影行列H_iは変動解析部204に供給される。この変動解析部204では、時刻ごとに射影行列H_iから画像変動量が計算され、特定の時刻から累積が開始されて、各時刻の累積画像変動量tx_acc_i,ty_acc_iが得られる(図4(a),(b)参照)。この各時刻の累積画像変動量tx_acc_i,ty_acc_iは、他のブロックが必要とするタイミングで必要な時刻の累積画像変動量の参照が可能となるように、累積変動量記憶部205に保持される。また、画像変化量算出部203で得られる各時刻の解析信頼度c_iは、解析信頼度記憶部206に保持される。   The projection matrix H_i at each time obtained by the image change amount calculation unit 203 is supplied to the fluctuation analysis unit 204. In the fluctuation analysis unit 204, the image fluctuation amount is calculated from the projection matrix H_i at each time, and accumulation is started from a specific time to obtain the accumulated image fluctuation amounts tx_acc_i and ty_acc_i at each time (FIG. 4A). , (B)). The accumulated image variation amounts tx_acc_i and ty_acc_i at each time are stored in the accumulated variation amount storage unit 205 so that the accumulated image variation amount at a required time can be referred to at a timing required by another block. Also, the analysis reliability c_i at each time obtained by the image change amount calculation unit 203 is held in the analysis reliability storage unit 206.

カメラ状態取得部207では、撮影時のカメラから、カメラの状態を示す各種の数値が取得される。このカメラ状態取得部207から出力される数値群としてのカメラ状態値{p_k}_iは、カメラ状態解析部208に供給される。カメラ状態解析部208では、カメラ状態値{p_k}_iが解析されて、「タップ数(フィルタパラメータ)に対する変調値」および「補正マージンに対する変調値」の2種類の変調値{w_k}_iが得られる。これらの変調値は、0.0から1.0までの重みの形で表現される。   The camera state acquisition unit 207 acquires various numerical values indicating the camera state from the camera at the time of shooting. The camera state value {p_k} _i as a numerical group output from the camera state acquisition unit 207 is supplied to the camera state analysis unit 208. The camera state analysis unit 208 analyzes the camera state value {p_k} _i to obtain two types of modulation values {w_k} _i, which are “a modulation value for the number of taps (filter parameter)” and “a modulation value for the correction margin”. It is done. These modulation values are expressed in the form of weights from 0.0 to 1.0.

カメラ状態解析部208で得られる各時刻の変調値{w_k}_iは、変調値記憶部209に保持される。変調値平滑化部210では、時刻毎に、変調値記憶部209から該当時刻とその周辺の複数の時刻の変調値{w_k}_mが取得されて平滑化され、時間変動が滑らかにされた変調値{w_k}_iを得られる。   The modulation value {w_k} _i at each time obtained by the camera state analysis unit 208 is held in the modulation value storage unit 209. In the modulation value smoothing unit 210, the modulation value {w_k} _m of the corresponding time and a plurality of times around it is acquired from the modulation value storage unit 209 and smoothed for each time, and the time variation is smoothed. The value {w_k} _i is obtained.

フィルタ生成部211には、累積画像変動量{tx_acc_n},{ty_acc_n}、解析信頼度{c_n}、平滑化変調値{w_k}_iが入力される。フィルタ生成部211では、これらの入力に基づいて、各時刻のフィルタパラメータであるタップ数{a_n}_iが生成される。この各時刻のタップ数{a_n}_iは、フィルタパラメータ記憶部212に保持される。   The filter generation unit 211 receives the accumulated image fluctuation amount {tx_acc_n}, {ty_acc_n}, analysis reliability {c_n}, and smoothed modulation value {w_k} _i. Based on these inputs, the filter generation unit 211 generates the tap number {a_n} _i, which is a filter parameter at each time. The number of taps {a_n} _i at each time is stored in the filter parameter storage unit 212.

パラメータ平滑化部213では、フィルタパラメータ記憶部212から該当時刻とその周辺の複数の時刻のタップ数{{a_n}_m}が取得されて平滑化され、時間変動が滑らかにされた各時刻のタップ数{a_smth_n}_iが得られる。フィルタ生成部211にて補正マージンに収まることが保証された最大タップ数が得られていることから、このパラメータ平滑化部213では、入力されたタップ数を超過しない制約条件下で適当な平滑化が行われる。   The parameter smoothing unit 213 obtains the number of taps {{a_n} _m} of the corresponding time and a plurality of surrounding times from the filter parameter storage unit 212 and smoothes the taps at each time at which time variation is smoothed. The number {a_smth_n} _i is obtained. Since the maximum number of taps guaranteed to be within the correction margin is obtained by the filter generation unit 211, the parameter smoothing unit 213 performs appropriate smoothing under the constraint that the input tap number is not exceeded. Is done.

パラメータ平滑化部213で得られる各時刻のタップ数{a_smth_n}_iは、フィルタ演算部214に供給される。フィルタ演算部214では、累積画像変動量{tx_acc_n},{ty_acc_n}に、平滑化タップ数{a_smth_n}_iを用いて構成された安定化フィルタ(平均値フィルタ)により、安定化フィルタ処理が施される。フィルタ演算部214からは、各時刻のフィルタ後累積画像変動量{tx_acc_filter},{ty_acc_filter}が得られ(図4(c)参照)、フィルタ後累積変動量記憶部215に保持される。   The tap number {a_smth_n} _i at each time obtained by the parameter smoothing unit 213 is supplied to the filter calculation unit 214. In the filter calculation unit 214, the stabilization filter processing is performed on the accumulated image fluctuation amount {tx_acc_n}, {ty_acc_n} by a stabilization filter (average value filter) configured using the smoothing tap number {a_smth_n} _i. The From the filter calculation unit 214, the filtered cumulative image fluctuation amount {tx_acc_filter}, {ty_acc_filter} at each time is obtained (see FIG. 4C) and held in the post-filtering cumulative fluctuation amount storage unit 215.

フィルタ後累積変動量平滑化部216では、フィルタ後累積変動量記憶部215から該当時刻とその周辺の複数の時刻のフィルタ後累積画像変動量{tx_acc_filter_n},{ty_acc_filter_n}が取得されて平滑化され、時間変動が滑らかにされた、各時刻のフィルタ後累積画像変動量tx_acc_filter_smth_i,ty_acc_filter_smth_iが得られる。   The post-filter cumulative fluctuation amount smoothing unit 216 acquires the smoothed post-filter image fluctuation amounts {tx_acc_filter_n} and {ty_acc_filter_n} from the post-filter cumulative fluctuation amount storage unit 215 at the corresponding time and a plurality of times around it. Thus, the post-filter cumulative image fluctuation amount tx_acc_filter_smth_i and ty_acc_filter_smth_i at which the time fluctuation is smoothed are obtained.

差分演算部217では、各時刻において、累積画像変動量tx_acc_i,ty_acc_iと平滑化されたフィルタ後累積画像変動量tx_acc_filter_smth_i,ty_acc_filter_smth_iの差分がとられて、各時刻の補正量tx_stb_i,ty_stb_iが得られる。この補正量tx_stb_i,ty_stb_iは、補正部218に供給される。   The difference calculation unit 217 obtains a correction amount tx_stb_i, ty_stb_i at each time by obtaining a difference between the accumulated image variation amount tx_acc_i, ty_acc_i and the smoothed filtered cumulative image variation amount tx_acc_filter_smth_i, ty_acc_filter_smth_i at each time. The correction amounts tx_stb_i and ty_stb_i are supplied to the correction unit 218.

補正部218では、各時刻の補正量tx_stb_i,ty_stb_iが用いられて、入力画像の各時刻の画像変動が補正されて補正画像が得られる。この場合、補正部218では、入力画像の各時刻の画像から、切り出し位置が補正量に基づいて各時刻で移動され、一部が切り出され、拡大などの変形が施されて画像変動の補正が行われる(図2参照)。   The correction unit 218 uses the correction amounts tx_stb_i and ty_stb_i at each time to correct the image variation at each time of the input image and obtain a corrected image. In this case, in the correction unit 218, the cutout position is moved at each time based on the correction amount from the image at each time of the input image, a part is cut out, and deformation such as enlargement is applied to correct the image fluctuation. Performed (see FIG. 2).

図20のフローチャートは、図10に示す画像処理装置200における処理を概略的に示している。画像処理装置200は、ステップST11において、処理を開始する。その後、画像処理装置200は、ステップST12において、画像を画像変化量算出部203に入力する。次に、画像処理装置200は、ステップST13において、画像変化量算出部203で、各時刻の射影行列H_iを算出する。次に、画像処理装置200は、ステップST14において、変動解析部204で、各時刻の射影行列H_iを解析して、各時刻の画像変動量を得、そして、特定の時刻から累積を開始して各時刻の累積画像変動量tx_acc_i,ty_acc_iを求める。   The flowchart in FIG. 20 schematically shows processing in the image processing apparatus 200 shown in FIG. In step ST11, the image processing apparatus 200 starts processing. Thereafter, the image processing apparatus 200 inputs an image to the image change amount calculation unit 203 in step ST12. Next, in step ST13, the image processing apparatus 200 uses the image change amount calculation unit 203 to calculate a projection matrix H_i at each time. Next, in step ST14, the image processing apparatus 200 analyzes the projection matrix H_i at each time with the fluctuation analysis unit 204 to obtain an image fluctuation amount at each time, and starts accumulation from a specific time. Accumulated image fluctuation amounts tx_acc_i and ty_acc_i at each time are obtained.

画像処理装置200は、ステップST12からステップST14の処理と並行して、ステップST15からステップST17の処理を行う。すなわち、画像処理装置200は、ステップST15において、カメラ状態取得部207で、撮影時のカメラから、カメラの状態を示す各種の数値を取得し、数値群としてのカメラ状態値{p_k}_iを取得する。   The image processing apparatus 200 performs the processing from step ST15 to step ST17 in parallel with the processing from step ST12 to step ST14. That is, in step ST15, the image processing apparatus 200 acquires various numerical values indicating the camera state from the camera at the time of shooting by the camera state acquisition unit 207, and acquires a camera state value {p_k} _i as a numerical group. To do.

画像処理装置200は、ステップST16において、カメラ状態解析部208で、カメラ状態値{p_k}_iを解析して、「タップ数(フィルタパラメータ)に対する変調値」および「補正マージンに対する変調値」の2種類の変調値{w_k}_iを得る。そして、画像処理装置200は、ステップST17において、変調値平滑化部210で、変調値{w_k}_iに平滑化を施す。画像処理装置200は、このステップST17の処理の後、あるいはステップST14の処理の後、ステップST18の処理に移る。   In step ST <b> 16, the image processing apparatus 200 analyzes the camera state value {p_k} _i using the camera state analysis unit 208, and calculates “modulation value for the number of taps (filter parameter)” and “modulation value for the correction margin”. A kind of modulation value {w_k} _i is obtained. In step ST <b> 17, the image processing apparatus 200 smoothes the modulation value {w_k} _i using the modulation value smoothing unit 210. The image processing apparatus 200 moves to the process of step ST18 after the process of step ST17 or after the process of step ST14.

このステップST18において、画像処理装置200は、フィルタ生成部211で、累積画像変動量{tx_acc_n},{ty_acc_n}、解析信頼度{c_n}、平滑化変調値{w_k}_iの入力に基づいて、各時刻のフィルタパラメータであるタップ数{a_n}_iを生成する(図13参照)。そして、画像処理装置200は、ステップST19において、パラメータ平滑化部213で、各時刻のタップ数{a_n}_iを平滑化する。   In step ST18, the image processing apparatus 200 uses the filter generation unit 211 to input the accumulated image fluctuation amount {tx_acc_n}, {ty_acc_n}, the analysis reliability {c_n}, and the smoothed modulation value {w_k} _i. The number of taps {a_n} _i, which is a filter parameter at each time, is generated (see FIG. 13). In step ST19, the image processing apparatus 200 uses the parameter smoothing unit 213 to smooth the tap number {a_n} _i at each time.

次に、画像処理装置200は、ステップST20において、フィルタ演算部214で、各時刻の平滑化タップ数{a_smth_n}_iを用いて構成された安定化フィルタ(平均値フィルタ)により、累積画像変動量{tx_acc_n},{ty_acc_n}に安定化フィルタ処理を施す。そして、画像処理装置200は、ステップST21において、フィルタ後累積変動量平滑化部216で、各時刻のフィルタ後の累積画像変動量tx_acc_n_i, ty_acc_n_iに平滑化処理を施す。   Next, in step ST20, the image processing apparatus 200 uses the stabilization filter (average value filter) configured by using the smoothing tap number {a_smth_n} _i at each time in the filter calculation unit 214. Apply stabilization filter processing to {tx_acc_n} and {ty_acc_n}. In step ST <b> 21, the image processing apparatus 200 performs a smoothing process on the filtered cumulative image fluctuation amounts tx_acc_n_i and ty_acc_n_i at each time by the filtered cumulative fluctuation amount smoothing unit 216.

次に、画像処理装置200は、ステップST22において、差分演算部217で、差分演算を行う。この場合、差分演算部217により、各時刻で、累積画像変動量tx_acc_i,ty_acc_iと平滑化されたフィルタ後累積画像変動量tx_acc_filter_smth_i,ty_acc_filter_smth_iの差分がとられて、各時刻の補正量tx_stb_i,ty_stb_iが得られる。   Next, in step ST <b> 22, the image processing apparatus 200 performs a difference calculation at the difference calculation unit 217. In this case, the difference calculation unit 217 obtains the difference between the accumulated image fluctuation amount tx_acc_i, ty_acc_i and the smoothed filtered cumulative image fluctuation amount tx_acc_filter_smth_i, ty_acc_filter_smth_i at each time, and the correction amount tx_stb_i, ty_stb_i at each time is obtained. can get.

次に、画像処理装置200は、ステップST23において、補正部218で、各時刻の補正量tx_stb_i,ty_stb_iを用いて、入力画像の各時刻の画像変動を補正して、補正画像を得る。そして、画像処理装置200は、ステップST24において、補正画像を出力する。画像処理装置200は、ステップST24の後、ステップST25で、処理を終了する。   Next, in step ST23, the image processing device 200 uses the correction amount tx_stb_i, ty_stb_i at each time to correct the image variation at each time of the input image, thereby obtaining a corrected image. Then, the image processing apparatus 200 outputs a corrected image in step ST24. After step ST24, the image processing apparatus 200 ends the process at step ST25.

以上説明したように、図10に示す画像処理装置200においては、入力画像を得るカメラの状態に応じて各時刻の安定化フィルタのタップ数(フィルタパラメータ)が設定されるものである。そのため、画像変化量算出部203で算出される各時刻の射影行列H_i、従って変動解析部204で得られる各時刻の累積画像変動量tx_acc_i,ty_acc_iが低信頼で誤りやすいときに、補正量を弱めることができ、誤検出による誤補正を防ぐことが可能となる。   As described above, in the image processing apparatus 200 shown in FIG. 10, the number of stabilization filter taps (filter parameters) at each time is set according to the state of the camera that obtains the input image. Therefore, the correction amount is weakened when the projection matrix H_i calculated by the image change amount calculation unit 203 at each time, and accordingly, the accumulated image variation amounts tx_acc_i and ty_acc_i obtained at the time by the variation analysis unit 204 are unreliable and error-prone. It is possible to prevent erroneous correction due to erroneous detection.

また、図10に示す画像処理装置200においては、画像変化量算出部203で得られる各時刻の射影行列の信頼度に応じて各時刻の安定化フィルタのタップ数(フィルタパラメータ)が設定されるものである。そのため、画像変化量算出部203で算出される各時刻の射影行列H_i、従って変動解析部204で得られる各時刻の累積画像変動量tx_acc_i,ty_acc_iが低信頼で誤りやすいときに、補正量を弱めることができ、誤検出による誤補正を防ぐことが可能となる。   In addition, in the image processing apparatus 200 shown in FIG. 10, the number of taps (filter parameter) of the stabilization filter at each time is set according to the reliability of the projection matrix at each time obtained by the image change amount calculation unit 203. Is. Therefore, the correction amount is weakened when the projection matrix H_i calculated by the image change amount calculation unit 203 at each time, and accordingly, the accumulated image variation amounts tx_acc_i and ty_acc_i obtained at the time by the variation analysis unit 204 are unreliable and error-prone. It is possible to prevent erroneous correction due to erroneous detection.

また、図10に示す画像処理装置200においては、「タップ数に対する変調値」で変調して得られる第1のタップ数と、「補正マージンに対する変調値」で変調して得られる補正マージンを超えない最大のタップ数である第2のタップ数のうち小さい方を安定化フィルタのタップ数に設定するものである。そのため、補正量が変調後の補正マージンに収まることを保証でき、破綻の発生を防ぐことが可能となる。また、この場合、カットオフ周波数を最も低周波に寄せることができる。   Further, in the image processing apparatus 200 shown in FIG. 10, the first tap number obtained by modulation with the “modulation value with respect to the tap number” and the correction margin obtained by modulation with the “modulation value with respect to the correction margin” are exceeded. The smaller one of the second tap numbers, which is the maximum number of taps, is set as the tap number of the stabilization filter. Therefore, it is possible to ensure that the correction amount is within the correction margin after modulation, and it is possible to prevent the occurrence of failure. In this case, the cut-off frequency can be brought to the lowest frequency.

また、図10に示す画像処理装置200においては、各時刻のタップ数(フィルタパラメー)に平滑化処理が施され、平滑化処理後の各時刻のタップ数を用いて安定化フィルタ処理が施されるものである。そのため、フィルタ自体の時間変化が小さくなり、違和感のない補正が可能となる。   In addition, in the image processing apparatus 200 shown in FIG. 10, the number of taps (filter parameters) at each time is smoothed, and the stabilization filter processing is performed using the number of taps at each time after the smoothing process. Is. Therefore, the time change of the filter itself is reduced, and correction without a sense of incongruity is possible.

また、図10に示す画像処理装置200においては、安定化フィルタ処理が施された各時刻の累積画像変動量に平滑化処理が施されて、各時刻の補正量算出に用いられるものである。そのため、安定化フィルタのタップ数(フィルタパラメータ)の変動が与える累積画像変動量の細かな変動を取り除くことができ、各時刻の補正量としてより適切な補正量を得ることが可能となる。   Further, in the image processing apparatus 200 shown in FIG. 10, the smoothing process is performed on the accumulated image fluctuation amount at each time when the stabilization filter process is performed, and the correction amount calculation at each time is used. Therefore, it is possible to remove fine fluctuations in the accumulated image fluctuation amount given by fluctuations in the number of taps (filter parameters) of the stabilization filter, and it is possible to obtain a more appropriate correction amount as the correction amount at each time.

<7.変形例>
なお、上述実施の形態においては、カメラの撮影情報として、入力画像を得るカメラの状態情報や各時刻の画像変動量の信頼度を挙げている。しかし、必ずしもこれらに限定されるものではなく、これらに類した他の情報を単独で、あるいは組み合わせて用いてもよい。
<7. Modification>
In the above-described embodiments, the camera information for obtaining the input image and the reliability of the image fluctuation amount at each time are listed as the shooting information of the camera. However, the present invention is not necessarily limited to these, and other information similar to these may be used alone or in combination.

また、上述実施の形態においては、カメラ状態から得られる変調値や画像変動量推定の信頼度を安定化フィルタのフィルタパラメータに反映させる例を示した。つまり、安定化効果の調整処理をフィルタパラメータに反映させたものである。しかし、この変調値や信頼度を補正量に反映させることも考えられる。この場合、安定化効果を弱めたいとき、その変調量、信頼度を補正量に反映させて、切り出し箇所が中央から大きくずれないようにすることで、安定化の効き具合を調整することが可能である。変動量の推定結果が低信頼で誤りやすいときに、補正を弱めることができ、誤検出による誤補正を防ぐことが可能となる。   In the above-described embodiment, the example in which the modulation value obtained from the camera state and the reliability of the image fluctuation amount estimation are reflected in the filter parameter of the stabilization filter has been shown. That is, the stabilization effect adjustment process is reflected in the filter parameter. However, it is also conceivable to reflect this modulation value and reliability in the correction amount. In this case, when you want to weaken the stabilization effect, you can adjust the stabilization effect by reflecting the modulation amount and reliability in the correction amount so that the cutout part does not deviate greatly from the center. It is. When the estimation result of the fluctuation amount is low in reliability and easy to error, the correction can be weakened, and erroneous correction due to erroneous detection can be prevented.

また、上述の各実施の形態における画像処理装置はハードウェアでも、ソフトフェアでも実現できる。図21は、ソフトウェアで処理を行うコンピュータ装置300の構成例を示している。このコンピュータ装置300は、CPU(Central Processing Unit)301、ROM(Read Only Memory)302、RAM(Random Access Memory)303、データ入出力部(データI/O)304および画像メモリ305により構成されている。   The image processing apparatus in each of the above embodiments can be realized by hardware or software. FIG. 21 shows a configuration example of a computer apparatus 300 that performs processing by software. The computer apparatus 300 includes a CPU (Central Processing Unit) 301, a ROM (Read Only Memory) 302, a RAM (Random Access Memory) 303, a data input / output unit (data I / O) 304, and an image memory 305. .

ROM302には、CPU301の処理プログラムなどが格納されている。RAM303は、CPU301のワークエリアとして機能する。CPU301は、ROM302に格納されている処理プログラムを必要に応じて読み出し、読み出した処理プログラムをRAM303に転送して展開し、当該展開された処理プログラムを読み出して、画像処理を実行する。   The ROM 302 stores a processing program for the CPU 301 and the like. The RAM 303 functions as a work area for the CPU 301. The CPU 301 reads out the processing program stored in the ROM 302 as necessary, transfers the read processing program to the RAM 303 and develops it, reads the developed processing program, and executes image processing.

このコンピュータ装置300においては、入力画像(画像データ)は、データI/O304を介して入力され、画像メモリ305に蓄積される。この画像メモリ305に蓄積された入力画像に対して、CPU301により、画像変動を補正する画像処理が行われる。そして、処理後の補正画像(画像データ)は、画像メモリ305からデータI/O304を介して外部に出力される。   In this computer apparatus 300, an input image (image data) is input via the data I / O 304 and stored in the image memory 305. The input image stored in the image memory 305 is subjected to image processing for correcting image fluctuations by the CPU 301. The processed corrected image (image data) is output to the outside from the image memory 305 via the data I / O 304.

また、本技術は、以下のような構成を取ることもできる。
(1)入力画像の各時刻の画像変動量を取得する画像変動量取得部と、
上記取得された各時刻の画像変動量を積算して得られる各時刻の累積画像変動量に安定化フィルタ処理を施し、該安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量を取得する補正量取得部を有し、
上記補正量取得部は、
上記入力画像を得るカメラの撮影情報に応じて、上記各時刻の安定化フィルタのフィルタパラメータを設定する
画像処理装置。
(2)上記補正量取得部は、
上記入力画像を得るカメラの状態情報および/または上記取得された各時刻の画像変動量の信頼度に応じて、上記各時刻の安定化フィルタのフィルタパラメータを設定する
前記(1)に記載の画像処理装置。
(3)上記取得された各時刻の補正量を用いて上記入力画像の各時刻の画像変動を補正して補正画像を出力する画像補正部を備える
前記(1)に記載の画像処理装置。
(4)上記カメラの撮影情報は、上記入力画像を得るカメラの状態情報、あるいは上記取得された各時刻の画像変動量の信頼度であり、
上記補正量取得部は、
上記入力画像を得るカメラの状態情報から変調値を求め、所定のフィルタパラメータを該変調値で調整し、あるいは所定のフィルタパラメータを上記信頼度で調整して、上記安定化フィルタのフィルタパラメータを設定する
前記(1)に記載の画像処理装置。
(5)上記カメラの状態情報には、上記カメラが持つジャイロセンサの出力信号が含まれ、
上記フィルタパラメータはタップ数であり、
上記補正量取得部は、
上記ジャイロセンサの出力信号に基づき、上記カメラの動きが小さい程上記変調値を小さく求める
前記(4)に記載の画像処理装置。
(6)
上記カメラの撮影情報は、上記入力画像を得るカメラの状態情報、あるいは上記取得された各時刻の画像変動量の信頼度であり、
上記補正量取得部は、
上記入力画像を得るカメラの状態情報から変調値を求め、所定の補正マージンを該変調値で調整し、あるいは所定の補正マージンを上記信頼度で調整し、上記補正量が該調整された補正マージンを超えない範囲で最もカットオフが低周波となるように上記安定化フィルタのフィルタパラメータを設定する
前記(1)に記載の画像処理装置。
(7)上記カメラの状態情報には、上記カメラのシャッタースピード情報が含まれ、
上記フィルタパラメータはタップ数であり、
上記補正量取得部は、
上記シャッタースピードが遅くなる程上記変調値を小さく求める
前記(6)に記載の画像処理装置。
(8)上記カメラの撮影情報は、上記入力画像を得るカメラの状態情報であり、
上記フィルタパラメータはタップ数であり、
上記補正量取得部は、
上記入力画像を得るカメラの状態情報から、上記安定化フィルタのタップ数を変調する第1の変調値を求めると共に、補正マージンを変調する第2の変調値を求め、
所定のタップ数を上記第1の変調値で変調して第1のタップ数を求め、所定のマージンを上記第2の変調値で変調し、上記補正量が該変調された補正マージンを超えない最大のタップ数を第2のタップ数として求め、
上記第1のタップ数と上記第2のタップ数のうち小さい方を上記安定化フィルタのタップ数に設定する
前記(1)に記載の画像処理装置。
(9)上記補正量取得部は、
上記設定される各時刻の安定化フィルタのフィルタパラメータに平滑化処理を施し、上記各時刻の累積画像変動量に上記平滑化処理が施されたフィルタパラメータによる安定化フィルタ処理を施す
前記(1)から(8)のいずれかに記載の画像処理装置。
(10)上記フィルタパラメータはタップ数であり、
上記フィルタパラメータへの平滑化処理は、タップ数の小さい側で包絡線をとる処理である
前記(9)に記載の画像処理装置。
(11)上記補正量取得部は、
上記安定化フィルタ処理が施された後の各時刻の累積画像変動量に平滑化処理を施し、該平滑化が施された後の各時刻の累積画像変動量と上記安定化フィルタ処理が施される前の各時刻の累積画像変動量に基づいて各時刻の補正量を取得する
前記(1)から(10)に記載の画像処理装置。
(12)上記安定化フィルタ処理が施された後の各時刻の累積画像変動量への平滑化処理は、上記安定化フィルタ処理が施される前後の各時刻の累積画像変動量の間に入るように包絡線をとる処理である
前記(11)に記載の画像処理装置。
(13)
入力画像の各時刻の画像変動量を取得するステップと、
上記取得された各時刻の画像変動量を積算して得られる各時刻の累積画像変動量に安定化フィルタ処理を施し、該安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量を取得するステップを有し、
上記補正量を取得するステップでは、
上記入力画像を得るカメラの撮影情報に応じて、上記各時刻の安定化フィルタのフィルタパラメータを設定する
画像処理方法。
(14)コンピュータを、
入力画像の各時刻の画像変動量を取得する画像変動量取得手段と、
上記取得された各時刻の画像変動量を累積して得られる各時刻の累積画像変動量に安定化フィルタ処理を施し、該安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量を取得する補正量取得手段として機能させ、
上記補正量取得手段は、
上記入力画像を得るカメラの撮影情報に応じて、上記各時刻の安定化フィルタのフィルタパラメータを設定する
プログラム。
(15)入力画像の各時刻の画像変動量を取得する画像変動量取得部と、
上記取得された各時刻の画像変動量を累積して得られる各時刻の累積画像変動量に安定化フィルタ処理を施し、該安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量を取得する補正量取得部と、
上記取得された各時刻の補正量を用いて上記入力画像の各時刻の画像変動を補正して補正画像を出力する画像補正部を備え、
上記補正量取得部は、
上記補正量が所定の補正マージンを超えない範囲で、最もカットオフが低周波になるように上記安定化フィルタのフィルタパラメータを設定する
画像処理装置。
(16)入力画像の各時刻の画像変動量を取得する画像変動量取得部と、
上記取得された各時刻の画像変動量を累積して得られる各時刻の累積画像変動量に安定化フィルタ処理を施し、該安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量を取得する補正量取得部と、
上記取得された各時刻の補正量を用いて上記入力画像の各時刻の画像変動を補正して補正画像を出力する画像補正部を備え、
上記補正量取得部は、
上記各時刻の累積画像変動量に基づいて求められた各時刻の安定化フィルタのフィルタパラメータに平滑化処理を施し、上記各時刻の累積画像変動量に上記平滑化処理が施されたフィルタパラメータによる安定化フィルタ処理を施す
画像処理装置。
(17)上記フィルタパラメータはタップ数であり、
上記フィルタパラメータへの平滑化処理は、タップ数の小さい側で包絡線をとる処理である
前記(16)に記載の画像処理装置。
(18)入力画像の各時刻の画像変動量を取得する画像変動量取得部と、
上記取得された各時刻の画像変動量を累積して得られる各時刻の累積画像変動量に安定化フィルタ処理を施し、該安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量を取得する補正量取得部と、
上記取得された各時刻の補正量を用いて上記入力画像の各時刻の画像変動を補正して補正画像を出力する画像補正部を備え、
上記補正量取得部は、
上記安定化フィルタ処理が施された後の各時刻の累積画像変動量に平滑化処理を施し、該平滑化が施された後の各時刻の累積画像変動量と上記安定化フィルタ処理が施される前の各時刻の累積画像変動量に基づいて各時刻の補正量を取得する
画像処理装置。
(19)上記安定化フィルタ処理が施された後の各時刻の累積画像変量への平滑化処理は、上記安定化フィルタ処理が施される前後の各時刻の累積画像変動量の間に入るように包絡線をとる処理である
前記(18)に記載の画像処理装置。
(20)入力画像の各時刻の画像変動量を取得する画像変動量取得部と、
上記取得された各時刻の画像変動量を積算して得られる各時刻の累積画像変動量に安定化フィルタ処理を施し、該安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量を取得する補正量取得部と、
上記取得された各時刻の補正量を用いて上記入力画像の各時刻の画像変動を補正して補正画像を出力する画像補正部と、
上記入力画像を得るカメラの状態情報および/または上記取得された各時刻の画像変動量の信頼度に応じて、上記補正量取得部で取得される各時刻の補正量を調整する補正量調整部と、
上記調整された各時刻の補正量を用いて上記入力画像の各時刻の画像変動を補正して補正画像を出力する画像補正部を備える
画像処理装置。
Moreover, this technique can also take the following structures.
(1) An image fluctuation amount acquisition unit that acquires an image fluctuation amount at each time of an input image;
Stabilization filter processing is performed on the accumulated image fluctuation amount at each time obtained by integrating the acquired image fluctuation amounts at each time, and each time based on the accumulated image fluctuation amount at each time before and after the stabilization filter processing. A correction amount acquisition unit for acquiring a correction amount of time;
The correction amount acquisition unit
An image processing apparatus that sets a filter parameter of the stabilization filter at each time according to shooting information of a camera that obtains the input image.
(2) The correction amount acquisition unit
The image according to (1), wherein the filter parameter of the stabilization filter at each time is set according to the state information of the camera that obtains the input image and / or the reliability of the obtained image fluctuation amount at each time. Processing equipment.
(3) The image processing apparatus according to (1), further including: an image correction unit that corrects image fluctuation at each time of the input image using the acquired correction amount at each time and outputs a corrected image.
(4) The shooting information of the camera is the state information of the camera that obtains the input image or the reliability of the acquired image fluctuation amount at each time,
The correction amount acquisition unit
The modulation value is obtained from the state information of the camera that obtains the input image, and a predetermined filter parameter is adjusted by the modulation value, or the predetermined filter parameter is adjusted by the reliability, and the filter parameter of the stabilization filter is set. The image processing apparatus according to (1).
(5) The camera status information includes an output signal of the gyro sensor of the camera,
The filter parameter is the number of taps,
The correction amount acquisition unit
The image processing device according to (4), wherein the modulation value is determined to be smaller as the movement of the camera is smaller based on an output signal of the gyro sensor.
(6)
The shooting information of the camera is the status information of the camera that obtains the input image, or the reliability of the acquired image fluctuation amount at each time,
The correction amount acquisition unit
A modulation value is obtained from the state information of the camera that obtains the input image, and a predetermined correction margin is adjusted with the modulation value, or a predetermined correction margin is adjusted with the reliability, and the correction amount is adjusted with the adjusted correction margin. The image processing apparatus according to (1), wherein the filter parameter of the stabilization filter is set so that the cut-off becomes the lowest frequency within a range not exceeding.
(7) The camera state information includes shutter speed information of the camera,
The filter parameter is the number of taps,
The correction amount acquisition unit
The image processing apparatus according to (6), wherein the modulation value is determined to be smaller as the shutter speed is slower.
(8) The photographing information of the camera is state information of the camera that obtains the input image,
The filter parameter is the number of taps,
The correction amount acquisition unit
Obtaining a first modulation value for modulating the number of taps of the stabilization filter from the state information of the camera that obtains the input image, and obtaining a second modulation value for modulating the correction margin,
A predetermined number of taps is modulated with the first modulation value to obtain a first number of taps, a predetermined margin is modulated with the second modulation value, and the correction amount does not exceed the modulated correction margin. Find the maximum number of taps as the second number of taps,
The image processing apparatus according to (1), wherein a smaller one of the first tap number and the second tap number is set as the tap number of the stabilization filter.
(9) The correction amount acquisition unit
The filter parameter of the stabilization filter at each time set is smoothed, and the stabilization filter process is performed on the accumulated image fluctuation amount at each time using the filter parameter subjected to the smoothing process. To (8).
(10) The filter parameter is the number of taps,
The image processing apparatus according to (9), wherein the smoothing process to the filter parameter is a process of taking an envelope on the side with a smaller number of taps.
(11) The correction amount acquisition unit
A smoothing process is performed on the cumulative image fluctuation amount at each time after the stabilization filter processing is performed, and the cumulative image fluctuation amount at each time after the smoothing is performed and the stabilization filter processing is performed. The image processing apparatus according to any one of (1) to (10), wherein a correction amount at each time is acquired based on a cumulative image fluctuation amount at each time before the time.
(12) The smoothing process to the cumulative image fluctuation amount at each time after the stabilization filter processing is performed is between the cumulative image fluctuation amounts at each time before and after the stabilization filter processing is performed. The image processing apparatus according to (11), wherein the image processing apparatus is a process for taking an envelope.
(13)
Obtaining an image variation amount at each time of the input image;
Stabilization filter processing is performed on the accumulated image fluctuation amount at each time obtained by integrating the acquired image fluctuation amounts at each time, and each time based on the accumulated image fluctuation amount at each time before and after the stabilization filter processing. Obtaining a correction amount of time,
In the step of acquiring the correction amount,
An image processing method for setting a filter parameter of a stabilization filter at each time according to shooting information of a camera that obtains the input image.
(14)
Image fluctuation amount acquisition means for acquiring an image fluctuation amount at each time of the input image;
Stabilizing filter processing is performed on the accumulated image variation amount at each time obtained by accumulating the acquired image variation amount at each time, and each time based on the accumulated image variation amount at each time before and after the stabilization filter processing. Function as a correction amount acquisition means for acquiring a correction amount of time,
The correction amount acquisition means includes
A program for setting a filter parameter of the stabilization filter at each time according to shooting information of a camera that obtains the input image.
(15) An image fluctuation amount acquisition unit that acquires an image fluctuation amount at each time of the input image;
Stabilizing filter processing is performed on the accumulated image variation amount at each time obtained by accumulating the acquired image variation amount at each time, and each time based on the accumulated image variation amount at each time before and after the stabilization filter processing. A correction amount acquisition unit for acquiring a correction amount of time;
An image correction unit that corrects image fluctuation at each time of the input image using the acquired correction amount at each time and outputs a corrected image,
The correction amount acquisition unit
An image processing apparatus that sets the filter parameter of the stabilization filter so that the cutoff frequency is the lowest in a range where the correction amount does not exceed a predetermined correction margin.
(16) An image fluctuation amount acquisition unit that acquires an image fluctuation amount at each time of the input image;
Stabilizing filter processing is performed on the accumulated image variation amount at each time obtained by accumulating the acquired image variation amount at each time, and each time based on the accumulated image variation amount at each time before and after the stabilization filter processing. A correction amount acquisition unit for acquiring a correction amount of time;
An image correction unit that corrects image fluctuation at each time of the input image using the acquired correction amount at each time and outputs a corrected image,
The correction amount acquisition unit
A smoothing process is performed on the filter parameter of the stabilization filter at each time obtained based on the accumulated image fluctuation amount at each time, and the smoothing process is performed on the accumulated image fluctuation amount at each time. An image processing apparatus that performs stabilization filter processing.
(17) The filter parameter is the number of taps,
The image processing apparatus according to (16), wherein the smoothing process to the filter parameter is a process of taking an envelope on the side with a smaller number of taps.
(18) An image fluctuation amount acquisition unit that acquires an image fluctuation amount at each time of the input image;
Stabilizing filter processing is performed on the accumulated image variation amount at each time obtained by accumulating the acquired image variation amount at each time, and each time based on the accumulated image variation amount at each time before and after the stabilization filter processing. A correction amount acquisition unit for acquiring a correction amount of time;
An image correction unit that corrects image fluctuation at each time of the input image using the acquired correction amount at each time and outputs a corrected image,
The correction amount acquisition unit
A smoothing process is performed on the cumulative image fluctuation amount at each time after the stabilization filter processing is performed, and the cumulative image fluctuation amount at each time after the smoothing is performed and the stabilization filter processing is performed. An image processing apparatus that acquires a correction amount at each time based on a cumulative image fluctuation amount at each time before the time.
(19) The smoothing process to the accumulated image variable at each time after the stabilization filter processing is performed is between the accumulated image fluctuation amounts at each time before and after the stabilization filter processing is performed. The image processing apparatus according to (18), wherein the image processing apparatus takes an envelope.
(20) An image fluctuation amount acquisition unit that acquires an image fluctuation amount at each time of the input image;
Stabilization filter processing is performed on the accumulated image fluctuation amount at each time obtained by integrating the acquired image fluctuation amounts at each time, and each time based on the accumulated image fluctuation amount at each time before and after the stabilization filter processing. A correction amount acquisition unit for acquiring a correction amount of time;
An image correction unit that corrects image fluctuations at each time of the input image using the acquired correction amount at each time and outputs a corrected image; and
A correction amount adjustment unit that adjusts the correction amount at each time acquired by the correction amount acquisition unit according to the state information of the camera that obtains the input image and / or the reliability of the acquired image variation amount at each time. When,
An image processing apparatus comprising: an image correction unit that corrects image fluctuations at each time of the input image using the adjusted correction amount at each time and outputs a corrected image.

100,100A〜100D・・・画像処理装置
101,101A・・・画像変動量取得部
102,102A〜102D・・・補正量取得部
103・・・画像補正部
104・・・フィルタ生成部
105・・・フィルタパラメータ平滑化部
106・・・フィルタ処理部
107・・・変動量平滑化部
108・・・カメラ状態解析部
200・・・画像処理装置
201・・・撮像・画像部
202・・・画像記憶部
203・・・画像変化量算出部
204・・・変動解析部
205・・・累積変動量記憶部
206・・・解析信頼度記憶部
207・・・カメラ状態取得部
208・・・カメラ状態解析部
209・・・変調値記憶部
210・・・変調値平滑化部
211・・・フィルタ生成部
212・・・フィルタパラメータ記憶部
213・・・パラメータ平滑化部
214・・・フィルタ演算部
215・・・フィルタ後累積変動量記憶部
216・・・フィルタ後累積変動量平滑化部
217・・・差分演算部
218・・・補正部
300・・・コンピュータ装置
DESCRIPTION OF SYMBOLS 100,100A-100D ... Image processing apparatus 101, 101A ... Image fluctuation amount acquisition part 102, 102A-102D ... Correction amount acquisition part 103 ... Image correction part 104 ... Filter generation part 105. ··· Filter parameter smoothing unit 106 ··· Filter processing unit 107 ··· Fluctuation amount smoothing unit 108 ··· Camera state analysis unit 200 ··· Image processing device 201 ··· Imaging / image unit 202 ··· Image storage unit 203 ... Image change amount calculation unit 204 ... Fluctuation analysis unit 205 ... Cumulative variation amount storage unit 206 ... Analysis reliability storage unit 207 ... Camera state acquisition unit 208 ... Camera State analysis unit 209 ... Modulation value storage unit 210 ... Modulation value smoothing unit 211 ... Filter generation unit 212 ... Filter parameter storage unit 213 ... Para Meter smoothing unit 214 ... filter calculation unit 215 ... filtered accumulated fluctuation amount storage unit 216 ... filtered cumulative variation amount smoothing unit 217 ... difference calculation unit 218 ... correction unit 300 ...・ Computer device

Claims (20)

入力画像の各時刻の画像変動量を取得する画像変動量取得部と、
上記取得された各時刻の画像変動量を積算して得られる各時刻の累積画像変動量に安定化フィルタ処理を施し、該安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量を取得する補正量取得部を有し、
上記補正量取得部は、
上記入力画像を得るカメラの撮影情報に応じて、上記各時刻の安定化フィルタのフィルタパラメータを設定する
画像処理装置。
An image fluctuation amount acquisition unit for acquiring an image fluctuation amount at each time of the input image;
Stabilization filter processing is performed on the accumulated image fluctuation amount at each time obtained by integrating the acquired image fluctuation amounts at each time, and each time based on the accumulated image fluctuation amount at each time before and after the stabilization filter processing. A correction amount acquisition unit for acquiring a correction amount of time;
The correction amount acquisition unit
An image processing apparatus that sets a filter parameter of the stabilization filter at each time according to shooting information of a camera that obtains the input image.
上記補正量取得部は、
上記入力画像を得るカメラの状態情報および/または上記取得された各時刻の画像変動量の信頼度に応じて、上記各時刻の安定化フィルタのフィルタパラメータを設定する
請求項1に記載の画像処理装置。
The correction amount acquisition unit
The image processing according to claim 1, wherein a filter parameter of the stabilization filter at each time is set according to state information of a camera that obtains the input image and / or reliability of the obtained image fluctuation amount at each time. apparatus.
上記取得された各時刻の補正量を用いて上記入力画像の各時刻の画像変動を補正して補正画像を出力する画像補正部を備える
請求項1に記載の画像処理装置。
The image processing apparatus according to claim 1, further comprising: an image correcting unit that corrects image fluctuation at each time of the input image using the acquired correction amount at each time and outputs a corrected image.
上記カメラの撮影情報は、上記入力画像を得るカメラの状態情報、あるいは上記取得された各時刻の画像変動量の信頼度であり、
上記補正量取得部は、
上記入力画像を得るカメラの状態情報から変調値を求め、所定のフィルタパラメータを該変調値で調整し、あるいは所定のフィルタパラメータを上記信頼度で調整して、上記安定化フィルタのフィルタパラメータを設定する
請求項1に記載の画像処理装置。
The shooting information of the camera is the status information of the camera that obtains the input image, or the reliability of the acquired image fluctuation amount at each time,
The correction amount acquisition unit
The modulation value is obtained from the state information of the camera that obtains the input image, and a predetermined filter parameter is adjusted by the modulation value, or the predetermined filter parameter is adjusted by the reliability, and the filter parameter of the stabilization filter is set. The image processing apparatus according to claim 1.
上記カメラの状態情報には、上記カメラが持つジャイロセンサの出力信号が含まれ、
上記フィルタパラメータはタップ数であり、
上記補正量取得部は、
上記ジャイロセンサの出力信号に基づき、上記カメラの動きが小さい程上記変調値を小さく求める
請求項4に記載の画像処理装置。
The camera state information includes the output signal of the gyro sensor of the camera,
The filter parameter is the number of taps,
The correction amount acquisition unit
The image processing apparatus according to claim 4, wherein the modulation value is determined to be smaller as the movement of the camera is smaller based on an output signal of the gyro sensor.
上記カメラの撮影情報は、上記入力画像を得るカメラの状態情報、あるいは上記取得された各時刻の画像変動量の信頼度であり、
上記補正量取得部は、
上記入力画像を得るカメラの状態情報から変調値を求め、所定の補正マージンを該変調値で調整し、あるいは所定の補正マージンを上記信頼度で調整し、上記補正量が該調整された補正マージンを超えない範囲で最もカットオフが低周波となるように上記安定化フィルタのフィルタパラメータを設定する
請求項1に記載の画像処理装置。
The shooting information of the camera is the status information of the camera that obtains the input image, or the reliability of the acquired image fluctuation amount at each time,
The correction amount acquisition unit
A modulation value is obtained from the state information of the camera that obtains the input image, and a predetermined correction margin is adjusted with the modulation value, or a predetermined correction margin is adjusted with the reliability, and the correction amount is adjusted with the adjusted correction margin. The image processing apparatus according to claim 1, wherein the filter parameter of the stabilization filter is set so that the cut-off becomes the lowest frequency within a range not exceeding.
上記カメラの状態情報には、上記カメラのシャッタースピード情報が含まれ、
上記フィルタパラメータはタップ数であり、
上記補正量取得部は、
上記シャッタースピードが遅くなる程上記変調値を小さく求める
請求項6に記載の画像処理装置。
The camera status information includes shutter speed information of the camera,
The filter parameter is the number of taps,
The correction amount acquisition unit
The image processing apparatus according to claim 6, wherein the modulation value is determined to be smaller as the shutter speed is slower.
上記カメラの撮影情報は、上記入力画像を得るカメラの状態情報であり、
上記フィルタパラメータはタップ数であり、
上記補正量取得部は、
上記入力画像を得るカメラの状態情報から、上記安定化フィルタのタップ数を変調する第1の変調値を求めると共に、補正マージンを変調する第2の変調値を求め、
所定のタップ数を上記第1の変調値で変調して第1のタップ数を求め、所定のマージンを上記第2の変調値で変調し、上記補正量が該変調された補正マージンを超えない最大のタップ数を第2のタップ数として求め、
上記第1のタップ数と上記第2のタップ数のうち小さい方を上記安定化フィルタのタップ数に設定する
請求項1に記載の画像処理装置。
The shooting information of the camera is the status information of the camera that obtains the input image,
The filter parameter is the number of taps,
The correction amount acquisition unit
Obtaining a first modulation value for modulating the number of taps of the stabilization filter from the state information of the camera that obtains the input image, and obtaining a second modulation value for modulating the correction margin,
A predetermined number of taps is modulated with the first modulation value to obtain a first number of taps, a predetermined margin is modulated with the second modulation value, and the correction amount does not exceed the modulated correction margin. Find the maximum number of taps as the second number of taps,
The image processing apparatus according to claim 1, wherein a smaller one of the first tap number and the second tap number is set as the tap number of the stabilization filter.
上記補正量取得部は、
上記設定される各時刻の安定化フィルタのフィルタパラメータに平滑化処理を施し、上記各時刻の累積画像変動量に上記平滑化処理が施されたフィルタパラメータによる安定化フィルタ処理を施す
請求項1に記載の画像処理装置。
The correction amount acquisition unit
The smoothing process is performed on the filter parameter of the stabilization filter at each time set, and the stabilization filter process is performed on the accumulated image fluctuation amount at each time by the filter parameter subjected to the smoothing process. The image processing apparatus described.
上記フィルタパラメータはタップ数であり、
上記フィルタパラメータへの平滑化処理は、タップ数の小さい側で包絡線をとる処理である
請求項9に記載の画像処理装置。
The filter parameter is the number of taps,
The image processing apparatus according to claim 9, wherein the smoothing process to the filter parameter is a process of taking an envelope on the side with a smaller number of taps.
上記補正量取得部は、
上記安定化フィルタ処理が施された後の各時刻の累積画像変動量に平滑化処理を施し、該平滑化が施された後の各時刻の累積画像変動量と上記安定化フィルタ処理が施される前の各時刻の累積画像変動量に基づいて各時刻の補正量を取得する
請求項1に記載の画像処理装置。
The correction amount acquisition unit
A smoothing process is performed on the cumulative image fluctuation amount at each time after the stabilization filter processing is performed, and the cumulative image fluctuation amount at each time after the smoothing is performed and the stabilization filter processing is performed. The image processing apparatus according to claim 1, wherein a correction amount at each time is acquired based on a cumulative image fluctuation amount at each time before the time.
上記安定化フィルタ処理が施された後の各時刻の累積画像変動量への平滑化処理は、上記安定化フィルタ処理が施される前後の各時刻の累積画像変動量の間に入るように包絡線をとる処理である
請求項11に記載の画像処理装置。
The smoothing process to the accumulated image fluctuation amount at each time after the stabilization filter processing is performed is enveloped so as to fall between the accumulated image fluctuation amounts at each time before and after the stabilization filter processing is performed. The image processing apparatus according to claim 11, wherein the image processing apparatus is a process of drawing a line.
入力画像の各時刻の画像変動量を取得するステップと、
上記取得された各時刻の画像変動量を積算して得られる各時刻の累積画像変動量に安定化フィルタ処理を施し、該安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量を取得するステップを有し、
上記補正量を取得するステップでは、
上記入力画像を得るカメラの撮影情報に応じて、上記各時刻の安定化フィルタのフィルタパラメータを設定する
画像処理方法。
Obtaining an image variation amount at each time of the input image;
Stabilization filter processing is performed on the accumulated image fluctuation amount at each time obtained by integrating the acquired image fluctuation amounts at each time, and each time based on the accumulated image fluctuation amount at each time before and after the stabilization filter processing. Obtaining a correction amount of time,
In the step of acquiring the correction amount,
An image processing method for setting a filter parameter of a stabilization filter at each time according to shooting information of a camera that obtains the input image.
コンピュータを、
入力画像の各時刻の画像変動量を取得する画像変動量取得手段と、
上記取得された各時刻の画像変動量を累積して得られる各時刻の累積画像変動量に安定化フィルタ処理を施し、該安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量を取得する補正量取得手段として機能させ、
上記補正量取得手段は、
上記入力画像を得るカメラの撮影情報に応じて、上記各時刻の安定化フィルタのフィルタパラメータを設定する
プログラム。
Computer
Image fluctuation amount acquisition means for acquiring an image fluctuation amount at each time of the input image;
Stabilizing filter processing is performed on the accumulated image variation amount at each time obtained by accumulating the acquired image variation amount at each time, and each time based on the accumulated image variation amount at each time before and after the stabilization filter processing. Function as a correction amount acquisition means for acquiring a correction amount of time,
The correction amount acquisition means includes
A program for setting a filter parameter of the stabilization filter at each time according to shooting information of a camera that obtains the input image.
入力画像の各時刻の画像変動量を取得する画像変動量取得部と、
上記取得された各時刻の画像変動量を累積して得られる各時刻の累積画像変動量に安定化フィルタ処理を施し、該安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量を取得する補正量取得部と、
上記取得された各時刻の補正量を用いて上記入力画像の各時刻の画像変動を補正して補正画像を出力する画像補正部を備え、
上記補正量取得部は、
上記補正量が所定の補正マージンを超えない範囲で、最もカットオフが低周波になるように上記安定化フィルタのフィルタパラメータを設定する
画像処理装置。
An image fluctuation amount acquisition unit for acquiring an image fluctuation amount at each time of the input image;
Stabilizing filter processing is performed on the accumulated image variation amount at each time obtained by accumulating the acquired image variation amount at each time, and each time based on the accumulated image variation amount at each time before and after the stabilization filter processing. A correction amount acquisition unit for acquiring a correction amount of time;
An image correction unit that corrects image fluctuation at each time of the input image using the acquired correction amount at each time and outputs a corrected image,
The correction amount acquisition unit
An image processing apparatus that sets the filter parameter of the stabilization filter so that the cutoff frequency is the lowest in a range where the correction amount does not exceed a predetermined correction margin.
入力画像の各時刻の画像変動量を取得する画像変動量取得部と、
上記取得された各時刻の画像変動量を累積して得られる各時刻の累積画像変動量に安定化フィルタ処理を施し、該安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量を取得する補正量取得部と、
上記取得された各時刻の補正量を用いて上記入力画像の各時刻の画像変動を補正して補正画像を出力する画像補正部を備え、
上記補正量取得部は、
上記各時刻の累積画像変動量に基づいて求められた各時刻の安定化フィルタのフィルタパラメータに平滑化処理を施し、上記各時刻の累積画像変動量に上記平滑化処理が施されたフィルタパラメータによる安定化フィルタ処理を施す
画像処理装置。
An image fluctuation amount acquisition unit for acquiring an image fluctuation amount at each time of the input image;
Stabilizing filter processing is performed on the accumulated image variation amount at each time obtained by accumulating the acquired image variation amount at each time, and each time based on the accumulated image variation amount at each time before and after the stabilization filter processing. A correction amount acquisition unit for acquiring a correction amount of time;
An image correction unit that corrects image fluctuation at each time of the input image using the acquired correction amount at each time and outputs a corrected image,
The correction amount acquisition unit
A smoothing process is performed on the filter parameter of the stabilization filter at each time obtained based on the accumulated image fluctuation amount at each time, and the smoothing process is performed on the accumulated image fluctuation amount at each time. An image processing apparatus that performs stabilization filter processing.
上記フィルタパラメータはタップ数であり、
上記フィルタパラメータへの平滑化処理は、タップ数の小さい側で包絡線をとる処理である
請求項16に記載の画像処理装置。
The filter parameter is the number of taps,
The image processing apparatus according to claim 16, wherein the smoothing process to the filter parameter is a process of taking an envelope on the side with a smaller number of taps.
入力画像の各時刻の画像変動量を取得する画像変動量取得部と、
上記取得された各時刻の画像変動量を累積して得られる各時刻の累積画像変動量に安定化フィルタ処理を施し、該安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量を取得する補正量取得部と、
上記取得された各時刻の補正量を用いて上記入力画像の各時刻の画像変動を補正して補正画像を出力する画像補正部を備え、
上記補正量取得部は、
上記安定化フィルタ処理が施された後の各時刻の累積画像変動量に平滑化処理を施し、該平滑化が施された後の各時刻の累積画像変動量と上記安定化フィルタ処理が施される前の各時刻の累積画像変動量に基づいて各時刻の補正量を取得する
画像処理装置。
An image fluctuation amount acquisition unit for acquiring an image fluctuation amount at each time of the input image;
Stabilizing filter processing is performed on the accumulated image variation amount at each time obtained by accumulating the acquired image variation amount at each time, and each time based on the accumulated image variation amount at each time before and after the stabilization filter processing. A correction amount acquisition unit for acquiring a correction amount of time;
An image correction unit that corrects image fluctuation at each time of the input image using the acquired correction amount at each time and outputs a corrected image,
The correction amount acquisition unit
A smoothing process is performed on the cumulative image fluctuation amount at each time after the stabilization filter processing is performed, and the cumulative image fluctuation amount at each time after the smoothing is performed and the stabilization filter processing is performed. An image processing apparatus that acquires a correction amount at each time based on a cumulative image fluctuation amount at each time before the time.
上記安定化フィルタ処理が施された後の各時刻の累積画像変量への平滑化処理は、上記安定化フィルタ処理が施される前後の各時刻の累積画像変動量の間に入るように包絡線をとる処理である
請求項18に記載の画像処理装置。
The smoothing processing to the accumulated image variable at each time after the stabilization filter processing is performed is an envelope so that it falls between the accumulated image variation amounts at each time before and after the stabilization filter processing is performed. The image processing apparatus according to claim 18, wherein
入力画像の各時刻の画像変動量を取得する画像変動量取得部と、
上記取得された各時刻の画像変動量を積算して得られる各時刻の累積画像変動量に安定化フィルタ処理を施し、該安定化フィルタ処理の前後における各時刻の累積画像変動量に基づいて各時刻の補正量を取得する補正量取得部と、
上記取得された各時刻の補正量を用いて上記入力画像の各時刻の画像変動を補正して補正画像を出力する画像補正部と、
上記入力画像を得るカメラの状態情報および/または上記取得された各時刻の画像変動量の信頼度に応じて、上記補正量取得部で取得される各時刻の補正量を調整する補正量調整部と、
上記調整された各時刻の補正量を用いて上記入力画像の各時刻の画像変動を補正して補正画像を出力する画像補正部を備える
画像処理装置。
An image fluctuation amount acquisition unit for acquiring an image fluctuation amount at each time of the input image;
Stabilization filter processing is performed on the accumulated image fluctuation amount at each time obtained by integrating the acquired image fluctuation amounts at each time, and each time based on the accumulated image fluctuation amount at each time before and after the stabilization filter processing. A correction amount acquisition unit for acquiring a correction amount of time;
An image correction unit that corrects image fluctuations at each time of the input image using the acquired correction amount at each time and outputs a corrected image; and
A correction amount adjustment unit that adjusts the correction amount at each time acquired by the correction amount acquisition unit according to the state information of the camera that obtains the input image and / or the reliability of the acquired image variation amount at each time. When,
An image processing apparatus comprising: an image correction unit that corrects image fluctuations at each time of the input image using the adjusted correction amount at each time and outputs a corrected image.
JP2013270324A 2013-12-26 2013-12-26 Image processor, image processing method and program Pending JP2015126436A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013270324A JP2015126436A (en) 2013-12-26 2013-12-26 Image processor, image processing method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013270324A JP2015126436A (en) 2013-12-26 2013-12-26 Image processor, image processing method and program

Publications (1)

Publication Number Publication Date
JP2015126436A true JP2015126436A (en) 2015-07-06

Family

ID=53536837

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013270324A Pending JP2015126436A (en) 2013-12-26 2013-12-26 Image processor, image processing method and program

Country Status (1)

Country Link
JP (1) JP2015126436A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018182564A (en) * 2017-04-14 2018-11-15 キヤノン株式会社 Video reproducing apparatus, and control method, and program thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018182564A (en) * 2017-04-14 2018-11-15 キヤノン株式会社 Video reproducing apparatus, and control method, and program thereof
JP6995490B2 (en) 2017-04-14 2022-01-14 キヤノン株式会社 Video playback device and its control method and program

Similar Documents

Publication Publication Date Title
US9924100B2 (en) Image-blur correction apparatus, tilt correction apparatus, method of controlling image-blur correction apparatus, and method of controlling tilt correction apparatus
JP5906493B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium
US10848676B2 (en) Semiconductor device and electronic device
JP4430727B2 (en) Motion filter processing for video stabilization
US11025823B2 (en) Electronic stabilization method, image acquisition device, and movable platform
JP2010200179A (en) Image processor, image processing method, image processing program and program storing medium in which image processing program is stored
US10911675B2 (en) Method for providing shake correction, signal processing device performing the method, and imaging device including the signal processing device
WO2012029296A1 (en) Image processing device and image processing method
CN107306337B (en) Image processing apparatus, image capturing apparatus, and image processing method
KR20120131178A (en) Imaging device including target tracking function
JP7356557B2 (en) Image stabilization device, imaging device, monitoring system, and program
CN111372000B (en) Video anti-shake method and apparatus, electronic device, and computer-readable storage medium
JP2019145958A (en) Imaging apparatus, control method of the same, and program
JP5836110B2 (en) Imaging apparatus and control method thereof
JP2009088935A (en) Image recording apparatus, image correcting apparatus, and image pickup apparatus
JP2015126436A (en) Image processor, image processing method and program
JP6282133B2 (en) Imaging device, control method thereof, and control program
WO2017187691A1 (en) Image processing device, imaging device, image processing method and program
US10567658B2 (en) Image processing device, image processing method, image processing program
CN112995498B (en) Image processing apparatus, image capturing apparatus, image processing method, and storage medium
EP3783879B1 (en) Image stabilization apparatus, method of controlling the same, program and storage medium
JP6742823B2 (en) Image processing apparatus, image processing method, and program
JP2018098612A (en) Image processing system, image processing method, imaging apparatus, program, and storage medium
JP6570304B2 (en) Video processing apparatus, video processing method, and program
JP7374650B2 (en) Imaging device and its control method