JP2007306107A - Imaging apparatus, imaging method, and program - Google Patents

Imaging apparatus, imaging method, and program Download PDF

Info

Publication number
JP2007306107A
JP2007306107A JP2006130097A JP2006130097A JP2007306107A JP 2007306107 A JP2007306107 A JP 2007306107A JP 2006130097 A JP2006130097 A JP 2006130097A JP 2006130097 A JP2006130097 A JP 2006130097A JP 2007306107 A JP2007306107 A JP 2007306107A
Authority
JP
Japan
Prior art keywords
image
unit
imaging
average image
average
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2006130097A
Other languages
Japanese (ja)
Inventor
Takayoshi Kusayama
貴由 草山
Masamitsu Nakamura
真備 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2006130097A priority Critical patent/JP2007306107A/en
Publication of JP2007306107A publication Critical patent/JP2007306107A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To easily acquire an image where a moving body is deleted and exposure is appropriate. <P>SOLUTION: An imaging section 41 converts incident light photoelectrically to capture the image. While a user operates a release switch 31, an average image generation section 58 generates an average image where the pixel values of a plurality of images captured by the imaging section 41 at the exposure time of appropriate exposure are averaged. When the operation of the release switch 31 is stopped, an I/O control section 62 records the average image on a memory card 65 via a storage section 63 or a drive 64. The present invention can be applied to, for example a digital camera. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、撮像装置、撮像方法、およびプログラムに関し、特に、例えば、ユーザが、動きのある物体(動体)が消去された、適正露光の画像を容易に取得できるようにした撮像装置、撮像方法、およびプログラムに関する。   The present invention relates to an imaging apparatus, an imaging method, and a program, and more particularly, for example, an imaging apparatus and an imaging method that allow a user to easily acquire an image with proper exposure from which a moving object (moving object) is erased. And related to the program.

適正露光(露出)未満で撮像した複数の入力画像に基づいて、出力画像を推定する画像処理が、例えば、特許文献1に提案されている。   For example, Patent Document 1 proposes image processing for estimating an output image based on a plurality of input images captured with less than appropriate exposure (exposure).

特許文献1に記載の画像処理では、複数の入力画像から出力画像を推定する過程において、複数の入力画像の位置関係を補正し、補正後の入力画像のそれぞれを加算する処理(以下、補正加算処理という)が行われる。   In the image processing described in Patent Document 1, in the process of estimating an output image from a plurality of input images, the positional relationship between the plurality of input images is corrected, and each of the corrected input images is added (hereinafter referred to as correction addition). Process).

特許文献1に記載の補正加算処理によれば、入力画像において、動体が投影された動体部分が消去され、動体部分でない静止部分のみが撮像された出力画像を取得することができる。
特開2005−038396号公報
According to the correction addition process described in Patent Document 1, it is possible to obtain an output image in which a moving body portion on which a moving body is projected is deleted and only a stationary portion that is not a moving body portion is captured in an input image.
JP 2005-038396 A

特許文献1に記載の補正加算処理では、最終的に得られる出力画像の露光量をあらかじめ定めたうえで、適正露光未満の複数の入力画像を撮像し、その入力画像を加算することにより、適正露光の出力画像を得ることはできるが、この場合、入力画像を加算する回数が定められてしまうため、動体の消去の程度を調節することができなかった。   In the correction addition process described in Patent Document 1, the exposure amount of the finally obtained output image is determined in advance, a plurality of input images less than the appropriate exposure are captured, and the input images are added to obtain an appropriate value. Although an output image of exposure can be obtained, in this case, since the number of times of adding the input image is determined, the degree of erasure of the moving object cannot be adjusted.

また、特許文献1に記載の補正加算処理では、最終的に得られる出力画像の露光量を定めずに、動体の消去の程度を確認しながら複数の入力画像を加算する処理を行うことにより、動体が消去された出力画像を得ることはできるが、この場合、最終的に得られる出力画像の露光量を調節することができなかった。   In addition, in the correction addition process described in Patent Document 1, by performing a process of adding a plurality of input images while confirming the degree of erasure of moving objects without determining the exposure amount of the finally obtained output image, Although it is possible to obtain an output image from which the moving object has been erased, in this case, the exposure amount of the finally obtained output image cannot be adjusted.

本発明は、このような状況に鑑みてなされたものであり、ユーザが、動体が消去された、適正露光の画像を容易に取得できるようにするものである。   The present invention has been made in view of such a situation, and enables a user to easily acquire an image of proper exposure from which a moving object has been erased.

本発明の第1の側面の撮像装置は、画像を撮像する撮像装置であり、入射する光を光電変換することにより画像を撮像する撮像手段と、ユーザによって操作される操作手段と、前記操作手段が操作されている間に、前記撮像手段が適正露光の露光時間で撮像した複数枚の画像の画素値を平均化した平均画像を生成する平均画像生成手段と、前記操作手段の操作が停止されたとき、前記平均画像を記録媒体に記録する記録制御手段とを備える。   An imaging apparatus according to a first aspect of the present invention is an imaging apparatus that captures an image, an imaging unit that captures an image by photoelectrically converting incident light, an operation unit that is operated by a user, and the operation unit. Is operated, the average image generating means for generating an average image obtained by averaging the pixel values of a plurality of images captured by the imaging means with an exposure time of appropriate exposure, and the operation of the operating means are stopped. And a recording control means for recording the average image on a recording medium.

第1の側面の撮像装置には、画像を表示する表示手段と、前記平均画像生成手段において、新たな平均画像が生成されるごとに、新たな平均画像を、前記表示手段に表示させる表示制御手段とをさらに備えることができる。   The imaging apparatus according to the first aspect includes a display unit that displays an image, and a display control that causes the display unit to display a new average image each time a new average image is generated in the average image generation unit. Means.

第1の側面の撮像装置には、前記操作手段が操作されている間に、前記撮像手段が撮像した複数枚の画像それぞれに映っている被写体の位置を合わせるように、前記撮像手段が撮像した画像を補正する補正手段をさらに設けることができ、前記平均画像生成手段では、前記補正手段により補正がされた複数枚の画像を平均化させることができる。   In the imaging device of the first aspect, while the operation unit is being operated, the imaging unit captures the position of the subject shown in each of a plurality of images captured by the imaging unit. Correction means for correcting an image can be further provided, and the average image generation means can average a plurality of images corrected by the correction means.

第1の側面の撮像装置における前記平均画像生成手段は、前記撮像手段においてn枚目の画像が撮像されたときに、n―1枚の画像を加算した加算画像と、前記n枚目の画像とを加算することにより、n枚の画像を加算した新たな加算画像を生成する加算手段と、前記加算手段で得られた新たな加算画像の画素値を1/n倍にする1/n乗算手段とを有することができる。   The average image generating means in the imaging device of the first aspect includes an addition image obtained by adding n−1 images when the n-th image is captured by the imaging means, and the n-th image. And adding means for generating a new added image obtained by adding n images, and 1 / n multiplication for multiplying the pixel value of the new added image obtained by the adding means by 1 / n. Means.

第1の側面の撮像装置における前記平均画像生成手段は、前記撮像手段においてn枚目の画像が撮像されたときに、前記n枚目の画像の画素値を1/n倍にする1/n乗算手段と、n―1枚の画像から生成された前記平均画像の画素値を(n―1)/n倍にする(n―1)/n乗算手段と、画素値が1/n倍にされた前記n枚目の画像と、画素値が(n―1)/n倍にされた前記平均画像との画素値を加算する加算手段とを有することができる。   The average image generating means in the imaging device of the first aspect is 1 / n for increasing the pixel value of the n-th image by 1 / n when the n-th image is picked up by the imaging means. Multiplying means, (n-1) / n multiplying the pixel value of the average image generated from n-1 images by (n-1) / n, and the pixel value being 1 / n times And adding means for adding pixel values of the n-th image and the average image having a pixel value multiplied by (n−1) / n.

本発明の第1の側面の撮像方法、またはプログラムは、入射する光を光電変換することにより画像を撮像する撮像手段を備える撮像装置の撮像方法、または入射する光を光電変換することにより画像を撮像する撮像手段を備える撮像装置の撮像処理をコンピュータに実行させるプログラムであり、ユーザによって操作される操作手段が操作されている間に、前記撮像手段が適正露光の露光時間で撮像した複数枚の画像の画素値を平均化した平均画像を生成し、前記操作手段の操作が停止されたとき、前記平均画像を記録媒体に記録するステップを含む。   An imaging method or program according to the first aspect of the present invention is an imaging method of an imaging apparatus including an imaging unit that images an image by photoelectrically converting incident light, or an image by photoelectrically converting incident light. A program that causes a computer to execute an imaging process of an imaging apparatus including an imaging unit that performs imaging, and a plurality of images captured by the imaging unit with an exposure time of appropriate exposure while an operation unit operated by a user is operated. Generating an average image obtained by averaging pixel values of the image, and recording the average image on a recording medium when the operation of the operation unit is stopped.

本発明の第1の側面においては、ユーザによって操作される操作手段が操作されている間に、前記撮像手段により適正露光の露光時間で撮像された複数枚の画像の画素値が平均化された平均画像が生成され、前記操作手段の操作が停止されたとき、前記平均画像が記録媒体に記録される。   In the first aspect of the present invention, pixel values of a plurality of images captured by the imaging unit with an appropriate exposure time are averaged while an operating unit operated by a user is operated. When an average image is generated and the operation of the operation means is stopped, the average image is recorded on a recording medium.

本発明の第2の側面の撮像装置は、画像を撮像する撮像装置であり、入射する光を光電変換することにより画像を撮像する撮像手段と、前記撮像手段が適正露光の露光時間で撮像した複数枚の画像の画素値を平均化した平均画像を生成する平均画像生成手段と、画像を表示する表示手段と、前記平均画像生成手段において、新たな平均画像が生成されるごとに、新たな平均画像を、前記表示手段に表示させる表示制御手段とを備える。   An imaging apparatus according to a second aspect of the present invention is an imaging apparatus that captures an image. The imaging unit captures an image by photoelectrically converting incident light, and the imaging unit captures an image with an exposure time of appropriate exposure. Each time a new average image is generated in the average image generation means for generating an average image obtained by averaging pixel values of a plurality of images, a display means for displaying an image, and the average image generation means, a new image is generated. Display control means for displaying an average image on the display means.

第2の側面の撮像装置には、前記平均画像を記録媒体に記録する記録制御手段とをさらに備えることができる。   The image pickup apparatus according to the second aspect can further include recording control means for recording the average image on a recording medium.

第2の側面の撮像装置には、前記操作手段が操作されている間に、前記撮像手段が撮像した複数枚の画像それぞれに映っている被写体の位置を合わせるように、前記撮像手段が撮像した画像を補正する補正手段をさらに設けることができ、前記平均画像生成手段では、前記補正手段により補正がされた複数枚の画像を平均化させることができる。   In the imaging device of the second aspect, while the operation unit is being operated, the imaging unit captures the position of the subject shown in each of the plurality of images captured by the imaging unit. Correction means for correcting an image can be further provided, and the average image generation means can average a plurality of images corrected by the correction means.

第2の側面の撮像装置における前記平均画像生成手段は、前記撮像手段においてn枚目の画像が撮像されたときに、n―1枚の画像を加算した加算画像と、前記n枚目の画像とを加算することにより、n枚の画像を加算した新たな加算画像を生成する加算手段と、前記加算手段で得られた新たな加算画像の画素値を1/n倍にする1/n乗算手段とを有することができる。   The average image generating means in the imaging device of the second aspect includes an addition image obtained by adding n−1 images when the n-th image is captured by the imaging means, and the n-th image. And adding means for generating a new added image obtained by adding n images, and 1 / n multiplication for multiplying the pixel value of the new added image obtained by the adding means by 1 / n. Means.

第2の側面の撮像装置における前記平均画像生成手段は、前記撮像手段においてn枚目の画像が撮像されたときに、前記n枚目の画像の画素値を1/n倍にする1/n乗算手段と、n―1枚の画像から生成された前記平均画像の画素値を(n―1)/n倍にする(n―1)/n乗算手段と、画素値が1/n倍にされた前記n枚目の画像と、画素値が(n―1)/n倍にされた前記平均画像との画素値を加算する加算手段とを有することができる。   The average image generating means in the imaging device of the second aspect is 1 / n for increasing the pixel value of the n-th image by 1 / n times when the n-th image is picked up by the imaging means. Multiplying means, (n-1) / n multiplying the pixel value of the average image generated from n-1 images by (n-1) / n, and the pixel value being 1 / n times And adding means for adding pixel values of the n-th image and the average image having a pixel value multiplied by (n−1) / n.

本発明の第2の側面の撮像方法、またはプログラムは、入射する光を光電変換することにより画像を撮像する撮像手段を備える撮像装置の撮像方法、または入射する光を光電変換することにより画像を撮像する撮像手段を備える撮像装置の撮像処理をコンピュータに実行させるプログラムであり、前記撮像手段が適正露光の露光時間で撮像した複数枚の画像の画素値を平均化した平均画像を生成し、前記撮像手段が撮像した画像が平均化された新たな平均画像が生成されるたびに、新たな平均画像を、画像を表示する表示手段に表示させるステップを含む。   The imaging method or the program according to the second aspect of the present invention provides an imaging method of an imaging apparatus including an imaging unit that images an image by photoelectrically converting incident light, or an image by photoelectrically converting incident light. A program for causing a computer to execute an imaging process of an imaging apparatus including an imaging unit that captures an image, and generating an average image obtained by averaging pixel values of a plurality of images captured by the imaging unit with an exposure time of appropriate exposure, Each time a new average image obtained by averaging images captured by the imaging unit is generated, the new average image is displayed on the display unit that displays the image.

本発明の第2の側面においては、前記撮像手段により適正露光の露光時間で撮像された複数枚の画像の画素値が平均化された平均画像が生成され、前記撮像手段により撮像された画像が平均化された新たな平均画像が生成されるたびに、新たな平均画像が、画像を表示させる表示手段に表示される。   In the second aspect of the present invention, an average image is generated by averaging pixel values of a plurality of images captured by the imaging unit with an exposure time of appropriate exposure, and the image captured by the imaging unit is Each time a new averaged average image is generated, the new average image is displayed on display means for displaying the image.

本発明によれば、例えば、ユーザが、動体が消去された、適正露光の画像を容易に取得することができる。   According to the present invention, for example, a user can easily acquire an image of proper exposure from which a moving object is erased.

以下に本発明の実施の形態を説明するが、本発明の構成要件と、明細書又は図面に記載の実施の形態との対応関係を例示すると、次のようになる。この記載は、本発明をサポートする実施の形態が、明細書又は図面に記載されていることを確認するためのものである。従って、明細書又は図面中には記載されているが、本発明の構成要件に対応する実施の形態として、ここには記載されていない実施の形態があったとしても、そのことは、その実施の形態が、その構成要件に対応するものではないことを意味するものではない。逆に、実施の形態が構成要件に対応するものとしてここに記載されていたとしても、そのことは、その実施の形態が、その構成要件以外の構成要件には対応しないものであることを意味するものでもない。   Embodiments of the present invention will be described below. Correspondences between the constituent elements of the present invention and the embodiments described in the specification or the drawings are exemplified as follows. This description is intended to confirm that the embodiments supporting the present invention are described in the specification or the drawings. Therefore, even if there is an embodiment which is described in the specification or the drawings but is not described here as an embodiment corresponding to the constituent elements of the present invention, that is not the case. It does not mean that the form does not correspond to the constituent requirements. Conversely, even if an embodiment is described here as corresponding to a configuration requirement, that means that the embodiment does not correspond to a configuration requirement other than the configuration requirement. It's not something to do.

本発明の第1の側面の撮像装置は、画像を撮像する撮像装置(例えば、図1のデジタルカメラ11)において、入射する光を光電変換することにより画像を撮像する撮像手段(例えば、図1の撮像部41)と、ユーザによって操作される操作手段(例えば、図1の操作部21)と、前記操作手段が操作されている間に、前記撮像手段が適正露光の露光時間で撮像した複数枚の画像の画素値を平均化した平均画像を生成する平均画像生成手段(例えば、図1の平均画像生成部58)と、前記操作手段の操作が停止されたとき、前記平均画像を記録媒体に記録する記録制御手段(例えば、図1の入出力制御部62)とを備える。   The image pickup apparatus according to the first aspect of the present invention is an image pickup means (for example, FIG. 1) that picks up an image by photoelectrically converting incident light in an image pickup apparatus (for example, the digital camera 11 in FIG. 1). Imaging unit 41), operating means operated by a user (for example, the operating unit 21 in FIG. 1), and a plurality of images captured by the imaging unit with appropriate exposure time while the operating unit is being operated. An average image generating unit (for example, the average image generating unit 58 in FIG. 1) that generates an average image obtained by averaging pixel values of a single image, and when the operation of the operating unit is stopped, the average image is recorded on the recording medium. Recording control means (for example, the input / output control unit 62 in FIG. 1).

第1の側面の撮像装置には、画像を表示する表示手段(例えば、図1の表示部61)と、前記平均画像生成手段において、新たな平均画像が生成されるごとに、新たな平均画像を、前記表示手段に表示させる表示制御手段(例えば、図1の表示制御部60)とをさらに備えることができる。   The imaging device according to the first aspect includes a display unit (for example, the display unit 61 in FIG. 1) that displays an image and a new average image each time a new average image is generated by the average image generation unit. Can be further provided with display control means (for example, the display control unit 60 of FIG. 1).

第1の側面の撮像装置には、前記操作手段が操作されている間に、前記撮像手段が撮像した複数枚の画像それぞれに映っている被写体の位置を合わせるように、前記撮像手段が撮像した画像を補正する補正手段(例えば、図1の補正部57)をさらに備えることができ、前記平均画像生成手段は、前記補正手段により補正がされた複数枚の画像を平均化することができる。   In the imaging device of the first aspect, while the operation unit is being operated, the imaging unit captures the position of the subject shown in each of a plurality of images captured by the imaging unit. A correction unit (for example, the correction unit 57 in FIG. 1) for correcting an image can be further provided, and the average image generation unit can average a plurality of images corrected by the correction unit.

第1の側面の撮像装置における前記平均画像生成手段は、前記撮像手段においてn枚目の画像が撮像されたときに、n―1枚の画像を加算した加算画像と、前記n枚目の画像とを加算することにより、n枚の画像を加算した新たな加算画像を生成する加算手段(例えば、図2の加算部81)と、前記加算手段で得られた新たな加算画像の画素値を1/n倍にする1/n乗算手段(例えば、図2の1/n乗算部83)とを有することができる。   The average image generating means in the imaging device of the first aspect includes an addition image obtained by adding n−1 images when the n-th image is captured by the imaging means, and the n-th image. And adding means for generating a new added image obtained by adding n images (for example, the adding unit 81 in FIG. 2) and the pixel value of the new added image obtained by the adding means. 1 / n multiplication means (for example, 1 / n multiplication unit 83 in FIG. 2) for 1 / n multiplication can be provided.

第1の側面の撮像装置における前記平均画像生成手段は、前記撮像手段においてn枚目の画像が撮像されたときに、前記n枚目の画像の画素値を1/n倍にする1/n乗算手段(例えば、図9の1/n乗算部331)と、n―1枚の画像から生成された前記平均画像の画素値を(n―1)/n倍にする(n―1)/n乗算手段(例えば、図9の(n―1)/n乗算部334)と、画素値が1/n倍にされた前記n枚目の画像と、画素値が(n―1)/n倍にされた前記平均画像との画素値を加算する加算手段(例えば、図9の加算部332)とを有することができる。   The average image generating means in the imaging device of the first aspect is 1 / n for increasing the pixel value of the n-th image by 1 / n when the n-th image is picked up by the imaging means. Multiplying means (for example, 1 / n multiplier 331 in FIG. 9) and the pixel value of the average image generated from n−1 images are multiplied by (n−1) / n times (n−1) / n multiplication means (for example, (n-1) / n multiplication unit 334 in FIG. 9), the n-th image with a pixel value multiplied by 1 / n, and a pixel value of (n-1) / n An addition unit (for example, an addition unit 332 in FIG. 9) that adds pixel values with the average image that has been doubled may be included.

本発明の第1の側面の撮像方法、またはプログラムは、入射する光を光電変換することにより画像を撮像する撮像手段を備える撮像装置の撮像方法、または入射する光を光電変換することにより画像を撮像する撮像手段を備える撮像装置の撮像処理をコンピュータに実行させるプログラムにおいて、ユーザによって操作される操作手段が操作されている間に、前記撮像手段が適正露光の露光時間で撮像した複数枚の画像の画素値を平均化した平均画像を生成し(例えば、図8のステップS37およびステップS38、または図10のステップS87乃至ステップS89)、前記操作手段の操作が停止されたとき、前記平均画像を記録媒体に記録する(例えば、図8のステップS41、または図10のステップS92)ステップを含む。   An imaging method or program according to the first aspect of the present invention is an imaging method of an imaging apparatus including an imaging unit that images an image by photoelectrically converting incident light, or an image by photoelectrically converting incident light. In a program for causing a computer to execute an imaging process of an imaging apparatus including an imaging unit for imaging, a plurality of images captured by the imaging unit with an appropriate exposure time while an operation unit operated by a user is operated An average image is generated by averaging the pixel values (for example, step S37 and step S38 in FIG. 8, or step S87 to step S89 in FIG. 10), and when the operation of the operation means is stopped, the average image is Recording on a recording medium (for example, step S41 in FIG. 8 or step S92 in FIG. 10) is included.

本発明の第2の側面の撮像装置は、画像を撮像する撮像装置(例えば、図1のデジタルカメラ11)において、入射する光を光電変換することにより画像を撮像する撮像手段(例えば、図1の撮像部41)と、前記撮像手段が適正露光の露光時間で撮像した複数枚の画像の画素値を平均化した平均画像を生成する平均画像生成手段(例えば、図1の平均画像生成部58)と、画像を表示する表示手段(例えば、図1の表示部61)と、前記平均画像生成手段において、新たな平均画像が生成されるごとに、新たな平均画像を、前記表示手段に表示させる表示制御手段(例えば、図1の表示制御部60)とを備える。   The image pickup apparatus according to the second aspect of the present invention is an image pickup apparatus (for example, FIG. 1) that picks up an image by photoelectrically converting incident light in an image pickup apparatus (for example, the digital camera 11 in FIG. 1). Imaging unit 41) and an average image generating unit that generates an average image obtained by averaging pixel values of a plurality of images captured by the imaging unit with an exposure time of appropriate exposure (for example, the average image generating unit 58 in FIG. 1). ), Display means for displaying an image (for example, the display unit 61 in FIG. 1), and the average image generation means, a new average image is displayed on the display means each time a new average image is generated. Display control means (for example, the display control unit 60 in FIG. 1).

第2の側面の撮像装置には、前記平均画像を記録媒体に記録する記録制御手段(例えば、図1の入出力制御部62)とをさらに備えることができる。   The image pickup apparatus according to the second aspect can further include recording control means (for example, the input / output control unit 62 in FIG. 1) for recording the average image on a recording medium.

第2の側面の撮像装置には、前記操作手段が操作されている間に、前記撮像手段が撮像した複数枚の画像それぞれに映っている被写体の位置を合わせるように、前記撮像手段が撮像した画像を補正する補正手段(例えば、図1の補正部57)をさらに備えることができ、前記平均画像生成手段は、前記補正手段により補正がされた複数枚の画像を平均化することができる。   In the imaging device of the second aspect, while the operation unit is being operated, the imaging unit captures the position of the subject shown in each of the plurality of images captured by the imaging unit. A correction unit (for example, the correction unit 57 in FIG. 1) for correcting an image can be further provided, and the average image generation unit can average a plurality of images corrected by the correction unit.

第2の側面の撮像装置における前記平均画像生成手段は、前記撮像手段においてn枚目の画像が撮像されたときに、n―1枚の画像を加算した加算画像と、前記n枚目の画像とを加算することにより、n枚の画像を加算した新たな加算画像を生成する加算手段(例えば、図2の加算部81)と、前記加算手段で得られた新たな加算画像の画素値を1/n倍にする1/n乗算手段(例えば、図2の1/n乗算部83)とを有することができる。   The average image generating means in the imaging device of the second aspect includes an addition image obtained by adding n−1 images when the n-th image is captured by the imaging means, and the n-th image. And adding means for generating a new added image obtained by adding n images (for example, the adding unit 81 in FIG. 2) and the pixel value of the new added image obtained by the adding means. 1 / n multiplication means (for example, 1 / n multiplication unit 83 in FIG. 2) for 1 / n multiplication can be provided.

第2の側面の撮像装置における前記平均画像生成手段は、前記撮像手段においてn枚目の画像が撮像されたときに、前記n枚目の画像の画素値を1/n倍にする1/n乗算手段(例えば、図9の1/n乗算部331)と、n―1枚の画像から生成された前記平均画像の画素値を(n―1)/n倍にする(n―1)/n乗算手段(例えば、図9の(n―1)/n乗算部334)と、画素値が1/n倍にされた前記n枚目の画像と、画素値が(n―1)/n倍にされた前記平均画像との画素値を加算する加算手段(例えば、図9の加算部332)とを有することができる。   The average image generating means in the imaging device of the second aspect is 1 / n for increasing the pixel value of the n-th image by 1 / n times when the n-th image is picked up by the imaging means. Multiplying means (for example, 1 / n multiplier 331 in FIG. 9) and the pixel value of the average image generated from n−1 images are multiplied by (n−1) / n times (n−1) / n multiplication means (for example, (n-1) / n multiplication unit 334 in FIG. 9), the n-th image with a pixel value multiplied by 1 / n, and a pixel value of (n-1) / n An addition unit (for example, an addition unit 332 in FIG. 9) that adds pixel values with the average image that has been doubled may be included.

本発明の第2の側面の撮像方法、またはプログラムは、入射する光を光電変換することにより画像を撮像する撮像手段を備える撮像装置の撮像方法、または入射する光を光電変換することにより画像を撮像する撮像手段を備える撮像装置の撮像処理をコンピュータに実行させるプログラムにおいて、前記撮像手段が適正露光の露光時間で撮像した複数枚の画像の画素値を平均化した平均画像を生成し(例えば、図8のステップS37およびステップS38、または図10のステップS87乃至ステップS89)、前記撮像手段が撮像した画像が平均化された新たな平均画像が生成されるたびに、新たな平均画像を、画像を表示する表示手段に表示させる(例えば、図8のステップS39、または図10のステップS90)ステップを含む。   The imaging method or the program according to the second aspect of the present invention provides an imaging method of an imaging apparatus including an imaging unit that images an image by photoelectrically converting incident light, or an image by photoelectrically converting incident light. In a program for causing a computer to execute an imaging process of an imaging apparatus including an imaging unit that captures an image, an average image is generated by averaging pixel values of a plurality of images captured by the imaging unit with an exposure time of appropriate exposure (for example, Step S37 and Step S38 in FIG. 8 or Steps S87 to S89 in FIG. 10, each time a new average image is generated by averaging the images captured by the imaging means, a new average image is generated. Is displayed on the display means for displaying (for example, step S39 in FIG. 8 or step S90 in FIG. 10).

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

図1は、本発明を適用したデジタルカメラ(デジタルスチルカメラ)11の一実施の形態の構成例を示すブロック図である。   FIG. 1 is a block diagram showing a configuration example of an embodiment of a digital camera (digital still camera) 11 to which the present invention is applied.

図1のデジタルカメラ11は、操作部21、撮像部41、SDRAM(Synchronous Dynamic Random Access Memory)54、動きベクトル検出部55、SAD(Sum of Absolute Differences)テーブル56、補正部57、平均画像生成部58、表示制御部60、表示部61、入出力制御部62、記憶部63、ドライブ64、およびメモリカード65により構成される。   1 includes an operation unit 21, an imaging unit 41, an SDRAM (Synchronous Dynamic Random Access Memory) 54, a motion vector detection unit 55, a SAD (Sum of Absolute Differences) table 56, a correction unit 57, and an average image generation unit. 58, a display control unit 60, a display unit 61, an input / output control unit 62, a storage unit 63, a drive 64, and a memory card 65.

操作部21は、例えば、レリーズ・スイッチ31および後述する表示部61に重畳されたタッチパネルなどにより構成され、ユーザによって操作される。操作部21は、ユーザの操作に応じた操作信号を、デジタルカメラ11の必要なブロックに供給する。   The operation unit 21 includes, for example, a release switch 31 and a touch panel superimposed on a display unit 61 described later, and is operated by a user. The operation unit 21 supplies an operation signal corresponding to a user operation to a necessary block of the digital camera 11.

撮像部41は、そこに入射する光を受光して光電変換することにより被写体を撮像し、その結果得られる撮影画像をSDRAM54に供給して、(一時的に)記憶させる。   The imaging unit 41 captures the subject by receiving and photoelectrically converting the light incident thereon, and supplies the captured image obtained as a result to the SDRAM 54 for storage (temporarily).

ここで、撮像部41は、撮像レンズ51、撮像素子52、およびカメラ信号処理部53により構成されており、撮像レンズ51は、撮像素子52の受光面に被写体の像を結像させる。撮像素子52は、例えば、CCD(Charge Coupled Devices)やCMOS(Complementary Metal Oxide Semiconductor)センサなどで構成され、その受光面に結像された被写体の像(光)を、光電変換することでアナログの画像信号として、カメラ信号処理部53に供給する。   Here, the imaging unit 41 includes an imaging lens 51, an imaging element 52, and a camera signal processing unit 53, and the imaging lens 51 forms an image of a subject on the light receiving surface of the imaging element 52. The image sensor 52 is composed of, for example, a CCD (Charge Coupled Devices), a CMOS (Complementary Metal Oxide Semiconductor) sensor, and the like. The image (light) of a subject imaged on the light receiving surface is converted into an analog signal by photoelectric conversion. The image signal is supplied to the camera signal processing unit 53.

カメラ信号処理部53は、撮像素子52から供給されたアナログの画像信号に対して、例えば、ガンマ補正処理や白バランス処理などを行う。その後、カメラ信号処理部53は、そのアナログの画像信号をA/D(Analog/Digital)変換し、その結果得られるデジタルの画像信号(撮像画像)をSDRAM54に供給して、記憶させる。   The camera signal processing unit 53 performs, for example, gamma correction processing or white balance processing on the analog image signal supplied from the imaging device 52. Thereafter, the camera signal processing unit 53 performs A / D (Analog / Digital) conversion on the analog image signal, and supplies the digital image signal (captured image) obtained as a result to the SDRAM 54 for storage.

SDRAM54は、カメラ信号処理部53(撮像部41)から供給された撮像画像を記憶する。   The SDRAM 54 stores the captured image supplied from the camera signal processing unit 53 (imaging unit 41).

ここで、デジタルカメラ11の撮影モードとしては、例えば、撮像部41において、レリーズ・スイッチ31の1回の押圧操作に応じて、1枚の撮像画像を適正露光となる露光時間で撮像する通常撮影モードと、レリーズ・スイッチ31の押圧操作に応じて、適正露光となる露光時間で撮像された複数枚の撮像画像を平均化することにより、動体が消去された画像を得る動体消去の撮影モードとがある。以下では、撮影モードが、動体消去の撮影モードになっている場合について説明する。なお、撮影モードが、通常撮影モードの場合は、以下に説明する動きベクトル検出部55乃至平均画像生成部58が機能しないだけである。   Here, as a shooting mode of the digital camera 11, for example, in the imaging unit 41, normal shooting in which one captured image is captured with an exposure time that is appropriate exposure in response to a single pressing operation of the release switch 31. A moving object erasure shooting mode for obtaining an image in which a moving object is erased by averaging a plurality of captured images captured with an exposure time corresponding to a proper exposure according to a pressing operation of the release switch 31 There is. Hereinafter, a case where the shooting mode is the shooting mode for moving object elimination will be described. Note that when the shooting mode is the normal shooting mode, the motion vector detection unit 55 to the average image generation unit 58 described below do not function.

動きベクトル検出部55は、撮像部41で撮像された撮像画像を、撮像された順番で、SDRAM54から読み出す。動きベクトル検出部55は、SDRAM54から読み出した1枚目の撮像画像(レリーズ・スイッチ31が押圧されてから、撮像部41により最初に撮像された撮像画像)を、補正部57を介して、平均画像生成部58に供給するとともに、SADテーブル56に供給して、後述する基準画像として記憶させる。   The motion vector detection unit 55 reads the captured images captured by the imaging unit 41 from the SDRAM 54 in the order of capturing. The motion vector detection unit 55 averages the first captured image read from the SDRAM 54 (the captured image first captured by the imaging unit 41 after the release switch 31 is pressed) via the correction unit 57. While supplying to the image generation part 58, it supplies to the SAD table 56, and memorize | stores it as a reference image mentioned later.

ここで、基準画像とは、後述する補正部57が、2枚目以降の撮像画像(レリーズ・スイッチ31が押圧されてから、撮像部41により2番目以降に撮像された撮像画像)の位置を補正するにあたって基準となる画像をいう。   Here, the reference image refers to the position of the second and subsequent captured images (second captured image captured by the image capturing unit 41 after the release switch 31 is pressed) by the correction unit 57 described later. An image that serves as a reference for correction.

さらに、n枚目の撮像画像とは、動体消去の撮影モードで撮像された複数枚の撮像画像のうちの、n番目に撮像された撮像画像をいう。即ち、動体消去の撮影モードにおけるデジタルカメラ11では、レリーズ・スイッチ31の押圧操作が開始されてから、その押圧操作が停止(解除)されるまでの間に撮像されたN枚の撮像画像が、平均化の対象とされるようになっている。n枚目の撮像画像とは、レリーズ・スイッチ31の押圧操作がされている間に撮像されたN枚の撮像画像のうちの、n(n=1,2,・・・,N―1,N)番目に撮像された撮像画像である。   Further, the n-th captured image refers to an n-th captured image captured among a plurality of captured images captured in the moving object erasure shooting mode. In other words, in the digital camera 11 in the moving object erasing shooting mode, N captured images captured from when the pressing operation of the release switch 31 is started to when the pressing operation is stopped (released) are: It is to be targeted for averaging. The n-th captured image refers to n (n = 1, 2,..., N−1) among N captured images captured while the release switch 31 is being pressed. N) This is a captured image that has been imaged first.

動きベクトル検出部55は、SDRAM54から読み出した2枚目以降の撮像画像については、SADテーブル56に記憶された基準画像に対する撮像画像の動きを表す動きベクトルを検出し、その撮像画像とともに補正部57に供給する。   For the second and subsequent captured images read from the SDRAM 54, the motion vector detection unit 55 detects a motion vector representing the motion of the captured image with respect to the reference image stored in the SAD table 56, and a correction unit 57 together with the captured image. To supply.

SADテーブル56は、動きベクトル検出部55から供給される1枚目の撮像画像を、基準画像として記憶する。   The SAD table 56 stores the first captured image supplied from the motion vector detection unit 55 as a reference image.

補正部57は、動きベクトル検出部55から供給された撮像画像の動きベクトルに基づいて、同じく、動きベクトル検出部55から供給されたその撮像画像を補正し、補正後の撮像画像を平均画像生成部58に供給する。   The correction unit 57 similarly corrects the captured image supplied from the motion vector detection unit 55 based on the motion vector of the captured image supplied from the motion vector detection unit 55, and generates an average image of the corrected captured image. Supplied to the unit 58.

平均画像生成部58は、補正部57から供給された補正後の複数枚の撮像画像の画素値を平均化し、平均画像を生成する。なお、平均画像生成部58については、後述する図2または図9において詳細に説明する。   The average image generation unit 58 averages the pixel values of a plurality of corrected captured images supplied from the correction unit 57 to generate an average image. The average image generating unit 58 will be described in detail in FIG. 2 or FIG. 9 described later.

表示制御部60は、平均画像生成部58において、新たな平均画像(1枚目の撮像画像を含む)が生成されるたびに、平均画像生成部58からその新たな平均画像を読み出し、表示部61に供給して表示させる。   The display control unit 60 reads the new average image from the average image generation unit 58 every time a new average image (including the first captured image) is generated by the average image generation unit 58, and displays the display unit 61 is displayed.

表示部61は、表示制御部60の制御に従い、表示制御部60から供給された平均画像などを表示する。表示部61としては、例えば、LCD(Liquid Crystal Display)などを採用することができる。   The display unit 61 displays an average image supplied from the display control unit 60 according to the control of the display control unit 60. As the display unit 61, for example, an LCD (Liquid Crystal Display) or the like can be employed.

入出力制御部62には、平均画像生成部58、記憶部63、およびドライブ64が接続されている。入出力制御部62は、平均画像生成部58、記憶部63、またはドライブ64それぞれとの間での画像のやりとりを制御する。   An average image generation unit 58, a storage unit 63, and a drive 64 are connected to the input / output control unit 62. The input / output control unit 62 controls the exchange of images with the average image generation unit 58, the storage unit 63, or the drive 64.

記憶部63は、入出力制御部62から供給された画像を記憶する。   The storage unit 63 stores the image supplied from the input / output control unit 62.

ドライブ64は、入出力制御部62から供給された画像を、メモリカード65に供給し、記憶させる。また、ドライブ64は、メモリカード65から画像を読み出し、入出力制御部62に供給する。   The drive 64 supplies the image supplied from the input / output control unit 62 to the memory card 65 and stores it. Further, the drive 64 reads an image from the memory card 65 and supplies it to the input / output control unit 62.

メモリカード65は、デジタルカメラ11のドライブ64に脱着可能でリムーバブルなメモリカードであり、入出力制御部62から供給された画像を記憶する。   The memory card 65 is a removable memory card that can be attached to and removed from the drive 64 of the digital camera 11, and stores an image supplied from the input / output control unit 62.

図2は、図1の平均画像生成部58の詳細な構成例を示すブロック図である。   FIG. 2 is a block diagram illustrating a detailed configuration example of the average image generation unit 58 of FIG.

平均画像生成部58は、加算部81、SDRAM82、1/n乗算部83、およびSDRAM84により構成される。   The average image generator 58 includes an adder 81, an SDRAM 82, a 1 / n multiplier 83, and an SDRAM 84.

加算部81には、補正部57から、補正後のn枚目の撮像画像が供給されるようになっている。加算部81は、SDRAM82から、n―1(n=2,3,・・・,N―1,N)枚の撮像画像を加算した加算画像を読み出し、その加算画像と、補正部57から供給されたn枚目の撮像画像の画素値を加算し、その結果得られた加算画像を、SDRAM82に供給して、記憶させる。   The addition unit 81 is supplied with the corrected n-th captured image from the correction unit 57. The adder 81 reads an added image obtained by adding n−1 (n = 2, 3,..., N−1, N) captured images from the SDRAM 82, and supplies the added image and the correction unit 57. The pixel values of the n-th captured image thus added are added, and the added image obtained as a result is supplied to the SDRAM 82 and stored.

なお、加算部81は、補正部57から供給された撮像画像が1枚目の撮像画像である場合には、その1枚の撮像画像を、そのまま加算画像として、SDRAM82に供給し、記憶させる。   When the captured image supplied from the correction unit 57 is the first captured image, the adding unit 81 supplies the one captured image as it is to the SDRAM 82 as an added image and stores it.

SDRAM82は、加算部81から供給された、n枚の撮像画像を加算した加算画像(1枚目の撮像画像を含む)を記憶する(n=1,2,・・・,N―1,N)。   The SDRAM 82 stores the added image (including the first captured image) supplied from the adding unit 81 and including the n captured images (n = 1, 2,..., N−1, N ).

1/n乗算部83は、n枚の撮像画像を加算した加算画像をSDRAM82から読み出し、その加算画像の画素値を1/n倍することにより、n枚の撮像画像を平均化した平均画像を生成する。この平均画像は、1/n乗算部83からSDRAM84に供給され、上書きする形で記憶される。   The 1 / n multiplication unit 83 reads an added image obtained by adding n captured images from the SDRAM 82, and by multiplying the pixel value of the added image by 1 / n, an average image obtained by averaging the n captured images is obtained. Generate. This average image is supplied from the 1 / n multiplier 83 to the SDRAM 84 and stored in an overwritten form.

SDRAM84(平均画像生成部58)に記憶された平均画像は、表示制御部60によって読み出され、表示部61において表示される。また、SDRAM84に記憶された平均画像は、入出力制御部62よって読み出され、記憶部63またはメモリカード65に供給されて、記憶される。   The average image stored in the SDRAM 84 (average image generation unit 58) is read by the display control unit 60 and displayed on the display unit 61. The average image stored in the SDRAM 84 is read by the input / output control unit 62, supplied to the storage unit 63 or the memory card 65, and stored.

以上のような平均画像生成部58では、n枚の撮像画像を加算した加算画像の画素値を1/n倍するため、いわゆる丸め誤差による階調の損失が少ない平均画像を生成することができる。   In the average image generation unit 58 as described above, the pixel value of the added image obtained by adding n captured images is multiplied by 1 / n, so that an average image with less gradation loss due to a so-called rounding error can be generated.

次に、図3および図4を参照して、図1の動きベクトル検出部55の処理について説明する。   Next, processing of the motion vector detection unit 55 in FIG. 1 will be described with reference to FIGS. 3 and 4.

図3は、動きベクトル検出部55が、動体消去の撮像モードにおいて、2枚目以降の撮像画像の動きを表す動きベクトルを検出する様子を示す図である。   FIG. 3 is a diagram illustrating a state in which the motion vector detection unit 55 detects a motion vector representing the motion of the second and subsequent captured images in the moving object erasure imaging mode.

図3上側は、静止している被写体161が投影された基準画像151、および被写体161と同一の被写体162が投影された(2枚目以降の)撮像画像152を示す図である。図3下側は、縦×横がm×n個のブロックに分割された基準画像151を示す図である。また、図3下側のm×n個のブロック内の矢印は、それぞれのブロックに基づいて検出された動きベクトルを表している。   The upper side of FIG. 3 is a diagram showing a reference image 151 on which a stationary subject 161 is projected and a captured image 152 on which the same subject 162 as the subject 161 is projected (second and subsequent images). The lower side of FIG. 3 is a diagram illustrating a reference image 151 that is divided into m × n blocks in length × width. Also, arrows in the m × n blocks on the lower side of FIG. 3 represent motion vectors detected based on the respective blocks.

なお、上述したように、基準画像151とは、1枚目の撮像画像を表しており、撮像画像152とは、2枚目以降の撮像画像を表している。また、基準画像151に対する被写体161の位置と、撮像画像152に対する被写体162の位置が異なるのは、例えば、手振れが生じたことによる。   As described above, the reference image 151 represents the first captured image, and the captured image 152 represents the second and subsequent captured images. The reason why the position of the subject 161 with respect to the reference image 151 is different from the position of the subject 162 with respect to the captured image 152 is due to, for example, camera shake.

動きベクトル検出部55は、基準画像151と撮像画像152とを用いて、基準画像151に対する撮像画像152の動きを表す動きベクトルを検出する。   The motion vector detection unit 55 uses the reference image 151 and the captured image 152 to detect a motion vector that represents the motion of the captured image 152 with respect to the reference image 151.

即ち、動きベクトル検出部55は、図3下側に示されるように、基準画像151を縦×横がm×n個のブロックに分割し、それぞれのブロックに一番類似している撮像画像152上の領域を求めることで動きベクトルを検出するブロックマッチングを行う。   That is, the motion vector detection unit 55 divides the reference image 151 into m × n blocks in the vertical and horizontal directions, as shown in the lower side of FIG. 3, and the captured image 152 most similar to each block. Block matching for detecting a motion vector is performed by obtaining the upper region.

図4は、このようなブロックマッチングにより動きベクトルを検出する方法を説明する図である。   FIG. 4 is a diagram for explaining a method of detecting a motion vector by such block matching.

図4では、基準画像151と撮像画像152とが重ね合わされている。また、図4では、基準画像151(撮像画像152)の左下の点を原点Oとし、右方向をx方向、上方向をy方向とするxy座標系を定義してある。   In FIG. 4, the reference image 151 and the captured image 152 are superimposed. In FIG. 4, an xy coordinate system is defined in which the lower left point of the reference image 151 (captured image 152) is the origin O, the right direction is the x direction, and the upper direction is the y direction.

動きベクトル検出部55は、図4に示されるように、基準画像151上の分割されたブロック151a乃至151fをテンプレートとして、それぞれのブロック151a乃至151fに一番類似している撮像画像152上の領域152a乃至152fを求める。さらに、動きベクトル検出部55は、例えば、基準画像151上のブロック151a乃至151fの中心(重心)の位置(Cx,Cy)を始点とし、領域152a乃至152fの中心の位置(Cx',Cy')を終点とする動きベクトルを検出する。 As shown in FIG. 4, the motion vector detection unit 55 uses the divided blocks 151 a to 151 f on the reference image 151 as a template, and is an area on the captured image 152 that is most similar to each of the blocks 151 a to 151 f. 152a to 152f are obtained. Further, for example, the motion vector detection unit 55 uses the positions (C x , C y ) of the centers (centers of gravity) of the blocks 151a to 151f on the reference image 151 as the start points, and the positions (C x ′) of the centers of the regions 152a to 152f. , C y ′) is detected as a motion vector.

このようにして、動きベクトル検出部55は、図3下側に示される基準画像151上のm×n個のブロックに対して検出したm×n個の動きベクトルを、(2枚目以降の)撮像画像152とともに、補正部57に供給する。   In this way, the motion vector detection unit 55 calculates m × n motion vectors detected for m × n blocks on the reference image 151 shown in the lower side of FIG. ) The image is supplied to the correction unit 57 together with the captured image 152.

次に、図5を参照して、図1における補正部57の処理について説明する。   Next, the processing of the correction unit 57 in FIG. 1 will be described with reference to FIG.

補正部57は、基準画像151を基準として、撮像画像152を補正する。即ち、補正部57は、基準画像151上の被写体161の位置と、撮像画像152上の、被写体161と同一の被写体162の位置とを位置合わせするため、例えば、アフィン変換によって、撮像画像152を補正する。   The correcting unit 57 corrects the captured image 152 using the reference image 151 as a reference. In other words, the correction unit 57 aligns the position of the subject 161 on the reference image 151 with the position of the subject 162 on the captured image 152 that is the same as the subject 161. to correct.

アフィン変換では、基準画像151(の画素)の位置(x,y)と、撮像画像152の位置(x',y')との位置関係は、次の式(1)で表される。   In the affine transformation, the positional relationship between the position (x, y) of the reference image 151 (pixels thereof) and the position (x ′, y ′) of the captured image 152 is expressed by the following equation (1).

Figure 2007306107
Figure 2007306107

ここで、式(1)のアフィン変換によれば、位置(x,y)は、その位置(x,y)を原点Oの回りに角度θだけ回転させ、(x,y)=(s,t)だけ平行移動させた位置(x',y')に変換(補正)される。   Here, according to the affine transformation of the equation (1), the position (x, y) is rotated by an angle θ around the origin O and (x, y) = (s, It is converted (corrected) into a position (x ′, y ′) translated by t).

また、以下では、式(1)のアフィン変換を定義するパラメータs,t,θを、アフィンパラメータ(s,t,θ)という。   In the following, the parameters s, t, and θ that define the affine transformation of Expression (1) are referred to as affine parameters (s, t, and θ).

なお、式(1)のアフィン変換では、デジタルカメラ11から被写体に向かう方向の、デジタルカメラ11の動きは考慮されていないが、アフィン変換は、かかる動きをも考慮して行うことが可能である。この場合、式(1)の右辺の2×2の行列に代えて、その行列に、拡大/縮小に関するパラメータが乗算された行列が使用される。   In the affine transformation of Expression (1), the movement of the digital camera 11 in the direction from the digital camera 11 toward the subject is not taken into consideration, but the affine transformation can be performed in consideration of such a movement. . In this case, instead of the 2 × 2 matrix on the right side of Equation (1), a matrix obtained by multiplying the matrix by a parameter relating to enlargement / reduction is used.

補正部57は、図3下側に示されるm×n個の動きベクトルと上述した式(1)を用いて、最小自乗法により、アフィンパラメータ(s,t,θ)を求める。   The correction unit 57 obtains the affine parameters (s, t, θ) by the method of least squares using the m × n motion vectors shown on the lower side of FIG. 3 and the above-described equation (1).

具体的には、補正部57は、基準画像151上のm×n個のブロックの中心の位置(Cx,Cy)に対して、上述した式(1)によりアフィン変換を行う。そして、補正部57は、基準画像151上のm×n個のブロックの中心の位置(Cx,Cy)を始点とし、位置(Cx,Cy)をアフィン変換した後の位置を終点とする動きベクトルを、変換動きベクトルVGMとして算出する。変換動きベクトルVGMは、次の式(2)で表される。 Specifically, the correction unit 57 performs affine transformation on the center position (C x , C y ) of m × n blocks on the reference image 151 by the above-described equation (1). Then, the correction unit 57 uses the position (C x , C y ) of the center of m × n blocks on the reference image 151 as the start point, and the position after the affine transformation of the position (C x , C y ) as the end point Is calculated as a converted motion vector VGM . The converted motion vector V GM is expressed by the following equation (2).

Figure 2007306107
Figure 2007306107

ここで、式(2)における変換動きベクトルVGMは、アフィンパラメータ(s,t,θ)を変数とする式で表される。 Here, the converted motion vector V GM in Expression (2) is represented by an expression using affine parameters (s, t, θ) as variables.

補正部57は、基準画像151上のブロックの変換動きベクトルVGMと、そのブロックの、上述したブロックマッチングにより検出された動きベクトル(以下、適宜、マッチング動きベクトルVBMともいう)との自乗誤差の総和Eを最小にするアフィンパラメータ(s,t,θ)を求める。この自乗誤差の総和Eは、次の式(3)で表される。 The correction unit 57 calculates the square error between the converted motion vector V GM of the block on the reference image 151 and the motion vector of the block detected by the above-described block matching (hereinafter, also referred to as a matching motion vector V BM as appropriate). The affine parameters (s, t, θ) that minimize the sum E of are obtained. The sum E of square errors is expressed by the following equation (3).

Figure 2007306107
Figure 2007306107

ここで、式(3)のΣは、図3下側に示された、基準画像151上のm×n個のブロックの総和を表す。式(3)の自乗誤差の総和Eを最小にするアフィンパラメータ(s,t,θ)は、自乗誤差の総和Eを、アフィンパラメータ(s,t,θ)で偏微分した式を求め、その式を0とした方程式を解くことで求めることができる。   Here, Σ in Equation (3) represents the sum of m × n blocks on the reference image 151 shown on the lower side of FIG. The affine parameter (s, t, θ) that minimizes the sum E of square errors in Equation (3) is obtained by partial differential of the sum E of square errors with the affine parameters (s, t, θ). It can be obtained by solving an equation with 0 as an equation.

次に、補正部57は、求めたアフィンパラメータ(s,t,θ)を用いて、撮像画像152の位置(x',y')を基準画像151の位置(x,y)に補正(位置合わせ)するアフィン変換の逆変換を行う。これにより、撮像画像152は、図5に示されるように、基準画像151上の被写体161と、撮像画像152上の被写体162との位置を合わせるように補正される。   Next, the correction unit 57 corrects the position (x ′, y ′) of the captured image 152 to the position (x, y) of the reference image 151 (position) using the obtained affine parameters (s, t, θ). The inverse affine transformation is performed. As a result, the captured image 152 is corrected so that the positions of the subject 161 on the reference image 151 and the subject 162 on the captured image 152 are aligned as shown in FIG.

ここで、撮像部41では、撮像画像152として採用される有効画素数よりも多くの画素数により撮像しているため、実際には、撮像画像152よりも大きな画像(画素数が多い画像)182の撮像が行われている。   Here, since the imaging unit 41 captures an image with a larger number of pixels than the effective number of pixels employed as the captured image 152, in reality, an image larger than the captured image 152 (an image with a large number of pixels) 182. Are being imaged.

補正部57は、撮像画像152を含む画像182の補正を行った後、画像182のうちの基準画像151の範囲と完全に一致する範囲の画像を、補正後の撮像画像152として抽出し、平均画像生成部58に供給する。   After correcting the image 182 including the captured image 152, the correction unit 57 extracts an image in a range that completely matches the range of the reference image 151 in the image 182 as the corrected captured image 152, and calculates the average. This is supplied to the image generation unit 58.

なお、画像182を、撮像画像152よりもどれだけ大の画像(画素数の多い画像)とするかは、例えば、人が、いわゆる手持ち撮像を行うときの手振れ量の統計量などに基づいて決定される。   Note that how large the image 182 is to be an image (an image having a larger number of pixels) than the captured image 152 is determined based on, for example, a statistic of the amount of camera shake when a person performs so-called handheld imaging. The

また、補正部57は、上述したように、アフィンパラメータ(s,t,θ)を求め、そのアフィンパラメータ(s,t,θ)を用いて撮像画像を補正するが、この撮像画像の補正は、手振れに起因して位置がずれている被写体の位置合わせを行うためのものであり、動いている動体の位置合わせを行うためのものではない。このため、補正部57において、撮像画像の補正に用いるアフィンパラメータ(s,t,θ)としては、撮像画像に投影されている動体の動きの影響がないアフィンパラメータ(s,t,θ)を求める必要がある。そこで、補正部57では、上述した式(3)の自乗誤差の総和Eは、動体が投影されていないブロックのみを対象に求められる。   Further, as described above, the correction unit 57 obtains the affine parameters (s, t, θ) and corrects the captured image using the affine parameters (s, t, θ). It is for aligning a subject whose position is shifted due to camera shake, and not for aligning a moving moving object. Therefore, the affine parameters (s, t, θ) that are not affected by the motion of the moving object projected on the captured image are used as the affine parameters (s, t, θ) used in the correction unit 57 for correcting the captured image. Need to ask. Therefore, in the correction unit 57, the sum E of the square errors in the above-described equation (3) is obtained only for the block on which no moving object is projected.

動体が投影されていないブロックであるかどうかは、例えば、基準画像151上のブロックに対して求められたマッチング動きベクトルVBMのヒストグラムに基づいて判定することができる。即ち、基準画像151上のブロックに対して求められたマッチング動きベクトルVBMのヒストグラムにおいて、度数が最も高いマッチング動きベクトルVBMとの距離が近いマッチング動きベクトルVBMのブロックは、動体が投影されていないブロックであると判定し、度数が最も高いマッチング動きベクトルVBMとの距離が遠いマッチング動きベクトルVBMのブロックは、動体が投影されているブロックであると判定することができる。 Whether or not the moving object is a non-projected block can be determined based on, for example, a histogram of the matching motion vector V BM obtained for the block on the reference image 151. That is, in the histogram of the matching motion vector V BM determined for blocks of the reference image 151, the block of the frequency with the highest matching motion vector V BM distance between close matching motion vector V BM is the moving object is projected The block of the matching motion vector V BM that is far from the matching motion vector V BM having the highest frequency can be determined to be a block on which a moving object is projected.

次に、図6および図7を参照して、図2の平均画像生成部58で生成される平均画像について説明する。   Next, the average image generated by the average image generation unit 58 of FIG. 2 will be described with reference to FIGS. 6 and 7.

図6は、図2の平均画像生成部58において、新たな平均画像が生成されていく様子を示す図である。   FIG. 6 is a diagram illustrating a state in which a new average image is generated in the average image generation unit 58 of FIG.

図6上側は、適正露光の露光時間で撮像された1乃至N枚目の撮像画像の露光量2111乃至211Nを表しており、図6左側は、加算部81により生成された加算画像の露光量2321乃至232Nを表している。図6右側は、1/n乗算部83で生成された平均画像の露光量2511乃至251Nを表している。なお、加算部81により生成された加算画像は、SDRAM82に記憶され、1/n乗算部83により生成された平均画像は、SDRAM84に記憶される。 The upper side of FIG. 6 represents the exposure amounts 211 1 to 211 N of the first to Nth captured images captured with the exposure time of the appropriate exposure, and the left side of FIG. 6 shows the added image generated by the adding unit 81. The exposure amounts 232 1 to 232 N are shown. The right side of FIG. 6 represents exposure amounts 251 1 to 251 N of the average image generated by the 1 / n multiplication unit 83. Note that the added image generated by the adder 81 is stored in the SDRAM 82, and the average image generated by the 1 / n multiplier 83 is stored in the SDRAM 84.

加算部81は、補正部57から供給された1枚目の撮像画像をそのまま、露光量2321(2111)の加算画像とする。さらに、1/n乗算部83は、露光量2321の加算画像を、露光量2511(2321)の平均画像とする。ここで、露光量2111、2321および2511は、いずれも同じ露光量を表しているが、説明の便宜のため、異なる番号を付している。 The adding unit 81 uses the first captured image supplied from the correcting unit 57 as it is as an added image of the exposure amount 232 1 (211 1 ). Moreover, 1 / n multiplier section 83, an addition image exposure 232 1, the average image of exposure 251 1 (232 1). Here, the exposure amounts 211 1 , 232 1 and 251 1 all represent the same exposure amount, but are given different numbers for convenience of explanation.

加算部81は、露光量2321の加算画像と、補正部57から供給された2枚目の撮像画像とを加算し、露光量2322(露光量2321と露光量2112とを加算した露光量)の加算画像を生成する。次に、1/n乗算部83は、2枚の撮像画像を加算した、露光量2322の加算画像の画素値を1/2倍し、露光量2512の平均画像を生成する。 The addition unit 81 adds the addition image of the exposure amount 232 1 and the second captured image supplied from the correction unit 57, and adds the exposure amount 232 2 (the exposure amount 232 1 and the exposure amount 211 2 ). (Exposure amount) addition image is generated. Next, the 1 / n multiplication unit 83 adds the two captured images, halves the pixel value of the addition image with the exposure amount 232 2 , and generates an average image with the exposure amount 251 2 .

その後、加算部81は、露光量2322の加算画像と、補正部57から供給された3枚目の撮像画像とを加算し、露光量2323の加算画像を生成する。そして、1/n乗算部83は、3枚の撮像画像を加算した、露光量2323の加算画像の画素値を1/3倍し、露光量2513の平均画像を生成する。 Thereafter, the addition unit 81 adds the addition image with the exposure amount 232 2 and the third captured image supplied from the correction unit 57 to generate an addition image with the exposure amount 232 3 . Then, the 1 / n multiplication unit 83 adds the three captured images, and multiplies the pixel value of the addition image with the exposure amount 232 3 by 1/3 to generate an average image with the exposure amount 251 3 .

以下、同様に、加算部81は、露光量232n―1の加算画像と、補正部57から供給されるn枚目の撮像画像とを加算し、露光量232nの加算画像を生成する。そして、1/n乗算部83は、n枚の撮像画像を加算した、露光量232nの加算画像の画素値を1/n倍し、露光量251nの平均画像を生成する(n=2,3,・・・,N―1,N)。 Hereinafter, similarly, the addition unit 81 adds the addition image of the exposure amount 232 n−1 and the n-th captured image supplied from the correction unit 57 to generate an addition image of the exposure amount 232 n . Then, the 1 / n multiplication unit 83 adds 1 / n times the pixel value of the added image of the exposure amount 232 n obtained by adding the n captured images, and generates an average image of the exposure amount 251 n (n = 2). , 3,..., N-1, N).

これにより、平均画像生成部58により生成される平均画像の露光量2511乃至251Nは、適正露光の露光量を有することとなる。 As a result, the exposure amounts 251 1 to 251 N of the average image generated by the average image generation unit 58 have the exposure amount of appropriate exposure.

図7は、図1の表示部61の平均画像の表示例を示している。   FIG. 7 shows a display example of the average image of the display unit 61 of FIG.

なお、図7において、平均画像261nは、n枚の撮像画像を平均化した平均画像である。 In FIG. 7, an average image 261 n is an average image obtained by averaging n captured images.

平均画像生成部58では、上述したように、複数枚の撮像画像を平均化した平均画像が生成される。   As described above, the average image generation unit 58 generates an average image obtained by averaging a plurality of captured images.

複数枚の撮像画像において、静止している被写体(静止体)については、平均化されても、画素値に占める静止体の成分は変わらないので、そのまま平均画像に現れるが、動いている被写体(動体)については、平均化に用いる撮像画像の枚数が多くなるほど、平均化によって、画素値に占める動体の成分が減少していくので、平均画像に現れなくなっていく。   In a plurality of captured images, a stationary object (stationary object) does not change even when averaged, but the stationary object component in the pixel value does not change, so it appears in the average image as it is, but the moving object ( With respect to (moving object), as the number of captured images used for averaging increases, the moving object component occupying the pixel value decreases as a result of averaging, so that it does not appear in the average image.

例えば、デジタルカメラ11の撮像範囲に、静止体である被写体271と、動体である被写体272および273が存在する場合、1枚目の撮像画像が撮像されると、表示部61では、図7に示されるように、まず、被写体271とともに、被写体272および273が投影された1枚目の撮像画像である平均画像2611が表示され、2枚目の撮像画像が撮像されると、1枚目と2枚目の撮像画像を平均化した平均画像2612が表示される。 For example, when a subject 271 that is a stationary body and subjects 272 and 273 that are moving bodies exist in the imaging range of the digital camera 11, when the first captured image is captured, the display unit 61 displays As shown in the figure, first, together with the subject 271, an average image 261 1 that is the first captured image on which the subjects 272 and 273 are projected is displayed, and when the second captured image is captured, the first image An average image 2612 obtained by averaging the second captured image is displayed.

平均画像2612では、平均化により画素値に占める被写体272および273の成分が減少し、被写体272および273が、いわば薄くなっている。 In the average image 261 2 , the components of the subjects 272 and 273 occupying the pixel value are reduced by averaging, and the subjects 272 and 273 are so thin.

そして、3枚目の撮像画像が撮像されると、1乃至3枚目の撮像画像を平均化した平均画像2613が表示される。 When the third captured image is captured, an average image 261 3 obtained by averaging the first to third captured images is displayed.

以下、同様に、新たな撮像画像が撮像されると、平均画像生成部58で新たに平均画像が生成され、表示部61には、被写体272および273が、より薄くなった平均画像が表示される。   Hereinafter, similarly, when a new captured image is captured, an average image is newly generated by the average image generation unit 58, and the average image in which the subjects 272 and 273 are thinner is displayed on the display unit 61. The

上述したように、新たな平均画像の生成は、レリーズ・スイッチ31が押圧操作されている間行われる。従って、ユーザは、所望の平均画像261Nが表示部61に表示されたときに、即ち、例えば、被写体272および273が十分に薄くなって見えなくなったときに、レリーズ・スイッチ31の押圧操作を停止することにより、所望の平均画像261Nを、記憶部63またはメモリカード65に記憶させる(撮像する)ことができる。 As described above, a new average image is generated while the release switch 31 is being pressed. Therefore, the user presses the release switch 31 when the desired average image 261 N is displayed on the display unit 61, that is, for example, when the subjects 272 and 273 are thin enough to become invisible. By stopping, the desired average image 261 N can be stored (captured) in the storage unit 63 or the memory card 65.

次に、図8のフローチャートを参照し、図1の平均画像生成部58が、図2に示される構成である場合の、デジタルカメラ11の動体消去の撮影モードの処理を説明する。   Next, with reference to the flowchart of FIG. 8, processing in the shooting mode for moving object elimination of the digital camera 11 when the average image generation unit 58 of FIG. 1 has the configuration shown in FIG. 2 will be described.

ユーザが、レリーズ・スイッチ31の押圧操作を開始すると、ステップS31において、撮像部41は、適正露光の露光時間により被写体を撮像し、その結果得られる撮影画像をSDRAM54に供給して記憶させ、ステップS32に進む。   When the user starts pressing the release switch 31, in step S31, the imaging unit 41 captures an image of the subject with the exposure time of proper exposure, and supplies the captured image obtained as a result to the SDRAM 54 for storage. Proceed to S32.

ステップS32において、動きベクトル検出部55は、撮像部41で撮像された撮像画像を、撮像された順番で、SDRAM54から読み出す。ステップS32において、動きベクトル検出部55は、SDRAM54から読み出した撮像画像が1枚目の撮像画像であるかどうかを判定し、1枚目の撮像画像であると判定した場合、ステップS33に進む。   In step S <b> 32, the motion vector detection unit 55 reads out the captured images captured by the imaging unit 41 from the SDRAM 54 in the order of capturing. In step S32, the motion vector detection unit 55 determines whether or not the captured image read from the SDRAM 54 is the first captured image. If it is determined that the captured image is the first captured image, the process proceeds to step S33.

ステップS33において、動きベクトル検出部55は、1枚目の撮像画像を、加算画像として、補正部57および加算部81を介してSDRAM82に供給し、記憶させるとともに、基準画像として、SADテーブル56に供給して記憶させ、ステップS38に進む。   In step S33, the motion vector detection unit 55 supplies the first captured image as an addition image to the SDRAM 82 via the correction unit 57 and the addition unit 81, and stores them in the SAD table 56 as a reference image. Supply and store, and proceed to step S38.

一方、ステップS32において、動きベクトル検出部55は、1枚目の撮像画像でない(2枚目以降の撮像画像である)と判定した場合、ステップS34に進み、SDRAM54から読み出した2枚目以降の撮像画像については、SADテーブル56に記憶された基準画像に対する撮像画像の動きを表す動きベクトルを検出し、その撮像画像とともに補正部57に供給して、ステップS35に進む。   On the other hand, if it is determined in step S32 that the motion vector detection unit 55 is not the first captured image (the second and subsequent captured images), the process proceeds to step S34, and the second and subsequent images read from the SDRAM 54 are processed. For the captured image, a motion vector representing the motion of the captured image with respect to the reference image stored in the SAD table 56 is detected, supplied together with the captured image to the correction unit 57, and the process proceeds to step S35.

ステップS35において、補正部57は、動きベクトル検出部55から供給された動きベクトルと上述した式(1)を用いて、最小自乗法により、アフィンパラメータ(s,t,θ)を求めて、ステップS36に進み、求めたアフィンパラメータ(s,t,θ)を用いて、動きベクトル検出部55から供給された撮像画像を補正し、補正後の撮像画像を加算部81(平均画像生成部58)に供給して、ステップS37に進む。   In step S35, the correction unit 57 obtains the affine parameters (s, t, θ) by the least square method using the motion vector supplied from the motion vector detection unit 55 and the above-described equation (1). Proceeding to S36, using the obtained affine parameters (s, t, θ), the captured image supplied from the motion vector detecting unit 55 is corrected, and the corrected captured image is added to the adding unit 81 (average image generating unit 58). To proceed to step S37.

ステップS37において、加算部81は、SDRAM82から加算画像を読み出し、その加算画像と、補正部57から供給された補正後のn枚目の撮像画像の画素値を加算し、これにより得られた画像を、新たな加算画像として、SDRAM82に供給して、記憶させ、ステップS38に進む。   In step S37, the addition unit 81 reads the addition image from the SDRAM 82, adds the addition image and the pixel value of the n-th captured image after correction supplied from the correction unit 57, and an image obtained thereby. Are supplied to and stored in the SDRAM 82 as a new added image, and the process proceeds to step S38.

ステップS38において、1/n乗算部83は、SDRAM82から、n枚の撮像画像を加算した加算画像を読み出し、その加算画像の画素値を1/n倍する。ステップS38において、1/n乗算部83は、1/n倍した加算画像を、新たな平均画像として、SDRAM84に供給し、上書きする形で記憶させ、ステップS39に進む。   In step S38, the 1 / n multiplication unit 83 reads an added image obtained by adding n captured images from the SDRAM 82, and multiplies the pixel value of the added image by 1 / n. In step S38, the 1 / n multiplication unit 83 supplies the 1 / n-fold added image to the SDRAM 84 as a new average image, stores it in an overwritten form, and proceeds to step S39.

ステップS39において、表示制御部60は、直前に行われたステップS38において、SDRAM84に記憶された平均画像を読み出し、表示部61に供給して表示させ、ステップS40に進む。   In step S39, the display control unit 60 reads the average image stored in the SDRAM 84 in step S38 performed immediately before, supplies the average image to the display unit 61 for display, and proceeds to step S40.

ステップS40において、平均画像生成部58は、レリーズ・スイッチ31の押圧操作が続けられているかどうかを判定する。ステップS40において、レリーズ・スイッチ31の押圧操作が続けられていると判定された場合、ステップS31に戻り、以下、同様の処理を繰り返す。これにより、ステップS38において、平均画像生成部58が新たな平均画像を生成するたびに、その新たな平均画像が表示部61に表示される。   In step S40, the average image generator 58 determines whether or not the pressing operation of the release switch 31 is continued. If it is determined in step S40 that the pressing operation of the release switch 31 is continued, the process returns to step S31, and the same processing is repeated thereafter. Thereby, in step S38, every time the average image generation unit 58 generates a new average image, the new average image is displayed on the display unit 61.

一方、ステップS40において、レリーズ・スイッチ31の押圧操作が停止されたと判定された場合、即ち、レリーズ・スイッチ31を押圧操作し続けていたユーザが、表示部61に表示された平均画像を見て、動体が消去された所望の画像(平均画像)が得られたとして、レリーズ・スイッチ31の押圧操作を停止した場合、ステップS41に進み、入出力制御部62は、SDRAM84から平均画像(レリーズ・スイッチ31の押圧操作を停止したときに、表示部61に表示されていた平均画像)を読み出し、記憶部63または(ドライブ64を介して)メモリカード65に供給して、記憶させる。その後、処理は終了する。   On the other hand, when it is determined in step S40 that the pressing operation of the release switch 31 has been stopped, that is, the user who has continued pressing the release switch 31 looks at the average image displayed on the display unit 61. Assuming that a desired image (average image) from which the moving object has been erased is obtained, if the pressing operation of the release switch 31 is stopped, the process proceeds to step S41, and the input / output control unit 62 reads the average image (release / release) from the SDRAM 84. When the pressing operation of the switch 31 is stopped, the average image displayed on the display unit 61 is read and supplied to the storage unit 63 or the memory card 65 (via the drive 64) to be stored. Thereafter, the process ends.

次に、図9を参照して、図1の平均画像生成部58の他の構成例を説明する。   Next, another configuration example of the average image generation unit 58 in FIG. 1 will be described with reference to FIG.

図9は、図1の平均画像生成部58の他の構成例を示すブロック図である。   FIG. 9 is a block diagram showing another configuration example of the average image generation unit 58 of FIG.

平均画像生成部58は、1/n乗算部331、加算部332、SDRAM333、および(n―1)/n乗算部334により構成される。   The average image generation unit 58 includes a 1 / n multiplication unit 331, an addition unit 332, an SDRAM 333, and an (n−1) / n multiplication unit 334.

1/n乗算部331には、補正部57から、補正後のn枚目の撮像画像が供給されるようになっている。1/n乗算部331は、補正部57から供給されたn枚目の撮像画像の画素値を1/n倍し、その結果得られた1/n画像を、加算部332に供給する。   The 1 / n multiplication unit 331 is supplied with a corrected n-th captured image from the correction unit 57. The 1 / n multiplication unit 331 multiplies the pixel value of the n-th captured image supplied from the correction unit 57 by 1 / n, and supplies the 1 / n image obtained as a result to the addition unit 332.

加算部332は、1/n乗算部331から供給された1/n(n=2,3,・・・,N―1,N)画像と、後述する(n―1)/n乗算部334から供給された(n―1)/n画像との画素値を加算し、その結果得られた画像を、新たな平均画像として、SDRAM333に供給し、上書きする形で記憶させる。   The adder 332 includes a 1 / n (n = 2, 3,..., N−1, N) image supplied from the 1 / n multiplier 331 and an (n−1) / n multiplier 334 described later. The pixel values of the (n−1) / n image supplied from the above are added, and the image obtained as a result is supplied to the SDRAM 333 as a new average image and stored in an overwritten form.

なお、加算部332は、1/n乗算部331から供給された1/n画像が1/1画像(1枚目の撮像画像)である場合には、その1/1画像を、そのまま平均画像として、SDRAM333に供給し、記憶させる。   In addition, when the 1 / n image supplied from the 1 / n multiplication unit 331 is a 1/1 image (first captured image), the addition unit 332 uses the 1/1 image as it is as an average image. Is supplied to the SDRAM 333 and stored therein.

SDRAM333は、加算部332から供給された平均画像を記憶する。   The SDRAM 333 stores the average image supplied from the adding unit 332.

(n―1)/n乗算部334は、SDRAM333から平均画像を読み出し、平均画像の画素値を(n―1)/n倍することで得られた(n―1)/n画像を、加算部332に供給する。   The (n−1) / n multiplication unit 334 reads the average image from the SDRAM 333 and adds the (n−1) / n image obtained by multiplying the pixel value of the average image by (n−1) / n. To the unit 332.

SDRAM333(平均画像生成部58)に記憶された平均画像は、表示制御部60によって読み出され、表示部61において表示される。また、SDRAM333に記憶された平均画像は、入出力制御部62によって読み出され、記憶部63またはメモリカード65に供給されて、記憶される。   The average image stored in the SDRAM 333 (average image generation unit 58) is read by the display control unit 60 and displayed on the display unit 61. The average image stored in the SDRAM 333 is read by the input / output control unit 62, supplied to the storage unit 63 or the memory card 65, and stored.

以上のような構成を採用することにより、図9の平均画像生成部58は、図2における構成を採用した場合と比較して、記憶容量の少ないSDRAMを採用することができる。   By adopting the configuration as described above, the average image generation unit 58 in FIG. 9 can employ an SDRAM having a small storage capacity compared to the case where the configuration in FIG. 2 is employed.

また、図9の平均画像生成部58では、補正部57から供給されたn枚目の撮像画像の画素値を1/n倍した1/n画像と、SDRAM333から読み出した平均画像の画素値を(n―1)/n倍した(n―1)/n画像との画素値を加算し、新たな平均画像を生成することとしたが、例えば、n枚目の撮像画像の画素値と、SDRAM333から読み出した平均画像の画素値を(n―1)倍した画素値とを加算し、加算後の画素値を1/n倍することで、新たな平均画像を生成するようにしてもよい。これにより、いわゆる丸め誤差による階調の損失を減少させることができる。   Further, in the average image generation unit 58 of FIG. 9, the 1 / n image obtained by multiplying the pixel value of the n-th captured image supplied from the correction unit 57 by 1 / n and the pixel value of the average image read from the SDRAM 333 are obtained. The pixel value of (n-1) / n times the (n-1) / n image is added to generate a new average image. For example, the pixel value of the n-th captured image, A new average image may be generated by adding the pixel value obtained by multiplying the pixel value of the average image read from the SDRAM 333 by (n−1) and multiplying the pixel value after the addition by 1 / n. . This can reduce gradation loss due to so-called rounding errors.

次に、図10のフローチャートを参照し、図1の平均画像生成部58が、図9に示される構成である場合の、デジタルカメラ11の動体消去の撮影モードの処理を説明する。   Next, with reference to the flowchart of FIG. 10, processing in the shooting mode for moving object elimination of the digital camera 11 when the average image generation unit 58 of FIG. 1 has the configuration shown in FIG. 9 will be described.

ユーザが、レリーズ・スイッチ31の押圧操作を開始すると、ステップS81およびステップS82において、図8のステップS31およびステップS32とそれぞれ同様の処理が行われる。   When the user starts the pressing operation of the release switch 31, the same processes as in steps S31 and S32 of FIG. 8 are performed in steps S81 and S82, respectively.

ステップS82において、動きベクトル検出部55は、SDRAM54から読み出した撮像画像が1枚目の撮像画像であると判定した場合、ステップS83に進み、1枚目の撮像画像を、平均画像として、補正部57、1/n乗算部331、および加算部332を介してSDRAM333に供給し、記憶させる。さらに、ステップS83において、動きベクトル検出部55は、1枚目の撮像画像を、基準画像として、SADテーブル56に供給し、記憶させ、ステップS90に進む。   In step S82, when the motion vector detection unit 55 determines that the captured image read from the SDRAM 54 is the first captured image, the process proceeds to step S83, and the correction unit uses the first captured image as an average image. 57, supplied to the SDRAM 333 via the 1 / n multiplier 331 and the adder 332 and stored therein. Furthermore, in step S83, the motion vector detection unit 55 supplies the first captured image as a reference image to the SAD table 56 for storage, and the process proceeds to step S90.

一方、ステップS82において、動きベクトル検出部55は、1枚目の撮像画像でない(2枚目以降の撮像画像である)と判定した場合、ステップS84に進み、ステップS84乃至ステップS86において、図8のステップS34乃至ステップS36とそれぞれ同様の処理が行われる。   On the other hand, if it is determined in step S82 that the motion vector detection unit 55 is not the first captured image (the second and subsequent captured images), the process proceeds to step S84, and in steps S84 to S86, FIG. The same processing as in steps S34 to S36 is performed.

その後、ステップS86からステップS87に進み、1/n乗算部331(平均画像生成部58)は、補正部57から供給されたn枚目の撮像画像の画素値を1/n倍し、その結果得られた1/n画像を、加算部332に供給して、ステップS88に進む。   Thereafter, the process proceeds from step S86 to step S87, where the 1 / n multiplication unit 331 (average image generation unit 58) multiplies the pixel value of the nth captured image supplied from the correction unit 57 by 1 / n, and the result. The obtained 1 / n image is supplied to the adding unit 332, and the process proceeds to step S88.

ステップS88において、(n―1)/n乗算部334は、SDRAM333から読み出した平均画像の画素値を(n―1)/n倍することで得られた(n―1)/n画像を、加算部332に供給し、ステップS89に進む。   In step S88, the (n−1) / n multiplication unit 334 obtains the (n−1) / n image obtained by multiplying the pixel value of the average image read from the SDRAM 333 by (n−1) / n, The data is supplied to the adding unit 332, and the process proceeds to step S89.

ステップS89において、加算部332は、1/n乗算部331から供給された1/n画像と、(n―1)/n乗算部334から供給された(n―1)/n画像との画素値を加算し、その結果得られた画像を、新たな平均画像として、SDRAM333に供給して、上書きする形で記憶させ、ステップS90に進み、以下、ステップS90乃至ステップS92において、図8のステップS39乃至ステップS41とそれぞれ同様の処理が行われる。その後、処理は終了する。   In step S89, the adder 332 includes pixels of the 1 / n image supplied from the 1 / n multiplier 331 and the (n-1) / n image supplied from the (n-1) / n multiplier 334. The values are added, and the image obtained as a result is supplied to the SDRAM 333 as a new average image, stored in an overwritten form, and proceeds to step S90. Hereinafter, in steps S90 to S92, the steps of FIG. The same processing as S39 to S41 is performed. Thereafter, the process ends.

以上のような図8および図10の動体消去の撮影モードの処理によれば、補正部57では、撮像部41により撮像された撮像画像の位置が、基準画像の位置に補正されるため、撮像中に生じた手振れなどの画像振れ(位置ズレ)を補正することができる。   8 and FIG. 10, the correction unit 57 corrects the position of the captured image captured by the image capturing unit 41 to the position of the reference image. It is possible to correct image shake (positional deviation) such as camera shake occurring inside.

また、表示部61では、平均画像生成部58で平均画像が生成されるたびに、その平均画像が表示されるので、ユーザは、平均画像における動体の消去の程度をリアルタイムに確認することができる。これにより、ユーザは、動体が消去された、適正露光の画像(平均画像)を得ることができる。ここで、適正露光の画像とは、例えば、通常撮影モードで撮像する場合において、デジタルカメラ11が有する自動露光(AE:Automatic Exposure)機能を用いるときには、デジタルカメラ11により設定された所定のシャッタスピードと絞りによる露光量の画像をいい、ユーザが、マニュアル操作により所定のシャッタスピードと絞りを設定するときには、その設定による露光量の画像をいう。   In addition, since the average image is displayed every time the average image is generated by the average image generation unit 58 in the display unit 61, the user can confirm the degree of erasure of moving objects in the average image in real time. . Thereby, the user can obtain an image (average image) of proper exposure from which the moving object is erased. Here, the image of the appropriate exposure is, for example, a predetermined shutter speed set by the digital camera 11 when using the automatic exposure (AE) function of the digital camera 11 when capturing in the normal shooting mode. When the user sets a predetermined shutter speed and aperture by manual operation, it means an image of the exposure amount according to the setting.

上述した動きベクトル検出部55、補正部57、平均画像生成部58、表示制御部60、および入出力制御部62が行う一連の処理は、専用のハードウエアにより実行させることもできるし、ソフトウエアにより実行させることもできる。一連の処理をソフトウエアにより実行させる場合には、そのソフトウエアを構成するプログラムが、いわゆる組み込み型のコンピュータ、または、各種のプログラムをインストールすることで、各種の機能を実行することが可能な、例えば汎用のパーソナルコンピュータなどに、プログラム格納媒体からインストールされる。   A series of processes performed by the motion vector detection unit 55, the correction unit 57, the average image generation unit 58, the display control unit 60, and the input / output control unit 62 described above can be executed by dedicated hardware, Can also be executed. When a series of processing is executed by software, a program constituting the software can execute various functions by installing a so-called embedded computer or various programs. For example, it is installed from a program storage medium in a general-purpose personal computer.

図11は、上述した一連の処理をプログラムにより実行するコンピュータの構成例を示すブロック図である。   FIG. 11 is a block diagram illustrating a configuration example of a computer that executes the above-described series of processing by a program.

CPU(Central Processing Unit)361は、ROM(Read Only Memory)362、または記憶部368に記憶されているプログラムに従って各種の処理を実行する。RAM(Random Access Memory)363には、CPU361が実行するプログラムやデータなどが適宜記憶される。これらのCPU361、ROM362、およびRAM363は、バス364により相互に接続されている。   A CPU (Central Processing Unit) 361 executes various processes according to a program stored in a ROM (Read Only Memory) 362 or a storage unit 368. A RAM (Random Access Memory) 363 appropriately stores programs executed by the CPU 361, data, and the like. The CPU 361, ROM 362, and RAM 363 are connected to each other by a bus 364.

CPU361にはまた、バス364を介して入出力インタフェース365が接続されている。入出力インタフェース365には、キーボード、マウス、マイクロホンなどよりなる入力部366、ディスプレイ、スピーカなどよりなる出力部367が接続されている。CPU361は、入力部366から入力される指令に対応して各種の処理を実行する。そして、CPU361は、処理の結果を出力部367に出力する。   An input / output interface 365 is also connected to the CPU 361 via the bus 364. Connected to the input / output interface 365 are an input unit 366 including a keyboard, a mouse, and a microphone, and an output unit 367 including a display and a speaker. The CPU 361 executes various processes in response to commands input from the input unit 366. Then, the CPU 361 outputs the processing result to the output unit 367.

入出力インタフェース365に接続されている記憶部368は、例えばハードディスクからなり、CPU361が実行するプログラムや各種のデータを記憶する。通信部369は、インターネットやローカルエリアネットワークなどのネットワークを介して外部の装置と通信する。   The storage unit 368 connected to the input / output interface 365 is composed of, for example, a hard disk, and stores programs executed by the CPU 361 and various data. The communication unit 369 communicates with an external device via a network such as the Internet or a local area network.

また、通信部369を介してプログラムを取得し、記憶部368に記憶してもよい。   Further, a program may be acquired via the communication unit 369 and stored in the storage unit 368.

入出力インタフェース365に接続されているドライブ370は、磁気ディスク、光ディスク、光磁気ディスク、或いは半導体メモリなどのリムーバブルメディア371が装着されたとき、それらを駆動し、そこに記録されているプログラムやデータなどを取得する。取得されたプログラムやデータは、必要に応じて記憶部368に転送され、記憶される。   A drive 370 connected to the input / output interface 365 drives a removable medium 371 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, and drives the program or data recorded therein. Get etc. The acquired program and data are transferred to and stored in the storage unit 368 as necessary.

コンピュータにインストールされ、コンピュータによって実行可能な状態とされるプログラムを格納するプログラム格納媒体は、図11に示されるように、磁気ディスク(フレキシブルディスクを含む)、光ディスク(CD-ROM(Compact Disc-Read Only Memory),DVD(Digital Versatile Disc)を含む)、光磁気ディスク(MD(Mini-Disc)を含む)、もしくは半導体メモリなどよりなるパッケージメディアであるリムーバブルメディア371、または、プログラムが一時的もしくは永続的に格納されるROM362や、記憶部368を構成するハードディスクなどにより構成される。プログラム格納媒体へのプログラムの格納は、必要に応じてルータ、モデムなどのインタフェースである通信部369を介して、ローカルエリアネットワーク、インターネット、デジタル衛星放送といった、有線または無線の通信媒体を利用して行われる。   As shown in FIG. 11, a program storage medium that stores a program that is installed in a computer and can be executed by the computer includes a magnetic disk (including a flexible disk), an optical disk (CD-ROM (Compact Disc-Read). Removable media 371, which is a package media consisting of only memory), DVD (digital versatile disc), magneto-optical disc (including MD (mini-disc)), or semiconductor memory, or a program that is temporary or permanent ROM 362 that is stored in the memory, and a hard disk that constitutes the storage unit 368. The program is stored in the program storage medium using a wired or wireless communication medium such as a local area network, the Internet, or digital satellite broadcasting via a communication unit 369 that is an interface such as a router or a modem as necessary. Done.

なお、本明細書において、プログラム格納媒体に格納されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。   In the present specification, the step of describing the program stored in the program storage medium is not limited to the processing performed in time series according to the described order, but is not necessarily performed in time series. Or the process performed separately is also included.

以上のような図8および図10の動体消去の撮影モードの処理において、図1の動きベクトル検出部55は、上述したブロックマッチングにより動きベクトルを検出することとしたが、動きベクトルの検出方法は、これに限定されるものではなく、例えば、勾配法などにより動きベクトルを検出することとしてもよい。   In the moving object erasure shooting mode processing of FIGS. 8 and 10 as described above, the motion vector detection unit 55 of FIG. 1 detects the motion vector by the block matching described above, but the motion vector detection method is as follows. For example, the motion vector may be detected by a gradient method.

また、図1の動きベクトル検出部55は、適当な縮小率で縮小した基準画像と(2枚目以降の)撮像画像とを用いて、動きベクトルを検出することもできる。   The motion vector detection unit 55 in FIG. 1 can also detect a motion vector using a reference image reduced at an appropriate reduction ratio and a captured image (second and subsequent images).

さらに、図1の補正部57では、アフィン変換によって、被写体の位置合わせをする補正を行うこととしたが、例えば、デジタルカメラ11に角速度センサや加速度センサなどのセンサを用いることで、画像振れを検出し、光学的な補正をするようにしてもよい。   Further, the correction unit 57 in FIG. 1 performs correction for aligning the subject by affine transformation. For example, by using a sensor such as an angular velocity sensor or an acceleration sensor for the digital camera 11, image blurring is performed. It may be detected and optically corrected.

また、表示制御部60は、平均画像生成部58が、新たな平均画像を生成するたびに、その平均画像を、表示部61に表示させることとしたが、例えば、平均画像生成部58で生成される平均画像を、例えば、m(<N)枚おきに表示させることとしてもよい。これにより、表示制御部60は、平均画像生成部58で新たな平均画像が生成されるたびに、その平均画像を表示部61に表示させるときと比較して、平均画像を表示させる処理の負担を軽減させることができる。   The display control unit 60 displays the average image on the display unit 61 each time the average image generation unit 58 generates a new average image. For example, the display control unit 60 generates the average image using the average image generation unit 58. For example, the average image to be displayed may be displayed every m (<N). As a result, the display control unit 60 is burdened of displaying an average image each time a new average image is generated by the average image generation unit 58, compared to when the average image is displayed on the display unit 61. Can be reduced.

さらに、図2の1/n乗算部83では、加算部81で新たな加算画像が生成されるたびに、その加算画像の画素値を1/n倍していたが、例えば、加算部81で生成される加算画像の画素値を、例えば、m(<N)枚おきに1/n倍するようにしてもよい。これにより、1/n乗算部83は、加算部で新たな加算画像が生成されるたびに、その加算画像の画素値を1/n倍するときと比較して、画素値を1/n倍する処理を軽減することができる。   Further, in the 1 / n multiplication unit 83 in FIG. 2, every time a new addition image is generated by the addition unit 81, the pixel value of the addition image is multiplied by 1 / n. For example, the pixel value of the generated addition image may be multiplied by 1 / n every m (<N). Thus, each time a new addition image is generated by the addition unit, the 1 / n multiplication unit 83 multiplies the pixel value by 1 / n times as compared with the case where the pixel value of the addition image is multiplied by 1 / n. Can be reduced.

なお、本発明の実施の形態は、上述した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において種々の変更が可能である。   The embodiment of the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the gist of the present invention.

本発明を適用したデジタルカメラの一実施の形態の構成例を示すブロック図である。It is a block diagram which shows the structural example of one Embodiment of the digital camera to which this invention is applied. 図1の平均画像生成部の詳細な構成例を示すブロック図である。It is a block diagram which shows the detailed structural example of the average image generation part of FIG. 図1の動きベクトル検出部による2枚目以降の撮像画像の動きベクトルを検出する方法を説明する図である。It is a figure explaining the method to detect the motion vector of the 2nd or more captured image by the motion vector detection part of FIG. 図1の動きベクトル検出部による2枚目以降の撮像画像の動きベクトルを検出する方法を説明する他の図である。It is another figure explaining the method of detecting the motion vector of the 2nd or more captured image by the motion vector detection part of FIG. 図1の補正部による2枚目以降の撮像画像の補正を説明する図である。It is a figure explaining correction | amendment of the captured image after the 2nd sheet | seat by the correction | amendment part of FIG. 図1の平均画像生成部が、新たな平均画像を生成する様子を示す図である。It is a figure which shows a mode that the average image production | generation part of FIG. 1 produces | generates a new average image. 図1の表示部に、平均画像が表示される様子を示す図である。It is a figure which shows a mode that an average image is displayed on the display part of FIG. 図1の平均画像生成部が、図2に示される構成である場合の、動体消去の撮像モードの処理について説明するフローチャートである。3 is a flowchart for describing processing in an imaging mode for moving object elimination when the average image generation unit in FIG. 1 has the configuration shown in FIG. 2. 図1の平均画像生成部の詳細な構成例を示す別のブロック図である。It is another block diagram which shows the detailed structural example of the average image generation part of FIG. 図1の平均画像生成部が、図9に示される構成である場合の、動体消去の撮像モードの処理について説明するフローチャートである。10 is a flowchart for describing processing in an imaging mode for moving object elimination when the average image generation unit in FIG. 1 has the configuration shown in FIG. 9. コンピュータの構成例を示すブロック図である。It is a block diagram which shows the structural example of a computer.

符号の説明Explanation of symbols

21 操作部, 31 レリーズ・スイッチ, 41 撮像部, 54 SDRAM, 55 動きベクトル検出部, 56 SADテーブル, 57 補正部, 58 平均画像生成部, 60 表示制御部, 61 表示部, 62 入出力制御部, 63 記憶部, 64 ドライブ, 65 メモリカード   21 operation unit, 31 release switch, 41 imaging unit, 54 SDRAM, 55 motion vector detection unit, 56 SAD table, 57 correction unit, 58 average image generation unit, 60 display control unit, 61 display unit, 62 input / output control unit , 63 Storage unit, 64 drives, 65 Memory card

Claims (14)

画像を撮像する撮像装置において、
入射する光を光電変換することにより画像を撮像する撮像手段と、
ユーザによって操作される操作手段と、
前記操作手段が操作されている間に、前記撮像手段が適正露光の露光時間で撮像した複数枚の画像の画素値を平均化した平均画像を生成する平均画像生成手段と、
前記操作手段の操作が停止されたとき、前記平均画像を記録媒体に記録する記録制御手段と
を備える撮像装置。
In an imaging device that captures an image,
Imaging means for imaging an image by photoelectrically converting incident light; and
Operation means operated by a user;
An average image generating means for generating an average image obtained by averaging pixel values of a plurality of images captured by the imaging means with an exposure time of appropriate exposure while the operating means is being operated;
An image pickup apparatus comprising: a recording control unit that records the average image on a recording medium when the operation of the operation unit is stopped.
画像を表示する表示手段と、
前記平均画像生成手段において、新たな平均画像が生成されるごとに、新たな平均画像を、前記表示手段に表示させる表示制御手段と
をさらに備える請求項1に記載の撮像装置。
Display means for displaying an image;
The imaging apparatus according to claim 1, further comprising: a display control unit that causes the display unit to display a new average image each time a new average image is generated in the average image generation unit.
前記操作手段が操作されている間に、前記撮像手段が撮像した複数枚の画像それぞれに映っている被写体の位置を合わせるように、前記撮像手段が撮像した画像を補正する補正手段をさらに備え、
前記平均画像生成手段は、前記補正手段により補正がされた複数枚の画像を平均化する
請求項1に記載の撮像装置。
A correction unit that corrects the image captured by the imaging unit so as to align the position of the subject shown in each of the plurality of images captured by the imaging unit while the operation unit is operated;
The imaging apparatus according to claim 1, wherein the average image generation unit averages a plurality of images corrected by the correction unit.
前記平均画像生成手段は、
前記撮像手段においてn枚目の画像が撮像されたときに、n―1枚の画像を加算した加算画像と、前記n枚目の画像とを加算することにより、n枚の画像を加算した新たな加算画像を生成する加算手段と、
前記加算手段で得られた新たな加算画像の画素値を1/n倍にする1/n乗算手段と
を有する
請求項1に記載の撮像装置。
The average image generating means includes
When the n-th image is picked up by the image pickup means, an addition image obtained by adding the n−1 images and the n-th image are added to add a new image obtained by adding the n-th image. Adding means for generating a summation image;
The imaging apparatus according to claim 1, further comprising: 1 / n multiplication means for multiplying a pixel value of a new addition image obtained by the addition means by 1 / n.
前記平均画像生成手段は、
前記撮像手段においてn枚目の画像が撮像されたときに、前記n枚目の画像の画素値を1/n倍にする1/n乗算手段と、
n―1枚の画像から生成された前記平均画像の画素値を(n―1)/n倍にする(n―1)/n乗算手段と、
画素値が1/n倍にされた前記n枚目の画像と、画素値が(n―1)/n倍にされた前記平均画像との画素値を加算する加算手段と
を有する
請求項1に記載の撮像装置。
The average image generating means includes
1 / n multiplication means for multiplying the pixel value of the nth image by 1 / n when the nth image is picked up by the imaging means;
(n-1) / n multiplication means for multiplying the pixel value of the average image generated from n-1 images by (n-1) / n times,
2. An adding unit that adds pixel values of the n-th image having a pixel value multiplied by 1 / n and the average image having a pixel value multiplied by (n−1) / n. The imaging device described in 1.
入射する光を光電変換することにより画像を撮像する撮像手段を備える撮像装置の撮像方法において、
ユーザによって操作される操作手段が操作されている間に、前記撮像手段が適正露光の露光時間で撮像した複数枚の画像の画素値を平均化した平均画像を生成し、
前記操作手段の操作が停止されたとき、前記平均画像を記録媒体に記録する
ステップを含む撮像方法。
In an imaging method of an imaging apparatus including an imaging unit that images an image by photoelectrically converting incident light,
While the operating means operated by the user is being operated, the imaging means generates an average image that averages the pixel values of a plurality of images captured with an exposure time of appropriate exposure,
An imaging method including a step of recording the average image on a recording medium when the operation of the operation means is stopped.
入射する光を光電変換することにより画像を撮像する撮像手段を備える撮像装置の撮像処理をコンピュータに実行させるプログラムにおいて、
ユーザによって操作される操作手段が操作されている間に、前記撮像手段が適正露光の露光時間で撮像した複数枚の画像の画素値を平均化した平均画像を生成し、
前記操作手段の操作が停止されたとき、前記平均画像を記録媒体に記録する
ステップを含む撮像処理をコンピュータに実行させるプログラム。
In a program for causing a computer to execute an imaging process of an imaging apparatus including an imaging unit that captures an image by photoelectrically converting incident light,
While the operating means operated by the user is being operated, the imaging means generates an average image that averages the pixel values of a plurality of images captured with an exposure time of appropriate exposure,
A program for causing a computer to execute an imaging process including a step of recording the average image on a recording medium when the operation of the operation means is stopped.
画像を撮像する撮像装置において、
入射する光を光電変換することにより画像を撮像する撮像手段と、
前記撮像手段が適正露光の露光時間で撮像した複数枚の画像の画素値を平均化した平均画像を生成する平均画像生成手段と、
画像を表示する表示手段と、
前記平均画像生成手段において、新たな平均画像が生成されるごとに、新たな平均画像を、前記表示手段に表示させる表示制御手段と
を備える撮像装置。
In an imaging device that captures an image,
Imaging means for imaging an image by photoelectrically converting incident light; and
An average image generating means for generating an average image obtained by averaging pixel values of a plurality of images captured by the imaging means with an exposure time of appropriate exposure; and
Display means for displaying an image;
An image pickup apparatus comprising: a display control unit that causes the display unit to display a new average image each time a new average image is generated in the average image generation unit.
前記平均画像を記録媒体に記録する記録制御手段とをさらに備える
請求項8に記載の撮像装置。
The imaging apparatus according to claim 8, further comprising recording control means for recording the average image on a recording medium.
前記操作手段が操作されている間に、前記撮像手段が撮像した複数枚の画像それぞれに映っている被写体の位置を合わせるように、前記撮像手段が撮像した画像を補正する補正手段をさらに備え、
前記平均画像生成手段は、前記補正手段により補正がされた複数枚の画像を平均化する
請求項8に記載の撮像装置。
A correction unit that corrects the image captured by the imaging unit so as to align the position of the subject shown in each of the plurality of images captured by the imaging unit while the operation unit is operated;
The imaging apparatus according to claim 8, wherein the average image generation unit averages a plurality of images corrected by the correction unit.
前記平均画像生成手段は、
前記撮像手段においてn枚目の画像が撮像されたときに、n―1枚の画像を加算した加算画像と、前記n枚目の画像とを加算することにより、n枚の画像を加算した新たな加算画像を生成する加算手段と、
前記加算手段で得られた新たな加算画像の画素値を1/n倍にする1/n乗算手段と
を有する
請求項8に記載の撮像装置。
The average image generating means includes
When the n-th image is picked up by the image pickup means, an addition image obtained by adding the n−1 images and the n-th image are added to add a new image obtained by adding the n-th image. Adding means for generating a summation image;
The imaging apparatus according to claim 8, further comprising: 1 / n multiplication means for multiplying a pixel value of a new addition image obtained by the addition means by 1 / n.
前記平均画像生成手段は、
前記撮像手段においてn枚目の画像が撮像されたときに、前記n枚目の画像の画素値を1/n倍にする1/n乗算手段と、
n―1枚の画像から生成された前記平均画像の画素値を(n―1)/n倍にする(n―1)/n乗算手段と、
画素値が1/n倍にされた前記n枚目の画像と、画素値が(n―1)/n倍にされた前記平均画像との画素値を加算する加算手段と
を有する
請求項8に記載の撮像装置。
The average image generating means includes
1 / n multiplication means for multiplying the pixel value of the nth image by 1 / n when the nth image is picked up by the imaging means;
(n-1) / n multiplication means for multiplying the pixel value of the average image generated from n-1 images by (n-1) / n times,
9. An adding unit that adds pixel values of the n-th image having a pixel value multiplied by 1 / n and the average image having a pixel value multiplied by (n−1) / n. The imaging device described in 1.
入射する光を光電変換することにより画像を撮像する撮像手段を備える撮像装置の撮像方法において、
前記撮像手段が適正露光の露光時間で撮像した複数枚の画像の画素値を平均化した平均画像を生成し、
前記撮像手段が撮像した画像が平均化された新たな平均画像が生成されるたびに、新たな平均画像を、画像を表示する表示手段に表示させる
ステップを含む撮像方法。
In an imaging method of an imaging apparatus including an imaging unit that images an image by photoelectrically converting incident light,
Generating an average image obtained by averaging pixel values of a plurality of images captured by the imaging unit with an exposure time of appropriate exposure;
An imaging method including a step of displaying a new average image on a display unit that displays an image every time a new average image obtained by averaging images captured by the imaging unit is generated.
入射する光を光電変換することにより画像を撮像する撮像手段を備える撮像装置の撮像処理をコンピュータに実行させるプログラムにおいて、
前記撮像手段が適正露光の露光時間で撮像した複数枚の画像の画素値を平均化した平均画像を生成し、
前記撮像手段が撮像した画像が平均化された新たな平均画像が生成されるたびに、新たな平均画像を、画像を表示する表示手段に表示させる
ステップを含む撮像処理をコンピュータに実行させるプログラム。
In a program for causing a computer to execute an imaging process of an imaging apparatus including an imaging unit that captures an image by photoelectrically converting incident light,
Generating an average image obtained by averaging pixel values of a plurality of images captured by the imaging unit with an exposure time of appropriate exposure;
A program that causes a computer to execute an imaging process including a step of displaying a new average image on a display unit that displays an image every time a new average image obtained by averaging images captured by the imaging unit is generated.
JP2006130097A 2006-05-09 2006-05-09 Imaging apparatus, imaging method, and program Pending JP2007306107A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006130097A JP2007306107A (en) 2006-05-09 2006-05-09 Imaging apparatus, imaging method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006130097A JP2007306107A (en) 2006-05-09 2006-05-09 Imaging apparatus, imaging method, and program

Publications (1)

Publication Number Publication Date
JP2007306107A true JP2007306107A (en) 2007-11-22

Family

ID=38839703

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006130097A Pending JP2007306107A (en) 2006-05-09 2006-05-09 Imaging apparatus, imaging method, and program

Country Status (1)

Country Link
JP (1) JP2007306107A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07154651A (en) * 1993-11-29 1995-06-16 Shimadzu Corp Picture processing unit
JPH11224324A (en) * 1998-02-06 1999-08-17 Fuji Photo Film Co Ltd Image signal processing method and device
JP2006005536A (en) * 2004-06-16 2006-01-05 Olympus Corp Digital imaging apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07154651A (en) * 1993-11-29 1995-06-16 Shimadzu Corp Picture processing unit
JPH11224324A (en) * 1998-02-06 1999-08-17 Fuji Photo Film Co Ltd Image signal processing method and device
JP2006005536A (en) * 2004-06-16 2006-01-05 Olympus Corp Digital imaging apparatus

Similar Documents

Publication Publication Date Title
JP2007306106A (en) Imaging apparatus, imaging method, and program
JP4760973B2 (en) Imaging apparatus and image processing method
JP4487191B2 (en) Image processing apparatus and image processing program
JP2014131257A (en) Image correction system, image correction method, and program
JP4862934B2 (en) Image processing apparatus, image processing method, and program
JP4781233B2 (en) Image processing apparatus, imaging apparatus, and image processing method
JP2007135056A (en) Image processor and method, and program
JP2011029735A (en) Image processor, imaging device, and image processing method
JP6656035B2 (en) Image processing apparatus, imaging apparatus, and control method for image processing apparatus
JP5011504B2 (en) Image composition apparatus, image composition method, and program
JP2010211255A (en) Imaging apparatus, image processing method, and program
JP6921606B2 (en) Image processing equipment, image processing methods and programs
JP2009171341A (en) Blur correcting device and imaging apparatus
JP5239991B2 (en) Image processing apparatus and image processing system
JP2007306107A (en) Imaging apparatus, imaging method, and program
TWI497448B (en) Method and system for image enhancement
JP2010154390A (en) Imaging device, imaging method, and program
JP2009027437A (en) Image processor, image processing method and imaging device
JP6433154B2 (en) Image processing apparatus and imaging apparatus
KR20180028962A (en) Method and Device for detecting image wobbling
JP2002058046A (en) Imaging system and three-dimensional camera
JP2018056784A (en) Image reading device, image reading method, and image reading program
JP4803319B2 (en) Imaging apparatus, image processing method, and program
JP2011151556A (en) Image processing device and control method thereof
JP5864952B2 (en) Imaging device, control method thereof, and control program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090422

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101110

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101116

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110405