JP4760484B2 - Camera shake correction apparatus, camera shake correction method, and program - Google Patents

Camera shake correction apparatus, camera shake correction method, and program Download PDF

Info

Publication number
JP4760484B2
JP4760484B2 JP2006093503A JP2006093503A JP4760484B2 JP 4760484 B2 JP4760484 B2 JP 4760484B2 JP 2006093503 A JP2006093503 A JP 2006093503A JP 2006093503 A JP2006093503 A JP 2006093503A JP 4760484 B2 JP4760484 B2 JP 4760484B2
Authority
JP
Japan
Prior art keywords
luminance
image
shake correction
specific
camera shake
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.)
Expired - Fee Related
Application number
JP2006093503A
Other languages
Japanese (ja)
Other versions
JP2007274029A (en
Inventor
裕紀 川上
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2006093503A priority Critical patent/JP4760484B2/en
Publication of JP2007274029A publication Critical patent/JP2007274029A/en
Application granted granted Critical
Publication of JP4760484B2 publication Critical patent/JP4760484B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Exposure Control For Cameras (AREA)
  • Adjustment Of Camera Lenses (AREA)
  • Studio Devices (AREA)

Description

本発明は、手振れ補正機能を有するデジタルカメラやデジタルビデオカメラ等の撮像装置に用いて好適な手振れ補正装置、及び手振れ補正方法に関するものである。   The present invention relates to a camera shake correction apparatus and a camera shake correction method suitable for use in an imaging apparatus such as a digital camera or a digital video camera having a camera shake correction function.

従来、デジタルカメラやデジタルビデオカメラ等の撮像装置においては、動画撮影中やスルー画像の表示中における手振れを補正する方法として、例えば動画像のサイズを撮像素子により撮像する画像のサイズよりも小さくし、撮像した画像から必要サイズの部分画像を切り出し、その部分画像をフレーム画像として取得する一方、撮影中には、カメラ本体の動きベクトルを検出し、検出した動きベクトル応じて前記部分画像(フレーム画像)の切り出し位置、すなわち有効画素領域を制御する方法がある。 Conventionally, in an imaging apparatus such as a digital camera or a digital video camera, as a method of correcting camera shake during moving image shooting or through image display, for example, the size of a moving image is made smaller than the size of an image captured by an image sensor. , cut out partial images required size from the captured image, while obtaining the partial image as a frame image, in the shooting, and detects the motion vector of the camera body, the partial image (frame in accordance with the detected motion vector There is a method of controlling the cutout position of the image), that is, the effective pixel area.

そして、前述した動きベクトルを検出する方法については、前回撮像した画像と今回撮像した画像とを比較することによって検出するものが公知である(例えば下記特許文献1参照)。 Then, for a method of detecting a motion vector as described above, it is known to detect by comparing the image obtained by the image and the currently captured the previously captured (for example, the following Patent Document 1).

しかしながら、上記のように相前後して撮像した双方の画像を比較して動きベクトルを検出する場合には、前後のフレーム画像の全域を比較範囲(サーチ範囲)としたのでは計算量が膨大となるため、上記サーチ範囲を画像内の一部(例えば画像内の四隅)に限定せざるを得ない。つまり動き補正量の検出精度をある程度下げざるを得ないという問題があった。   However, in the case where a motion vector is detected by comparing both images taken in succession as described above, the calculation amount is enormous if the entire area of the previous and next frame images is set as the comparison range (search range). Therefore, the search range must be limited to a part of the image (for example, four corners in the image). That is, there is a problem that the detection accuracy of the motion correction amount has to be lowered to some extent.

本発明は、かかる従来の課題に鑑みてなされたものであり、高速かつ高精度の手振れ補正を行うことが可能となる手振れ補正装置、及び手振れ補正方法と、それらの実現に使用されるプログラムとを提供することを目的とする。   The present invention has been made in view of such conventional problems, and a camera shake correction apparatus and a camera shake correction method capable of performing high-speed and high-precision camera shake correction, and a program used for realizing them. The purpose is to provide.

前記課題を解決するため請求項1の発明にあっては、撮像素子により撮像された前回の画像及び今回の画像から、各々の輝度分布を示す第1のヒストグラムデータ及び第2のヒストグラムデータを取得するヒストグラム取得手段と、このヒストグラム取得手段により取得された第1及び第2のヒストグラムデータから、双方間の差分を演算する差分演算手段と、この差分演算手段により演算された差分において、同一輝度の画素数の差が所定以上大きな特定輝度レベルを判定する輝度レベル判定手段と、前記前回の画像及び今回の画像から、前記輝度レベル判定手段により判定された特定輝度レベルの輝度を有する画素からなる第1及び第2の特定輝度画像を生成する生成手段と、この生成手段により生成された第1及び第2の特定輝度画像に基づき装置本体の動きに応じた手振れ補正量を演算する演算手段と備えたものとした。 In order to solve the above-described problem, in the first aspect of the invention, the first histogram data and the second histogram data indicating each luminance distribution are obtained from the previous image and the current image captured by the image sensor. Histogram acquisition means, difference calculation means for calculating the difference between the first and second histogram data acquired by the histogram acquisition means, and the difference calculated by the difference calculation means, the same luminance is obtained. A luminance level determination unit that determines a specific luminance level having a difference in number of pixels that is greater than or equal to a predetermined value; Generation means for generating first and second specific luminance images, and first and second specific luminance images generated by the generation means The shake correction amount corresponding to the movement of the basis apparatus body was that a calculating means for calculating.

また、請求項2の発明にあっては、前記輝度レベル判定手段は、全輝度区間を複数に分割した輝度区間毎に前記特定輝度レベルを複数判定し、前記生成手段は、前記前回の画像及び今回の画像から、前記輝度レベル判定手段により複数の輝度区間毎に判定された複数の特定輝度レベル毎に前記第1及び第2の特定輝度画像を生成し、前記演算手段は、前記生成手段により複数の特定輝度レベル毎に生成された第1及び第2の特定輝度画像に基づき、装置本体の動きに応じた手振れ補正量を複数の特定輝度レベル毎に演算する第1の演算手段と、その第1の演算手段により複数の特定輝度レベル毎に演算された手振れ補正量に基づき最終的な手振れ補正量を演算する第2の演算手段とを含むものとした。   Further, in the invention of claim 2, the luminance level determining means determines a plurality of the specific luminance levels for each luminance section obtained by dividing the entire luminance section into a plurality, and the generating means includes the previous image and From the current image, the first and second specific luminance images are generated for each of a plurality of specific luminance levels determined for each of a plurality of luminance intervals by the luminance level determination unit, and the arithmetic unit is A first computing means for computing a camera shake correction amount for each of the plurality of specific luminance levels based on the first and second specific luminance images generated for each of the plurality of specific luminance levels; And a second calculation means for calculating a final shake correction amount based on the shake correction amount calculated for each of the plurality of specific luminance levels by the first calculation means.

また、請求項3の発明にあっては、前記輝度レベル判定手段は、全輝度区間を複数に分割した輝度区間毎に前記特定輝度レベルを複数判定し、前記生成手段は、前記前回の画像及び今回の画像から、前記輝度レベル判定手段により複数の輝度区間毎に判定された複数の特定輝度レベル毎に前記第1及び第2の特定輝度画像を生成し、前記演算手段は、前記生成手段により複数の特定輝度レベル毎に生成された第1及び第2の特定輝度画像に基づき、装置本体の動きに応じた手振れ補正量を複数の特定輝度レベル毎に所定の順に演算するとともに、前記複数の特定輝度レベルのいずれかについて手振れ補正成分の取得に成功した後には、他の特定輝度レベルについての手振れ補正成分の取得を中止するものとした。   Further, in the invention of claim 3, the brightness level determining means determines a plurality of the specific brightness levels for each brightness section obtained by dividing the entire brightness section into a plurality, and the generating means includes the previous image and From the current image, the first and second specific luminance images are generated for each of a plurality of specific luminance levels determined for each of a plurality of luminance intervals by the luminance level determination unit, and the arithmetic unit is Based on the first and second specific luminance images generated for each of the plurality of specific luminance levels, the camera shake correction amount corresponding to the movement of the apparatus body is calculated in a predetermined order for each of the plurality of specific luminance levels, After successfully acquiring the camera shake correction component for any one of the specific luminance levels, the acquisition of the camera shake correction component for another specific luminance level is stopped.

また、請求項4の発明にあっては、前記ヒストグラム取得手段は、前記第1及び第2のヒストグラムデータを、前回の画像及び前記今回の画像における同一の分割領域毎に取得し、前記輝度レベル判定手段は、前記ヒストグラム取得手段により分割領域毎に取得された第1及び第2のヒストグラムデータについて前記特定輝度レベルを前記分割領域毎にそれぞれ判定し、前記生成手段は、前記前回の画像及び今回の画像から、前記輝度レベル判定手段により判定された分割領域毎に前記第1及び第2の特定輝度画像を生成し、前記演算手段は、前記生成手段により分割領域毎に生成された第1及び第2の特定輝度画像に基づき、装置本体の動きに応じた手振れ補正量を分割領域毎に演算する第1の演算手段と、その第1の演算手段により分割領域毎に演算された手振れ補正量に基づき最終的な手振れ補正量を演算する第2の演算手段とを含むものとした。   According to a fourth aspect of the present invention, the histogram acquisition means acquires the first and second histogram data for each of the same divided areas in the previous image and the current image, and the luminance level. The determining unit determines the specific luminance level for each of the divided regions for the first and second histogram data acquired for each divided region by the histogram acquiring unit, and the generating unit is configured to determine the previous image and the current time. The first specific luminance image and the second specific luminance image are generated for each divided region determined by the luminance level determining unit, and the calculation unit is configured to generate the first and second specific luminance images generated for each divided region by the generating unit. Based on the second specific luminance image, a first calculation unit that calculates a camera shake correction amount corresponding to the movement of the apparatus main body for each divided region, and the first calculation unit It was assumed and a second calculating means for calculating a final shake correction amount based on the camera-shake correction amount calculated for each frequency band.

また、請求項5の発明にあっては、前記ヒストグラム取得手段は、前記輝度レベル判定手段により特定輝度レベルが判定されるまで、前記前回の画像及び今回の画像における前記第1及び第2のヒストグラムデータの取得対象領域を、より面積の大きな領域に段階的に切り替えて前記第1及び第2のヒストグラムデータを取得し、前記生成手段は、前記前回の画像及び今回の画像から、前記輝度レベル判定手段により最初に判定された特定輝度レベルの輝度を有する画素からなる第1及び第2の特定輝度画像を生成するものとした。   According to a fifth aspect of the present invention, the first and second histograms in the previous image and the current image until the specific luminance level is determined by the luminance level determination unit. The data acquisition target region is gradually switched to a region having a larger area to acquire the first and second histogram data, and the generation unit determines the brightness level from the previous image and the current image. The first and second specific luminance images composed of pixels having the luminance of the specific luminance level first determined by the means are generated.

また、請求項6の発明にあっては、前記ヒストグラム取得手段は、前記輝度レベル判定手段により特定輝度レベルが判定されるまで、前記前回の画像及び今回の画像における前記第1及び第2のヒストグラムデータの取得対象領域を、より面積の小さい領域に段階的に切り替えて前記第1及び第2のヒストグラムデータを取得し、前記生成手段は、前記前回の画像及び今回の画像から、前記輝度レベル判定手段により最後に判定された特定輝度レベルの輝度を有する画素からなる第1及び第2の特定輝度画像を生成するものとした。   According to a sixth aspect of the present invention, the first and second histograms in the previous image and the current image until the specific luminance level is determined by the luminance level determination unit. The data acquisition target region is switched to a region with a smaller area step by step to acquire the first and second histogram data, and the generation means determines the brightness level from the previous image and the current image. The first and second specific luminance images composed of pixels having the luminance of the specific luminance level determined last by the means are generated.

また、請求項7の発明にあっては、前記ヒストグラム取得手段が段階的に切り替える取得対象領域の各々は、互いに独立した領域であるものとした。   In addition, in the invention of claim 7, each of the acquisition target areas that the histogram acquisition means switches stepwise is an independent area.

また、請求項8の発明にあっては、前記ヒストグラム取得手段は、前記輝度レベル判定手段により特定輝度レベルが判定されるまで、前記前回の画像及び今回の画像における前記第1及び第2のヒストグラムデータの取得対象領域を、所定の順に切り替えて前記第1及び第2のヒストグラムデータを取得し、前記生成手段は、前記前回の画像及び今回の画像から、前記輝度レベル判定手段により最初に判定された特定輝度レベルの輝度を有する画素からなる第1及び第2の特定輝度画像をそれぞれ生成するものとした。   In the invention according to claim 8, the histogram acquisition unit is configured to store the first and second histograms in the previous image and the current image until a specific luminance level is determined by the luminance level determination unit. The data acquisition target region is switched in a predetermined order to acquire the first and second histogram data, and the generation unit is first determined by the luminance level determination unit from the previous image and the current image. The first and second specific luminance images made up of pixels having specific luminance levels are generated.

また、請求項9の発明にあっては、撮像素子により撮像された前回の画像及び今回の画像から、各々の輝度分布を示す第1のヒストグラムデータ及び第2のヒストグラムデータを取得する工程と、取得した第1及び第2のヒストグラムデータから、双方間の差分を演算する工程と、演算した差分において、同一輝度の画素数の差が所定以上大きな特定輝度レベルを判定する工程と、判定した特定輝度レベルの輝度を有する画素からなる第1及び第2の特定輝度画像を、前記前回の画像及び今回の画像から生成する工程と、生成した第1及び第2の特定輝度画像に基づき装置本体の動きに応じた手振れ補正量を演算する工程と含む方法とした。 Further, in the invention of claim 9, obtaining the first histogram data and the second histogram data indicating each luminance distribution from the previous image and the current image captured by the image sensor, The step of calculating the difference between the two from the acquired first and second histogram data, the step of determining a specific luminance level in which the difference in the number of pixels of the same luminance is greater than a predetermined value in the calculated difference, and the determined identification Generating a first and second specific luminance image made up of pixels having a luminance level from the previous image and the current image, and based on the generated first and second specific luminance images, and the method including the step of calculating the shake correction amount corresponding to the motion.

また、請求項10の発明にあっては、手振れ補正装置が有するコンピュータに、撮像素子により撮像された前回の画像及び今回の画像から、各々の輝度分布を示す第1のヒストグラムデータ及び第2のヒストグラムデータを取得する処理と、取得した第1及び第2のヒストグラムデータから、双方間の差分を演算する処理と、演算した差分において、同一輝度の画素数の差が所定以上大きな特定輝度レベルを判定する処理と、判定した特定輝度レベルの輝度を有する画素からなる第1及び第2の特定輝度画像を、前記前回の画像及び今回の画像から生成する処理と、生成した第1及び第2の特定輝度画像に基づき装置本体の動きに応じた手振れ補正量を演算する処理と実行させるためのプログラムとした。
また、請求項11の発明にあっては、前記演算手段により演算された手振れ補正量に応じ、今回の画像から切り出す所定サイズの有効画素領域の切り出し位置を設定する設定手段をさらに備えるものとした。
In the invention of claim 10, the first histogram data and the second histogram indicating the respective luminance distributions from the previous image and the current image captured by the image sensor are stored in the computer included in the camera shake correction apparatus. A process of acquiring histogram data, a process of calculating a difference between the acquired first and second histogram data, and a specific luminance level in which the difference in the number of pixels of the same luminance is greater than a predetermined value in the calculated difference. A process of determining, a process of generating first and second specific luminance images made up of pixels having the determined specific luminance level from the previous image and the current image, and the generated first and second and a program for executing a process of calculating the shake correction amount corresponding to the movement of the apparatus body based on the particular luminance image.
The invention of claim 11 further comprises setting means for setting a cutout position of an effective pixel area of a predetermined size cut out from the current image in accordance with the amount of camera shake correction calculated by the calculation means. .

以上のように本発明においては、前回の画像と今回の画像との双方の画像における、他方側との違いが顕著である部分のみを構成するごく一部、必要最小限の画素情報に基づき効率的に装置本体の動きを検出ることができるようにしたことから、高速かつ高精度の手振れ補正を行うことが可能となる。 As described above, according to the present invention, the efficiency based on the minimum necessary pixel information, which is a very small part constituting only the portion where the difference between the previous image and the current image is significant. the movement of the apparatus body because it has to allow you to detected manner, it is possible to perform the image stabilization of high speed and high accuracy.

以下、本発明の一実施の形態を図にしたがって説明する。図1は、動画撮影が可能であるとともに本発明の手振れ補正装置を含むデジタルカメラやデジタルビデオカメラ等の撮像装置の要部を示すブロック図である。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram illustrating a main part of an imaging apparatus such as a digital camera or a digital video camera that can shoot a moving image and includes the camera shake correction apparatus of the present invention.

この撮像装置は、レンズ1により結像された被写体の光学像を撮像するCCD2を備えている。CCD2は垂直ドライバ3により駆動され、各画素の蓄積電荷レベルに応じた信号を出力する。この信号はCCD2の駆動タイミングに同期した信号に基づきCDS(Correlated Double Sampling)回路4でサンプリングされ、AGC(Auto Gain Control)アンプ5に入力され所定のゲインが乗じられた後、A/Dコンバータ6で例えば10ビットでデジタル化されて画像データとして、CCD2へ駆動タイミングを供給する画像処理部7のCCDインターフェース部8に入力される。なお、CCD2はCMOSセンサ等の撮像素子であっても構わない。   The imaging apparatus includes a CCD 2 that captures an optical image of a subject formed by the lens 1. The CCD 2 is driven by the vertical driver 3 and outputs a signal corresponding to the accumulated charge level of each pixel. This signal is sampled by a CDS (Correlated Double Sampling) circuit 4 based on a signal synchronized with the drive timing of the CCD 2, input to an AGC (Auto Gain Control) amplifier 5, multiplied by a predetermined gain, and then A / D converter 6. For example, it is digitized by 10 bits and is input as image data to the CCD interface unit 8 of the image processing unit 7 that supplies drive timing to the CCD 2. The CCD 2 may be an image sensor such as a CMOS sensor.

CCDインターフェース部8を介して入力された画像データは、第1のデータ演算器9によりデータの補正等の処理が行われた後、DMA制御部10を介して外部記憶部(ここでは、SDRAM)11にベイヤーデータとして順次格納される。 The image data input via the CCD interface unit 8 is subjected to processing such as data correction by the first data calculator 9 and then the external storage unit (in this case, SDRAM) via the DMA control unit 10. 11 is sequentially stored as Bayer data.

外部記憶部11に格納された画像データ(ベイヤーデータ)は、DMA制御部10を介して第2のデータ演算器12により読み出され、そこで後述する動画圧縮器15に対応する所定のデータフォーマットの変換や、画像データの補正等が行われた後、縮小器13へ送られる。縮小器13へ送られた上記画像データは、動画像の記録サイズ(画素サイズ)よりも縮小された後、DMA制御部10を介して外部記憶部11に記憶される。なお、外部記憶部11には、CCD2から前回取り込まれた(撮像された)データに基づく前回のフレーム画像のデータが保持される構成であり、新たなフレーム画像のデータが記憶される時点で、DMA制御部10により前回のフレーム画像のデータが更新される。 The image data (Bayer data) stored in the external storage unit 11 is read out by the second data calculator 12 via the DMA control unit 10 and then converted into a predetermined data format corresponding to the moving picture compressor 15 described later . Are converted, image data is corrected, and the like, and then sent to the reducer 13. The image data sent to the reducer 13 is stored in the external storage unit 11 via the DMA control unit 10 after being reduced from the recording size (pixel size) of the moving image. The external storage unit 11 is configured to hold the previous frame image data based on the data previously captured (captured) from the CCD 2, and when the new frame image data is stored, The data of the previous frame image is updated by the DMA control unit 10.

その後、外部記憶部11に記憶された前回及び今回の双方のフレーム画像のデータは電子手振れ補正器14によって読み出され、そこで装置本体の動きに応じた今回のフレーム画像に対する切り出し位置が演算され(詳細については後述する)、そのデータが動画圧縮器15に出力される。   Thereafter, the data of both the previous and current frame images stored in the external storage unit 11 are read out by the electronic image stabilizer 14, and the cutout position for the current frame image corresponding to the movement of the apparatus body is calculated there ( The details will be described later), and the data is output to the moving picture compressor 15.

また、外部記憶部11に記憶された今回のフレーム画像は、動画圧縮器15により読み出されるとともに、そこで電子手振れ補正器14から入力した切り出し位置データにより示される位置における、記録サイズに応じたサイズの領域(有効画素領域)の画像切り出された後、切り出された画像のデータが最終的にはMPEG等の所定の動画フォーマットのデータに圧縮され、動画データとして外部記憶部11に記憶される。 The current frame image stored in the external storage unit 11 is read by the moving image compressor 15 and has a size corresponding to the recording size at the position indicated by the cutout position data input from the electronic camera shake corrector 14 there. After the image of the area (effective pixel area) is cut out, the data of the cut out image is finally compressed into data of a predetermined moving image format such as MPEG and stored in the external storage unit 11 as moving image data.

図2は、前記電子手振れ補正器14の詳細を示したブロック図である。電子手振れ補正器14は、先に述べたように今回のフレーム画像から切り出すべき領域の位置を示す切り出し位置データを前記動画圧縮器15へ出力するものであり、DMAインターフェース部20、ヒストグラム演算部21、第1及び第2のヒストグラムデータ記憶部22,23、ヒストグラムデータ差分演算部24、画像変換部25、第1及び第2の変換画像記憶部26,27、差分データ演算部28、動き補正量演算部29、切り出し位置設定部30の各部から構成されている。   FIG. 2 is a block diagram showing details of the electronic image stabilizer 14. As described above, the electronic camera shake corrector 14 outputs cutout position data indicating the position of the region to be cut out from the current frame image to the moving picture compressor 15, and includes a DMA interface unit 20 and a histogram calculation unit 21. , First and second histogram data storage units 22, 23, histogram data difference calculation unit 24, image conversion unit 25, first and second converted image storage units 26, 27, difference data calculation unit 28, motion correction amount It is comprised from each part of the calculating part 29 and the cut-out position setting part 30. FIG.

DMAインターフェース部20は、外部記憶部11に新たなフレーム画像が記憶されたタイミングで、DMA制御部10に対し、前回のフレーム画像及び今回のフレーム画像の双方における分割領域であって、各々を上下左右等に4等分したうちの1/4の分割領域のデータを要求し、各々の分割領域データをヒストグラム演算部21及び画像変換部25に転送する。   The DMA interface unit 20 is a divided area in both the previous frame image and the current frame image with respect to the DMA control unit 10 at the timing when a new frame image is stored in the external storage unit 11. The data of 1/4 of the divided area divided into the left and right parts is requested, and each divided area data is transferred to the histogram calculation unit 21 and the image conversion unit 25.

ヒストグラム演算部21は本発明のヒストグラム取得手段であり、転送された前回及び今回のフレーム画像の双方の分割領域データから、輝度を0〜255のレベルに区分して各輝度レベルの画素数を計算し、双方のフレーム画像の分割領域における輝度分布をそれぞれ示すヒストグラムデータを生成する。そして、前回のフレーム画像側の第1のヒストグラムデータを第1のヒストグラムデータ記憶部22に記憶し、今回のフレーム画像側の第2のヒストグラムデータを第2のヒストグラムデータ記憶部23に記憶する。なお、ヒストグラムの分解能は上記の半分(0〜127)等であっても構わない。   The histogram calculation unit 21 is a histogram acquisition unit of the present invention, and calculates the number of pixels at each luminance level by dividing the luminance into levels of 0 to 255 from the divided area data of both the previous and current frame images transferred. Then, histogram data indicating the luminance distribution in the divided areas of both frame images is generated. Then, the first histogram data on the previous frame image side is stored in the first histogram data storage unit 22, and the second histogram data on the current frame image side is stored in the second histogram data storage unit 23. Note that the resolution of the histogram may be half of the above (0 to 127).

ヒストグラムデータ差分演算部24は本発明の差分演算手段、輝度レベル判定手段であり、第1及び第2のヒストグラムデータ記憶部22,23に記憶された双方のヒストグラムデータから双方間の差分を演算するとともに、同一輝度の画素数の差が所定以上大きな特定輝度レベルを判定し、判定した特定輝度レベルを示すデータを前記画像変換部25に出力する。図3(a)は、上記双方のヒストグラムデータの差分のうち、同一輝度の画素数の差が所定以上大きな特定輝度レベルに相当する部分を便宜的に示した図である。   The histogram data difference calculation unit 24 is a difference calculation unit and a luminance level determination unit of the present invention, and calculates a difference between both from the histogram data stored in the first and second histogram data storage units 22 and 23. At the same time, a specific luminance level in which the difference in the number of pixels having the same luminance is greater than a predetermined value is determined, and data indicating the determined specific luminance level is output to the image conversion unit 25. FIG. 3A is a diagram conveniently showing a portion corresponding to a specific luminance level in which the difference in the number of pixels having the same luminance is greater than a predetermined value, out of the differences between the two histogram data.

画像変換部25は本発明の生成手段であり、MAインターフェース部20から転送された双方のフレーム画像の分割領域データを、前記特定輝度レベルの輝度を有する画素のみからなる特定輝度画像にそれぞれ変換する。そして、前回のフレーム画像側の変換後の画像データを第1の変換画像記憶部26に記憶し、今回のフレーム画像側の変換後の画像データを第2の変換画像記憶部27に記憶する。図3(b)は、前記特定輝度画像100の一例を示した図である。 Image conversion unit 25 is a generating unit of the present invention, respectively converting the divided area data have been both frame images transferred from the D MA interface unit 20, the particular luminance image composed of only the pixels having a luminance of the specific luminance level To do. Then, the converted image data on the previous frame image side is stored in the first converted image storage unit 26, and the converted image data on the current frame image side is stored in the second converted image storage unit 27. FIG. 3B is a diagram showing an example of the specific luminance image 100.

差分データ演算部28は、動き補正量演算部29と共に本発明の演算手段を構成しており、上記の第1及び第2の変換画像記憶部26,27の双方に記憶された双方の特定輝度画像の相対的な位置関係を決められた量毎に縦横方向にシフトさせながら、その都度に双方間の差分データを演算する。すなわち双方間の不一致領域における各画素の差分の絶対値を積分する演算を行う。そして、その演算結果(差分データ)を動き補正量演算部29へ出力する。   The difference data calculation unit 28, together with the motion correction amount calculation unit 29, constitutes a calculation unit of the present invention, and both specific luminances stored in both the first and second converted image storage units 26 and 27 described above. While shifting the relative positional relationship of the image in the vertical and horizontal directions for each determined amount, the difference data between the two is calculated each time. That is, an operation is performed to integrate the absolute value of the difference between the pixels in the mismatch area between the two. Then, the calculation result (difference data) is output to the motion correction amount calculation unit 29.

動き補正量演算部29は、差分データ演算部28からの差分データが最も少ないときの前記双方の画像の相対的な位置関係に基づいて動き補正量を演算し、内部のレジスタ29aに記憶する。   The motion correction amount calculation unit 29 calculates a motion correction amount based on the relative positional relationship between the two images when the difference data from the difference data calculation unit 28 is the smallest, and stores it in the internal register 29a.

また、前述したヒストグラム演算部21及び画像変換部25は、前回及び今回のフレーム画像における、2番目以降の他の1/4の分割領域のデータがDMAインターフェース部20から順に転送される毎に前述した動作を繰り返し行い、同様にヒストグラムデータ差分演算部24、差分データ演算部28、動き補正量演算部29も前述した動作を繰り返し行う。   The histogram calculation unit 21 and the image conversion unit 25 described above each time the data of the second and subsequent 1/4 divided areas in the previous and current frame images are sequentially transferred from the DMA interface unit 20. The histogram data difference calculation unit 24, the difference data calculation unit 28, and the motion correction amount calculation unit 29 similarly repeat the above-described operations.

その間、動き補正量演算部29は、分割領域毎の動き補正量を演算し、演算した動き補正量を随時レジスタ29aに記憶しておき、全ての分割領域毎の動き補正量を演算した段階でそれらの平均値を算出し、その平均値を画像全体の動き補正量(装置本体の動きに応じた手振れ補正量)として切り出し位置設定部30へ出力する。   Meanwhile, the motion correction amount calculation unit 29 calculates the motion correction amount for each divided region, stores the calculated motion correction amount in the register 29a as needed, and calculates the motion correction amount for all the divided regions. These average values are calculated, and the average value is output to the cutout position setting unit 30 as a motion correction amount for the entire image (a camera shake correction amount corresponding to the motion of the apparatus main body).

切り出し位置設定部30は本発明の設定手段であり、動き補正量演算部29からの動き補正量に基づき、今回のフレーム画像から切り出すべき領域の位置を演算し、その切り出し位置データを前記動画圧縮器15へ出力する。   The cutout position setting unit 30 is a setting unit of the present invention, calculates the position of the region to be cut out from the current frame image based on the motion correction amount from the motion correction amount calculation unit 29, and compresses the cutout position data to the moving image compression. Output to the device 15.

そして、係る切り出し位置データに基づき、前記動画圧縮器15が今回のフレーム画像における記録用の画像部分の切り出し位置をシフトすることにより、各フレーム間の手振れが補正される。 Based on according cutout position data, the video compressor 15 by shifting the cutout position of the image portion of the recording in the current frame image, the camera shake between frames is corrected.

以上のように本実施の形態においては、前回のフレーム画像のヒストグラムデータと、今回のフレーム画像のヒストグラムデータの差分を演算し、そのうちで同一輝度の画素数の差が所定以上大きな特定輝度レベルを判定し、双方のフレーム画像における特定輝度レベルの輝度を有する画素のみを対象として動き補正量(手振れ補正量)が演算される。   As described above, in the present embodiment, the difference between the histogram data of the previous frame image and the histogram data of the current frame image is calculated, and a specific luminance level in which the difference in the number of pixels having the same luminance is larger than a predetermined value is obtained. Determination is made, and a motion correction amount (camera shake correction amount) is calculated only for pixels having a specific luminance level in both frame images.

そのため、双方のフレーム画像をそのまま対象として動き補正量を演算する場合に比べると、極めて少ない必要最小限の画素情報に基づき効率的に動き補正量を演算することができる。つまり、動き補正量を短時間で演算することができる。しかも、双方のフレーム画像の特定部分(例えばフレーム画像の四隅)のみを対象として動き補正量を演算する場合に比べ、高精度の動き補正量を得ることができる。したがって、高速かつ高精度で手振れ補正を行うことができる。   Therefore, the motion correction amount can be calculated efficiently based on the minimum necessary pixel information as compared with the case where the motion correction amount is calculated using both frame images as they are. That is, the motion correction amount can be calculated in a short time. In addition, it is possible to obtain a motion correction amount with higher accuracy than when the motion correction amount is calculated only for specific portions of both frame images (for example, the four corners of the frame image). Therefore, camera shake correction can be performed at high speed and with high accuracy.

なお、本実施の形態においては、電子手振れ補正器14が、第2のデータ演算器12によって動画圧縮器15に対応する所定のデータフォーマットに変換された後の画像データを処理対象として動き補正量を演算するものとしたが、上記変換を行う前の画像データ(ベイヤーデータ)を処理対象として動き補正量を演算するものとしてもよい。 In the present embodiment, the electronic image stabilizer 14 uses the image data after being converted into a predetermined data format corresponding to the moving picture compressor 15 by the second data calculator 12 as a processing target. However, the motion correction amount may be calculated using the image data (Bayer data) before the conversion as a processing target.

また、前回及び今回のフレーム画像を1/4の分割領域に分け、分割領域毎の動き補正量を演算し、それらを平均化したものを最終的な動き補正量としたが、以下のようにしてもよい。   In addition, the previous and current frame images are divided into 1/4 divided areas, the motion correction amount for each divided area is calculated, and the average of them is used as the final motion correction amount. May be.

すなわち前回及び今回のフレーム画像を4分割ではなく、例えば2分割や8分割した上で分割領域毎に動き補正量を演算するようにしてもよく、また、各分割領域の形状や面積は必ずしも同一でなくとも構わない。さらには、双方のフレーム画像を分割することなく全領域を対象として前述した処理を行って動き補正量を演算するようにしてもよい。   That is, the previous and present frame images are not divided into four, but may be divided into two or eight, for example, and the motion correction amount may be calculated for each divided region, and the shape and area of each divided region are not necessarily the same. It doesn't have to be. Furthermore, the motion correction amount may be calculated by performing the above-described processing for the entire region without dividing both frame images.

また、分割領域別の動き補正量を平均化して最終的な動き補正量を演算するとき、各動き補正量に領域別の重み付けを行うようにしてもよい。   Further, when the motion correction amount for each divided region is averaged to calculate the final motion correction amount, each motion correction amount may be weighted for each region.

また、前回及び今回のフレーム画像を分割する場合には、分割領域毎に動き補正量を演算して各動き補正量を平均化せずとも、いずれか1つの分割領域の動き補正量を最終的な動き補正量として採用するようにしてもよい。   Further, when the previous and current frame images are divided, the motion correction amount of any one divided region is finally calculated without calculating the motion correction amount for each divided region and averaging each motion correction amount. It may be adopted as a simple motion correction amount.

その場合、例えば図4に示したように、前回及び今回のフレーム画像200を中心部から外側に向けて順に面積が増大する第1の分割領域200a〜第4の分割領域200dに分割し、第1の分割領域200aから順に、つまり図4(a)〜同図(d)の順に処理対象領域(図で斜線を施した領域)を切り替えながら動き補正量を演算していき、最初に有効な動き補正量の演算に成功した時点で、そのときの動き補正量を最終的な動き補正量として決定し、それ以後は、他の分割領域についての動き補正量の演算を中止させるようにしてもよい。   In that case, for example, as shown in FIG. 4, the previous and current frame images 200 are divided into a first divided region 200 a to a fourth divided region 200 d whose area increases in order from the center toward the outside, The motion correction amount is calculated in order from the first divided area 200a, that is, in the order of FIG. 4A to FIG. 4D, while switching the processing target area (the hatched area in the figure). When the calculation of the motion correction amount is successful, the motion correction amount at that time is determined as the final motion correction amount, and thereafter, the calculation of the motion correction amount for other divided areas may be stopped. Good.

また、上記とは逆に、第4の分割領域200dから順に、つまり図4(d)〜同図(a)の順に処理対象領域を切り替えながら動き補正量を演算していき、その際、最に有効な動き補正量の演算に成功した時点での動き補正量を最終的な動き補正量として決定し、それ以後は、他の分割領域についての動き補正量の演算を中止させるようにしてもよい。 Contrary to the above, the motion correction amount is calculated while switching the processing target regions in order from the fourth divided region 200d, that is, in the order of FIG. 4 (d) to FIG. 4 (a). The motion compensation amount at the time when the effective motion compensation amount is successfully calculated first is determined as the final motion compensation amount, and thereafter, the motion compensation amount computation for other divided areas is stopped. Also good.

また、前記ヒストグラムデータ差分演算部24に、第1及び第2のヒストグラムデータ記憶部22,23に記憶された双方のヒストグラムデータから双方間の差分を演算させるとともに、全輝度区間を複数に分割した輝度区間毎に同一輝度の画素数の差が所定以上大きな特定輝度レベルを複数判定させそして、画像変換部25に、前回及び今回のフレーム画像から上記複数の特定輝度レベル毎に前記特定輝度画像をそれぞれ生成させることにより、複数の特定輝度レベル毎に動き補正量を演算させ、それらを平均化したものを最終的な動き補正するようにしてもよい。 Further, the histogram data difference calculation unit 24 calculates the difference between both from the histogram data stored in the first and second histogram data storage units 22 and 23 and divides the entire luminance section into a plurality of sections. A plurality of specific luminance levels in which the difference in the number of pixels having the same luminance is greater than a predetermined value for each luminance section are determined , and the image conversion unit 25 causes the specific luminance image for each of the plurality of specific luminance levels from the previous and current frame images. May be calculated to calculate a motion correction amount for each of a plurality of specific luminance levels, and an average of them may be subjected to final motion correction.

また、上記のように動き補正量を平均化せずに、動き補正量を複数の特定輝度レベル毎に所定の順に演算させ、いずれかの特定輝度レベルについて最初に有効な動き補正量の演算に成功した時点で、そのときの動き補正量を最終的な動き補正量として決定し、それ以後は、他の特定輝度レベルについての動き補正量の演算を中止させるようにしてもよい。 In addition, the motion correction amount is not averaged as described above, and the motion correction amount is calculated in a predetermined order for each of the plurality of specific luminance levels, and the first effective motion correction amount is calculated for any specific luminance level. At the time of success, the motion correction amount at that time may be determined as the final motion correction amount, and thereafter, the calculation of the motion correction amount for other specific luminance levels may be stopped.

また、以上の説明においては、本発明を撮像装置において記録される動画像の手振れを補正することを目的として使用する場合について述べたが、これに限らず、本発明は、デジタルカメラにおける静止画の撮影待機状態でモニタに表示するスルー画像の手振れ補正にも使用することができる。   In the above description, the case where the present invention is used for the purpose of correcting camera shake of a moving image recorded in the imaging apparatus is described. However, the present invention is not limited thereto, and the present invention is not limited to a still image in a digital camera. It can also be used for camera shake correction of a through image displayed on the monitor in the shooting standby state.

また、図2に示した前記電子手振れ補正器14の各部における前述したデータ処理については、その一部や全てを、例えば撮像装置の全体を制御するCPU(図示せず)等に行わせるようにしてもよい。   In addition, the above-described data processing in each part of the electronic image stabilizer 14 shown in FIG. 2 is partly or entirely performed by, for example, a CPU (not shown) that controls the entire imaging apparatus. May be.

本発明に係る撮像装置の要部を示すブロック図である。It is a block diagram which shows the principal part of the imaging device which concerns on this invention. 電子手振れ補正器の詳細を示すブロック図である。It is a block diagram which shows the detail of an electronic camera shake correction device. (a)は、ヒストグラムデータの差分のうちで同一輝度の画素数の差が所定以上大きな特定輝度レベルに相当する部分を示した図、(b)は、特定輝度画像の一例を示す図である。(A) is a diagram showing a portion corresponding to a specific luminance level in which the difference in the number of pixels having the same luminance is greater than a predetermined value in the difference of histogram data, and (b) is a diagram showing an example of a specific luminance image. . 動き補正量の演算対象となる分割領域の他の例を示す図である。It is a figure which shows the other example of the division area | region used as the calculation object of a motion correction amount.

符号の説明Explanation of symbols

2 CCD
7 画像処理部
11 外部記憶部
14 電子手振れ補正器
15 動画圧縮器
20 DMAインターフェース部
21 ヒストグラム演算部
24 ヒストグラムデータ差分演算部
25 画像変換部
28 差分データ演算部
29 動き補正量演算部
30 切り出し位置設定部
2 CCD
DESCRIPTION OF SYMBOLS 7 Image processing part 11 External storage part 14 Electronic camera shake corrector 15 Movie compressor 20 DMA interface part 21 Histogram calculation part 24 Histogram data difference calculation part 25 Image conversion part 28 Difference data calculation part 29 Motion correction amount calculation part 30 Cutout position setting Part

Claims (11)

撮像素子により撮像された前回の画像及び今回の画像から、各々の輝度分布を示す第1のヒストグラムデータ及び第2のヒストグラムデータを取得するヒストグラム取得手段と、
このヒストグラム取得手段により取得された第1及び第2のヒストグラムデータから、双方間の差分を演算する差分演算手段と、
この差分演算手段により演算された差分において、同一輝度の画素数の差が所定以上大きな特定輝度レベルを判定する輝度レベル判定手段と、
前記前回の画像及び今回の画像から、前記輝度レベル判定手段により判定された特定輝度レベルの輝度を有する画素からなる第1及び第2の特定輝度画像を生成する生成手段と、
この生成手段により生成された第1及び第2の特定輝度画像に基づき装置本体の動きに応じた手振れ補正量を演算する演算手段と
備えたことを特徴とする手振れ補正装置。
Histogram acquisition means for acquiring first histogram data and second histogram data indicating respective luminance distributions from the previous image and the current image captured by the image sensor;
A difference calculating means for calculating a difference between the two from the first and second histogram data acquired by the histogram acquiring means;
In the difference calculated by the difference calculating means, a luminance level determining means for determining a specific luminance level in which the difference in the number of pixels having the same luminance is greater than a predetermined value;
Generating means for generating first and second specific luminance images composed of pixels having the luminance of the specific luminance level determined by the luminance level determining means from the previous image and the current image;
Calculating means for calculating a camera shake correction amount corresponding to the movement of the apparatus main body based on the first and second specific luminance images generated by the generating means;
Shake correction apparatus characterized by comprising a.
前記輝度レベル判定手段は、全輝度区間を複数に分割した輝度区間毎に前記特定輝度レベルを複数判定し、
前記生成手段は、前記前回の画像及び今回の画像から、前記輝度レベル判定手段により複数の輝度区間毎に判定された複数の特定輝度レベル毎に前記第1及び第2の特定輝度画像を生成し、
前記演算手段は、前記生成手段により複数の特定輝度レベル毎に生成された第1及び第2の特定輝度画像に基づき、装置本体の動きに応じた手振れ補正量を複数の特定輝度レベル毎に演算する第1の演算手段と、その第1の演算手段により複数の特定輝度レベル毎に演算された手振れ補正量に基づき最終的な手振れ補正量を演算する第2の演算手段とを含む
ことを特徴とする請求項1記載の手振れ補正装置。
The brightness level determination means determines a plurality of the specific brightness levels for each brightness section obtained by dividing the entire brightness section into a plurality of sections,
The generation unit generates the first and second specific luminance images for each of a plurality of specific luminance levels determined for each of a plurality of luminance sections by the luminance level determination unit from the previous image and the current image. ,
The calculation means calculates a camera shake correction amount corresponding to the movement of the apparatus main body for each of the plurality of specific luminance levels based on the first and second specific luminance images generated by the generation unit for each of the plurality of specific luminance levels. And a second calculation means for calculating a final camera shake correction amount based on the camera shake correction amount calculated for each of a plurality of specific luminance levels by the first calculation means. The camera shake correction device according to claim 1.
前記輝度レベル判定手段は、全輝度区間を複数に分割した輝度区間毎に前記特定輝度レベルを複数判定し、
前記生成手段は、前記前回の画像及び今回の画像から、前記輝度レベル判定手段により複数の輝度区間毎に判定された複数の特定輝度レベル毎に前記第1及び第2の特定輝度画像を生成し、
前記演算手段は、前記生成手段により複数の特定輝度レベル毎に生成された第1及び第2の特定輝度画像に基づき、装置本体の動きに応じた手振れ補正量を複数の特定輝度レベル毎に所定の順に演算するとともに、前記複数の特定輝度レベルのいずれかについて手振れ補正成分の取得に成功した後には、他の特定輝度レベルについての手振れ補正成分の取得を中止する
ことを特徴とする請求項1記載の手振れ補正装置。
The brightness level determination means determines a plurality of the specific brightness levels for each brightness section obtained by dividing the entire brightness section into a plurality of sections,
The generation unit generates the first and second specific luminance images for each of a plurality of specific luminance levels determined for each of a plurality of luminance sections by the luminance level determination unit from the previous image and the current image. ,
The arithmetic means predetermines a camera shake correction amount corresponding to the movement of the apparatus main body for each of the plurality of specific luminance levels based on the first and second specific luminance images generated by the generation unit for each of the plurality of specific luminance levels. The acquisition of a camera shake correction component for another specific luminance level is stopped after successful acquisition of a camera shake correction component for any one of the plurality of specific brightness levels. The described image stabilization device.
前記ヒストグラム取得手段は、前記第1及び第2のヒストグラムデータを、前回の画像及び前記今回の画像における同一の分割領域毎に取得し、
前記輝度レベル判定手段は、前記ヒストグラム取得手段により分割領域毎に取得された第1及び第2のヒストグラムデータについて前記特定輝度レベルを前記分割領域毎にそれぞれ判定し、
前記生成手段は、前記前回の画像及び今回の画像から、前記輝度レベル判定手段により判定された分割領域毎に前記第1及び第2の特定輝度画像を生成し、
前記演算手段は、前記生成手段により分割領域毎に生成された第1及び第2の特定輝度画像に基づき、装置本体の動きに応じた手振れ補正量を分割領域毎に演算する第1の演算手段と、その第1の演算手段により分割領域毎に演算された手振れ補正量に基づき最終的な手振れ補正量を演算する第2の演算手段とを含む
ことを特徴とする請求項1記載の手振れ補正装置。
The histogram acquisition means acquires the first and second histogram data for each same divided region in the previous image and the current image,
The brightness level determination means determines the specific brightness level for each of the divided areas for the first and second histogram data acquired for each divided area by the histogram acquisition means,
The generation unit generates the first and second specific luminance images for each divided region determined by the luminance level determination unit from the previous image and the current image,
The calculation means calculates first a camera shake correction amount corresponding to the movement of the apparatus main body for each divided area based on the first and second specific luminance images generated for each divided area by the generating means. And a second computing means for computing a final camera shake correction amount based on the camera shake correction amount computed for each divided region by the first computing means. apparatus.
前記ヒストグラム取得手段は、前記輝度レベル判定手段により特定輝度レベルが判定されるまで、前記前回の画像及び今回の画像における前記第1及び第2のヒストグラムデータの取得対象領域を、より面積の大きな領域に段階的に切り替えて前記第1及び第2のヒストグラムデータを取得し、
前記生成手段は、前記前回の画像及び今回の画像から、前記輝度レベル判定手段により最初に判定された特定輝度レベルの輝度を有する画素からなる第1及び第2の特定輝度画像を生成する
ことを特徴とする請求項1記載の手振れ補正装置。
The histogram acquisition means is a region having a larger area as the acquisition target area of the first and second histogram data in the previous image and the current image until a specific brightness level is determined by the brightness level determination means. To obtain the first and second histogram data in a stepwise manner,
The generation means generates first and second specific luminance images composed of pixels having the luminance of the specific luminance level first determined by the luminance level determination means from the previous image and the current image. The camera shake correction apparatus according to claim 1, wherein:
前記ヒストグラム取得手段は、前記輝度レベル判定手段により特定輝度レベルが判定されるまで、前記前回の画像及び今回の画像における前記第1及び第2のヒストグラムデータの取得対象領域を、より面積の小さい領域に段階的に切り替えて前記第1及び第2のヒストグラムデータを取得し、
前記生成手段は、前記前回の画像及び今回の画像から、前記輝度レベル判定手段により最後に判定された特定輝度レベルの輝度を有する画素からなる第1及び第2の特定輝度画像を生成する
ことを特徴とする請求項1記載の手振れ補正装置。
The histogram acquisition means is a region having a smaller area for the acquisition target areas of the first and second histogram data in the previous image and the current image until a specific brightness level is determined by the brightness level determination means. To obtain the first and second histogram data in a stepwise manner,
The generating means generates first and second specific luminance images composed of pixels having the luminance of the specific luminance level last determined by the luminance level determining means from the previous image and the current image. The camera shake correction apparatus according to claim 1, wherein:
前記ヒストグラム取得手段が段階的に切り替える取得対象領域の各々は、互いに独立した領域であることを特徴とする請求項5又は6記載の手振れ補正装置。   The camera shake correction apparatus according to claim 5 or 6, wherein each of the acquisition target areas switched in stages by the histogram acquisition means is an independent area. 前記ヒストグラム取得手段は、前記輝度レベル判定手段により特定輝度レベルが判定されるまで、前記前回の画像及び今回の画像における前記第1及び第2のヒストグラムデータの取得対象領域を、所定の順に切り替えて前記第1及び第2のヒストグラムデータを取得し、
前記生成手段は、前記前回の画像及び今回の画像から、前記輝度レベル判定手段により最初に判定された特定輝度レベルの輝度を有する画素からなる第1及び第2の特定輝度画像をそれぞれ生成する
ことを特徴とする請求項1記載の手振れ補正装置。
The histogram acquisition means switches the acquisition target regions of the first and second histogram data in the previous image and the current image in a predetermined order until a specific brightness level is determined by the brightness level determination means. Obtaining the first and second histogram data;
The generating unit generates first and second specific luminance images each composed of pixels having luminance of a specific luminance level first determined by the luminance level determining unit from the previous image and the current image, respectively. The camera shake correction device according to claim 1.
像素子により撮像された前回の画像及び今回の画像から、各々の輝度分布を示す第1のヒストグラムデータ及び第2のヒストグラムデータを取得する工程と、
取得した第1及び第2のヒストグラムデータから、双方間の差分を演算する工程と、
演算した差分において、同一輝度の画素数の差が所定以上大きな特定輝度レベルを判定する工程と、
判定した特定輝度レベルの輝度を有する画素からなる第1及び第2の特定輝度画像を、前記前回の画像及び今回の画像から生成する工程と、
生成した第1及び第2の特定輝度画像に基づき装置本体の動きに応じた手振れ補正量を演算する工程と
含むことを特徴とする手振れ補正方法。
From an imaging element previous image and the current image captured by the steps of obtaining a first histogram data and the second histogram data indicating the respective luminance distribution,
A step of calculating a difference between the two from the acquired first and second histogram data;
A step of determining a specific luminance level in which the difference in the number of pixels having the same luminance is greater than a predetermined value in the calculated difference;
Generating first and second specific luminance images composed of pixels having the determined specific luminance level from the previous image and the current image;
Calculating a camera shake correction amount corresponding to the movement of the apparatus main body based on the generated first and second specific luminance images;
Shake correction method characterized by comprising a.
手振れ補正装置が有するコンピュータに、
撮像素子により撮像された前回の画像及び今回の画像から、各々の輝度分布を示す第1のヒストグラムデータ及び第2のヒストグラムデータを取得する処理と、
取得した第1及び第2のヒストグラムデータから、双方間の差分を演算する処理と、
演算した差分において、同一輝度の画素数の差が所定以上大きな特定輝度レベルを判定する処理と、
判定した特定輝度レベルの輝度を有する画素からなる第1及び第2の特定輝度画像を、前記前回の画像及び今回の画像から生成する処理と、
生成した第1及び第2の特定輝度画像に基づき装置本体の動きに応じた手振れ補正量を演算する処理と
実行させるためのプログラム。
In the computer that the image stabilization device has,
A process of acquiring first histogram data and second histogram data indicating respective luminance distributions from the previous image and the current image captured by the image sensor;
A process of calculating the difference between the two from the acquired first and second histogram data;
In the calculated difference, a process of determining a specific luminance level in which the difference in the number of pixels with the same luminance is greater than a predetermined value;
Processing for generating first and second specific luminance images made up of pixels having the determined specific luminance level from the previous image and the current image;
Processing for calculating a camera shake correction amount according to the movement of the apparatus main body based on the generated first and second specific luminance images;
Program for the execution.
前記演算手段により演算された手振れ補正量に応じ、今回の画像から切り出す所定サイズの有効画素領域の切り出し位置を設定する設定手段をさらに備えるIn accordance with the camera shake correction amount calculated by the calculation means, the image processing apparatus further includes setting means for setting a cut-out position of an effective pixel area of a predetermined size cut out from the current image.
ことを特徴とする請求項1乃至8いずれか記載の手振れ補正装置。9. The camera shake correction device according to claim 1, wherein
JP2006093503A 2006-03-30 2006-03-30 Camera shake correction apparatus, camera shake correction method, and program Expired - Fee Related JP4760484B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006093503A JP4760484B2 (en) 2006-03-30 2006-03-30 Camera shake correction apparatus, camera shake correction method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006093503A JP4760484B2 (en) 2006-03-30 2006-03-30 Camera shake correction apparatus, camera shake correction method, and program

Publications (2)

Publication Number Publication Date
JP2007274029A JP2007274029A (en) 2007-10-18
JP4760484B2 true JP4760484B2 (en) 2011-08-31

Family

ID=38676426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006093503A Expired - Fee Related JP4760484B2 (en) 2006-03-30 2006-03-30 Camera shake correction apparatus, camera shake correction method, and program

Country Status (1)

Country Link
JP (1) JP4760484B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101615966B1 (en) * 2009-03-24 2016-04-28 엘지전자 주식회사 Apparatus and methode for controlling electronic image stabilizer in camera
CN115134521B (en) * 2022-04-22 2023-09-22 咪咕视讯科技有限公司 Video shooting anti-shake method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004343483A (en) * 2003-05-16 2004-12-02 Acutelogic Corp Device and method for correcting camera-shake and device for detecting camera shake

Also Published As

Publication number Publication date
JP2007274029A (en) 2007-10-18

Similar Documents

Publication Publication Date Title
US8072511B2 (en) Noise reduction processing apparatus, noise reduction processing method, and image sensing apparatus
US8054372B2 (en) Autofocus control circuit, autofocus control method and image pickup apparatus
US20080101710A1 (en) Image processing device and imaging device
JP2009152698A (en) Imaging apparatus, control method therefor, and program
JP2014187610A (en) Image processing device, image processing method, program, and imaging device
JP2007243335A (en) Camera shake correction method, camera shake correction apparatus, and imaging apparatus
JP5044922B2 (en) Imaging apparatus and program
JP2017224939A (en) Imaging apparatus
JP6178646B2 (en) Imaging apparatus and image shake correction processing method
JP4760484B2 (en) Camera shake correction apparatus, camera shake correction method, and program
JP2011114486A (en) Imaging device
US11722788B2 (en) Image processing apparatus and method, and image capturing apparatus
JP2010245658A (en) Image processing apparatus, digital camera including the same, and image processing program
JP2003078808A (en) Device and method for detecting motion vector, device and method for correcting camera shake and imaging apparatus
JP2011041143A (en) Image processing apparatus
JP2009027437A (en) Image processor, image processing method and imaging device
JP4597073B2 (en) Camera shake correction method, camera shake correction apparatus, and imaging apparatus
JP2009021929A (en) Imaging apparatus and imaging method
US11050928B2 (en) Image capturing control apparatus, image capturing apparatus, control method, and storage medium
JP5761991B2 (en) Image processing apparatus, control method therefor, and program
JP2008160274A (en) Motion vector detection method, its apparatus and its program, electronic hand-blur correction method, its apparatus and its program, as well as imaging apparatus
JP2011078132A (en) Imaging apparatus, imaging method, image processing apparatus, image processing method, program and recording medium
JP4449777B2 (en) Imaging apparatus, image processing apparatus and method, recording medium, and program
JP2008172309A (en) Electronic hand blurring correction method, device and program and imaging apparatus
JP2021044653A (en) Motion vector detection device and motion vector detection method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090324

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101028

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110125

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110214

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110510

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110523

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140617

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4760484

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees