JP2008078808A - Imaging apparatus, image distortion correcting method and program - Google Patents

Imaging apparatus, image distortion correcting method and program Download PDF

Info

Publication number
JP2008078808A
JP2008078808A JP2006253328A JP2006253328A JP2008078808A JP 2008078808 A JP2008078808 A JP 2008078808A JP 2006253328 A JP2006253328 A JP 2006253328A JP 2006253328 A JP2006253328 A JP 2006253328A JP 2008078808 A JP2008078808 A JP 2008078808A
Authority
JP
Japan
Prior art keywords
image
images
imaging apparatus
unit
divided
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.)
Granted
Application number
JP2006253328A
Other languages
Japanese (ja)
Other versions
JP4771901B2 (en
Inventor
Kazuhiko Sugie
和彦 杉江
Hideki Yukitomo
英記 行友
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2006253328A priority Critical patent/JP4771901B2/en
Publication of JP2008078808A publication Critical patent/JP2008078808A/en
Application granted granted Critical
Publication of JP4771901B2 publication Critical patent/JP4771901B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an imaging apparatus, an image distortion correcting method and a program which can improve accuracy of camera shake correction by decreasing the influence of MOS distortion. <P>SOLUTION: The imaging apparatus 100 is provided with an imaging section 101 for reading pixels per line; image storage section 102 for storing image data photographed at a plurality of times; a division number designating section 103 for designating the number of divisions; an image division control section 104 for dividing an image in a pixel reading line direction and controlling each of portions; a movement detecting section 105 for calculating a quantity of movement between images from a plurality of image data in each of the divided images; an image compositing section 106 for compositing the images on the basis of the quantity of movement between the images of the divided images; and an image preserving section 107 for preserving the composited image. The imaging apparatus 100 divides an image in a reading line direction, obtains a camera shake quantity (movement quantity) independently for each of divided portions and composites the images using affine transformation. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、電子スチルカメラやビデオカメラ等に搭載され、手ぶれに起因する画像歪みを補正する撮像装置、画像歪み補正方法及びプログラムに関する。   The present invention relates to an imaging apparatus, an image distortion correction method, and a program that are mounted on an electronic still camera, a video camera, and the like and correct image distortion caused by camera shake.

従来、電子スチルカメラやビデオカメラ等の撮像装置の撮像素子には、CCD(Charge Coupled Device)センサが利用されてきた。近時、低消費電力等の理由からMOS系の撮像素子が搭載されるようになってきた。CCDセンサは、全画素の電荷蓄積タイミングが同じ撮像素子であり、静止画像に対する手ぶれの影響は小さい。全画素同時読出しのCCDセンサに対して、ライン毎の画素読出しを行うMOS系のセンサでは、読出し時間差に起因する画像の歪み、いわゆるMOS歪みが発生してしまう。MOS歪みは、撮像面の最初の走査ラインと最後の走査ラインとで電荷蓄積タイミングが1画像走査期間近くずれ、手ぶれによって図形歪みが生じる現象であり、静止画像の場合は直線が曲がって映り、動画像の場合は直線がゆらゆらしなって写ったり被写体像の寸法が伸び縮みしたりする。   Conventionally, a CCD (Charge Coupled Device) sensor has been used as an imaging element of an imaging apparatus such as an electronic still camera or a video camera. Recently, MOS-based image sensors have been mounted for reasons such as low power consumption. The CCD sensor is an image sensor in which the charge accumulation timing of all pixels is the same, and the influence of camera shake on a still image is small. In contrast to a CCD sensor that reads all pixels simultaneously, a MOS sensor that reads pixels for each line causes image distortion due to a difference in reading time, so-called MOS distortion. MOS distortion is a phenomenon in which the charge accumulation timing of the first scanning line and the last scanning line on the imaging surface is shifted by nearly one image scanning period, and figure distortion occurs due to camera shake. In the case of a still image, a straight line is bent and reflected. In the case of a moving image, the straight line fluctuates and the size of the subject image expands or contracts.

MOS系の撮像素子でも全ラインの読出し完了が速い、フレームレートが高い素子はMOS歪みが発生しづらい。一方で、高画素化によりライン数が増える傾向にある。ライン数が増えると高フレームレート化は難しく、MOS歪みが発生しやすくなってしまう。   Even in the case of MOS-based image sensors, readout of all lines is fast and elements with a high frame rate are less likely to cause MOS distortion. On the other hand, the number of lines tends to increase as the number of pixels increases. As the number of lines increases, it is difficult to increase the frame rate, and MOS distortion tends to occur.

静止画電子手ぶれ補正を行う方法として例えば、特許文献1に記載されたものがある。   As a method for performing still image electronic image stabilization, for example, there is a method described in Patent Document 1.

図16は、特許文献1記載の撮像装置の構成を示すブロック図である。また、図17は、図16の撮像装置の電子手ぶれ補正を説明する図であり、図17(a)は通常の撮影時、図17(b)は電子手ぶれ補正時を示す。   FIG. 16 is a block diagram illustrating a configuration of the imaging apparatus described in Patent Document 1. FIGS. 17A and 17B are diagrams for explaining electronic camera shake correction of the image pickup apparatus of FIG. 16. FIG. 17A illustrates normal shooting and FIG. 17B illustrates electronic camera shake correction.

図16において、撮像装置10は、撮像部11、画像記憶部12、動き検出部13、画像合成部14、及び画像保存部15を備えて構成される。   In FIG. 16, the imaging apparatus 10 includes an imaging unit 11, an image storage unit 12, a motion detection unit 13, an image synthesis unit 14, and an image storage unit 15.

手ぶれとは、露光期間中の手の動きによって像がぼやける現象である。図17(a)に示すように、露光開始から露光終了までに手ぶれにより露光面がぶれると、手ぶれにより像がぼやける。   Camera shake is a phenomenon in which an image blurs due to hand movement during an exposure period. As shown in FIG. 17A, when the exposure surface is blurred due to camera shake from the start of exposure to the end of exposure, the image is blurred due to camera shake.

撮像部11では、露光時間を短くした画像を複数撮影し、この複数撮影した画像を画像記憶部12に記憶する。画像合成部14では、動き検出部13により検出された動き検出結果を基に各画像間の移動量(手ぶれ量)を換算して合成することで、ブレがなくS/Nの高い画像を画像保存部15に格納する。特許文献1記載の手ぶれ補正方法では、図17(b)に示すように、露光時間を短くして連写し、1枚目からの移動量を求め、この移動量を換算して得られた画像の位置ずれを補正した後画像を合成する。   The imaging unit 11 captures a plurality of images with a short exposure time, and stores the plurality of captured images in the image storage unit 12. The image composition unit 14 converts the amount of movement (shake amount) between the images based on the motion detection result detected by the motion detection unit 13 and composes the image without blur and having a high S / N. Store in the storage unit 15. In the camera shake correction method described in Patent Document 1, as shown in FIG. 17 (b), images are obtained by reducing the exposure time, continuously shooting, obtaining the amount of movement from the first sheet, and converting this amount of movement. The image is synthesized after correcting the positional deviation.

また、特許文献2には、3つの角速度センサから3次元的に手ぶれ量を求め、アフィン変換により回転ぶれにも対応して複数枚の画像合成を行うカメラシステムが開示されている。   Patent Document 2 discloses a camera system that obtains a camera shake amount three-dimensionally from three angular velocity sensors and synthesizes a plurality of images corresponding to rotational shake by affine transformation.

また、特許文献3には、現在のラインと1つ前のラインとの相関が高い水平位置を求め、その位置に現在のラインを書き込むことで水平方向のCMOS歪みを補正し、垂直方向は角速度センサを利用して補正する撮像装置が開示されている。
特開2001−045359号公報 特開2000−224461号公報 特開2004−363869号公報
In Patent Document 3, a horizontal position having a high correlation between the current line and the previous line is obtained, and the current line is written at the position to correct the horizontal CMOS distortion. The vertical direction is the angular velocity. An imaging device that corrects using a sensor is disclosed.
JP 2001-045359 A JP 2000-224461 A JP 2004-363869 A

しかしながら、このような従来の撮像装置にあっては、以下のような課題があった。   However, such a conventional imaging apparatus has the following problems.

(1)MOS系のセンサでは、手ぶれに応じた歪みが発生し、画像合成時その影響が顕著に現れる。   (1) In a MOS-type sensor, distortion corresponding to camera shake occurs, and the influence appears remarkably during image composition.

(2)歪みの影響を減らすためにはフレーム間隔の短いカメラを使用する必要がある。   (2) In order to reduce the influence of distortion, it is necessary to use a camera with a short frame interval.

(3)アフィン変換などの線形変換を単純に適応しただけでは、非線形に発生した歪みを補正できない。   (3) Non-linear distortion cannot be corrected by simply applying linear transformation such as affine transformation.

上記課題をより詳細に説明する。   The above problem will be described in more detail.

特許文献1記載の手ぶれ補正方法は、CCDセンサのような歪みのない画像を利用することを前提としている。   The camera shake correction method described in Patent Document 1 is based on the premise that an image without distortion such as a CCD sensor is used.

図18及び図19は、MOS歪みによって画像の合成が正しく行われないことを説明する図であり、図18は、CCDセンサによる手ぶれ補正を、図19は、MOS系センサによる手ぶれ補正を示す。   18 and 19 are diagrams for explaining that image composition is not correctly performed due to MOS distortion. FIG. 18 shows camera shake correction by a CCD sensor, and FIG. 19 shows camera shake correction by a MOS sensor.

図18及び図19では、簡単のため水平方向(X軸方向)のみの手ぶれを仮定し、時刻t=0に出力される画像を位置の基準とする。図18(a)及び図19(a)には、連写n枚目とn+1枚目(n,n+1フレーム目)の画像に発生した手ぶれ量と、手ぶれ補正時に求まる画像間の移動量x,xn+1が示されている。図18(b)及び図19(b)は、連写n枚目とn+1枚目の画像を示し、画像は元の位置(t=0)に対して手ぶれ後の位置がずれている。 In FIG. 18 and FIG. 19, for the sake of simplicity, camera shake only in the horizontal direction (X-axis direction) is assumed, and an image output at time t = 0 is used as a position reference. 18 (a) and 19 (a) show the amount of camera shake generated in the images of the nth and n + 1th (n, n + 1) th frames in continuous shooting, and the movement amount x n determined during camera shake correction. , X n + 1 are shown. FIGS. 18B and 19B show the n-th and n + 1-th images in continuous shooting, and the positions of the images after camera shake are deviated from the original positions (t = 0).

図18に示すCCDセンサは、全画素同時読出しのため、各フレームの開始時刻の手ぶれ量が画像全体の移動量となる。一方、図19に示すMOS系のセンサは、1ライン毎の読出しのため、その時刻毎の手ぶれ量が画像に反映される。図19の例では、n,n+1フレーム目の手ぶれ補正基準(x,xn+1)に対して、手ぶれ量は1ライン毎の読出しであるため、1ライン毎に変動し、手ぶれ補正がうまくできない。図19(a)のハッチング部が手ぶれ補正不可部分を示している。しかも非線形要素を含むため、図19(b)に示すように補正後の画像の直線が曲がって合成される。 Since the CCD sensor shown in FIG. 18 reads all pixels simultaneously, the amount of camera shake at the start time of each frame is the amount of movement of the entire image. On the other hand, since the MOS sensor shown in FIG. 19 reads out line by line, the amount of camera shake at each time is reflected in the image. In the example of FIG. 19, since the camera shake amount is read for each line with respect to the camera shake correction reference (x n , x n + 1 ) of the n, n + 1th frame, the camera shake correction cannot be performed well because it varies for each line. . A hatched portion in FIG. 19A indicates a portion where camera shake correction is not possible. In addition, since nonlinear elements are included, the straight line of the corrected image is bent and synthesized as shown in FIG.

このように、MOS系のセンサの場合は、手ぶれ補正を用いて画像間の移動量x,xn+1を求めただけでは、画像の一部分しか正しく合成されない。 As described above, in the case of a MOS sensor, only a part of an image is correctly synthesized only by obtaining the movement amounts x n and x n + 1 between images using camera shake correction.

本発明はかかる点に鑑みてなされたものであり、MOS歪みの影響を減らして手ぶれ補正の精度向上を図ることができる撮像装置、画像歪み補正方法及びプログラムを提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an imaging apparatus, an image distortion correction method, and a program capable of reducing the influence of MOS distortion and improving the accuracy of camera shake correction.

本発明の撮像装置は、ライン毎の画素読出しを行う撮像素子と、前記撮像素子により複数回撮影した画像データを記憶する画像記憶手段と、前記撮像素子の画素読出しライン方向に画像を分割する画像分割手段と、分割された画像のそれぞれにおいて、前記画像記憶手段に記憶された複数の画像データから画像間の移動量を算出する動き検出手段と、前記動き検出手段から得られる、分割された画像のそれぞれの画像間の移動量を基に画像を合成する画像合成手段と備える構成を採る。   An image pickup apparatus according to the present invention includes an image pickup device that performs pixel readout for each line, an image storage unit that stores image data captured a plurality of times by the image pickup device, and an image that divides an image in the pixel read line direction of the image pickup device. In each of the divided images, a divided image obtained from the motion detection unit, a motion detection unit that calculates a movement amount between images from a plurality of image data stored in the image storage unit The image synthesizing means for synthesizing the images based on the movement amount between the respective images is adopted.

本発明の画像歪み補正方法は、ライン毎の画素読出しを行う撮像素子により複数回撮影するステップと、複数回撮影した画像データを記憶するステップと、前記撮像素子の画素読出しライン方向に画像を分割するステップと、分割された画像のそれぞれにおいて、前記画像記憶手段に記憶された複数の画像データから画像間の移動量を算出するステップと、分割された画像のそれぞれの画像間の移動量を基に画像を合成するステップとを有する。   An image distortion correction method according to the present invention includes a step of photographing a plurality of times by an image sensor that performs pixel readout for each line, a step of storing image data photographed a plurality of times, and an image being divided in the pixel readout line direction of the image sensor. A step of calculating a movement amount between the images from a plurality of image data stored in the image storage means in each of the divided images, and a movement amount between the divided images. And synthesizing the image.

他の観点から、本発明は、上記画像歪み補正方法のステップをコンピュータに実行させるためのプログラムである。   From another viewpoint, the present invention is a program for causing a computer to execute the steps of the image distortion correction method.

本発明によれば、MOS歪みの影響を減らして手ぶれ補正の精度向上を図ることができ、MOS歪みによる画像合成の失敗を未然に防ぐことができる。   According to the present invention, it is possible to reduce the influence of MOS distortion and improve the accuracy of camera shake correction, and to prevent image composition failure due to MOS distortion.

以下、本発明の実施の形態について図面を参照して詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

(実施の形態1)
図1は、本発明の実施の形態1に係る撮像装置の構成を示すブロック図である。
(Embodiment 1)
FIG. 1 is a block diagram showing a configuration of an imaging apparatus according to Embodiment 1 of the present invention.

図1において、撮像装置100は、撮像部101、画像記憶部102、分割数指定部103、画像分割制御部104、動き検出部105、画像合成部106、及び画像保存部107を備えて構成される。   In FIG. 1, the imaging apparatus 100 includes an imaging unit 101, an image storage unit 102, a division number designation unit 103, an image division control unit 104, a motion detection unit 105, an image composition unit 106, and an image storage unit 107. The

撮像部101は、ライン毎の画素読出しを行うMOS系のセンサである。画像記憶部102は、複数回撮影した画像データを記憶する。   The imaging unit 101 is a MOS sensor that performs pixel readout for each line. The image storage unit 102 stores image data captured a plurality of times.

分割数指定部103は、MOS系のセンサのフレームレートに基づく規定値、又はユーザ設定値により画像をスキャン方向に分割する分割数を指定する。   The division number designating unit 103 designates the number of divisions for dividing the image in the scan direction based on a prescribed value based on the frame rate of the MOS sensor or a user set value.

画像分割制御部104は、分割数指定部103により指定された分割数に基づき、画像記憶部102の複数の画像データに対するデータの読出し開始位置・終了位置を変更して動き検出部105及び画像合成部106に通知するとともに、合成画像の切取り開始位置・終了位置を画像合成部106に通知し、さらに画像保存部107での出力画像データ書込み開始位置・終了位置を画像合成部106に通知する。   The image division control unit 104 changes the data reading start position / end position for a plurality of image data in the image storage unit 102 based on the division number designated by the division number designation unit 103 to change the motion detection unit 105 and the image composition. The image composition unit 106 is notified of the cut start position / end position of the composite image, and the image composition unit 106 is notified of the output image data write start position / end position in the image storage unit 107.

動き検出部105は、画像記憶部102に記憶された複数の画像データから画像間の移動量を算出する。画像合成部106は、動き検出部105から得た画像間の移動量を基に画像を合成する。画像保存部107は、画像合成部106の合成結果を保存する。   The motion detection unit 105 calculates the amount of movement between images from a plurality of image data stored in the image storage unit 102. The image synthesis unit 106 synthesizes images based on the movement amount between images obtained from the motion detection unit 105. The image storage unit 107 stores the composition result of the image composition unit 106.

以下、上述のように構成された撮像装置100の動作について説明する。   Hereinafter, the operation of the imaging apparatus 100 configured as described above will be described.

まず、本発明の基本的な考え方について説明する。   First, the basic concept of the present invention will be described.

図2は、本発明の基本的な考え方を説明する図である。   FIG. 2 is a diagram for explaining the basic concept of the present invention.

図2(a)に示すように、従来例では、MOS系のセンサは、1ライン毎の読出しのため、1枚目の画像と2枚目の画像で手ぶれ応じた歪みが発生し、2枚合成後の画像に歪みの影響が顕著に現れていた。   As shown in FIG. 2 (a), in the conventional example, the MOS sensor reads out line by line, so that distortion corresponding to camera shake occurs between the first image and the second image. The effect of distortion was prominent in the synthesized image.

そこで、本発明は、画像の読出しライン方向に沿って連写画像それぞれを分割し、分割箇所毎に移動量計算と画面合成を行う。図2(b)は、画像をスキャン方向に複数(2つ)分割して、分割箇所毎に手ぶれ量を求め、その分割箇所毎に合成処理を行う例を示している。その後、分割して合成した画像を1つにつなぎ合わせる。これにより、MOS歪みによる画像合成の失敗がなくなる。   Therefore, according to the present invention, each continuous shot image is divided along the image reading line direction, and movement amount calculation and screen composition are performed for each divided portion. FIG. 2B illustrates an example in which an image is divided into a plurality (two) in the scanning direction, the amount of camera shake is obtained for each divided portion, and the synthesis process is performed for each divided portion. Thereafter, the divided and combined images are joined together. This eliminates the failure of image composition due to MOS distortion.

画像合成の際、アフィン変換を利用して画像合成を行うとさらに画像合成の精度を高めることができる。あるいは、より少ない分割数で高い補正精度を得ることができる。   When image synthesis is performed using affine transformation at the time of image synthesis, the accuracy of image synthesis can be further improved. Alternatively, high correction accuracy can be obtained with a smaller number of divisions.

図3は、アフィン変換の原理を説明する図である。アフィン変換とは、次式(1)に示す行列式を用いた座標変換である。行列パラメータを変えることによって画像の移動、回転、変形などを実現する。

Figure 2008078808
FIG. 3 is a diagram for explaining the principle of affine transformation. Affine transformation is coordinate transformation using a determinant represented by the following equation (1). Moving, rotating, and transforming images is realized by changing matrix parameters.
Figure 2008078808

図4は、アフィン変換による手ぶれ補正を説明する図であり、図19の手ぶれ補正説明図に対応している。   FIG. 4 is a diagram for explaining camera shake correction by affine transformation, and corresponds to the camera shake correction explanatory diagram of FIG.

nフレーム目,n+1フレーム目の手ぶれ補正基準xn(Ln),xn+1(Ln+1)は、次式(2)で示される。
n(Ln)=a*L+b
n+1(Ln+1)=an+1*Ln+1+bn+1 …(2)
The camera shake correction references xn (Ln) and xn + 1 (Ln + 1) of the nth frame and the ( n + 1 ) th frame are expressed by the following equation (2).
x n (Ln) = a n * L n + b n
x n + 1 (Ln + 1 ) = a n + 1 * L n + 1 + b n + 1 ... (2)

アフィン変換による線形変換で、手ぶれ補正基準(xn(Ln),xn+1(Ln+1))を手ぶれ補正量の傾きに近づけることにより、手ぶれ補正不可部分を減らすことができる。但し、アフィン変換は、線形変換であるため、非線形に発生した歪みは補正できない。 By making the camera shake correction reference ( xn (Ln) , xn + 1 (Ln + 1) ) close to the inclination of the camera shake correction amount by the linear transformation based on the affine transformation, it is possible to reduce the camera shake correction impossible portion. However, since the affine transformation is a linear transformation, the distortion generated nonlinearly cannot be corrected.

次に、撮像装置100の全体動作について説明する。   Next, the overall operation of the imaging apparatus 100 will be described.

まず、分割数指定部103では、MOS系のセンサのフレームレート、又はユーザ設定値により画像をスキャン方向に分割する分割数があらかじめ指定されている。撮像部101は、ライン毎の画素読出しを行うMOS系のセンサであり、このMOS系のセンサのフレームレートに応じて、例えば分割数「3」がデェフォルトで指定する。分割数を増やすと演算量は増加するものの補正精度は上がる。ユーザが分割数を指定することも可能である。ユーザが、例えば「画質優先モード」を指定すると分割数を大きく設定する。   First, in the division number designation unit 103, the number of divisions for dividing an image in the scan direction is designated in advance by the frame rate of the MOS sensor or the user setting value. The imaging unit 101 is a MOS sensor that performs pixel readout for each line. For example, the number of divisions “3” is designated by default according to the frame rate of the MOS sensor. Increasing the number of divisions increases the calculation amount but increases the correction accuracy. The user can also specify the number of divisions. For example, when the user designates “image quality priority mode”, the number of divisions is set large.

図5は、分割数に対する総処理時間の変化を示す図である。図6は、分割数に対する合成精度の変化を示す図である。   FIG. 5 is a diagram illustrating a change in the total processing time with respect to the number of divisions. FIG. 6 is a diagram illustrating a change in synthesis accuracy with respect to the number of divisions.

分割数を増やすと補正精度を上げることができるものの処理量も増加してしまう。   Increasing the number of divisions can increase the correction accuracy, but also increases the amount of processing.

図5に示すように、分割数がn倍に増えると、動き検出に要する処理量がn倍に増えるが、画像合成に要する処理量は処理する総ピクセル数が変わらないため変化なし(マージンをとらない場合)である。つまり、分割数を2倍にしても総処理量は2倍未満で収まる。   As shown in FIG. 5, when the number of divisions increases n times, the processing amount required for motion detection increases n times, but the processing amount required for image synthesis does not change because the total number of pixels to be processed does not change (margin is reduced). If not). That is, even if the number of divisions is doubled, the total processing amount is less than doubled.

最適な分割数を決定する方法としては、次式(3)に示す値を見ればよい。式(3)に示す値は、分割実施時の擬似的なフレームレートを表す。
(センサのフレームレート)×(分割数) …(3)
As a method for determining the optimum number of divisions, the value shown in the following equation (3) may be seen. The value shown in Equation (3) represents a pseudo frame rate at the time of division.
(Sensor frame rate) x (Number of divisions) (3)

図6に示すように、上記値を大きくしてもある飽和点から効果が飽和することが分かる。本発明者らは、通常の手ぶれに対しては、上記値が「15」程度となるように分割数を設定すればよいことを見出した。但し、光学系やカメラ本体の重量、形状等により大きなぶれが発生しやすい場合には、より大きな値を設定する必要がある。   As shown in FIG. 6, it can be seen that the effect is saturated from a certain saturation point even if the above value is increased. The inventors have found that for normal camera shake, the number of divisions may be set so that the above value is about “15”. However, if large blurring is likely to occur due to the weight or shape of the optical system or camera body, a larger value must be set.

図1に戻って、撮像部101により画像が複数回撮影され、複数回撮影した画像データは、画像記憶部102に記憶される。   Returning to FIG. 1, an image is captured a plurality of times by the imaging unit 101, and image data captured a plurality of times is stored in the image storage unit 102.

画像分割制御部104では、(1)分割数指定部103により指定された分割数に基づいて画像記憶部102の複数の画像データに対するデータの読出し開始位置・終了位置を変更する。(2)また、分割数指定部103により指定された分割数に基づいて合成画像の切取り開始位置・終了位置を変更する。(3)さらに、分割数指定部103により指定された分割数に基づいて画像保存部107での出力画像データ書込み開始位置・終了位置を変更する。分割数に基づいて変更されたデータの読出し開始位置・終了位置、合成画像の切取り開始位置・終了位置、及び出力画像データ書込み開始位置・終了位置は、それぞれ動き検出部105及び画像合成部106に通知される。画像分割制御部104の動作の詳細については、図7により後述する。   The image division control unit 104 (1) changes the data read start position / end position for a plurality of image data in the image storage unit 102 based on the division number designated by the division number designation unit 103. (2) Further, based on the number of divisions designated by the number-of-divisions designation unit 103, the cut start position / end position of the composite image is changed. (3) Further, based on the number of divisions designated by the division number designation unit 103, the output image data writing start position and end position in the image storage unit 107 are changed. The read start position / end position of data changed based on the number of divisions, the cut start position / end position of the composite image, and the output image data write start position / end position are stored in the motion detection unit 105 and the image composition unit 106, respectively. Be notified. Details of the operation of the image division control unit 104 will be described later with reference to FIG.

動き検出部105は、画像記憶部102に記憶された複数の画像データから画像間の移動量を算出して画像合成部106に出力する。   The motion detection unit 105 calculates the amount of movement between images from a plurality of image data stored in the image storage unit 102 and outputs the movement amount to the image composition unit 106.

画像合成部106では、動き検出部105から得た画像間の移動量を基に画像を合成して画像保存部107に出力し、画像保存部107は、画像合成部106の合成結果を保存する。画像合成部106の動作の詳細については、図8により後述する。   The image composition unit 106 composes an image based on the amount of movement between images obtained from the motion detection unit 105 and outputs it to the image storage unit 107, and the image storage unit 107 stores the composition result of the image composition unit 106. . Details of the operation of the image composition unit 106 will be described later with reference to FIG.

図7は、画像分割制御部104の動作を示すフローチャートである。本フローは、撮像装置100全体を制御する制御部のCPUにより実行される。図中Sは、フローの各ステップを示す。   FIG. 7 is a flowchart showing the operation of the image division control unit 104. This flow is executed by the CPU of the control unit that controls the entire imaging apparatus 100. In the figure, S indicates each step of the flow.

画像分割制御部104の動作がスタートすると、ステップS11で画像記憶部102の複数枚の画像に対し、それぞれの読出し開始・終了位置を入力する。連写した画像データは、画像記憶部102のどのアドレスから読出しを開始してどのアドレスで終了するのかを入力する。次いで、ステップS12で分割数指定部103で決定された画像の分割数nを入力する。   When the operation of the image division control unit 104 starts, the read start / end positions are input to a plurality of images in the image storage unit 102 in step S11. The image data taken continuously is input from which address in the image storage unit 102 to start reading and from which address. Next, the image division number n determined by the division number designation unit 103 in step S12 is input.

ステップS13では、全入力画像に対し、分割i番目の画像記憶部102での読出し開始・終了位置を決定して出力する。すなわち、n分割中i番目の箇所が画像記憶部102のどのアドレスから始まり、どのアドレスで終了するのかを画像合成部106に出力する。次いで、ステップS14で全入力画像に対し、分割i番目の合成画像の切取り開始・終了位置を決定して出力する。すなわち、n分割中i番目の箇所の合成終了後にどの範囲で合成画像を切取るかを画像合成部106に出力する。   In step S13, the reading start / end positions in the divided i-th image storage unit 102 are determined and output for all input images. That is, the address at which the i-th location in the n-division starts and ends at the image storage unit 102 is output to the image composition unit 106. Next, in step S14, the cut start / end positions of the divided i-th composite image are determined and output for all input images. That is, the range in which the synthesized image is cut out after the synthesis of the i-th location during n division is completed is output to the image synthesis unit 106.

ステップS15では、全入力画像に対し、分割i番目の画像保存部107での書込み開始・終了位置を決定して出力する。すなわち、n分割中i番目の箇所の切取り終了後に画像保存部107のどのアドレスから書込みを開始し、どのアドレスで終了するのかを決定して画像合成部106に出力する。   In step S15, writing start / end positions in the divided i-th image storage unit 107 are determined and output for all input images. In other words, after completion of cutting out the i-th portion in the n-division, it is determined from which address of the image storage unit 107 the writing is to be started and the address is to be ended, and is output to the image composition unit 106.

次いで、ステップS16でn分割したn個の領域すべてにおいて処理が終了したか否かを判別し、処理が未完了の場合はステップS17でiをインクリメント(i=i+1)して上記ステップS13に戻り、次の分割箇所の処理に移る。n回分の処理が完了すると本フローを終了する。   Next, in step S16, it is determined whether or not the processing has been completed in all n areas divided into n. If the processing is not completed, i is incremented (i = i + 1) in step S17 and the process returns to step S13. Then, the process proceeds to the next division point. When the process for n times is completed, this flow is finished.

図8は、画像合成部106の動作を示すフローチャートである。本フローは、撮像装置100全体を制御する制御部のCPUにより実行される。   FIG. 8 is a flowchart showing the operation of the image composition unit 106. This flow is executed by the CPU of the control unit that controls the entire imaging apparatus 100.

画像合成部106の動作がスタートすると、ステップS21で複数枚の入力画像に対し、画像記憶部102での読出し開始・終了位置を入力する。画像データを画像記憶部102のどのアドレスから読出しを開始してどのアドレスで終了するのかを入力する。次いで、ステップS22で複数枚の入力画像に対し、合成画像の切取り開始・終了位置を入力して、合成画像をどの範囲で切取るかを指定する。   When the operation of the image composition unit 106 starts, in step S21, the read start / end positions in the image storage unit 102 are input for a plurality of input images. From which address in the image storage unit 102 the image data is read out is input. Next, in step S22, the cut start / end positions of the composite image are input to a plurality of input images, and the range in which the composite image is cut is designated.

ステップS23では、複数枚の入力画像に対し、画像保存部107での書込み開始・終了位置を入力する。切取り終了後に画像保存部107のどのアドレスから書込みを開始してどのアドレスで終了するのかを入力する。   In step S23, the writing start / end positions in the image storage unit 107 are input to a plurality of input images. After the cutting is completed, the address at which the image storage unit 107 starts writing and the address at which the writing ends is input.

次いで、ステップS24で動き検出部105で求めた1枚目に対するn枚目画像の移動量を入力し、ステップS25で移動量だけずらして画像を合成する。次いで、ステップS26で指定された切取り位置で合成画像を切取り、ステップS27で指定された画像保存部107の書込み位置(アドレス)に切り取った画像を出力して本フローを終了する。   Next, the movement amount of the nth image relative to the first image obtained by the motion detection unit 105 is input in step S24, and the image is synthesized by shifting by the movement amount in step S25. Next, the composite image is cut at the cut position specified in step S26, and the cut image is output to the writing position (address) of the image storage unit 107 specified in step S27, and this flow is finished.

図9は、撮像装置100の画像分割動作によるMOS歪み低減効果を説明する図であり、画像を読出しライン方向に3分割した例である。   FIG. 9 is a diagram for explaining the MOS distortion reduction effect by the image dividing operation of the imaging apparatus 100, and is an example in which an image is divided into three in the readout line direction.

簡単のため、手ぶれを水平方向(X軸方向)に限定している。この場合、n枚目の画像に対して3つの移動量xn,1,xn,2,xn,3が、またn+1枚目の画像に対して3つの移動量xn+1,1,xn+1,2,xn+1,3が求まる。このように、画像の読出しライン方向に画像を3分割し、3分割箇所毎に手ぶれ量(移動量)を計算しているので、前記図19(a)と比較して判るように、歪みによって補正しきれない領域(図9ハッチング部参照)を減少させることができる。したがって、MOS系のセンサの歪みによる影響を減らして手ぶれ補正を行うことができる。 For simplicity, camera shake is limited to the horizontal direction (X-axis direction). In this case, three movement amounts xn, 1 , xn, 2 , xn, 3 are applied to the nth image, and three movement amounts xn + 1,1 , x are applied to the n + 1th image. n + 1 , 2 and xn + 1 , 3 are obtained. In this way, the image is divided into three in the image reading line direction, and the amount of camera shake (movement amount) is calculated for each of the three divided portions. As can be seen from comparison with FIG. An area that cannot be corrected (see the hatched portion in FIG. 9) can be reduced. Therefore, camera shake correction can be performed while reducing the influence of the distortion of the MOS sensor.

図9では、画像を読出しライン方向に3分割した例であるが、さらに分割数を増やすことで、処理量は増加するものの補正精度を上げることができる。   Although FIG. 9 shows an example in which the image is divided into three in the readout line direction, the correction accuracy can be increased by increasing the number of divisions, although the processing amount increases.

上述したように、画像を読出しライン方向に分割し、分割箇所毎に手ぶれ量(移動量)を求めることで、MOS系のセンサの歪みによる影響を減らすことができた。   As described above, by dividing the image in the readout line direction and obtaining the amount of camera shake (movement amount) for each divided portion, the influence due to the distortion of the MOS sensor could be reduced.

本方法に、図3及び図4で前述したアフィン変換を適用すると、より一層の手ぶれ補正効果が得られる。これは、アフィン変換そのものによる補正効果に加え、本方法が画像の読出しライン方向分割を採ったことにより、各分割箇所にアフィン変換を適用することが可能になり、非線形に発生した歪みも補正できることによる。   When the affine transformation described above with reference to FIGS. 3 and 4 is applied to this method, a further camera shake correction effect can be obtained. This is because, in addition to the correction effect due to the affine transformation itself, this method employs image readout line direction division, making it possible to apply affine transformation to each division location and correcting non-linear distortion. by.

以下、本方法に、画像合成の際、アフィン変換を利用して画像合成を行う効果について説明する。   Hereinafter, the effect of performing image composition using affine transformation in image synthesis in this method will be described.

図10は、アフィン変換による手ぶれ補正の限界を説明する図である。   FIG. 10 is a diagram for explaining the limit of camera shake correction by affine transformation.

nフレーム目,n+1フレーム目の手ぶれ補正基準xn(Ln),xn+1(Ln+1)は、前記式(2)で示される。図10に示すように、非線形に発生した手ぶれ量(歪み量)が大きいと、アフィン変換を単純に適用しただけでは発生した歪みを補正しきることはできない。従来例は、これがアフィン変換等の線形変換の限界であった。 The camera shake correction references xn (Ln) and xn + 1 (Ln + 1) of the nth frame and the ( n + 1 ) th frame are expressed by the above equation (2). As shown in FIG. 10, when the amount of camera shake (distortion amount) generated nonlinearly is large, the generated distortion cannot be corrected by simply applying affine transformation. In the conventional example, this is the limit of linear transformation such as affine transformation.

図11は、本方法による画像の分割とアフィン変換による手ぶれ補正を説明する図であり、MOS歪みは図10に対応する図である。画像を読出しライン方向に2分割した例である。   FIG. 11 is a diagram for explaining image division and camera shake correction by affine transformation according to the present method, and MOS distortion is a diagram corresponding to FIG. 10. This is an example in which an image is divided into two in the readout line direction.

画像を読出しライン方向に2分割し、2分割箇所毎にアフィン変換するため、nフレーム目及びn+1フレーム目は、それぞれ2つの手ぶれ補正基準xn,1(Ln),xn,2(Ln)とxn+1,1(Ln+1),xn+1,2(Ln+1)を持つ。nフレーム目の手ぶれ補正基準xn,1(Ln),xn,2(Ln)は、次式(4)で示され、n+1フレーム目の手ぶれ補正基準xn+1,1(Ln+1),xn+1,2(Ln+1)は、次式(5)で示される。
n,1(Ln)=an,1*Ln,1+bn,1
n,2(Ln)=an,2*Ln,2+bn,2 …(4)
n+1,1(Ln+1)=an,1*Ln,1+bn,1
n+1,2(Ln+1)=an+1,2*Ln+1,2+bn+1,2 …(5)
Since the image is divided into two in the readout line direction and affine transformation is performed for each of the two divided portions, the nth frame and the (n + 1) th frame have two camera shake correction references xn, 1 (Ln) , xn, 2 (Ln), respectively. And x n + 1,1 (Ln + 1) and x n + 1,2 (Ln + 1) . n th frame image stabilization reference x n, 1 (Ln), x n, 2 (Ln) is represented by the following formula (4), n + 1 th frame image stabilization reference x n + 1,1 (Ln + 1 ), x n + 1 , 2 (Ln + 1) is expressed by the following equation (5).
xn, 1 (Ln) = an , 1 * Ln , 1 + b n, 1
x n, 2 (Ln) = an , 2 * L n, 2 + b n, 2 (4)
x n + 1,1 (Ln + 1) = an , 1 * L n, 1 + b n, 1
xn + 1,2 (Ln + 1) = an + 1,2 * Ln + 1,2 + b n + 1,2 (5)

図11に示すように、アフィン変換そのものは線形変換であるものの、非線形に発生した歪みに対して、非線形の大きい歪み部分について2つのアフィン変換を用いることで、手ぶれ補正不可部分(図11ハッチング部参照)を大幅に減らすことができる。図10と比較すると、その効果は明らかである。   As shown in FIG. 11, although the affine transformation itself is a linear transformation, by using two affine transformations for a non-linearly distorted portion with respect to a non-linearly distorted portion, an image stabilization portion (hatching portion in FIG. 11) is used. Reference) can be greatly reduced. Compared with FIG. 10, the effect is clear.

このように、手ぶれが非線形に発生した場合でも、画像を読出しライン方向に分割し、分割箇所毎にアフィン変換を用いれば、高精度な補正が可能となる。   Thus, even when camera shake occurs non-linearly, if an image is divided in the readout line direction and affine transformation is used for each divided portion, high-precision correction can be performed.

以上のように、本実施の形態によれば、撮像装置100は、ライン毎の画素読出しを行う撮像部101、複数回撮影した画像データを記憶する画像記憶部102、分割数を指定する分割数指定部103、画素読出しライン方向に画像を分割し、各部を制御する画像分割制御部104、分割された画像のそれぞれにおいて、複数の画像データから画像間の移動量を算出する動き検出部105、分割された画像のそれぞれの画像間の移動量を基に画像を合成する画像合成部106、及び合成結果を保存する画像保存部107を備え、画像を読出しライン方向に分割し、分割箇所毎にそれぞれ独立に手ぶれ量(移動量)を求め、アフィン変換を用いて画像合成しているので、MOS歪みの影響を減らして手ぶれ補正の精度向上を図ることができ、MOS歪みによる画像合成の失敗を未然に防ぐことができる。   As described above, according to the present embodiment, the imaging apparatus 100 includes the imaging unit 101 that performs pixel readout for each line, the image storage unit 102 that stores image data captured a plurality of times, and the number of divisions that specifies the number of divisions. A designation unit 103, an image division control unit 104 that divides an image in the pixel readout line direction and controls each unit, and a motion detection unit 105 that calculates a movement amount between images from a plurality of image data in each of the divided images; An image combining unit 106 that combines the images based on the movement amount between the divided images and an image storage unit 107 that stores the combined result are divided into the readout line direction, and each divided portion is divided. Since each camera shake amount (movement amount) is obtained independently and image synthesis is performed using affine transformation, it is possible to reduce the influence of MOS distortion and improve the accuracy of camera shake correction. It is possible to prevent the failure of the image synthesis by S distortion.

かかる優れた特長を有する本発明を、デジタルカメラなどの電子スチルカメラ、手ぶれ補正機能を有するビデオカメラにおける撮像装置、カメラ付き携帯電話機等に適用して好適である。   The present invention having such excellent features is preferably applied to an electronic still camera such as a digital camera, an imaging device in a video camera having a camera shake correction function, a mobile phone with a camera, and the like.

(実施の形態2)
図12は、本発明の実施の形態2に係る撮像装置の構成を示すブロック図である。図1と同一構成部分には同一符号を付して重複箇所の説明を省略する。
(Embodiment 2)
FIG. 12 is a block diagram showing a configuration of an imaging apparatus according to Embodiment 2 of the present invention. The same components as those in FIG. 1 are denoted by the same reference numerals, and description of overlapping portions is omitted.

図12において、撮像装置200は、さらに検出精度判定部210を備えて構成される。また、検出精度判定部210による判定出力は、分割数指定部103に入力される。   In FIG. 12, the imaging apparatus 200 is further provided with a detection accuracy determination unit 210. The determination output from the detection accuracy determination unit 210 is input to the division number specifying unit 103.

検出精度判定部210は、動き検出部105により算出された移動量の精度が所定の閾値以下であることを判定する。   The detection accuracy determination unit 210 determines that the accuracy of the movement amount calculated by the motion detection unit 105 is equal to or less than a predetermined threshold value.

以下、上述のように構成された撮像装置200の動作について説明する。   Hereinafter, the operation of the imaging apparatus 200 configured as described above will be described.

撮影時に小さなぶれしか発生せず、歪みが小さい場合がある。この場合、分割数が少ない方がより少ない処理量で済む。逆に、大きなぶれが発生した場合は、分割数を多くすることが好ましい。   There may be only a small amount of blur when shooting, and distortion may be small. In this case, the smaller the number of divisions, the smaller the processing amount. On the other hand, when large blurring occurs, it is preferable to increase the number of divisions.

そこで本実施の形態では、検出精度判定部210は、動き検出部105が求めた移動量の精度が所定の閾値以下であるか否かを判定し、判定結果を分割数指定部103に出力する。分割数指定部103では、判定結果を基に分割数を指定する。分割数の指定には、以下の2つの応用が可能である。   Therefore, in the present embodiment, the detection accuracy determination unit 210 determines whether the accuracy of the movement amount obtained by the motion detection unit 105 is equal to or less than a predetermined threshold value, and outputs the determination result to the division number designation unit 103. . The division number designation unit 103 designates the division number based on the determination result. The following two applications are possible for specifying the number of divisions.

(1)ある分割数で処理を実行し、どの程度正確に画像が合成されるか動き検出の精度を判定し、動き検出部105が求めた移動量の精度が基準値以下であれば、分割数を増やして再度合成処理を行う。この場合、動き検出の精度の前記基準値からの差分に応じて、該差分が大きければ分割数をより増やすようにしてもよい。   (1) The process is executed with a certain number of divisions to determine how accurately the image is synthesized, and the accuracy of motion detection is determined. If the accuracy of the movement amount obtained by the motion detection unit 105 is equal to or less than a reference value, the division is performed. Increase the number and perform synthesis again. In this case, according to the difference from the reference value of the accuracy of motion detection, the number of divisions may be increased if the difference is large.

(2)ある分割数で処理を実行し、ユーザが結果を画面で確認して、このまま画像を保存するか、分割数を増やして再度合成処理を行うかを選択する。   (2) The process is executed with a certain number of divisions, and the user confirms the result on the screen, and selects whether to save the image as it is or to increase the number of divisions and perform the synthesis process again.

以上のように、本実施の形態によれば、手ぶれ量計算時に求まる補正精度が基準値以下の場合は分割数を増やして再度合成処理を行うことにより、より少ない処理量で補正精度を向上させることができる。   As described above, according to the present embodiment, when the correction accuracy obtained when calculating the amount of camera shake is equal to or less than the reference value, the correction accuracy is improved with a smaller processing amount by increasing the number of divisions and performing the synthesis process again. be able to.

ユーザが、上記基準値を前以て設定する、あるいはユーザが結果を画面で確認するようにすれば、ユーザの意向に合った合成処理を実現することができる。   If the user sets the reference value in advance or the user confirms the result on the screen, it is possible to realize a synthesis process that matches the user's intention.

(実施の形態3)
上記実施の形態1,2によれば、画像の読出しライン方向に分割し、分割箇所毎に移動量計算と画面合成を行うことでMOS歪みのない画像合成が可能になった。本実施の形態
は、分割画像を合成したときの合成跡をなくす例について説明する。
(Embodiment 3)
According to the first and second embodiments, it is possible to synthesize an image without MOS distortion by dividing the image in the reading line direction and performing movement amount calculation and screen composition for each divided part. In the present embodiment, an example in which a combined trace when a divided image is combined will be described.

図13及び図14は、合成跡への対処方法を説明する図である。図13に示すように、画像2枚をアフィン変換を用いて合成した場合、2枚目の枠301が合成時に現れ、合成跡となる。この場合、中央のエリア302で切り取って出力すれば、合成時の枠301を除去することができる。しかし、上記実施の形態1,2では、画像を分割し画面合成しているため、図14に示すように、例えば2分割で2枚の画像を合成したとすると、たとえ中央のエリアで切り取ったとしても、合成時の枠310が合成跡として中央に残ってしまう。   FIG. 13 and FIG. 14 are diagrams for explaining a method for dealing with a combined trace. As shown in FIG. 13, when two images are combined using affine transformation, a second frame 301 appears at the time of combining and becomes a combined mark. In this case, the frame 301 at the time of synthesis can be removed by cutting and outputting in the center area 302. However, in the first and second embodiments, since the images are divided and the screens are combined, as shown in FIG. 14, for example, if two images are combined in two parts, they are cut out in the center area. However, the frame 310 at the time of synthesis remains in the center as a synthesis trace.

図15は、分割画像を合成したときの合成跡の除去について説明する図である。2分割の場合を例に採る。   FIG. 15 is a diagram for explaining the removal of a combined trace when combining divided images. Take the case of two divisions as an example.

本実施の形態では、各分割画像に合成跡を残さないようにするため、分割領域にマージンを持たせる。   In the present embodiment, a margin is given to the divided area so as not to leave a combined trace in each divided image.

図15(a)(b)において、撮影画像400に対して上半分の分割領域401aと下半分の分割領域401bとを、マージンを取って分割する。出力領域402は、上半分の出力領域402aと下半分の出力領域402bとで均等である。   15A and 15B, the upper half divided area 401a and the lower half divided area 401b are divided with a margin with respect to the captured image 400. The output area 402 is equal between the upper half output area 402a and the lower half output area 402b.

図15(a)(b)に示すように、画像を2分割する場合、単純に均等に2分割するのではなく、上半分の分割領域401aと下半分の分割領域401bとは、中央部が重なるようにマージンを取って分割し、出力時に中央のエリアの出力領域402を切り取って出力する。図15(c)は、中央のエリアの出力領域402を切り取って出力された出力画像を示している。これにより、合成時の枠が中央に残る不具合が解消される。   As shown in FIGS. 15 (a) and 15 (b), when the image is divided into two parts, the upper half divided area 401a and the lower half divided area 401b are not divided into two equal parts. The output area 402 in the center area is cut out and output at the time of output. FIG. 15C shows an output image output by cutting out the output area 402 in the center area. This eliminates the problem that the frame during synthesis remains in the center.

図15において、上半分と下半分の切取り位置をBB’で共通にすれば、分割境界で不連続な画像となることを防ぐことができる。また、出力画像402を入力画像と別のメモリ領域に保存するようにすれば、上半分の合成結果が下半分に影響を及ぼすことはない。   In FIG. 15, if the cutting positions of the upper half and the lower half are shared by BB ′, it is possible to prevent a discontinuous image at the division boundary. If the output image 402 is stored in a memory area different from that of the input image, the upper half synthesis result does not affect the lower half.

以上の説明は本発明の好適な実施の形態の例証であり、本発明の範囲はこれに限定されることはない。   The above description is an illustration of a preferred embodiment of the present invention, and the scope of the present invention is not limited to this.

また、撮像装置及び画像歪み補正方法を有する電子機器であればどのような装置にも適用できる。例えば、電子スチルカメラ及びビデオカメラは勿論のこと、カメラ付き携帯電話機、PDA(Personal Digital Assistants)等の携帯情報端末、撮像装置を備えるパソコン等の情報処理装置にも適用可能である。   Further, the present invention can be applied to any device as long as it is an electronic device having an imaging device and an image distortion correction method. For example, the present invention can be applied not only to an electronic still camera and a video camera, but also to an information processing apparatus such as a mobile phone with a camera, a portable information terminal such as a PDA (Personal Digital Assistants), and a personal computer equipped with an imaging device.

また、ライン毎の画素読出しを行う撮像素子であれば、CMOSセンサなどどのような撮像素子であってもよい。なお、全画素の電荷蓄積タイミングが同じCCDセンサでは、
MOS歪みの影響はないものの、手ぶれ補正の精度向上のため応用は可能である。
Further, any image sensor such as a CMOS sensor may be used as long as the image sensor performs pixel readout for each line. In CCD sensors where the charge accumulation timing of all pixels is the same,
Although there is no influence of MOS distortion, it can be applied to improve the accuracy of camera shake correction.

また、上記各実施の形態では、撮像装置及び画像歪み補正方法という名称を用いたが、これは説明の便宜上であり、カメラシステム、手ぶれ補正方法等でもよいことは勿論である。   In the above-described embodiments, the names of the imaging device and the image distortion correction method are used. However, this is for convenience of description, and it is needless to say that a camera system, a camera shake correction method, or the like may be used.

また、上記撮像装置を構成する各回路部の種類、数及び接続方法などは前述した実施の形態に限られない。   Further, the type, number, connection method, and the like of each circuit unit constituting the imaging apparatus are not limited to the above-described embodiments.

また、以上説明した撮像装置及び画像歪み補正方法は、この撮像装置及び画像歪み補正方法を機能させるためのプログラムでも実現される。このプログラムはコンピュータで読み取り可能な記録媒体に格納されている。   The imaging apparatus and the image distortion correction method described above are also realized by a program for causing the imaging apparatus and the image distortion correction method to function. This program is stored in a computer-readable recording medium.

本発明に係る撮像装置及び画像歪み補正方法は、手ぶれに起因する画像歪みを補正する撮像装置を備える電子スチルカメラやビデオカメラ等に実装される撮像装置及び画像歪み補正方法として有用である。   INDUSTRIAL APPLICABILITY The imaging apparatus and the image distortion correction method according to the present invention are useful as an imaging apparatus and an image distortion correction method that are mounted on an electronic still camera, a video camera, or the like that includes an imaging apparatus that corrects image distortion caused by camera shake.

本発明の実施の形態1に係る撮像装置の構成を示すブロック図1 is a block diagram showing a configuration of an imaging apparatus according to Embodiment 1 of the present invention. 本発明の基本的な考え方を説明する図Diagram explaining the basic concept of the present invention アフィン変換の原理を説明する図Diagram explaining the principle of affine transformation 上記実施の形態1に係る撮像装置のアフィン変換による手ぶれ補正を説明する図FIG. 6 is a diagram for explaining camera shake correction by affine transformation of the imaging apparatus according to the first embodiment. 上記実施の形態1に係る撮像装置の分割数に対する総処理時間の変化を示す図The figure which shows the change of the total processing time with respect to the division | segmentation number of the imaging device which concerns on the said Embodiment 1. FIG. 上記実施の形態1に係る撮像装置の分割数に対する合成精度の変化を示す図The figure which shows the change of the synthetic | combination precision with respect to the division | segmentation number of the imaging device which concerns on the said Embodiment 1. FIG. 上記実施の形態1に係る撮像装置の画像分割制御部の動作を示すフロー図The flowchart which shows operation | movement of the image division control part of the imaging device which concerns on the said Embodiment 1. FIG. 上記実施の形態1に係る撮像装置の画像合成部の動作を示すフロー図Flow chart showing the operation of the image composition unit of the imaging apparatus according to the first embodiment. 上記実施の形態1に係る撮像装置の画像分割動作によるMOS歪み低減効果を説明する図The figure explaining the MOS distortion reduction effect by the image division | segmentation operation | movement of the imaging device which concerns on the said Embodiment 1. FIG. 上記実施の形態1に係る撮像装置のアフィン変換による手ぶれ補正の限界を説明する図The figure explaining the limit of the camera-shake correction by the affine transformation of the imaging device according to the first embodiment 上記実施の形態1に係る撮像装置の画像の分割とアフィン変換による手ぶれ補正を説明する図The figure explaining the image division of the imaging device which concerns on the said Embodiment 1, and the camera shake correction by affine transformation 本発明の実施の形態2に係る撮像装置の構成を示すブロック図FIG. 3 is a block diagram showing a configuration of an imaging apparatus according to Embodiment 2 of the present invention. 上記実施の形態2に係る撮像装置の合成跡への対処方法を説明する図The figure explaining the coping method with respect to the composite mark of the imaging device which concerns on the said Embodiment 2. 上記実施の形態2に係る撮像装置の合成跡への対処方法を説明する図The figure explaining the coping method with respect to the composite mark of the imaging device which concerns on the said Embodiment 2. 上記実施の形態2に係る撮像装置の分割画像を合成したときの合成跡の除去について説明する図The figure explaining the removal of the synthetic | combination trace when the divided image of the imaging device which concerns on the said Embodiment 2 is synthesize | combined. 従来の撮像装置の構成を示すブロック図Block diagram showing the configuration of a conventional imaging device 従来の撮像装置の電子手ぶれ補正を説明する図The figure explaining the electronic camera-shake correction of the conventional imaging device CCDセンサによる手ぶれ補正を説明する図The figure explaining camera shake correction by a CCD sensor MOS系センサによる手ぶれ補正を説明する図Diagram explaining camera shake correction by MOS sensor

符号の説明Explanation of symbols

100,200 撮像装置
101 撮像部
102 画像記憶部
103 分割数指定部
104 画像分割制御部
105 動き検出部
106 画像合成部
107 画像保存部
210 検出精度判定部
DESCRIPTION OF SYMBOLS 100,200 Image pick-up device 101 Image pick-up part 102 Image memory | storage part 103 Division number designation | designated part 104 Image division | segmentation control part 105 Motion detection part 106 Image composition part 107 Image preservation | save part 210 Detection accuracy determination part

Claims (13)

ライン毎の画素読出しを行う撮像素子と、
前記撮像素子により複数回撮影した画像データを記憶する画像記憶手段と、
前記撮像素子の画素読出しライン方向に画像を分割する画像分割手段と、
分割された画像のそれぞれにおいて、前記画像記憶手段に記憶された複数の画像データから画像間の移動量を算出する動き検出手段と、
前記動き検出手段から得られる、分割された画像のそれぞれの画像間の移動量を基に画像を合成する画像合成手段と
備える撮像装置。
An image sensor that performs pixel readout for each line;
Image storage means for storing image data photographed a plurality of times by the imaging device;
Image dividing means for dividing an image in a pixel readout line direction of the image sensor;
In each of the divided images, motion detection means for calculating a movement amount between images from a plurality of image data stored in the image storage means;
An image pickup apparatus comprising: an image composition unit configured to compose an image based on a movement amount between each of the divided images obtained from the motion detection unit.
前記画像分割手段は、分割された画像が所定領域重なるようにマージンを持たせて分割する請求項1記載の撮像装置。   The imaging apparatus according to claim 1, wherein the image dividing unit divides the image with a margin so that the divided images overlap a predetermined area. 前記画像合成手段は、アフィン変換を用いた画像合成を行う請求項1記載の撮像装置。   The imaging apparatus according to claim 1, wherein the image composition unit performs image composition using affine transformation. さらに、画像を画素読出しライン方向に分割する分割数を指定する分割数指定手段を備える請求項1記載の撮像装置。   The imaging apparatus according to claim 1, further comprising division number designation means for designating a division number for dividing the image in the pixel readout line direction. 前記分割数指定手段は、前記撮像素子のフレームレートに基づく規定値、又はユーザ設定値により分割数を指定する請求項3記載の撮像装置。   The imaging apparatus according to claim 3, wherein the division number designating unit designates the division number by a specified value based on a frame rate of the imaging element or a user set value. さらに、前記画像間の移動量を基に画像合成の精度を判定する画像合成精度判定手段を備える請求項1記載の撮像装置。   The imaging apparatus according to claim 1, further comprising an image synthesis accuracy determination unit that determines the accuracy of image synthesis based on a movement amount between the images. 前記画像分割手段は、前記画像合成精度判定手段による判定精度を基に前記分割数を決定する請求項6記載の撮像装置。   The imaging apparatus according to claim 6, wherein the image dividing unit determines the number of divisions based on determination accuracy by the image synthesis accuracy determination unit. 前記画像分割手段は、前記画像合成精度判定手段による判定精度が所定の基準値以下のときは前記分割数を増やす請求項6記載の撮像装置。   The imaging apparatus according to claim 6, wherein the image dividing unit increases the number of divisions when the determination accuracy by the image synthesis accuracy determination unit is a predetermined reference value or less. ライン毎の画素読出しを行う撮像素子により複数回撮影するステップと、
複数回撮影した画像データを記憶するステップと、
前記撮像素子の画素読出しライン方向に画像を分割するステップと、
分割された画像のそれぞれにおいて、前記画像記憶手段に記憶された複数の画像データから画像間の移動量を算出するステップと、
分割された画像のそれぞれの画像間の移動量を基に画像を合成するステップと
を有する画像歪み補正方法。
A step of photographing a plurality of times by an image sensor that performs pixel readout for each line;
Storing image data taken multiple times;
Dividing an image in a pixel readout line direction of the image sensor;
Calculating the amount of movement between images from a plurality of image data stored in the image storage means in each of the divided images;
And a step of synthesizing the images based on the movement amount between the divided images.
前記分割ステップでは、分割された画像が所定領域重なるようにマージンを持たせて分割する請求項9記載の画像歪み補正方法。   The image distortion correction method according to claim 9, wherein in the dividing step, the divided image is divided with a margin so as to overlap a predetermined area. 前記画像合成ステップでは、アフィン変換を用いた画像合成を行う請求項9記載の撮像装置の画像歪み補正方法。   The image distortion correction method for an imaging apparatus according to claim 9, wherein the image composition step performs image composition using affine transformation. さらに、画像間の移動量を基に画像合成の精度を判定するステップを有し、
前記分割ステップでは、判定精度が所定の基準値以下のときは前記分割数を増やす請求項9記載の画像歪み補正方法。
Furthermore, it has a step of determining the accuracy of image composition based on the amount of movement between images,
The image distortion correction method according to claim 9, wherein in the division step, the number of divisions is increased when determination accuracy is equal to or lower than a predetermined reference value.
請求項9乃至請求項12に記載のステップをコンピュータに実行させるためのプログラム。   A program for causing a computer to execute the steps according to claim 9.
JP2006253328A 2006-09-19 2006-09-19 Imaging apparatus, image distortion correction method, and program Expired - Fee Related JP4771901B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006253328A JP4771901B2 (en) 2006-09-19 2006-09-19 Imaging apparatus, image distortion correction method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006253328A JP4771901B2 (en) 2006-09-19 2006-09-19 Imaging apparatus, image distortion correction method, and program

Publications (2)

Publication Number Publication Date
JP2008078808A true JP2008078808A (en) 2008-04-03
JP4771901B2 JP4771901B2 (en) 2011-09-14

Family

ID=39350440

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006253328A Expired - Fee Related JP4771901B2 (en) 2006-09-19 2006-09-19 Imaging apparatus, image distortion correction method, and program

Country Status (1)

Country Link
JP (1) JP4771901B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008160547A (en) * 2006-12-25 2008-07-10 Sanyo Electric Co Ltd Movement detection device and method, and imaging apparatus
CN102208110A (en) * 2010-03-31 2011-10-05 索尼公司 Image processing apparatus, image processing method, and image processing program
JP2012175290A (en) * 2011-02-18 2012-09-10 Canon Inc Image processing device, and method of controlling the same
US8363116B2 (en) 2009-02-19 2013-01-29 Sony Corporation Image processing device, focal plane distortion component calculation method, image processing program, and recording medium
US8416308B2 (en) 2009-02-19 2013-04-09 Sony Corporation Image processing device, camera motion component calculation method, image processing program, and recording medium
US8436906B2 (en) 2009-11-24 2013-05-07 Sony Corporation Image processing apparatus, image processing method, program, and recording medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006186885A (en) * 2004-12-28 2006-07-13 Sony Corp Method and apparatus of correcting distortion of picked-up image signal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006186885A (en) * 2004-12-28 2006-07-13 Sony Corp Method and apparatus of correcting distortion of picked-up image signal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008160547A (en) * 2006-12-25 2008-07-10 Sanyo Electric Co Ltd Movement detection device and method, and imaging apparatus
US8363116B2 (en) 2009-02-19 2013-01-29 Sony Corporation Image processing device, focal plane distortion component calculation method, image processing program, and recording medium
US8416308B2 (en) 2009-02-19 2013-04-09 Sony Corporation Image processing device, camera motion component calculation method, image processing program, and recording medium
US8436906B2 (en) 2009-11-24 2013-05-07 Sony Corporation Image processing apparatus, image processing method, program, and recording medium
CN102208110A (en) * 2010-03-31 2011-10-05 索尼公司 Image processing apparatus, image processing method, and image processing program
JP2012175290A (en) * 2011-02-18 2012-09-10 Canon Inc Image processing device, and method of controlling the same

Also Published As

Publication number Publication date
JP4771901B2 (en) 2011-09-14

Similar Documents

Publication Publication Date Title
JP4446193B2 (en) Image processing apparatus and method, and program
JP4671430B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM
JP5794705B2 (en) Imaging apparatus, control method thereof, and program
JP5531194B2 (en) Image processing apparatus, image processing method, and image processing program
JP5548552B2 (en) Imaging device
US20090225174A1 (en) Image processing apparatus, image processing method, hand shake blur area estimation device, hand shake blur area estimation method, and program
JP4771901B2 (en) Imaging apparatus, image distortion correction method, and program
KR20210016469A (en) Systems and methods for generating background blur in camera panning or motion
JP2007243335A (en) Camera shake correction method, camera shake correction apparatus, and imaging apparatus
JP5836110B2 (en) Imaging apparatus and control method thereof
JP6332212B2 (en) Posture estimation apparatus, posture estimation method, and program
JP6257289B2 (en) Image processing apparatus, imaging apparatus including the same, and image processing method
JP4499686B2 (en) Image processing apparatus and method, recording medium, and program
JP2007201570A (en) Image processor, photography apparatus, image processing method and control program
JP2004363869A (en) Imaging apparatus with image distortion correcting function
JP4597073B2 (en) Camera shake correction method, camera shake correction apparatus, and imaging apparatus
JP2008235958A (en) Imaging apparatus
JP3925559B2 (en) Image processing apparatus and method, recording medium, and program
JP2006311544A (en) Image processing apparatus and method therefor, record medium as well as 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
JP5401696B2 (en) Image processing apparatus, image processing method, and image processing program
JP5540935B2 (en) Imaging device
JP4671429B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM
JP4969371B2 (en) Imaging device
JP4919165B2 (en) Image composition apparatus and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090312

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101130

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110127

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110524

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110621

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

Free format text: PAYMENT UNTIL: 20140701

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees